[edk2-devel] [PATCH] MdeModulePkg/Bus/Pci/PciBusDxe: Handle BAR sizing fail in high 32bit of MEM64.

Zhong, Zarcd zarcd.zhong at intel.com
Fri Jan 15 09:39:14 UTC 2021


Hi All,

 Below mail is sent by GIT send-email.  Please help to push it to EDKII. Thanks.



-----Original Message-----
From: nmd5434 <nmd114 at sina.com> 
Sent: Friday, January 15, 2021 5:34 PM
To: devel at edk2.groups.io
Cc: Zhong, Zarcd <zarcd.zhong at intel.com>
Subject: [PATCH] MdeModulePkg/Bus/Pci/PciBusDxe: Handle BAR sizing fail in high 32bit of MEM64.

From: Zarcd Zhong <zarcd.zhong at intel.com>

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

    Address MEM64 BAR in type unknown if sizing fail in high 32bit.

    L: devel at edk2.groups.io
    Cc: Ray Ni <ray.ni at intel.com>
    Cc: Hao A Wu <hao.a.wu at intel.com>

    Reviewed-by: Ray Ni <ray.ni at intel.com>
---
 MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c | 1 +
 1 file changed, 1 insertion(+)

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;
       }
 
-- 
2.16.2.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#70428): https://edk2.groups.io/g/devel/message/70428
Mute This Topic: https://groups.io/mt/79438989/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list