Issue #499 has been updated by Nico Huber.




We should probably focus on one problem and one machine (that we can get edk2 
logs from) at a time. Sean, thanks for your logs so far. Looking at the latest 
logs, I see what MichaƂ pointed out: The 0xFEC00000 error is present even 
without top-down allocation. And in the very last log we are one

```

InstallProtocolInterface: 4CF5B200-68B8-4CA5-9EEC-B23E3F50029A

```

(gEfiPciIoProtocolGuid) short. And everything around `Found PCI Display device` 
is missing.



To make sure we are not hunting multiple issues at once, it would be best to 
return to known-good and first-broken master states, e.g.

```

supposedly good:      commit d7a354dab0fb (mb/google/brya/acpi: Set polling 
timing for DL23 and LD23 to 2ms)

introduced top-down:  commit 5226301765de (allocator_v4: Treat above 4G 
resources more natively)

otherwise known good: commit 0754e00ace63 (allocator_v4: Fix top-level 
allocations w/o IORESOURCE_ABOVE_4G)

```

The last one would only be interesting later, when we figured out what is wrong 
with the second.



I'm not sure how to trace the gap to the installation of gEfiPciIoProtocolGuid. 
Assuming it goes through StartPciDevicesOnBridge(), maybe we should add 
additional output there: for each device in the loop: the path, `->Allocated` 
and `->Registered`.



----------------------------------------

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

https://ticket.coreboot.org/issues/499#change-1587



* Author: Oberon 4071

* Status: New

* Priority: Normal

* Assignee: Nico Huber

* Start date: 2023-06-29

* Affected versions: 4.21

* Needs backport to: none

* Related links: https://review.coreboot.org/c/coreboot/+/76198

https://review.coreboot.org/c/coreboot/+/76199

* Affected hardware: lenovo/t440p

----------------------------------------

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)

console.log (128 KB)

cbmem.txt (151 KB)

cbmem_seabios_with_resource_allocation_top_down.txt (41.1 KB)

dmesg_change_76199.txt (56.7 KB)

cbmem_change_76199.txt (120 KB)

cbmem.txt (116 KB)

cbmem_top_down_n.txt (163 KB)

dmesg_top_down_n.txt (58.2 KB)

dmesg.txt (58.3 KB)

cbmem.txt (166 KB)





-- 

You have received this notification because you have either subscribed to it, 
or are involved in it.

To change your notification preferences, please click here: 
https://ticket.coreboot.org/my/account

_______________________________________________
coreboot mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to