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.web10.3560.1685583037966677460 for ; Wed, 31 May 2023 18:30:38 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=ANP9KRAh; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: jiaxin.wu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685583037; x=1717119037; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=79f4kDsXTzn1BQ3WD4ehS+tL8NsKBVFuknuVje+Dfgc=; b=ANP9KRAhQ3TinWUYkIk2VzSxnCyIS3nsB1LxEK6mT3yCs50l1VrOJYS0 gHURhpjeZbRzXJHgxkx+K6n0fdv10SDL4fjqkCB/2kt2O+vNf/B+2+HU4 1P/eA4x9wrLEC3Fgm/xoG+K2qS4XYLCleeRB8ztjfJE2wKatHBD7dhNug Y+n04ULCRa02GsfgcBkEiFwsvW8rqBqmr5mKuK+gk0yDBfmMZgSp7Y4eM ozongQdhKCFSiqgWfZoP8R1vvUFqRfqSkz8tgwUZmX4qBEKJmOqTF8s6p VSe5zLnvX8X/YunH5DL3jBbLZUSGXaV6J9qUqLIXhkfhElGddkCvKn9A2 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10727"; a="335042092" X-IronPort-AV: E=Sophos;i="6.00,207,1681196400"; d="scan'208";a="335042092" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2023 18:30:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10727"; a="796938226" X-IronPort-AV: E=Sophos;i="6.00,207,1681196400"; d="scan'208";a="796938226" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by FMSMGA003.fm.intel.com with ESMTP; 31 May 2023 18:30:37 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx603.amr.corp.intel.com (10.18.126.83) 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:30:36 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx612.amr.corp.intel.com (10.18.126.92) 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:30:36 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx603.amr.corp.intel.com (10.18.126.83) 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:30:36 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.49) 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.2507.23; Wed, 31 May 2023 18:30:36 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i3ja0WhGgNkvC/fjYMA+x/QIXYLHfcp4XtV4dhE3RcbGgQDNjS18SsjwbJzdG2PTWVANXLVOwfkIf7I15I/rmpP9GNur9/SVwIItEhnsogU+v6xgb8/DLsPcwwYe+fkAee82d1BhrSdXDy1v1SiPH64Kndzl80TGkr6WEmQt8iEWVeeWTkZDstBx4rinZp6MHGNVP1AnsM8VDVMOqCg81DoEw8aiZq5nICUlokcT08GMHI4DjKD2oIQ+BlfvYqbuQLtHMiswuCxbG7TsJf5RitEp1nHoasrvhB2cXSfgF133m8fy2tQxkNCHnII0+kWnij2zCRHX2WZYTWTXEcNQug== 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=mOCE5jHmjEnaDKFvFyObDHSlKKwE66vIal0PWQ2MUmo=; b=fIHRhtHcy80SSV2Rdqsus/ESE5qEgb1zmrV/cGb2NfCwvH/E0mJbDHJxtmnDG+W9jC/Jzr21CbSZigdNz5JEzs3+4eBc8C+Md5wj0kPDHOsJtD4+rsAC9jYZkOl9fvNR3MTUE8Rk5b+fcb9Igr1nbrguFs7ShEQ1ry9Et88z8jCO2L17xpnGvieSCB/7cPO/VaiWF1aSSnruOhbeG4gNr1jQ2u+1EADLHsyxStZXtfkckIugXNi+YscqA02kH/SjANcotVglCZVVu9GryPEfXqRaSM7x981w/orWtDUaSFb4xrBZ+IP92WOrZVvhf8K4YrPTtyuBL3N5+52fAAQr5g== 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 MN0PR11MB6158.namprd11.prod.outlook.com (2603:10b6:208:3ca::18) by CY8PR11MB7169.namprd11.prod.outlook.com (2603:10b6:930:90::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.23; Thu, 1 Jun 2023 01:30:34 +0000 Received: from MN0PR11MB6158.namprd11.prod.outlook.com ([fe80::647e:54e0:2be7:9d02]) by MN0PR11MB6158.namprd11.prod.outlook.com ([fe80::647e:54e0:2be7:9d02%2]) with mapi id 15.20.6433.022; Thu, 1 Jun 2023 01:30:34 +0000 From: "Wu, Jiaxin" 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 for SmmCpuServiceProtocol Thread-Topic: [PATCH v1] UefiCpuPkg: Get processor extended information for SmmCpuServiceProtocol Thread-Index: AQHZkfhybOurunSi102mO6zSHyNu5K91LR7Q Date: Thu, 1 Jun 2023 01:30:33 +0000 Message-ID: References: <20230529063938.230-1-hongbin1.zhang@intel.com> In-Reply-To: <20230529063938.230-1-hongbin1.zhang@intel.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-traffictypediagnostic: MN0PR11MB6158:EE_|CY8PR11MB7169:EE_ x-ms-office365-filtering-correlation-id: 5d8e265e-6494-4d8c-c099-08db623fcb5e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: o1gGvqbVuk5RH+svyyGcQqUW7NDxQw8LBYOzxKDiTcGiW1HbphCT2u/5zdnQOea5ooYWj5e3ifnLDB8fOJzIJGxYYbxd9hoJcqEzAg8UYmcG88GqlyI8/1gX3tYoIbCUfHZSNs7PLQyip3/gZKdA7l3k01PcDg64qZM3YdrteaeWbMaBowHDyCdIp4IHeEsOhc57sQf3HFXyaTIaHIJvcSAXAN4EO6jecL9Pz5+fAABnU5D7ZZGIR4Hn56TP8m9YxWVonEm8KnwM2yO6JRbFm5E1GBmxtmFvko2limAmaqOLDQr/LEyEVYsyRCemQ1qG+UF3seIQtusG51TPeBHbyKiqZIofFpsdAwiRnyysjWXtlkq1qlpDQD5gYrsrP4oQxMbq/S8eiApzSmdSbStGx4+EE7pIYj0Gxawh3LgcH0yo2HLXnMChgpw8MhoOBHde/BepSaybtizP2VtmPvJvmuq7RhXc9rJtILXS0ZZk25D6tiW0RHLXeJBDLowKMO+Y+Za+cIfDLlQsWAkSrc4tyCfvF6ixMGA0sJsifn4Moms+J0gcDkNloHBTjf4Dz3fdVx/qiO+OgYTVhsC28FHti0gKDrfx8qqxaA1OVT2zKKA+ppflukVGq0G6C/oK/9Vz x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN0PR11MB6158.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(39860400002)(396003)(366004)(136003)(346002)(376002)(451199021)(71200400001)(110136005)(478600001)(54906003)(8676002)(5660300002)(2906002)(52536014)(8936002)(86362001)(33656002)(38070700005)(4326008)(66446008)(66946007)(64756008)(122000001)(66476007)(82960400001)(76116006)(66556008)(316002)(55016003)(41300700001)(38100700002)(186003)(107886003)(9686003)(26005)(53546011)(6506007)(7696005)(83380400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?gu3B8kLA94ljyVPqsSEG4e7Jnc6H1rXxK7X38pWVjGw7eOd7fgCwTRSERQi4?= =?us-ascii?Q?tVLaFZQNPAZTM5iMQspHfZM1AcDOQfH5u8ouFyJET7LJN7QvufRKmOLzL0di?= =?us-ascii?Q?5D7U7i936WB8UTNuUAY5tx04IMES5zhz5s5qslN1W6UT6a4TtJKF5HushF1h?= =?us-ascii?Q?0FvK/V2qkr67a1AM/tGKiOkMe22KWs9Ko1MS4tEPnUeGve9Uo8kjUOhu/HZV?= =?us-ascii?Q?LHbcamF9ZpP+LZwgRnrNAFIwTXW0fwqOEJIpoHLxraE3D5nKsiZR9t43JatT?= =?us-ascii?Q?mSMemUkCg1XM8jwU7+pGAZWQTbx4DxqjcbHsTzcqbD/RboSUVthWZZOPq4Hm?= =?us-ascii?Q?y1KdCJyW6w+VgxEIZLvSEdWyO+KICzZSkVhqURqmKbHYIE4kYaQNXWCc9RDb?= =?us-ascii?Q?WkKXe+tPWsC3RKVFEr706uxoRwU6Y+vdDWzzarPw/jJCNKhnKax7NSWR2mSX?= =?us-ascii?Q?EnxLfiB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D6TFzZuVca7nvC/bXT9gHH5?= =?us-ascii?Q?Q41Sj7gsphWKVK1fcqp2GV6EM2H76nBCWoYX480+qS51RRHWw6qCJA76aBZL?= =?us-ascii?Q?Aezce5dPTy84A4zCbEUZMtkhyljxq+b44oGGCIVAk8lOzz30f8I3tkpsJxlM?= =?us-ascii?Q?f/4xEWToY/hinWGXe++zViufX/3i0TzwrgZYqUWUCu8dMcGxpc0on23yt0vC?= =?us-ascii?Q?O4HpSuX3cyC8Ivc1Q/8=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN0PR11MB6158.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5d8e265e-6494-4d8c-c099-08db623fcb5e X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jun 2023 01:30:33.6971 (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: HYZdZXJljC5ONrR3tFFmiMfv4dRyxAOKYCDyCp4DNZtMJyXtFJBpSKbCPw41TAt+ExnxJB0gyl2dgaWOmOmq0g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR11MB7169 Return-Path: jiaxin.wu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jiaxin Wu > -----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 >=20 > Some features like RAS need to use processor extended information > under smm, So add code to support it >=20 > 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(-) >=20 > 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; >=20 > 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; >=20 > -- > 2.37.0.windows.1