Issue #415 has been reported by Sean Rhodes.
---------------------------------------- Bug #415: RESOURCE_ALLOCATION_TOP_DOWN breaks edk2 https://ticket.coreboot.org/issues/415
* Author: Sean Rhodes * Status: New * Priority: Low * Target version: none * Start date: 2022-09-07 * Affected versions: master ---------------------------------------- CB:41957 enabled RESOURCE_ALLOCATION_TOP_DOWN by default, which stopped edk2 from booting. The commit has been reverted, so this ticket is just to post logs.
---Files-------------------------------- resource_allocatorv4.txt (94 KB)
Issue #415 has been updated by Nico Huber.
Subject changed from RESOURCE_ALLOCATION_TOP_DOWN breaks edk2 to RESOURCE_ALLOCATION_TOP_DOWN breaks booting (-edk2-)
It turned out that there are a lot of platforms in the tree that still don't report their fixed resources correctly. These should be added inside `.read_resources` of device drivers. This commit[1] provides an example how it can look like. Sometimes * `.read_resources` is simply missing for a device, or * the device driver is not considered because a PCI device ID is missing, or * the device driver is accidentally disabled in the mainboard devicetree.
One common mistake is not to reserve the memory-mapped "BIOS" flash. Integrated resources that are handled by blobs can also be easily forgotten (at least Intel provides documentation about the complete memory map, though).
When resources are not reported, the allocator can cause conflicts with them. This can happen already by chance; chances are higher when space is tight. Also, the OS needs to be made aware of such resources or might run into the same problem (alas, this is not tied to `.read_resources` in coreboot but needs additional ACPI code at the moment).
[1] https://review.coreboot.org/c/coreboot/+/64077
---------------------------------------- Bug #415: RESOURCE_ALLOCATION_TOP_DOWN breaks booting (-edk2-) https://ticket.coreboot.org/issues/415#change-1090
* Author: Sean Rhodes * Status: New * Priority: Low * Target version: none * Start date: 2022-09-07 * Affected versions: master ---------------------------------------- CB:41957 enabled RESOURCE_ALLOCATION_TOP_DOWN by default, which stopped edk2 from booting. The commit has been reverted, so this ticket is just to post logs.
---Files-------------------------------- resource_allocatorv4.txt (94 KB)
Issue #415 has been updated by Nico Huber.
Subject changed from RESOURCE_ALLOCATION_TOP_DOWN breaks booting (-edk2-) to RESOURCE_ALLOCATION_TOP_DOWN breaks booting (<del>edk2</del>)
---------------------------------------- Bug #415: RESOURCE_ALLOCATION_TOP_DOWN breaks booting (<del>edk2</del>) https://ticket.coreboot.org/issues/415#change-1091
* Author: Sean Rhodes * Status: New * Priority: Low * Target version: none * Start date: 2022-09-07 * Affected versions: master ---------------------------------------- CB:41957 enabled RESOURCE_ALLOCATION_TOP_DOWN by default, which stopped edk2 from booting. The commit has been reverted, so this ticket is just to post logs.
---Files-------------------------------- resource_allocatorv4.txt (94 KB)
Issue #415 has been updated by Nico Huber.
Subject changed from RESOURCE_ALLOCATION_TOP_DOWN breaks booting (<del>edk2</del>) to RESOURCE_ALLOCATION_TOP_DOWN breaks booting
---------------------------------------- Bug #415: RESOURCE_ALLOCATION_TOP_DOWN breaks booting https://ticket.coreboot.org/issues/415#change-1092
* Author: Sean Rhodes * Status: New * Priority: Low * Target version: none * Start date: 2022-09-07 * Affected versions: master ---------------------------------------- CB:41957 enabled RESOURCE_ALLOCATION_TOP_DOWN by default, which stopped edk2 from booting. The commit has been reverted, so this ticket is just to post logs.
---Files-------------------------------- resource_allocatorv4.txt (94 KB)
Issue #415 has been updated by Nico Huber.
File up_squared.log added
---------------------------------------- Bug #415: RESOURCE_ALLOCATION_TOP_DOWN breaks booting https://ticket.coreboot.org/issues/415#change-1093
* Author: Sean Rhodes * Status: New * Priority: Low * Target version: none * Start date: 2022-09-07 * Affected versions: master ---------------------------------------- CB:41957 enabled RESOURCE_ALLOCATION_TOP_DOWN by default, which stopped edk2 from booting. The commit has been reverted, so this ticket is just to post logs.
---Files-------------------------------- resource_allocatorv4.txt (94 KB) up_squared.log (47.9 KB)
Issue #415 has been updated by Nico Huber.
File t500.log added File hermes.log added
---------------------------------------- Bug #415: RESOURCE_ALLOCATION_TOP_DOWN breaks booting https://ticket.coreboot.org/issues/415#change-1094
* Author: Sean Rhodes * Status: New * Priority: Low * Target version: none * Start date: 2022-09-07 * Affected versions: master ---------------------------------------- CB:41957 enabled RESOURCE_ALLOCATION_TOP_DOWN by default, which stopped edk2 from booting. The commit has been reverted, so this ticket is just to post logs.
---Files-------------------------------- resource_allocatorv4.txt (94 KB) up_squared.log (47.9 KB) hermes.log (575 KB) t500.log (585 KB)
Issue #415 has been updated by Matt DeVillier.
Status changed from New to Resolved
edk2 issue has been mitigated in the default branch used by coreboot, and a patch submitted to re-enable top-down allocation by default unless upstream edk2 is used
---------------------------------------- Bug #415: RESOURCE_ALLOCATION_TOP_DOWN breaks booting https://ticket.coreboot.org/issues/415#change-2092
* Author: Sean Rhodes * Status: Resolved * Priority: Low * Target version: none * Start date: 2022-09-07 * Affected versions: main ---------------------------------------- CB:41957 enabled RESOURCE_ALLOCATION_TOP_DOWN by default, which stopped edk2 from booting. The commit has been reverted, so this ticket is just to post logs.
---Files-------------------------------- resource_allocatorv4.txt (94 KB) up_squared.log (47.9 KB) hermes.log (575 KB) t500.log (585 KB)