audk/MdeModulePkg/Bus/Pci
Ruiyu Ni 736c436e53 MdeModulePkg/PciBus: Fix system hang when no PCI Option ROM exists
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1394

When there is no PCI option ROM exists, today's logic still creates
virtual BAR for option ROM using Length = 0, Alignment = (-1).
It causes the final MEM32 alignment requirement is as big as
0xFFFFFFFF_FFFFFFFF.

The patch fixes this issue by only creating virtual BAR for option
ROM when there is PCI option ROM.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Chiu Chasel <chasel.chiu@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Chasel Chiu <chasel.chiu@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
2018-12-17 09:38:02 +08:00
..
EhciDxe Revert "EhciDxe: Use common buffer for AsyncInterruptTransfer" 2018-11-07 22:48:01 +08:00
EhciPei MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
IdeBusPei MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
IncompatiblePciDeviceSupportDxe MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
NonDiscoverablePciDeviceDxe MdeModulePkg/NonDiscoverablePciDeviceDxe: add missing validation 2018-12-17 08:56:20 +08:00
NvmExpressDxe MdeModulePkg/NvmExpressDxe: Refine PassThru IO queue creation behavior 2018-10-25 12:41:37 +08:00
NvmExpressPei MdeModulePkg/NvmExpressPei: Refine data buffer & len check in PassThru 2018-11-13 20:54:44 +08:00
PciBusDxe MdeModulePkg/PciBus: Fix system hang when no PCI Option ROM exists 2018-12-17 09:38:02 +08:00
PciHostBridgeDxe MdeModulePkg/PciHostBridge: Move declaration of mIoMmu to header file 2018-09-26 12:12:53 +08:00
PciSioSerialDxe MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
SataControllerDxe MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
SdMmcPciHcDxe MdeModulePkg/SdMmcPciHcDxe: Allow overriding base clock frequency 2018-11-20 13:46:57 +08:00
SdMmcPciHcPei MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
UfsPciHcDxe MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
UfsPciHcPei MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
UhciDxe MdeModulePkg/Usb: Make sure data from HW is no more than expected 2018-10-17 11:03:58 +08:00
UhciPei MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
XhciDxe Revert "XhciDxe: Use common buffer for AsyncInterruptTransfer" 2018-11-07 22:48:07 +08:00
XhciPei MdeModulePkg Xhci: Handle value 5 in Port Speed field of PORTSC 2018-10-23 11:17:32 +08:00