From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web11.1766.1610703557863991479 for ; Fri, 15 Jan 2021 01:39:17 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=iWUCU/Gu; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: zarcd.zhong@intel.com) IronPort-SDR: y3RS5cTtFGtAMmaFOV+UloLv08WV+jdf6igkuSXL61SzK4cba314hZoI5XvUVQS0k0lPMHZghc Pi583koPKU5A== X-IronPort-AV: E=McAfee;i="6000,8403,9864"; a="263319224" X-IronPort-AV: E=Sophos;i="5.79,349,1602572400"; d="scan'208";a="263319224" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jan 2021 01:39:16 -0800 IronPort-SDR: Kd8TibLomhkoh77Q+MVbxYGLza2Coej/zO4IjnUABLTmx+xwurYxMgVh77zj6AtkwtTVr3xpT2 hB121bR1u9Wg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,349,1602572400"; d="scan'208";a="354241183" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by fmsmga008.fm.intel.com with ESMTP; 15 Jan 2021 01:39:16 -0800 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 15 Jan 2021 01:39:16 -0800 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 15 Jan 2021 01:39:15 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Fri, 15 Jan 2021 01:39:15 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.175) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Fri, 15 Jan 2021 01:39:15 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nJHSxg/yBFp1Yi99TdiOKP/XeTjC9itQzRWM7VXPM4akBOyR7v6zjn84j1qbn1hwwNa/hJGjyIzKL8Lb0bVO0KcFpYScGKI/HZv5a4TXmzBYXD+omXUeQli3kcvSRyX1PT4sNG0kb7COIitKqlV1B7GRgGMRn49jLxNMRGYclTvwWnN30i0khVPyMAp9zs0aACcqrOielj57Eb86ETS93jsXJeC/38nbinh8LSPcX4tJdK43vAstREDSY741eDQvYhhuIyW64qiWu7QmfNFv1EufFTUFBXs/Bmwiitl65/Yw8gYtHa2SzuKZzKdGxex3WGL+X4mpXOINpPJ2CldguA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XTRf1S41VzHoyIaXMjsjSDV0jl95N00G57Dq/pw+YM0=; b=n22+M77JW6fat68X1bzopiMU1SlQ2acLhFIIYKBoncbqHnH1U3IPA5lW8Srb0QFJ6DPbhxACa3vC26+1xWG1EaTfLSacj8pkCCjkJBkribvZPj2dTbaCHRuVO0+woBjeY0XjHhPqm7wgPNqW0/zM/XGtVR+aL7LsrzYzepC0+mG99SdZ/TNq6JGpSnW7Y+E8WUTvvU+Tq5e2HU0qb9Eu83j04pi7OXItQFtRBOp301vf36JisPEd+aZdY39xP9vCSBNKdO4rt60iIVJYYYVSO20goPY3xqzSoPWEVDlvKKn/6eAtxN9jkm+mvCcoZ4lvubUyTmk4d+ISNcWdRDP7ZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XTRf1S41VzHoyIaXMjsjSDV0jl95N00G57Dq/pw+YM0=; b=iWUCU/Gu/mRSat8B0wrArKGeeoVY4XdzxK7st7ZfeUnz7hCebX4FaZSgMiWIYqc7L3gGWFTgrqgFc4stoVe5To5uUifj+5bJ41a5fiPCvyWWhiswTbI6kLyYGKYBnCY9OWPdZ5BjuFr6IRJfpoCiUuZIjoOh+4sTi1sRaJRfHcg= Received: from MWHPR11MB1309.namprd11.prod.outlook.com (2603:10b6:300:20::20) by MWHPR11MB1902.namprd11.prod.outlook.com (2603:10b6:300:10f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.11; Fri, 15 Jan 2021 09:39:14 +0000 Received: from MWHPR11MB1309.namprd11.prod.outlook.com ([fe80::a084:4090:7dee:dfb9]) by MWHPR11MB1309.namprd11.prod.outlook.com ([fe80::a084:4090:7dee:dfb9%10]) with mapi id 15.20.3763.011; Fri, 15 Jan 2021 09:39:14 +0000 From: "Zhong, Zarcd" To: "devel@edk2.groups.io" CC: "Ni, Ray" , "Wu, Hao A" Subject: Re: [PATCH] MdeModulePkg/Bus/Pci/PciBusDxe: Handle BAR sizing fail in high 32bit of MEM64. Thread-Topic: [PATCH] MdeModulePkg/Bus/Pci/PciBusDxe: Handle BAR sizing fail in high 32bit of MEM64. Thread-Index: AQHW6yGavzwxR/iHzkeglV7qwFro4qoobeNA Date: Fri, 15 Jan 2021 09:39:14 +0000 Message-ID: References: <3149> <20210115093400.29656-1-nmd114@sina.com> In-Reply-To: <20210115093400.29656-1-nmd114@sina.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.37] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 79fe83fd-7bdb-4112-b72f-08d8b9396bbc x-ms-traffictypediagnostic: MWHPR11MB1902: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4125; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: A5oq5OMaFTgnp1WQQApuV4D2woUphNBoNb/8ENHuozXfDbmEEan0Rs7bSejIMAXjElGmFR2KUI3NveJNBNTxyZHNC/NB/dQgsL9gTHqPccyEmLQH9+sKUmgHZf73o4xrlFHZf1WhzLSuqbUzh+U0sgxjlGF6l9RIDsX0TaCsMxgtqvzdygYQD+9qASAHguQ/fsuxrjasVH+MczKD7S3ntq/4yMScH0AlF+Q3XEodbKlnp0hE3pdQswNv6VbLqCOVHIk3XnV/6Dfk1CttA6oD1Tvm0sx7HX00V7jisLr1UEha42PquZ4QdF5Oqm4ubFmSMoS1UOhiScyzfskKsVqCQvaiQf54Mol4sZzv2drdVFUp5JE4OlINP2A3NeBs/yVWIDqo+8NIW41sM6yj5ffatEaRJ5s6jEXWI4rjkyG/rJtjjvXmybToIkj9ZRRcMAqDXbc0klVkrGV5EqzPR0/ltA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR11MB1309.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(396003)(136003)(376002)(346002)(366004)(66946007)(52536014)(6506007)(478600001)(5660300002)(2906002)(316002)(8936002)(66476007)(66556008)(7696005)(86362001)(54906003)(186003)(76116006)(53546011)(66446008)(9686003)(71200400001)(6916009)(83380400001)(107886003)(4326008)(33656002)(26005)(8676002)(55016002)(64756008)(966005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?N4nFINfotJIPyhX5255vM6YZ+jGgFv7Q3VulbluFWJuJL8zYbyE7wl5LMYr/?= =?us-ascii?Q?G444c/ulmb8AoAZgvorLlH+12oJAu/yAJjz5xq2XpmVP1RiD/aliAT6gzkUZ?= =?us-ascii?Q?eg4uz9Mb9YBdZRSdUFobjlkzh1i+RaNZxTK1Tx7GEeckieZqYYeos3aG2ELH?= =?us-ascii?Q?KiA5Y2Ki78hVw9l1d1qoovWtaYHo6VbTInLZOMpUJ6HGYmel2IGVYR7SitCq?= =?us-ascii?Q?DrIYQhfBwb5Ae19YfkS77hBygWBtaWzsc3+LpbRBMjCanm7f1QHENYKCLjJl?= =?us-ascii?Q?ePBW2obXRrWTwPesZO59O5Kxb5Ggjo/cL8A8IEPx4UcnwMugmAC9ZjYU13ht?= =?us-ascii?Q?nOs7AeljZ53Wx9V05Ntth1eclNHH+qJuHYwREtaIlLGl32Yga8HEfLMRsiH5?= =?us-ascii?Q?8x/9O1ECbiju+ZtqCGH/1T0d5vz7qc53HxgoPIHkzATovUJjxSI+UwXe/yqj?= =?us-ascii?Q?lti9vwUAGlJNNfpmbzVM753HUy29L0ymHn11bFfaWAOmXuOD6h8Ii3gbdhGG?= =?us-ascii?Q?WCXKZb8hOXcQyEhKUNKzrf+RMrVKKpt2eWo1DN/adjjUu3jgPMhM29pXtoJ5?= =?us-ascii?Q?rY2zXvGNYEYi9YcH7rxVaKfENeOaNxvOMDGyHSj0lJqKY4BoylTpgoFdYLhK?= =?us-ascii?Q?dUbLQdXRuQipfANJyTAOIaBquvNhfAt23UmCbHEWM9KW4jxoTaaFezxwy++T?= =?us-ascii?Q?CsK8SxocjiL+IgT/Hb9gKrurCmGXdsqDMncrOeGqv67IGMoeke1s8LvGuIIp?= =?us-ascii?Q?eUe1oi+LdtICZH1aaeYgwS4GtYJrWdyl9EnMyRKTl1KRMGySwIOhwHbUoUG5?= =?us-ascii?Q?YrxVIQiLUU6xSxAE8DrfYRs/vWYbA3mXYoPN/5fXvteCfUZCaogT8I8es93p?= =?us-ascii?Q?YLZAl+30Na+8OiLeHdRnC7qXaR7277zrlmKhxLanE/u4/N/44a8KeR81gGJ6?= =?us-ascii?Q?CmOuCoLhT12R0VzlB6KmRU0XdS5ktmCGSHHwMQH618Y=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB1309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 79fe83fd-7bdb-4112-b72f-08d8b9396bbc X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jan 2021 09:39:14.4199 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: RcaFiYSeSs7QdP7SgG/DV9E7cS1TG0i/U9TWofK3y4Z0uyQ38+imA9oM1IEhdeTjzpJmdGJxB1xlYLnFDPpMsA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1902 Return-Path: zarcd.zhong@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi All, Below mail is sent by GIT send-email. Please help to push it to EDKII. Th= anks. -----Original Message----- From: nmd5434 =20 Sent: Friday, January 15, 2021 5:34 PM To: devel@edk2.groups.io Cc: Zhong, Zarcd Subject: [PATCH] MdeModulePkg/Bus/Pci/PciBusDxe: Handle BAR sizing fail in = high 32bit of MEM64. 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