]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg: PciHostBridgeLib: set RootBus->NoExtendedConfigSpace
authorLaszlo Ersek <lersek@redhat.com>
Fri, 26 Feb 2016 23:06:39 +0000 (00:06 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 3 Mar 2016 17:18:40 +0000 (18:18 +0100)
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>
OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c

index b23939d166c11ff76b140bca5f44ea4f82c399f4..cc782c1cc3bed57a22a58d6ad73ce37e13f6506b 100644 (file)
@@ -101,6 +101,8 @@ InitRootBridge (
   RootBus->Mem.Limit = PcdGet64 (PcdPciMmio32Base) +\r
                        (PcdGet64 (PcdPciMmio32Size) - 1);\r
 \r
   RootBus->Mem.Limit = PcdGet64 (PcdPciMmio32Base) +\r
                        (PcdGet64 (PcdPciMmio32Size) - 1);\r
 \r
+  RootBus->NoExtendedConfigSpace = TRUE;\r
+\r
   return EFI_OUT_OF_RESOURCES;\r
 }\r
 \r
   return EFI_OUT_OF_RESOURCES;\r
 }\r
 \r