From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id B8CFB940486 for ; Thu, 16 Nov 2023 01:30:47 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=bOtEBu1zdYyIQyjsHPcwP5RbptWY+QC6dqy8qaPUsPg=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:msip_labels:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type; s=20140610; t=1700098246; v=1; b=DrR9rsAhrwUopJc1rTdXN52S/cxtpCz7XS+PJmUiyf2xCp4rc5wUndQkz7Q83eJ3Iy0h0Xjc LdxtVxLMZsOKauiofMQjsyfxyMqzGylEU6T5hUhdsq7is1WvJZzwdhuYomkf2PPCrm0uCB1tKiD tFztP15HMFqj6O8A0fmndAB4= X-Received: by 127.0.0.2 with SMTP id g42FYY7687511xoZVxrDFrK8; Wed, 15 Nov 2023 17:30:46 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web11.30633.1700098245128673926 for ; Wed, 15 Nov 2023 17:30:45 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10895"; a="388155967" X-IronPort-AV: E=Sophos;i="6.03,306,1694761200"; d="scan'208,217";a="388155967" X-Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2023 17:30:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10895"; a="794331473" X-IronPort-AV: E=Sophos;i="6.03,306,1694761200"; d="scan'208,217";a="794331473" X-Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga008.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 15 Nov 2023 17:30:44 -0800 X-Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Wed, 15 Nov 2023 17:30:43 -0800 X-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.34 via Frontend Transport; Wed, 15 Nov 2023 17:30:43 -0800 X-Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.100) 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.34; Wed, 15 Nov 2023 17:30:39 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VLbxj9ft1O9NhcxxQEKrxj3w8JWMKjCiW5eVtOzR0opXC9uObS4KrVLcRGu0PvT3XRFpJSlL52n/5Jloklc8cUKw9/cG7WOVw8F0Lj4gxh50S2unqEEiKTsD+KovNuhCvVPZQYE5YAUswFtegQa+AV312NtlxQyIJGUzVuz0zVwJsQriylXn07hq14tgjCSrMEl+EZr1dhzs6YsmPaZBoZatVT+4OW1zXoyNYWoVH/11FJhuCEqfHl3T1mC1xdlusRsG2Y1Ss96eswZRBUMyXpC/tdF8ovvRyuAvVWRbvCx98XRo9n+NIWNvYTc1fD9EOU+depVBIgTcUySFqiH2rQ== 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=gwsW30RRh3D0TWz89ZPDPM3XGl948B9LNfJOnsu5DoM=; b=XcEO7hYd8LFeHeOi0ecYAI3d5aO2pwYOy4qLrqMm3MsoA3QgcK/TEJjhF48H03WvE6WkvG0PNGBAENfzGF9DWnos+CrjOjFfxBZGG1Gr9jv3iAu4mn77IGR8rNF/lz9EK5ixT5nOaK+3Kv9ka7glK4Q3Ey2jaepYxXQpdtFdCeuHFYiSiT97jVke+8/FdZemicJuTxurZPfatreXl1lJ/aAtuOXUvgBwKmM32k0SvZPa8XVIqeRTVGxJS6btXH+O/2dSVbG7KGSmSwVnJtFLvXxJbOPh0isp7d90TPo+a1fnZSvi/TJqyqjkRzCxBkGQgrr1GsvJqUxSusrMs+VTNw== 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 X-Received: from MN6PR11MB8244.namprd11.prod.outlook.com (2603:10b6:208:470::14) by MW3PR11MB4731.namprd11.prod.outlook.com (2603:10b6:303:2f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.20; Thu, 16 Nov 2023 01:30:37 +0000 X-Received: from MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::b614:1f5e:8b0c:9858]) by MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::b614:1f5e:8b0c:9858%4]) with mapi id 15.20.6977.029; Thu, 16 Nov 2023 01:30:37 +0000 From: "Ni, Ray" To: "Wu, Jiaxin" , "devel@edk2.groups.io" CC: Laszlo Ersek , "Dong, Eric" , "Kumar, Rahul R" , Gerd Hoffmann , "Zeng, Star" Subject: Re: [edk2-devel] [PATCH v2 3/3] UefiCpuPkg/PiSmmCpuDxeSmm: Use processor extended information Thread-Topic: [PATCH v2 3/3] UefiCpuPkg/PiSmmCpuDxeSmm: Use processor extended information Thread-Index: AQHaF7UnyqJnv1ZHZkSZcZM/XHtMOLB8KRp9 Date: Thu, 16 Nov 2023 01:30:37 +0000 Message-ID: References: <20231115111553.6592-1-jiaxin.wu@intel.com> <20231115111553.6592-4-jiaxin.wu@intel.com> In-Reply-To: <20231115111553.6592-4-jiaxin.wu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN6PR11MB8244:EE_|MW3PR11MB4731:EE_ x-ms-office365-filtering-correlation-id: d4e0d1e6-df1d-4e85-1d98-08dbe643a2c7 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: 3KP2kDMAiv1owxHHRO2uLExA2qaywCk7NrGhiN8WhgVQAX8GIByS2KQ8sZ+mh6ixVHfd0c7lAIbL+mfOK+RE70QWHTm7AKp0nixQoat5zPsYuV3+owV99Ws65E7H91DyUdlLuclT5DLXqBpKoSb/ir/vCFhMXPTk/YW7VWciWlyOfYX8sKNGSOCA51PgYBwQU/0IA8DsNhy/Is3XRSCHaf1kYLRX2/XdOFIhbyEcdEmxw5xoNeHEpPwWgZXJYm8zcDdTtc7gFrxr+sOg/Xm0P5Mg3XkIkOFi0cK+HunASaDKewK8a9w5bNyUfGB40PGvCgvGs8TyFbRWbMDuMdXJxsdMZjGi/l4gJQUuNazQkXqZdsPFRyD1AAszOMV/FF1vmM8QzBH4GKvjIU7M0o4D8gul4lylC3vu9UqxBjbN1xEMUb160naT+7GmE9DlT6W2VP7f7y3UU1vO5qBW7u89mb3riUnWcq6domnnre2X1/OcjlDs/m1SlujJlx/DkDmXufm/rBLRCQX4/dF0M/wMv0DMkjZv1ymSc38YMQXPogFaUUIux2wDMKuEitxZLQXU9MLCo77tnaPtEH4vzGaX9WkK1Edm844XOcGxGpN+17e1VXXDx58V0+6ytlE9r70Y x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?cOcsC6gqldzd04SPtlKMHNg2XvkU0Ssku+LDgf4r40CElvK2AvyjhfCWBwO+?= =?us-ascii?Q?ykj/npti/chMEh/Tn/Hl4HwtHaokCysus5G4i0CGvGOK/yPF4xpqlREijBSp?= =?us-ascii?Q?X4URUE600ArluwcUq00WHFyxZWr4CNBTWHzsZARh4zkNs5VxWFzMvcTGoEBL?= =?us-ascii?Q?RRpxe1shWqNJtjgmVgrng0E9AyDPr+h5mU45rm4euNDHfRTxB5n53OXTUUz7?= =?us-ascii?Q?ZZo9XK5/wj0kaNGE3asSw9+t0aLIzOFGvD49OtNLnvreq+kBuslu3TlbLQcG?= =?us-ascii?Q?oGqm1iIiirRYUnhxhssv636oFStWlhU09kOg7DIfyV66ixwX480tH56AvKzF?= =?us-ascii?Q?r/ZBOeJnRVH5ZuTH7jE3D+Iw5DVlH/pCHwGl0gx6S4qlGSQpGrlcChUKHIkn?= =?us-ascii?Q?k6hdIigda8KjVFKN54b4rZ5zGIIAY9K2g+HugI/Akm7HkO0GdshtjVN01onq?= =?us-ascii?Q?QNgktCjY3QLJ67GGx1CcVnqDbIIMazLdsBOmD8KWG8LYzsHMJST49fWfjGcR?= =?us-ascii?Q?+jrchb2b97i9fcXggDpihGddiYEjpBuadbgjVYr0ndy5U67HTHGCvorNgNpT?= =?us-ascii?Q?MUwU2kZhMdHleiO1YvmVv2rxYCYV+8d+h8xoFN3PTU0Dxdr6xfSzxiB+/vKw?= =?us-ascii?Q?KsIcm71rPxqMHuyiN3Wj/LrMv02clYW2IXLzPvTQTZsoPhrCI+7v/NahuzGa?= =?us-ascii?Q?JVp9C2wEBIZ+gawH1ouy1X9w6qzkL2JmV9ifgkwPUvWs9pSwEkk8uPgNxM2F?= =?us-ascii?Q?KouWlQ5pobD0dyMCUXU6AtDOjG3wUYuU/1j0E2Ekwvn+YPAwRZQQN7AZAcsa?= =?us-ascii?Q?07T8hUexLEG4nktgKBOK7zrF2fmgxQexSRfdWTgyWjy333EZ/zElKLZp+0vu?= =?us-ascii?Q?9+a8rk50YyHt2usnIQkrMOy8mFICejld/82JwXfZS85KIa9XRcOxYQicXTic?= =?us-ascii?Q?WSnS1dzqzqiUaRqP+7E9h6Hyee4eHzTawp0y7s4KiZeXWwZWNH9PwIPpZbQi?= =?us-ascii?Q?i06ax/d7OcRXvSpvadUY8eZUm55j/nUfxIMuJs2tcaPA6rLpQt4M4vugR9BY?= =?us-ascii?Q?/fkutRe0muZytEB74fAC7y9HqmVhwLf63BuN+QjYJWXulGDQRf0KUlzHJwa6?= =?us-ascii?Q?81JzByxztx426oi5dF3eYTyTY+z2ZyxaYEtIMCeJ4L8zwoGqojyVwltyCZVU?= =?us-ascii?Q?FHkKRFpZbmLo1qkbzP89sicVhQutpXUmYNrifl9x3wFGlHiSpxJ4IDvDoiUr?= =?us-ascii?Q?5Nv6nx/mw4kE4OlVpjCpqMNDMBV+UTFwQ+1Vmp8nxBO/Axr/cd18eiZJPMI2?= =?us-ascii?Q?luZ+YE+FZtEfYdf+y4s7BflYVRDxhtn1JpG0xVb2CHE4rUHhdLitq96klvaF?= =?us-ascii?Q?fshH/LTWbAOueBgiZq8bV3ffzYc9bgJ+aQGKpZhFoMn+Z35K+h3gGVgd7cSv?= =?us-ascii?Q?1pU0VcXOqG5lIQNPOQT1QyQ4Ib1HrJ+s/ZxAmo37HaqU93+UPpCSkQTZTASD?= =?us-ascii?Q?rvCVJjM/0+THV66mx0pW8DHXN3vxbTCSMVX0tSIAsATD4sJriHQtYSf5Hhzc?= =?us-ascii?Q?5RP+cmwebqqCTts7BM4=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: d4e0d1e6-df1d-4e85-1d98-08dbe643a2c7 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Nov 2023 01:30:37.0941 (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: HgPurAFzP4Ilx4biARlujtSf8m/aUykngjcjYSs6fY4Je8Vyk5VJI1Jzv8zmpD5OAMzKvxKttx6ipqItWb0yUA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4731 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ray.ni@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: xPgNiHRcllR5lVFZR6anaoLbx7686176AA= Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_MN6PR11MB8244E8FEA717E66F2746F6E28CB0AMN6PR11MB8244namp_" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=DrR9rsAh; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io --_000_MN6PR11MB8244E8FEA717E66F2746F6E28CB0AMN6PR11MB8244namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I cannot remember if CPUID.0B and CPUID.1F return the same value for packag= e ID. And I am not sure about the benefit if we get the package id from location2= . Thanks, Ray ________________________________ From: Wu, Jiaxin Sent: Wednesday, November 15, 2023 7:15 PM To: devel@edk2.groups.io Cc: Laszlo Ersek ; Dong, Eric ; Ni,= Ray ; Kumar, Rahul R ; Gerd Hof= fmann ; Zeng, Star Subject: [PATCH v2 3/3] UefiCpuPkg/PiSmmCpuDxeSmm: Use processor extended i= nformation This patch changes to use the processor extended information, which can reflect the value from CPUID leaf 1FH. The reasons are listed as below: 1. The processor package ID retrieved from CPUID 0x0Bh may be not correct/accurate if CPU has the module & die info, it depends on the CPUID implementation. See SDM statement: EAX Bits 04 - 00: Number of bits to shift right on x2APIC ID to get a unique topology ID of the next level type. ECX Bits 15 - 08: level type Level type field has the following encoding: 0: Invalid. 1: SMT. 2: Core. 3-255: Reserved So, if level type returned from ECX Bits 15 - 08 is 2 (Core), then it's not clear about the next level. It can be Module or Die or Package. SDM doesn't has explanation for the next level of Core. If so, the value will be decided by implementation. The value can be package info for compatibility consideration, but it's not standardized. 2. According SDM declaration, "CPUID leaf 1FH is a preferred superset to leaf 0BH. Intel recommends first checking for the existence of CPUID leaf 1FH before using leaf 0BH." This is perfect match the existing GetProcessorLocation2ByApicId() implementation. Cc: Laszlo Ersek Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Cc: Gerd Hoffmann Cc: Star Zeng Signed-off-by: Jiaxin Wu Reviewed-by: Laszlo Ersek Regression-tested-by: Laszlo Ersek --- UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c b/UefiCpuPkg/PiSmmCpuDxe= Smm/MpService.c index 25d058c5b9..c61562c867 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c @@ -177,11 +177,11 @@ IsPackageFirstThread ( IN UINTN CpuIndex ) { UINT32 PackageIndex; - PackageIndex =3D gSmmCpuPrivate->ProcessorInfo[CpuIndex].Location.Packa= ge; + PackageIndex =3D gSmmCpuPrivate->ProcessorInfo[CpuIndex].ExtendedInform= ation.Location2.Package; ASSERT (mPackageFirstThreadIndex !=3D NULL); // // Set the value of mPackageFirstThreadIndex[PackageIndex]. @@ -1834,12 +1834,12 @@ InitPackageFirstThreadIndexInfo ( // // Count the number of package, set to max PackageId + 1 // for (Index =3D 0; Index < mNumberOfCpus; Index++) { - if (PackageId < gSmmCpuPrivate->ProcessorInfo[Index].Location.Package)= { - PackageId =3D gSmmCpuPrivate->ProcessorInfo[Index].Location.Package; + if (PackageId < gSmmCpuPrivate->ProcessorInfo[Index].ExtendedInformati= on.Location2.Package) { + PackageId =3D gSmmCpuPrivate->ProcessorInfo[Index].ExtendedInformati= on.Location2.Package; } } PackageCount =3D PackageId + 1; -- 2.16.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111297): https://edk2.groups.io/g/devel/message/111297 Mute This Topic: https://groups.io/mt/102602853/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/12367111/7686176/19134562= 12/xyzzy [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- --_000_MN6PR11MB8244E8FEA717E66F2746F6E28CB0AMN6PR11MB8244namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
I cannot remember if CPUID.0B and CPUID.1F return the same value for packag= e ID.

And I am not sure about the benefit if we get the package id from location2= .

Thanks,
Ray

From: Wu, Jiaxin <jiaxin= .wu@intel.com>
Sent: Wednesday, November 15, 2023 7:15 PM
To: devel@edk2.groups.io <devel@edk2.groups.io>
Cc: Laszlo Ersek <lersek@redhat.com>; Dong, Eric <eric.dong= @intel.com>; Ni, Ray <ray.ni@intel.com>; Kumar, Rahul R <rahul.= r.kumar@intel.com>; Gerd Hoffmann <kraxel@redhat.com>; Zeng, Star = <star.zeng@intel.com>
Subject: [PATCH v2 3/3] UefiCpuPkg/PiSmmCpuDxeSmm: Use processor ext= ended information
 
This patch changes to use the processor extended i= nformation,
which can reflect the value from CPUID leaf 1FH.

The reasons are listed as below:
1. The processor package ID retrieved from CPUID 0x0Bh may be
not correct/accurate if CPU has the module & die info, it depends
on the CPUID implementation. See SDM statement:

EAX Bits 04 - 00: Number of bits to shift right on x2APIC ID to
get a unique topology ID of the next level type.
ECX Bits 15 - 08: level type

Level type field has the following encoding:
0: Invalid.
1: SMT.
2: Core.
3-255: Reserved

So, if level type returned from ECX Bits 15 - 08 is 2 (Core),
then it's not clear about the next level. It can be Module or
Die or Package. SDM doesn't has explanation for the next level
of Core. If so, the value will be decided by implementation.
The value can be package info for compatibility consideration,
but it's not standardized.

2. According SDM declaration, "CPUID leaf 1FH is a preferred
superset to leaf 0BH. Intel recommends first checking for the
existence of CPUID leaf 1FH before using leaf 0BH." This is
perfect match the existing GetProcessorLocation2ByApicId()
implementation.

Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Star Zeng <star.zeng@intel.com>
Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
---
 UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c b/UefiCpuPkg/PiSmmCpuDxe= Smm/MpService.c
index 25d058c5b9..c61562c867 100644
--- a/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c
+++ b/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c
@@ -177,11 +177,11 @@ IsPackageFirstThread (
   IN UINTN  CpuIndex
   )
 {
   UINT32  PackageIndex;
 
-  PackageIndex =3D  gSmmCpuPrivate->ProcessorInfo[CpuIndex].L= ocation.Package;
+  PackageIndex =3D  gSmmCpuPrivate->ProcessorInfo[CpuIndex].E= xtendedInformation.Location2.Package;
 
   ASSERT (mPackageFirstThreadIndex !=3D NULL);
 
   //
   // Set the value of mPackageFirstThreadIndex[PackageIndex]. @@ -1834,12 +1834,12 @@ InitPackageFirstThreadIndexInfo (
 
   //
   // Count the number of package, set to max PackageId + 1
   //
   for (Index =3D 0; Index < mNumberOfCpus; Index++) {
-    if (PackageId < gSmmCpuPrivate->ProcessorInfo[Ind= ex].Location.Package) {
-      PackageId =3D gSmmCpuPrivate->ProcessorI= nfo[Index].Location.Package;
+    if (PackageId < gSmmCpuPrivate->ProcessorInfo[Ind= ex].ExtendedInformation.Location2.Package) {
+      PackageId =3D gSmmCpuPrivate->ProcessorI= nfo[Index].ExtendedInformation.Location2.Package;
     }
   }
 
   PackageCount =3D PackageId + 1;
 
--
2.16.2.windows.1

_._,_._,_

Groups.io Links:

=20 You receive all messages sent to this group. =20 =20

View/Reply Online (#111297) | =20 | Mute= This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--_000_MN6PR11MB8244E8FEA717E66F2746F6E28CB0AMN6PR11MB8244namp_--