From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web08.86479.1638325090495811574 for ; Tue, 30 Nov 2021 18:18:10 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=JefDChfk; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: dandan.bi@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10184"; a="216382664" X-IronPort-AV: E=Sophos;i="5.87,277,1631602800"; d="scan'208";a="216382664" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2021 18:18:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,277,1631602800"; d="scan'208";a="677074830" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga005.jf.intel.com with ESMTP; 30 Nov 2021 18:18:08 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 30 Nov 2021 18:18:08 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 30 Nov 2021 18:18:07 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Tue, 30 Nov 2021 18:18:07 -0800 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.109) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Tue, 30 Nov 2021 18:18:07 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O6tszj2V7qJ9NlvdfYXs6akRM1FoPilPx7l0BujwEzbuwrQZvMMzH1HPVva5zDnn0BBZPGQ2Sfo6VnGBW/1UlN7DxJUtry4H8ZjLcSwikeh+b9SbTRa88cicUXebsYBbTncwdjjRKBV0kZYZxEhUSfv+AiTuEWOK8pZsMxzD4XKY82of32AwRO1BjkUmWBlb9LKuXsAiDdTL8nJYNFxnen6UXiRauYFwMdrHBdNOtxl+LpSkr/l9KGRHiinYCZLO8AGkrdHmpH1BScvezM9nB51udgGzTO471Nj8WMDF68DYvUFWTXTVMxJ6vVRnrcNyhdS4/5cRhB/g3GrIJ3JD7A== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8lz2M0SnVhftI+AbDJ9U1vpoFMOpT09xwnmyfxAWizE=; b=QpPCe8g3smIFYQ6fqh7I7Qm3/RjP2lRxAFxLwCMNBAQG24UL/AQKvW/v3Mt7sIO6HqxfMKBd+C8XasfI+OWC2f1tcLUEBsRvjJpEmVnLPT1xCIVyNJB35/V2xcM8dyGAs5BbY/skwtef2QcxFs/n66PoskyRcorR6d4WF8ByD9fc34DHzCKO+QVbtCcz9JKnn7Uboz9dERnfRw4WoB09yKCwPEUfwuYsXl75/rtg+CLQFoEik0cgUnlfb3dOz7ox/SINgGc65ftTswNZvQQyj2LnnROO7VxLtry4oGa40CdUV7u/1AcIYJDS24x4OXon/Ou5uJEkbE4aWdb2L1PzeA== 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=8lz2M0SnVhftI+AbDJ9U1vpoFMOpT09xwnmyfxAWizE=; b=JefDChfkB16DWMZM+P2BdNvMOIX03wV/Ly5OmOY2gLSLeNA+trzdlK7wKRku7TEcW70N82YY5su/mgVnOfZv+blwYyUY4wYCkUMoWk8wgmuE+AELLvvR2R+HOfEuJvqPFSQpH51QVVTPHOym9Ri+b5+q5ZSlHcG4szLy0ZiV8zk= Received: from DM4PR11MB5453.namprd11.prod.outlook.com (2603:10b6:5:398::15) by DM5PR1101MB2345.namprd11.prod.outlook.com (2603:10b6:3:a4::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.22; Wed, 1 Dec 2021 02:18:06 +0000 Received: from DM4PR11MB5453.namprd11.prod.outlook.com ([fe80::2d57:4233:5c9f:df7b]) by DM4PR11MB5453.namprd11.prod.outlook.com ([fe80::2d57:4233:5c9f:df7b%9]) with mapi id 15.20.4734.023; Wed, 1 Dec 2021 02:18:06 +0000 From: "Dandan Bi" To: "devel@edk2.groups.io" , "xiewenyi2@huawei.com" , "Wang, Jian J" , "gaoliming@byosoft.com.cn" CC: "songdongkuang@huawei.com" Subject: Re: [edk2-devel] [PATCH EDK2 v1 1/1] MdeModulePkg/DxeCorePerformanceLib:Variable Initial Thread-Topic: [edk2-devel] [PATCH EDK2 v1 1/1] MdeModulePkg/DxeCorePerformanceLib:Variable Initial Thread-Index: AQHX5YzLV4F5twsfGUiLRC3ECcvseKwc6AkA Date: Wed, 1 Dec 2021 02:18:06 +0000 Message-ID: References: <20211130015110.2635022-1-xiewenyi2@huawei.com> <20211130015110.2635022-2-xiewenyi2@huawei.com> In-Reply-To: <20211130015110.2635022-2-xiewenyi2@huawei.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 449939c2-eee1-4b53-44fe-08d9b470cfbe x-ms-traffictypediagnostic: DM5PR1101MB2345: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:207; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qfiqg9wdfxYW9SGe7ywc/sCuCqh5N8ZNBTo7Mxk0oIgw5NOvQQefnAIfI3bJlKYIQ5kesI8bJuQDgcKtdFu0mYTO/BheR4x9Y5xmLBp4th6LCTFZgC/xnBTfSnAdkNn2lO2RE74QQIbT4DNMqp/veOH30yy20mJMMf/G6MIPhUEagxNbMmEi9UrFB8dVz3WwCXCDkuu7JBcn/77cKthKTZm6pz2mQk5ksLH+ZPu1D/n8thDKtbFQ6h/hCcKkWTWcNcxK/g2jBPdudtNe6F4wrYKCM/1/nVmFJgdTxdjIcTIc3Xx1bAo6XNDKFLW7Orh0jgNKTn+r3nCsZoSJaj4qWmDbuiVyPP65qJQBlfanZb7IFeFjh/4Nx4SK4q6+P4f6z1qrNC0Y3OJKFosX1bXNSnlbhUEZQC1OM0wyQD7UEHDpcO67mJGR0PpHAjryOlZrZhF8psu8HHxzvYQrW17Ky5AQn6QxDjF/zwZlG4I+9cx9QoqzDItP0HfIryAUxKUwn0tJFUd3eE5wcsffCxWibpE46O5QtEoXH6CMGZSR5KNdR7nuW5bnjNcIHKPVHaUu5yN+EOHeYhrWcdEsq6hLwSTO0AC9OxkGlzlFO3z7YQK/6KIcYYQWJ1htUJ2LPKi+VaGYFzUyKVHHvXVAZcTOd60bmXDIlm4cWS/nXKlLiZXEmaREmbR9Iw87P9rI0YVknAOpqOPYBygXARKDTC8lCV7g2vC0HEw4K00shLiQYEjUpCOL2BoVwdwR1M5Q+GAYVq6DCfXhFCdD7AQY2jVvRKGu2WV3xfjXmOv+awnyGy+MXLObZrKHAkrtT5EHPGxwavaUeJCZpIuxZMOqzkSy/w== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR11MB5453.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(26005)(64756008)(55016003)(66556008)(66446008)(66476007)(66946007)(2906002)(9686003)(82960400001)(110136005)(52536014)(71200400001)(508600001)(7696005)(316002)(33656002)(86362001)(966005)(8936002)(76116006)(8676002)(122000001)(38070700005)(53546011)(4326008)(186003)(6506007)(38100700002)(5660300002)(83380400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Typz0VG6aYvzlVSs1gkFWQiVQd/hxBDIhjTL4j1bGFpep2pz7uQl3VsppS3u?= =?us-ascii?Q?PuXsQE46ZY1Plc8wTAMq9mi6eWL9txCM+Vz14GMDexjHBwvyocbk4HD2bDH2?= =?us-ascii?Q?yB8MLSEudnyibt2KQBxeEyngecmRdllSMCLknud7bXgZJdJQbDdOC+/gRphE?= =?us-ascii?Q?j2X8NMJV+fL7ufbm/D0IqIyt9DPXC+HM2m4jZjFc8zmFd8ELV1OsVOX8/bAx?= =?us-ascii?Q?JhGZeZN5T00cPeWoG6P2LwqKYhzMN2DwA0yQnxy0i/RgQPztdzJED5jhpTwL?= =?us-ascii?Q?/WDOf4632HDdz98P4qqwMleNDKbmMDbaISOSi08Ad+MpSd4fiBjEo/sN0cIr?= =?us-ascii?Q?wRQOorhalBE59qYClZyZ2499hnmh9aqgGGiZmh4x8KWM96XjVbcv0Vy84WJ9?= =?us-ascii?Q?I2xip6hK7xlPtjRuV1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=?us-ascii?Q?m+nEjp4EYwilO/pib8RPb0wYFgg8JCVo8G4wyCQfIJpuv622+73vAdMEvuvX?= =?us-ascii?Q?RpoOSe2LzIfAdjfZLtDkOOx2vNbTems6l3873ozE94c05ifS+hwBUIlTspaD?= =?us-ascii?Q?41qkYBjsuUGN2gVR2fW1jC1SmSK/Pp38OyNQWw314+fhTkVjkgWt/6KpGij0?= =?us-ascii?Q?ls/D2EfADKkrLWPNdwVBbX8AurPjcDA12iywMf0KvelLKj+21D7PSIQ7ONix?= =?us-ascii?Q?/uKzPABRpFTS8p4qvVuIQnTtHDCBmZTK44yGDqMi1YYlkl5Njj1txiNR+Xez?= =?us-ascii?Q?5g=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5453.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 449939c2-eee1-4b53-44fe-08d9b470cfbe X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Dec 2021 02:18:06.3828 (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: PGsHdSIc99zwavrVgv9yRoNNQN6mR4bqcu5t45hIom3jxTle33XvOCQepgrXisBR/EGj8G+U5wsSSYOLOpxp/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1101MB2345 Return-Path: dandan.bi@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Dandan Bi Thanks, Dandan > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of > wenyi,xie via groups.io > Sent: Tuesday, November 30, 2021 9:51 AM > To: devel@edk2.groups.io; Wang, Jian J ; > gaoliming@byosoft.com.cn; Bi, Dandan > Cc: songdongkuang@huawei.com; xiewenyi2@huawei.com > Subject: [edk2-devel] [PATCH EDK2 v1 1/1] > MdeModulePkg/DxeCorePerformanceLib:Variable Initial >=20 > SmmBootRecordDataSize is initialized in InternalGetSmmPerData, but this > function may fail. so to avoid using SmmBootRecordDataSize without > intialization, set it to 0 at first. >=20 > Cc: Jian J Wang > Cc: Liming Gao > Cc: Dandan Bi > Signed-off-by: Wenyi Xie > --- >=20 > MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c > | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git > a/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLi > b.c > b/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLi > b.c > index 532b3f8c90e2..f8778c25188a 100644 > --- > a/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLi > b.c > +++ > b/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLi > b.c > @@ -1373,6 +1373,8 @@ UpdateBootPerformanceTable ( > UINTN AppendSize; > UINT8 *FirmwarePerformanceTablePtr; >=20 > + SmmBootRecordDataSize =3D 0; > + > // > // Get SMM performance data. > // > -- > 2.20.1.windows.1 >=20 >=20 >=20 >=20 >=20