Project

General

Profile

Actions

Bug #499

open

coreboot will not boot edk2 on Lenovo T440p with CONFIG_RESOURCE_ALLOCATION_TOP_DOWN enabled, cannot disable this setting during build

Added by Oberon 4071 11 months ago. Updated 26 days ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
06/29/2023
Due date:
% Done:

0%

Estimated time:
Affected versions:
Needs backport to:
Affected hardware:
lenovo/t440p
Affected OS:

Description

coreboot revision in git: feb27dcbf3fc685b070c950a16e8adec958bc1ce
coreboot revision (git describe --tags): 4.20-520-gfeb27dcbf3
Tested payloads: edk2 from MrChromebox revision uefipayload_202304 and uefipayload_202306

coreboot will not boot my Lenovo ThinkPad T440p with CONFIG_RESOURCE_ALLOCATION_TOP_DOWN enabled, when using the edk2 payload (MrChromebox version, either uefipayload_202304 or uefipayload_202306). The display sometimes turns on, indicating that some of the hardware initialization was successful, but the payload will not start.

I tried to disable CONFIG_RESOURCE_ALLOCATION_TOP_DOWN in .config, but the build process insists on leaving this config enabled. This seems to be caused by the RESOURCE_ALLOCATION_TOP_DOWN setting changed to "def_bool y" in src/device/Kconfig in commit 5226301765ded70e0ef640e5252bbaca8cd14451 (allocator_v4: Treat above 4G resources more natively). The make target for building coreboot seems to automatically rerun olddefconfig, causing this setting to always remain enabled no matter what was previously saved in the .config file.

Modifying src/device/Kconfig to change RESOURCE_ALLOCATION_TOP_DOWN to "def_bool n" appears to fix the problem on my machine.

I have attached my .config file (with CONFIG_RESOURCE_ALLOCATION_TOP_DOWN enabled to reproduce the problem).


Files

.config (20.7 KB) .config Oberon 4071, 06/29/2023 08:59 PM
console.log (128 KB) console.log Oberon 4071, 06/29/2023 11:39 PM
cbmem.txt (151 KB) cbmem.txt Oberon 4071, 06/30/2023 10:33 PM
cbmem_seabios_with_resource_allocation_top_down.txt (41.1 KB) cbmem_seabios_with_resource_allocation_top_down.txt Oberon 4071, 07/01/2023 12:51 AM
dmesg_change_76199.txt (56.7 KB) dmesg_change_76199.txt Oberon 4071, 07/02/2023 10:30 PM
cbmem_change_76199.txt (120 KB) cbmem_change_76199.txt Oberon 4071, 07/02/2023 10:30 PM
cbmem.txt (116 KB) cbmem.txt Sean Rhodes, 07/05/2023 04:42 PM
cbmem_top_down_n.txt (163 KB) cbmem_top_down_n.txt Sean Rhodes, 07/05/2023 04:42 PM
dmesg_top_down_n.txt (58.2 KB) dmesg_top_down_n.txt Sean Rhodes, 07/05/2023 04:42 PM
dmesg.txt (58.3 KB) dmesg.txt with reverts and top_down=y Sean Rhodes, 07/06/2023 12:30 PM
cbmem.txt (166 KB) cbmem.txt with reverts and top_down=y Sean Rhodes, 07/06/2023 12:30 PM

Related issues 1 (0 open1 closed)

Related to coreboot - Bug #508: Dojo fails to boot from NVMe with CONFIG_RESOURCE_ALLOCATION_TOP_DOWN enabledResolvedNico Huber08/31/2023

Actions
Actions

Also available in: Atom PDF