From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web11.51954.1686547002450548721 for ; Sun, 11 Jun 2023 22:16:42 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=R3HdLKzH; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: ray.ni@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686547002; x=1718083002; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=bxvbwpb1JrmUWyyt0BV9R3TO3D3eRy5jK5NmUDuSGqE=; b=R3HdLKzHzU+XnnG1pfDgJRSKTDlwgFyneZWwxc0xN3KQsvK4H7GctgqP Y2zytIu0DEzjjfOKbENYHbki210W4yoot1ZdQNxK2a72t81HF5XhVLD4m sSu43Copet6tXZMuH1d73pBkc4PUTOmrkHOo4pyIV4NwnzoAItMzJGSMn DXkDVlQp0zaON4GIc0K6XOs8t9z22FFNfFvV8EbP6C8wF5UOkoNqIeE96 pM5pfqf4FTngBx2yipIBLR62TnrJbrjArMHXDvHucbOqGG+nusgdbnWsq 1xQvTl0xZnaNviLnS26SBgtYdWcdcAKsOnys/1p5yrERmvPbJgiCN6ma6 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10738"; a="386330075" X-IronPort-AV: E=Sophos;i="6.00,235,1681196400"; d="scan'208";a="386330075" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2023 22:16:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10738"; a="705249837" X-IronPort-AV: E=Sophos;i="6.00,235,1681196400"; d="scan'208";a="705249837" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga007.jf.intel.com with ESMTP; 11 Jun 2023 22:16:41 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Sun, 11 Jun 2023 22:16:40 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Sun, 11 Jun 2023 22:16:40 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Sun, 11 Jun 2023 22:16:40 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.177) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Sun, 11 Jun 2023 22:16:40 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jPUxno/HAtGqd37do8sw/IAzz0g4weDZ5I9GcO66YkhaTNbjEru4qDm6R0+2Rqs7mpY/Y7EBlzrObb9PmiSqqFUVO0/Sfb1TDfK6K+QUNolT/6uXbqm4To+cE2thW8T2O5W0epms43JXuscBdSkO3kffEVELTKumvLRSFt8ZHwf3Y4LWtu0s0T9TOIwWdMH59/MRj+16A7UyflOTl+GjBwsNu0xUAucMBdHlk3a4DMAnl+H+anT+bfBoU2iU5AlKsBmB7LgTBYlWVid7G+6YyOkDkmuCswbH1Z0kFPxtdx+WTj/X93TxdFs7w7K++bvqmwWeROlURzEoLhusw7E9SA== 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=E4nXyku2L5TAG41YyHG4V/GEgC3bh9N+iSwkLAnZEYg=; b=kfWRsUxzXRCT+e3xhfUS+dYBGyux1+EyrRG8bo6qbvrMjQxOQns1j+wqlFNTuvxBskUjHarQb9yZda98L7I9/vHp3RS5mNzngS753rFzl/0Pfoj3vOjddhA6cZqWyPjKL0NsyA30K8AJAbPVsqik1rXFMVcAlGmrBDgtg6bBjSsTG/8HLwBT7ZQL1mV+ON5rmyxX3HhiNo35bikvMNnrGloq640RoyUcbIIUntTORFgjKQZsP+H2XWd2ZvKdnvKu3n2GxBuPe2jpWTQ35R51Lw4aHM5kPsq88bFv9tz3YxplpvbplkrwZnoLmd6PiQZMSxFK6QI8WKLCRnZNqXnBYg== 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 Received: from MN6PR11MB8244.namprd11.prod.outlook.com (2603:10b6:208:470::14) by BL3PR11MB6484.namprd11.prod.outlook.com (2603:10b6:208:3bf::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.29; Mon, 12 Jun 2023 05:16:37 +0000 Received: from MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::892b:b8e6:bab7:635d]) by MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::892b:b8e6:bab7:635d%2]) with mapi id 15.20.6455.034; Mon, 12 Jun 2023 05:16:37 +0000 From: "Ni, Ray" To: "Wu, Jiaxin" , "devel@edk2.groups.io" CC: "Dong, Eric" , "Kumar, Rahul R" , Gerd Hoffmann Subject: Re: [edk2-devel] [PATCH V2 1/6] UefiCpuPkg/CpuSmm: Add perf-logging for time-consuming BSP procedures Thread-Topic: [edk2-devel] [PATCH V2 1/6] UefiCpuPkg/CpuSmm: Add perf-logging for time-consuming BSP procedures Thread-Index: AQHZmtg2C6N4xD+060aZjLWRbwjZB6+Go/d7 Date: Mon, 12 Jun 2023 05:16:37 +0000 Message-ID: References: <20230531113438.1797-1-ray.ni@intel.com> <20230531113438.1797-2-ray.ni@intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN6PR11MB8244:EE_|BL3PR11MB6484:EE_ x-ms-office365-filtering-correlation-id: e9193b37-43df-42ad-b324-08db6b04326b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: e7j+7Cq3zjAVvYfhaJJNKOSJfNhE1PKVNaHhZDcKSPrreZLt0gpwlIYcMwm/rrcbJMOEx0Tnz2afIYQzvWWIPwSOHrzaANdmq2CeN84rvwoTGOZdTBigMJI2iZH96DZqhYA6roKv4za3mkjy460gPPOe+qGVuk2Scqsaa10JiF8ElxU0/Vvs5TRg+vDK4aJD2YYd0tITZD4cG8GbESX53AUmfrNXBw/Y8XOcgTtLzmuZoXeZX2nbJgVSbe8AUi8UtQ5J7RBdhai04yE+Y268+KUlEb4U/lpR7YHzB4vDKiYInxnMKa7trDOzdI0ZBknU0tvnWkQzXWWWv9LNC2k+6oSCi9VJMMP8PGG4mNGWYRcvwnQxZNUUBq5Y50O5oKrwCXblpHFehxlMNGjXd322bOmWivW/e16LjRgZZYxqtReEPBI6AyHix5/+0GcAiJ0JA6P9afpdcv/ri2lm1YltnOIPe1f2JoHuP+8EmnWtv+g5nOy8d53rrzZJIKxEjwFXpWLQEqBoR7th1qWO9tUbnFHXMGKThCIvMyUlGuelHcchMu9nCXgRx+DIACY5cNkcoWS+NFUx6v0RekxsOjJ0O4f7EWZAho0Mv17CxkrP0wN1gmDb8tktFYpPUAAxBVIX3sra21tURBjIlLFNRXLDFQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN6PR11MB8244.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(396003)(39860400002)(346002)(376002)(366004)(136003)(451199021)(38070700005)(33656002)(86362001)(66556008)(66446008)(110136005)(478600001)(4326008)(54906003)(76116006)(316002)(71200400001)(66476007)(66946007)(64756008)(91956017)(7696005)(55016003)(52536014)(8676002)(8936002)(41300700001)(5660300002)(4744005)(2906002)(82960400001)(38100700002)(122000001)(9686003)(26005)(53546011)(6506007)(186003)(83380400001)(586874003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?Qi4HyWDdEgNVtRq9CzUfrXEQB7KJWe+xY4LEHO3VCF71sR271keaFvuvKH?= =?iso-8859-1?Q?2Oj5H59Z38eeqoRFgJ9tEhtEJkaxlU7iqrLSnU2jK7dKk5WwnkhRBq56SA?= =?iso-8859-1?Q?iMYT3VbM/dWd1n6EzudfcwL6s4qqjg0+R4AhTF+5c/beuSf0nTe63VMTzY?= =?iso-8859-1?Q?J4F0pUP+LUzUOxZUaNmvsTeoq1uMWCS4UQF8M4idpFcrPO9Q0BiD5t1tpc?= =?iso-8859-1?Q?ofrr/n+NOtC0jygsQcEezJo1POejkgL5ZKgklWsUTsPiJOtKXypnNIyIVN?= =?iso-8859-1?Q?AMlssMW6Ymhw59cnNIacyK5tMME3AY1ANv29zO3JEyvhnWFeSn6mtbKHBv?= =?iso-8859-1?Q?D7IzY3MKv8ueTQ6ztCBaDHrGwboaRk+aQxWmY5rdm30cftNdVhlJCbWZ9+?= =?iso-8859-1?Q?pFKXhl20GzDylux+9VdHBNY3ptmOLbCc3ma7v82QZJri9JeZY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DAgTW7Vwqy6EY0JOLUybsTQ27CQLl0bPpN2?= =?iso-8859-1?Q?twHTX+mig95Wzn2dqdLmV3LDb8sKTvgOnAloEr6XCBtG39gbQ2gx0aqRxr?= =?iso-8859-1?Q?f+R8dS7BA2+UixsC2dyCU7SxvlbUd7TKDsAjiThsA3JaHhji1ZpTmYxOIQ?= =?iso-8859-1?Q?2VHkHacD/fcT0j4Doz57lr812GAFLqBHLdi9SxLJOr4UbBa93gTZMKVZcn?= =?iso-8859-1?Q?NEdSRXaqumtcsR2az53XZUdm4tAakYYPueShVMzWT5RvQFs5O7gcrWISAi?= =?iso-8859-1?Q?j68UX+z830TvQ=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN6PR11MB8244.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e9193b37-43df-42ad-b324-08db6b04326b X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jun 2023 05:16:37.2795 (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: OVs1bAAb1klMnHLMUDtAoiA6Q26u3HOq16+KC/NrQpQ0i1eJN0fWoN20uqk8+dR5ArNx2a0cvfykPmi/VuZdbQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR11MB6484 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =0A= =0A= ________________________________________=0A= From: Wu, Jiaxin =0A= Sent: Friday, June 9, 2023 21:42=0A= To: devel@edk2.groups.io; Ni, Ray=0A= Cc: Dong, Eric; Kumar, Rahul R; Gerd Hoffmann=0A= Subject: RE: [edk2-devel] [PATCH V2 1/6] UefiCpuPkg/CpuSmm: Add perf-loggin= g for time-consuming BSP procedures=0A= =0A= >=0A= > The patch adds perf-logging for the following potential=0A= > time-consuming BSP procedures:=0A= > * PiCpuSmmEntry=0A= > - SmmRelocateBases=0A= > * ExecuteFirstSmiInit=0A= >=0A= =0A= > ExecuteFirstSmiInit is not belong to the SmmRelocateBases. Others good to= me.=0A= ExecuteFirstSmiInit contributes to the overall running time when the CpuSmm= driver relocates the SMM Base.=0A= =0A= =0A= > * BSPHandler=0A= > - SmmWaitForApArrival=0A= > - PerformRemainingTasks=0A= > * InitPaging=0A= > * SetMemMapAttributes=0A= > * SetUefiMemMapAttributes=0A= > * SetPageTableAttributes=0A= > * ConfigSmmCodeAccessCheck=0A= > * SmmCpuFeaturesCompleteSmmReadyToLock=0A= >=0A=