[PATCH edk2-platforms 2/2] Platform/Overdrive: enable BAR resizing

Ard Biesheuvel

Add support for BAR resizing at PCI resource allocation time: this removes
the need for the OS to grow BARs of PCIe devices such as GPU controllers,
which typically use small BARs by default for compatibility with 32-bit
systems with small PCI resource windows, but perform better when the BAR
can cover all of its onboard memory.

Usually, the OS should be capable of performing the BAR resize as well,
but it is more constrained, and so doing this earlier is better on
systems such as Overdrive where the MMIO root window is huge.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Platform/AMD/OverdriveBoard/OverdriveBoard.dsc | 2 ++
1 file changed, 2 insertions(+)

diff --git a/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc b/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc
index adc92af080f1..17600a58112d 100644
--- a/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc
+++ b/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc
@@ -404,6 +404,8 @@ [PcdsFixedAtBuild.common]

+ gEfiMdeModulePkgTokenSpaceGuid.PcdPcieResizableBarSupport|TRUE
## ACPI (no tables < 4GB)


Join devel@edk2.groups.io to automatically receive all group messages.