]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/PciHostBridge: Fix a bug that prevents PMEM access
authorRuiyu Ni <ruiyu.ni@intel.com>
Fri, 21 Sep 2018 07:20:45 +0000 (15:20 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 26 Sep 2018 04:12:50 +0000 (12:12 +0800)
commitbff6584d1f0d366ea08fb541ecbe82554f1eaa4e
tree62599e4e51907ea49d6bf1c6522058ab4c9298b6
parent666d05a0ade67555a39a2191619e04a838ab2280
MdeModulePkg/PciHostBridge: Fix a bug that prevents PMEM access

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1196

RootBridgeIoCheckParameter() verifies that the requested MMIO access
can fit in any of the MEM/PMEM 32/64 ranges. But today's logic
somehow only checks the requested access against MEM 32/64 ranges.

It should also check the requested access against PMEM 32/64 ranges.

The patch fixes this issue.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Garrett Kirkendall <garrett.kirkendall@amd.com>
MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciRootBridgeIo.c