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 28304740863 for ; Tue, 9 Jan 2024 09:00:39 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=U+sicxKcOICcSzCG6eEMlBgRXkh7SPwB7F4kNZyLgWU=; 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: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:Content-Transfer-Encoding; s=20140610; t=1704790837; v=1; b=ovv1PwlGqwsc9bhIA1V+qzROhB2AvnMXBi9Do4RwMn4SBlASYoJerUWKm6hO02fHpE6G/6KL pdOgbH9puUaLHWyIaONzhFYNxGLNOfqh7m3ehCmuIbKn9Wk390Sr935OcysGc3FQSJ6Pv2LAm1Z 4sxoFx2A+16bzU4ZC5wg7jrk= X-Received: by 127.0.0.2 with SMTP id H5fmYY7687511xOYM9ui04FW; Tue, 09 Jan 2024 01:00:37 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by mx.groups.io with SMTP id smtpd.web10.12823.1704790836567651531 for ; Tue, 09 Jan 2024 01:00:36 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10947"; a="11620951" X-IronPort-AV: E=Sophos;i="6.04,182,1695711600"; d="scan'208";a="11620951" X-Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jan 2024 01:00:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,182,1695711600"; d="scan'208";a="23495434" X-Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orviesa002.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 09 Jan 2024 01:00:36 -0800 X-Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 9 Jan 2024 01:00:35 -0800 X-Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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.2507.35 via Frontend Transport; Tue, 9 Jan 2024 01:00:34 -0800 X-Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.40) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 9 Jan 2024 01:00:34 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j3OA0ur+CTG6ax/fLXs8vxkIVFnSrBsElNkahNMf43QY++Iuy+dp+Mh2Me1j23MbcJyg/0qukUILWka3Sta+zpkuDwKBWN/MaatYpnbcImHtGVUceZAhkyQoT8jA8OrBrX6qggIHz3nJFMT2IcGSs3Iem4eVDWAwIRI2H4Qr/wq01jO0BvZ9Hy5ENaMnWLa1RNByX9oHPA6j00O/uy+PMxTRt4+tKK0nt5IAIuo0GxSCxhkty5/ovvqTNaBAlqdtdetyEHUjBvjgcXk1aW2JY/bCOUsiD73kx53nIFbUupIUa8qVHPSun++cbpfplCyOzrL0+srIwNc1qfdqmt3zXg== 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=dZ5YGactxCaMw2WMSXBXqskrdsCOnuYvJgt3Cy0dblU=; b=dBEnbnxp10PoZvrE1Wj4f/6cw3Fj2k90FaNf1zl/28QlkUOfOXRsWm8Z0z8Dciwd3Ouz85BYz6+EtX6Mej90yrYkPm79DXQ772blUdQzRCTlDEufijtvFI32d38v5lfWGLlAEbj2v0T0CH783wyUjYcEimK2AxmfeCrJs8mZhlV4m785Z91/Rl3AYKJ1agPthZiJkdIt5tz8//d1JT3OWMvoORJQ7zj+E82qXR5gJ1694P64/y/YgDA+z53mvzVTSb1wBKGjrVCPXbqvKkz+21CRL41EPiy7S112W16F2GMbIBzpfOCG0P8Je0whvxh+eGSODgTKsErqQfFPFvK5eg== 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 PH7PR11MB7571.namprd11.prod.outlook.com (2603:10b6:510:27e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.23; Tue, 9 Jan 2024 09:00:33 +0000 X-Received: from MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::3fea:ca2b:2ef7:e3d4]) by MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::3fea:ca2b:2ef7:e3d4%4]) with mapi id 15.20.7159.020; Tue, 9 Jan 2024 09:00:33 +0000 From: "Ni, Ray" To: "Tan, Dun" , "devel@edk2.groups.io" CC: Laszlo Ersek , "Kumar, Rahul R" , Gerd Hoffmann , "Xu, Min M" Subject: Re: [edk2-devel] [Patch V3 2/2] UefiCpuPkg: Check lower 24 bits of ProcessorNumber Thread-Topic: [Patch V3 2/2] UefiCpuPkg: Check lower 24 bits of ProcessorNumber Thread-Index: AQHaQfC4B/tBVDwl/EyrNvpw2LTJaLDRMKuQ Date: Tue, 9 Jan 2024 09:00:32 +0000 Message-ID: References: <20240108050804.1718-1-dun.tan@intel.com> <20240108050804.1718-3-dun.tan@intel.com> In-Reply-To: <20240108050804.1718-3-dun.tan@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN6PR11MB8244:EE_|PH7PR11MB7571:EE_ x-ms-office365-filtering-correlation-id: b0cb69ca-c1b5-478f-a58b-08dc10f16fdc x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: gnFWswR/4e5VTlTZqFlR81CPD1VdCV8+0ct/pJX2H7lde6RrzygVjSoGPcZsGptmxLOeikUbSBpgBqND3XPMzBmefZYiiCL1IrmDBOJ19/DMJgi1ccFRQQ4020p2mhOZ4CnKkIRAyrG6xvBX2x4DKVDn2CMwtBwsM6rdrCCDnq5k1T2y87kL16JCQVcjbbApJOaDWqSb44OcB6IbTJI1GJ4CQmrtuM9bNMG/GQi1VUuA+XM2IGE5ophBsVFqiUUqH9IwIaPnBmnNlGQ4aiS62UO9jAu70PD2aijlIt+yZrfkhYAbTC1FnAxHirDbOdsycdZrumrIot9J3oaJRTxlXLDAblEQ4jNbgRkffgfCqTvdeN0tbRYA+a3uiPBlxXJtE0b3SWg+Q2w613584FqOdUw1ouD4qb6YMebQ7GVkZ2+8dZ74+CPoyTUEJ9Frc2gHHzgzkUEkQ5d8UBZkjfbqfa8P5aE5MIzGf+kKs/eoN8dyyQ21hXHSOrQ3u6Q4I6QCWwmRQ/oEMdbLKlOFe0Jtm0nzcqyUddqoAzci1wXQLelSgoG9uwHbesfSSaEKerbqEWnwknMXfwoPUKb1/kHeRdTp3S7cWv9oWYAuEnRWqYEHNOKsSkB9LVRvRuc+DaPl x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?HjZ8kUopTItGbkSSv/YJUlGM5xPnWQv76TVtb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Fs8cJzYej9rwk87yvqO50eJH6TG6XjoaFdLQnPeW1t6l79LGJ?= =?us-ascii?Q?tteHNgNNwiD4zCqCr4s1Uf3TUI8gcWGnd6SzSj6qBskISvYZY1wz9HSF6ml7?= =?us-ascii?Q?qgTSYhZHi9HUxRJ1fJ/V8glzrWfGmhNR4wdWnvjBLmdd3Qx0uL66bwiMBVYs?= =?us-ascii?Q?GNq7gC0jitet3Kr75M69MOFNXxypbGLLI7Yz7wX03VzR2Wn5Pm5Toi6s2kaX?= =?us-ascii?Q?Ontf5LH0P7FBJVu7DqISohdJNJrGFEpQEJWFwkbitsQsB1Rwq66O8dukYCwr?= =?us-ascii?Q?scB+QOS7vPetJHToMyUaZvPQoSj4UGVUEYoJ6nbw9dvQQQSjEalCQarJtCih?= =?us-ascii?Q?HBqWqY2MaA+qHfh4OqcBR/TfiXxx388cg6I7BLa9/DwMsklYcj7OpGGWi3AR?= =?us-ascii?Q?CTCbECTC+u1gCe+gBDl4WqXCWEmFUyTvoP2/LT9I78Zetwl+F54JW8aqmOJP?= =?us-ascii?Q?52vEWExJZfk5xAN9IoIOIb5oW9B1PpGTK3WLhaJqKpW8CsOk4ptgvwouYTS6?= =?us-ascii?Q?IhEtit/qA4YunBs+IjF75cJN5x3amZh5dMGRmQcKwlE6uCRcWGK1RvBAn8If?= =?us-ascii?Q?Fjqd/N8ubBj1cuJvGFkisSqI3C+YAADFnQr8zjVK5No/fE91iXUSPsLkbTfG?= =?us-ascii?Q?GgGBvNEK55E0Z6fHuW4=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: b0cb69ca-c1b5-478f-a58b-08dc10f16fdc X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jan 2024 09:00:32.9098 (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: ktoHWaPhejvfG+SLKpsbNv0bDnMluBCoQvDv5rskdjqqbD4TaFlGJvlWvmigTn9RoUSBvEmdKmWBPZ9PJ3vWjA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB7571 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: eencdifYfYFq2ncynWSfMiptx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=ovv1PwlG; 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; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") Reviewed-by: Ray Ni Thanks, Ray > -----Original Message----- > From: Tan, Dun > Sent: Monday, January 8, 2024 1:08 PM > To: devel@edk2.groups.io > Cc: Ni, Ray ; Laszlo Ersek ; Kumar, > Rahul R ; Gerd Hoffmann ; > Xu, Min M > Subject: [Patch V3 2/2] UefiCpuPkg: Check lower 24 bits of ProcessorNumbe= r >=20 > Check lower 24 bits of ProcessorNumber instead of > the value of ProcessorNumber in the API > MpInitLibGetProcessorInfo() of MpInitLibUp instance. > Lower 24 bits of ProcessorNumber contains the actual > processor number. > The BIT24 of input ProcessorNumber might be set to > indicate if the EXTENDED_PROCESSOR_INFORMATION will > be retrived. >=20 > Signed-off-by: Dun Tan > Cc: Ray Ni > Cc: Laszlo Ersek > Cc: Rahul Kumar > Cc: Gerd Hoffmann > Cc: Min Xu > --- > UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >=20 > diff --git a/UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.c > b/UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.c > index d4f8611af8..35590fb4e7 100644 > --- a/UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.c > +++ b/UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.c > @@ -107,7 +107,10 @@ MpInitLibGetProcessorInfo ( > return EFI_INVALID_PARAMETER; > } >=20 > - if (ProcessorNumber !=3D 0) { > + // > + // Lower 24 bits contains the actual processor number. > + // > + if ((ProcessorNumber & (BIT24 - 1)) !=3D 0) { > return EFI_NOT_FOUND; > } >=20 > -- > 2.31.1.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 (#113434): https://edk2.groups.io/g/devel/message/113434 Mute This Topic: https://groups.io/mt/103592279/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-