allocator_v4: Disable top-down allocation for EDK2

EDK2 seems to have problems at least with the resource allocation for
Intel's IGD. While the investigation is ongoing, disable top-down
allocation by default if the payload is known to be EDK2.

Change-Id: I771d8a3b74b54a043624843a00498225d1f509ad
Signed-off-by: Nico Huber <nico.h@gmx.de>
Ticket: https://ticket.coreboot.org/issues/499
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76373
Reviewed-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
This commit is contained in:
Nico Huber 2023-07-07 13:56:21 +02:00 committed by Michał Żygowski
parent 0834b222c9
commit a959f0ad76
1 changed files with 5 additions and 2 deletions

View File

@ -994,12 +994,15 @@ config I2C_TRANSFER_TIMEOUT_US
is aborted and an error returned. is aborted and an error returned.
config RESOURCE_ALLOCATION_TOP_DOWN config RESOURCE_ALLOCATION_TOP_DOWN
def_bool y bool "Allocate resources from top down"
default n if PAYLOAD_EDK2
default y
help help
Top-down allocation is required to place resources above 4G by Top-down allocation is required to place resources above 4G by
default (i.e. even when there is still space below). On some default (i.e. even when there is still space below). On some
platforms, it might make a difference because of conflicts with platforms, it might make a difference because of conflicts with
undeclared resources. undeclared resources. EDK2 is currently reported to also have
problems on some platforms, at least with Intel's IGD.
config XHCI_UTILS config XHCI_UTILS
def_bool n def_bool n