mirror_edk2/MdeModulePkg
Ray Ni 0fa92d5839 MdeModulePkg/PciBus: Fix a bug PPB MEM32 BAR isn't restored sometimes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1505

When a device under PPB contains option ROM but doesn't require 32bit
MMIO, ProgrameUpstreamBridgeForRom() cannot correctly restore the
PPB MEM32 RANGE BAR. It causes the 32bit MMIO conflict which may
cause system hangs in boot.

The root cause is when ProgrameUpstreamBridgeForRom() calls
ProgramPpbApperture() to restore the PPB MEM32 RANGE BAR, the
ProgramPpbApperture() skips to program the BAR when the resource
length is 0.

This patch fixes this issue by not calling ProgramPpbApperture().
Instead, it directly programs the PPB MEM32 RANGE BAR.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
2019-02-14 14:56:57 +08:00
..
Application MdeModulePkg/CapsuleApp: Fix memory leak issue. 2019-02-13 16:25:47 +08:00
Bus MdeModulePkg/PciBus: Fix a bug PPB MEM32 BAR isn't restored sometimes 2019-02-14 14:56:57 +08:00
Core MdeModulePkg/Dxe/Page: take MAX_ALLOC_ADDRESS into account 2018-12-20 11:01:58 +01:00
Include MdeModulePkg/CapsuleApp: Add a function used to get next DevicePath 2019-01-31 14:07:59 +08:00
Library MdeModulePkg DxeCapsuleLibFmp: Update SupportCapsuleImage() for Fake Capsule 2019-02-11 12:58:45 +08:00
Logo MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
Universal MdeModulePkg/Ip4Dxe: Uninstall protocols when error happen in Driver Binding Start. 2019-02-12 08:25:31 +08:00
MdeModulePkg.dec MdeModulePkg: Refine description a little for PcdEmuVariableNvStoreReserved 2019-01-24 10:52:36 +08:00
MdeModulePkg.dsc MdeModulePkg/CapsuleApp: Enhance CapsuleApp to support Capsule-on-Disk 2019-01-31 14:08:01 +08:00
MdeModulePkg.uni MdeModulePkg: Refine description a little for PcdEmuVariableNvStoreReserved 2019-01-24 10:52:36 +08:00
MdeModulePkgExtra.uni MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00