From nobody Tue Apr 30 05:18:59 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+70427+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+70427+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1610716833; cv=none; d=zohomail.com; s=zohoarc; b=KBnI87fgsnIS76teVAHstBi0xQdG/SGFG56pWyJK0pjb1VG9CaBoPCvts0SAPRv00bDFOjr7mb14GiAjYl4u/dJPuA9ei6tYnbxh2BHsreD5gt+rTQ1JFSQbZJKwo6WZ8P+dKkdcvLQBoqCP1hVSj52LJaOV2eQO7/6DGXKUp8Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610716833; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=WnWql+hgPxvcu2fCYpto92KS8xalLB5+ACIrrHpM4g0=; b=WOV+jCeXIVPZRznNCGsrxR7+4j3MQ0N5CONukg56EMtf9NFqtlsO0qbWIA6icskV8EVMtD04JfWdzpXmjoWlxkzOHeeelUqUTBHaEEe6ZXjK+Wcqv+SC3d+mJ0O9tylfrg8xtsw5nLvDqlMuUCg6huxKrNQoDu5SmXALDD4vilI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+70427+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1610716833043443.69361408345867; Fri, 15 Jan 2021 05:20:33 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id 5zUeYY1788612xy66DO6qr5T; Fri, 15 Jan 2021 05:20:32 -0800 X-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 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" X-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" X-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: [edk2-devel] [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> In-Reply-To: <3149> References: <3149> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,nmd114@sina.com X-Gm-Message-State: zqOTBYPhVZ4JyBZ6ePls9Zz3x1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1610716832; bh=hYoiepu3JneFJORom+FJWah2OGQVkR/NG3yDlDCbRtk=; h=Cc:Date:From:Reply-To:Subject:To; b=rc27QQwINJTvTyPJ5vnCfnzVJu9ZGijV4kX8vl2RurKhJnprYeGBsUo7yZWZfVRqXxj Z+ZonUeDb/y25Yvhn4wqHDtLWU42Vc0G7cgB4aFx5UQJMFQ+NZYLlMo4INWECHiZ3puPh kjHmftat0Gms+36oVL2/7Wm7GlhEidnSysU= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Zarcd Zhong REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3149 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/MdeMod= ulePkg/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 ( ); =20 if (EFI_ERROR (Status)) { + PciIoDevice->VfPciBar[BarIndex].BarType =3D PciBarTypeUnknown; return Offset + 4; } =20 --=20 2.16.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#70427): https://edk2.groups.io/g/devel/message/70427 Mute This Topic: https://groups.io/mt/79438989/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-