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.web10.3574.1685583082507295180 for ; Wed, 31 May 2023 18:31:22 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=UFF/58KM; spf=pass (domain: intel.com, ip: 192.55.52.43, 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=1685583082; x=1717119082; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=kM6EooSSV0LoVqaxqgXnqYCVoaisUcznUB7Pcwe6MmE=; b=UFF/58KMzyH70LQO4XjeXBESxFGYw7/1yolZKgDzVO2nfyFeVzIpPJTJ Tvd7tDDzLJvPlHsJ/f542eBNR15whMF1Yt+/XH3yoKyeKEHrGH6tQM604 6YiMcVKPgFVP34S/DnmmE0gfsRN7fqp034VBLS6OUy7Lr/niTzxjpK06s 5+7jbw2d+zKX0aDuWLLz4waKUUIzXkZjvwu7jT0T7s5/yQ2fpRZwcPMix 1OOZmSKvAckF18UwesJxidxha/ZLYHMcsdqDEFrEDdpEXAwGTGTXpOlRC MSN11xT547F0uXd/TXbCr6P97fXEm5cIoBvSSI8SJhSU5Z2UkxlQFGboF g==; X-IronPort-AV: E=McAfee;i="6600,9927,10727"; a="441779097" X-IronPort-AV: E=Sophos;i="6.00,207,1681196400"; d="scan'208";a="441779097" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2023 18:31:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10727"; a="707127577" X-IronPort-AV: E=Sophos;i="6.00,207,1681196400"; d="scan'208";a="707127577" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga002.jf.intel.com with ESMTP; 31 May 2023 18:31:15 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 31 May 2023 18:31:15 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) 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; Wed, 31 May 2023 18:31:15 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.43) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Wed, 31 May 2023 18:31:14 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YNdSZJmESWLt1hmtTu3Jtnv6Ez/dcZa3+y8VFcb1k62U1xuZ9alU+7xiB4LmWmThB+ctIW8h/8nHPojKkqire6QRQaRMmSWJmjs4PiHSXD1GgGL1IHz4znbgqz27H0TLCPNF/2YhecpU2Y1PE5JjlVmBUowk1nml1Ss7hVtesYslAx62bPvKB8dsD8eKCqqmReQOO9QDzd1pZVLDcICRrAJykVIpYJLxnbNgYOeZYjpYj9q4CSgfh5W6mVU3YQnrUt4uutzs7coHHEftOIckYaDnyQyN9pXT1LTAbWcUvyhB5vLQXkVVK7m1YdL59dvRqJZjFQdaVwSuVv7awuzzwA== 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=923m7OxPqB527lRvARZ5n3CQQNKOWCpMLMU+yRDrZc0=; b=G02lq/K4G5tDgzzC1SkIK9jVDVpj9A01WMd6IRjfy+/3U89ujcYMWeu/ohXvfe1w/KZAR5MCFY+v3S5+ISVC2cow3HIrH4r9/Vkj56G98/fYMMOXJI/FTd8MTfbJas5ytOcf44DEVEZV8EUrBHXApLDQVQt/+SejBPAECwxDbexqVLMRfJmjrIOjAdClPtG7OZoqcU2Rb1WKBMlfjdnYoSsjJ5mWG650XPflq8kGEOblTtpBJ2fbv3y2sbFFhmmbpZQ6Nysc3a0T7rzDHGFx2Noc0RwJLePRTjJj4Gr7zALYQqp9pJzC4dTrkXsAF99DxHlaN/JIYAMWahsOaeQ6Cw== 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 BN9PR11MB5482.namprd11.prod.outlook.com (2603:10b6:408:103::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.22; Thu, 1 Jun 2023 01:31:08 +0000 Received: from MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::892b:b8e6:bab7:635d]) by MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::892b:b8e6:bab7:635d%5]) with mapi id 15.20.6433.018; Thu, 1 Jun 2023 01:31:08 +0000 From: "Ni, Ray" To: "Wu, Jiaxin" , "Zhang, Hongbin1" , "devel@edk2.groups.io" CC: "Dong, Eric" , "Kumar, Rahul R" , Gerd Hoffmann , "Zeng, Star" Subject: Re: [PATCH v1] UefiCpuPkg: Get processor extended information for SmmCpuServiceProtocol Thread-Topic: [PATCH v1] UefiCpuPkg: Get processor extended information for SmmCpuServiceProtocol Thread-Index: AQHZkfhytwB1gyiViUSD2IK8v9RGf691LWCAgAAAHfA= Date: Thu, 1 Jun 2023 01:31:08 +0000 Message-ID: References: <20230529063938.230-1-hongbin1.zhang@intel.com> In-Reply-To: Accept-Language: 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-traffictypediagnostic: MN6PR11MB8244:EE_|BN9PR11MB5482:EE_ x-ms-office365-filtering-correlation-id: 70827cdf-03f0-41e0-1edd-08db623fe000 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2IFKXRjRnpeCcHDt52ENhqnNaZ5i5P8oBxk5uEBWlL1yGVZdTOUtNCgk9biHW6uqrpH4tjE0wj4BgdDXIFSGfbtWwqtiWNE3RWGzO9mGqbd9H0zJ7BtQ5BsjZmSiyxlJLJFN9ca02ifY9WqR0hlAPLa0Du0C737lscqxUUxpRAgxgL4UNIb6SNNv8H4OTO8GvZVIutTkbilTfyqPbekJItZ5P71u3qcv31IL42m6Iil+vkdwd/qNYjDHZ5gkrC4wW5UMzPQ5xAqoeYEYdvFlNv2mSJ1ZTRORej7qpQ2aD1vmWVFV5pdmEGUjoDQuvXpPGqmNkjiihrEb4rnXlpNbSKgB3K4kVt2jE7H1DsvkJEQ/tHTXo9uEL/4LI2SxedJQk1Fsak0aWdQpXvwXHerkyaYRDctF2/OomMchigLWqNN+B/gUDWVxYFZW3YOEOsehEI9Zo6AzyH4Bjz3XqlCZm+5rfW6BWHbRXv5B/zAv/PoLVffjczncJdeuUR59DLqOshjZ2ovgzRhldmE9NILd5JnrNksBMJlospoA5gr1hr0zX2oRQyiTQY1It8l7d8zkSFKX84x1gbWEVNYdSetnAjbwbHPJC/eeaSFBP1CajVv0V6i7h73FbjForE+KD/Fc 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)(366004)(346002)(39860400002)(396003)(136003)(376002)(451199021)(4326008)(66946007)(76116006)(66556008)(66446008)(66476007)(64756008)(8676002)(52536014)(316002)(41300700001)(2906002)(5660300002)(8936002)(54906003)(110136005)(71200400001)(82960400001)(7696005)(478600001)(107886003)(55016003)(186003)(6506007)(83380400001)(9686003)(33656002)(122000001)(26005)(53546011)(38070700005)(86362001)(38100700002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?/TFlcPZjIAnNtruGHTzvtK7nPwE/T8muFMSsLKrZf1edE++6Z2I07Yhlyisz?= =?us-ascii?Q?g/1BZr6bRmuzC45LlMRDtd+bS0ykp63lurqgGUgSb3uNgvRnsKmhs517549b?= =?us-ascii?Q?WkcyCw//CSJI9g9TR19fSXv8oKO/pnmHgJ4hXXFHgc2cf5fyPKpRbjlEm3f5?= =?us-ascii?Q?I6LV2qnl1GQU4+5QwVqnOmVuJe3OgxsjU0ySYtVFcDSs00fH5YWYyK4wOnFw?= =?us-ascii?Q?HjCDxgFNi48/v+3xCphb+BuVYUuv1Q+moIJOgVpFb6JR9zx8AX8HT6YN4G8Z?= =?us-ascii?Q?VXsFbKOem8jE/Fd3WL6Yo+6yR+f3rhYvP4uuUAS2XP8LwJm1et8ANniysNzZ?= =?us-ascii?Q?Zh3nJ5GFeuSMkRYpUfpytwbWh6j1qAzLn++Z1qZH8zsJcRpwoW3dj58VoFWO?= =?us-ascii?Q?eweRpdfDneVf0xXm1/7tk+6cG6/SNknqQbGH7LRmKsiUdkVncF6urCb71AJm?= =?us-ascii?Q?O5DsZqJs6i9BFxPW9zzx0CSNYiFmBjBRo/cWlII/y9nOZvE62/8XAGDnJiIB?= =?us-ascii?Q?W+0Ogx+sana8o8j2VQqCS2kQ6lCi7rjzGRdA2a8wPC8NHVnRmaQBLgxQ6KiZ?= =?us-ascii?Q?XXYNWab4QkyfuKlTo9zJH/noTr0RhbqevSkemLHWaPW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HPJz5Q5XFGTY9Kca4B9PNhZlw0GaB/+kp8EQWdZVG0HoLt+?= =?us-ascii?Q?Jb5LzvUM8K0fvMREyCE=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: 70827cdf-03f0-41e0-1edd-08db623fe000 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jun 2023 01:31:08.3021 (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: 1Tncxys5WdwZRdR4Kf9N4zyXwVzn0Le1O1B2a8udIQhEWU4nTV2UdvQFnwEyqwW42OQ5BWhvs9FBNwLvHt0wew== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR11MB5482 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ray Ni > -----Original Message----- > From: Wu, Jiaxin > Sent: Thursday, June 1, 2023 9:31 AM > To: Zhang, Hongbin1 ; devel@edk2.groups.io > Cc: Dong, Eric ; Ni, Ray ; Kumar, > Rahul R ; Gerd Hoffmann ; > Zeng, Star > Subject: RE: [PATCH v1] UefiCpuPkg: Get processor extended information fo= r > SmmCpuServiceProtocol >=20 > Reviewed-by: Jiaxin Wu >=20 > > -----Original Message----- > > From: Zhang, Hongbin1 > > Sent: Monday, May 29, 2023 2:40 PM > > To: devel@edk2.groups.io > > Cc: Zhang, Hongbin1 ; Dong, Eric > > ; Ni, Ray ; Kumar, Rahul R > > ; Gerd Hoffmann ; Zeng, > > Star ; Wu, Jiaxin > > Subject: [PATCH v1] UefiCpuPkg: Get processor extended information for > > SmmCpuServiceProtocol > > > > Some features like RAS need to use processor extended information > > under smm, So add code to support it > > > > Signed-off-by: Hongbin1 Zhang > > Cc: Eric Dong > > Cc: Ray Ni > > Cc: Rahul Kumar > > Cc: Gerd Hoffmann > > Cc: Star Zeng > > Cc: Jiaxin Wu > > --- > > UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c > > b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c > > index c0e368ea94..8311c3b9de 100644 > > --- a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c > > +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c > > @@ -929,7 +929,7 @@ PiCpuSmmEntry ( > > gSmmCpuPrivate->Operation[Index] =3D SmmCpuNone; > > > > if (Index < mNumberOfCpus) { > > - Status =3D MpServices->GetProcessorInfo (MpServices, Index, > > &gSmmCpuPrivate->ProcessorInfo[Index]); > > + Status =3D MpServices->GetProcessorInfo (MpServices, Index | > > CPU_V2_EXTENDED_TOPOLOGY, &gSmmCpuPrivate- > >ProcessorInfo[Index]); > > ASSERT_EFI_ERROR (Status); > > mCpuHotPlugData.ApicId[Index] =3D gSmmCpuPrivate- > > >ProcessorInfo[Index].ProcessorId; > > > > -- > > 2.37.0.windows.1