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

Ard Biesheuvel ard.biesheuvel at arm.com
Thu Jan 14 12:46:15 UTC 2021


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 at 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]
   gArmTokenSpaceGuid.PcdPciMmio64Size|0x7F00000000
   gArmTokenSpaceGuid.PcdPciMmio64Translation|0x0
 
+  gEfiMdeModulePkgTokenSpaceGuid.PcdPcieResizableBarSupport|TRUE
+
   ## ACPI (no tables < 4GB)
   gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions|0x20
 
-- 
2.17.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#70285): https://edk2.groups.io/g/devel/message/70285
Mute This Topic: https://groups.io/mt/79674131/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list