summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorZarcd Zhong <zarcd.zhong@intel.com>2021-01-15 17:34:00 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-01-18 01:38:29 +0000
commita7ef2a03b96c464c776a139c104471fb2b84e39b (patch)
treed72b601b48f0e9517d6ac1e67b3da99ee8c10701 /MdeModulePkg
parentc88736f8605eab3b0877d9301f8e845291c6fdd9 (diff)
downloadedk2-a7ef2a03b96c464c776a139c104471fb2b84e39b.tar.gz
edk2-a7ef2a03b96c464c776a139c104471fb2b84e39b.tar.bz2
edk2-a7ef2a03b96c464c776a139c104471fb2b84e39b.zip
MdeModulePkg/PciBusDxe: Handle BAR sizing fail in high 32bit of MEM64.
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3149 Address MEM64 BAR in type unknown if sizing fail in high 32bit. Cc: Ray Ni <ray.ni@intel.com> Cc: Hao A Wu <hao.a.wu@intel.com> Signed-off-by: Zarcd Zhong <zarcd.zhong@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
index 1b64924b7b..a24065e8ba 100644
--- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
+++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
@@ -1686,6 +1686,7 @@ PciIovParseVfBar (
);
if (EFI_ERROR (Status)) {
+ PciIoDevice->VfPciBar[BarIndex].BarType = PciBarTypeUnknown;
return Offset + 4;
}