]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/PciBusDxe: make OPROM BAR degradation configurable
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 19 Sep 2016 08:36:13 +0000 (09:36 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 26 Sep 2016 12:49:15 +0000 (05:49 -0700)
commit065ae7d717f9e49c3be12dada109d60dead0bb90
tree1994e75536971a096087cb43320ebe42568c5698
parent587e9dfbbafe7d4e772c1870b8c880c6d7a8a70c
MdeModulePkg/PciBusDxe: make OPROM BAR degradation configurable

The 'universal' PCI bus driver in MdeModulePkg contains a quirk to
degrade 64-bit PCI MMIO BARs to 32-bit in the presence of an option
ROM on the same PCI controller.

This quirk is highly specific to not just the X64 architecture in general,
but to the PC platform in particular, given that only X64 platforms that
require legacy PC BIOS compatibility require it. However, making the
quirk dependent on the presence of the legacy BIOS protocol met with
resistance, due to the fact that it introduces a dependency on the
IntelFrameworkModulePkg package.

So instead, make the quirk configurable, by introducing a feature flag PCD
'PcdPciDegradeResourceForOptionRom' which defaults to TRUE only for X64.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
MdeModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c
MdeModulePkg/MdeModulePkg.dec