From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web08.1725.1610703254334920007 for ; Fri, 15 Jan 2021 01:34:16 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: sina.com, ip: 134.134.136.24, mailfrom: nmd114@sina.com) IronPort-SDR: g7kO+Ff7AdPPbhV6964i/+7emKl5hmDa8rv1nT4obwii/WSLgQxX+RQJWXMV+/XfFC9sPT3Nmq NzD2qRosyGLA== X-IronPort-AV: E=McAfee;i="6000,8403,9864"; a="178674685" X-IronPort-AV: E=Sophos;i="5.79,349,1602572400"; d="scan'208";a="178674685" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jan 2021 01:34:12 -0800 IronPort-SDR: oRrnEFM20DBfawX0cAUIo+PHAR8SvTshiso602XGfdRoxWJ2M33dle0E+n1CVwlKxDai8mAtB8 2rQFkIzY9fRA== X-IronPort-AV: E=Sophos;i="5.79,349,1602572400"; d="scan'208";a="354239664" Received: from chundezh-mobl1.ccr.corp.intel.com ([10.238.5.2]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jan 2021 01:34:11 -0800 From: nmd5434 To: devel@edk2.groups.io Cc: Zarcd Zhong Subject: [PATCH] MdeModulePkg/Bus/Pci/PciBusDxe: Handle BAR sizing fail in high 32bit of MEM64. Date: Fri, 15 Jan 2021 17:34:00 +0800 Message-Id: <20210115093400.29656-1-nmd114@sina.com> X-Mailer: git-send-email 2.18.0.windows.1 In-Reply-To: <3149> References: <3149> From: Zarcd Zhong REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3149 Address MEM64 BAR in type unknown if sizing fail in high 32bit. L: devel@edk2.groups.io Cc: Ray Ni Cc: Hao A Wu Reviewed-by: Ray Ni --- 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