]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
OvmfPkg: AcpiPlatformDxe: enable PCI IO and MMIO while fetching QEMU tables
authorLaszlo Ersek <lersek@redhat.com>
Sun, 13 Mar 2016 14:34:07 +0000 (15:34 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Wed, 23 Mar 2016 16:39:35 +0000 (17:39 +0100)
commit8f35eb92c419f8a02dcaaac41073d88739a86562
tree5b5465e854e13ebdfe16ae4f336d0dbc3245eebd
parentb6bc800d5ad6f15588a1f5e44f7aa67499399787
OvmfPkg: AcpiPlatformDxe: enable PCI IO and MMIO while fetching QEMU tables

Now that the previous patches ensure that we can access all PCI devices in
AcpiPlatformDxe, we can enable IO and MMIO decoding for all of them while
we contact QEMU for the ACPI tables. See more details in the patch titled:

  OvmfPkg: introduce gRootBridgesConnectedEventGroupGuid

In particular, this patch will prevent the bug when the 64-bit MMIO
aperture is completely missing from QEMU's _CRS, and consequently Linux
rejects 64-bit BARs with the error message

  pci 0000:00:03.0: can't claim BAR 4 [mem 0x800000000-0x8007fffff 64bit
                    pref]: no compatible bridge window

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Jordan Justen <jordan.l.justen@intel.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/AcpiPlatformDxe/AcpiPlatform.h
OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
OvmfPkg/AcpiPlatformDxe/PciDecoding.c [new file with mode: 0644]
OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c
OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatformDxe.inf