summaryrefslogtreecommitdiff
path: root/OvmfPkg
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2016-02-27 00:06:39 +0100
committerLaszlo Ersek <lersek@redhat.com>2016-03-03 18:18:40 +0100
commitcb81595b5d747c60e5ff9d4e048159c59085be6f (patch)
treee598e63ac7e7767cdf2877b029783cb4274ebd2c /OvmfPkg
parent390951c2b803535e7fe8ecbba3fc1ff6bdaa3da5 (diff)
downloadedk2-cb81595b5d747c60e5ff9d4e048159c59085be6f.zip
edk2-cb81595b5d747c60e5ff9d4e048159c59085be6f.tar.gz
edk2-cb81595b5d747c60e5ff9d4e048159c59085be6f.tar.bz2
OvmfPkg: PciHostBridgeLib: set RootBus->NoExtendedConfigSpace
In "OvmfPkg/PciHostBridgeDxe/PciRootBridgeIo.c", the RootBridgeIoCheckParameter() function hard-codes the maximum offset for the PCI config space as 0xFF (see the MAX_PCI_REG_ADDRESS macro), which matches OVMF's 0xCF8 / 0xCFC config access method. The "MdeModulePkg/Bus/Pci/PciHostBridgeDxe" driver abstracts away config space access via the PciSegmentLib class, so it has to be informed separately about the config space size. Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Marcel Apfelbaum <marcel@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'OvmfPkg')
-rw-r--r--OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c b/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c
index b23939d..cc782c1 100644
--- a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c
+++ b/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c
@@ -101,6 +101,8 @@ InitRootBridge (
RootBus->Mem.Limit = PcdGet64 (PcdPciMmio32Base) +
(PcdGet64 (PcdPciMmio32Size) - 1);
+ RootBus->NoExtendedConfigSpace = TRUE;
+
return EFI_OUT_OF_RESOURCES;
}