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.7475.1679383728491786117 for ; Tue, 21 Mar 2023 00:28:49 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=mt4JFpcc; 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=1679383728; x=1710919728; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=EuoTcysJUacSAt/lMVC7ol0e8XeLkbmq7e4HN7mGXWY=; b=mt4JFpccMrbZOZZlC0jH04DfQgmU+w3ROmYR3YhuP7QzKkVEyq0is8kA KgExT3tAQMJMdbdCfff6/gp3n9vLGSAV31PjL6GYjJNR/yWdGLzZmMFtn JnLkZaQeNMnT45UQWZzZi3Moe66IvrNFxixoAcIlA4UMEqwNwtKUg70Q6 kyvMyHSoQEYif227uasC4F0EFoBQUQeYSpdMLP3k5H3ECVy2vUl85CF9a W1f4go8i6+pqCEUdvD30j41/K7gUeKFeinOgjCaRZEGjh1f3sM2fpzeG5 1/jAeP2nSxt0SDIbW/VCgsUGYfxi2o7lxmqG9LetX1am+qZR88wmcD4LA w==; X-IronPort-AV: E=McAfee;i="6600,9927,10655"; a="425145808" X-IronPort-AV: E=Sophos;i="5.98,278,1673942400"; d="scan'208";a="425145808" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2023 00:28:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10655"; a="750435562" X-IronPort-AV: E=Sophos;i="5.98,278,1673942400"; d="scan'208";a="750435562" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga004.fm.intel.com with ESMTP; 21 Mar 2023 00:28:48 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) 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.21; Tue, 21 Mar 2023 00:28:47 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) 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.21 via Frontend Transport; Tue, 21 Mar 2023 00:28:47 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.175) 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.21; Tue, 21 Mar 2023 00:28:46 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T83W1pzkSVofJHcdzuSDytH8PjxyO4lLO66HWMveeDX1r10aVp2aHGnbSEfJWJKhDMgFABtz+VgjirDCnTl5ImW47onpYT0TnKF/Jwnxf9USBMM3jRI6UMEn5CQqnZNsf2ATUVg3pc9tqKGS0IGnFBkNy7Pst5gjqsXgdwiL0x3Wq7adLNplLm7wa8qL5gvOtf69txD9q/24THXCFUxYn+qBl/RQmWeA63BGVkDhBORrWTNPGthlY54x1Gi73LXVliEKDCDTkiTtEyj34f+T/DqPuYkdAeK+pMf7IiGxeTFFM68zsPwsy7v3q2dK1jvdpY0SNvBEK5L/J+ctFQ9EAg== 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=7y5gAXifFDGW57/D50uGtHKoopbO8WahV3/Z37hfGGA=; b=K+cVwGrGEafsPs8vsrBEBWd81bYauCPMn1zVjDj8hvPvWgQdX++LNcM+2X7vkcDXT7w1gZgM5hIYPdBcRvbweGLylhsbAjjIe6AHVY+91IiqVwIV0Yde355/7lvb5nIaWbWBk+KH8aIDgQeJcwb8IHc3U18prjfnXIasItyeoiqHS0bsq4koUNnvC3OYu+gsoqjgcWDeWgYU8Qe9A8TUNmRn0DBMCgaw5I9hyaKx8VUz7Ku4qYcs7EK5Yi2r3ekij0v7IU+ZTcY4Jd9bHv48BhgAJcbgjk+ix9J7z6vFn+42c82G4iCQvoNbB3La3ZdxUd1zWh6+J/jxtWOQhBOo2A== 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 MW6PR11MB8391.namprd11.prod.outlook.com (2603:10b6:303:243::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Tue, 21 Mar 2023 07:28:45 +0000 Received: from MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::ae07:e96a:4a24:8a69]) by MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::ae07:e96a:4a24:8a69%7]) with mapi id 15.20.6178.037; Tue, 21 Mar 2023 07:28:45 +0000 From: "Ni, Ray" To: "devel@edk2.groups.io" , "kraxel@redhat.com" CC: Pawel Polawski , "Kumar, Rahul R" , Oliver Steffen , "Dong, Eric" Subject: Re: [edk2-devel] [PATCH 1/1] UefiCpuPkg/MpInitLib: fix apic mode for cpu hotplug Thread-Topic: [edk2-devel] [PATCH 1/1] UefiCpuPkg/MpInitLib: fix apic mode for cpu hotplug Thread-Index: AQHZUO9J2NWxJ7VKpkimWiO1203cE68Dhjgg Date: Tue, 21 Mar 2023 07:28:44 +0000 Message-ID: References: <20230307122037.3100651-1-kraxel@redhat.com> In-Reply-To: <20230307122037.3100651-1-kraxel@redhat.com> 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_|MW6PR11MB8391:EE_ x-ms-office365-filtering-correlation-id: f5c1aaa8-9613-405a-84db-08db29dde76f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: VUSKW8zTJv7b/WfzwaIvndmSWNKQWt4vOWUtwnb/io3AhQrdSkQmtVEkB79MtSeH4gQu3mzSEsp1xPhu2k03Gb1j+mI8j/stH6LSSu9ZvFOvpQMrQChbmFer/7jymPnMgvVwNOCkwChC4wiYd/4eMkNd86HSsSfYQ/JREavUZ/KmQO4leusNe8UcoyLeUljBqGKc8BC+1WilXQ0L0kNTqWIPhXQyLUTSaX6R0LXY0ZLQ7a/aqLUlfSkPDIXobjTIjBRyPtOcjHK8LAXuplBohYT6Ih9Ixnj1j3ODxFv7dOXDTnxCrFGSf2TtxvM9k1amppe27cngS+OOPUppT/X3QuCaeSDE2T+kcgrvVLubGFqGK+P74mRP/43ThbH8ElDEpC8YzY9sLyrLbER9TaK/2kSb/wvYhIXQg5HW6iaZs4K/ROu0iKVkwwX+u83baWAVun7ZZOYOfFUcgFMgFPjIpIWeCtMYh1vy6h9sSoFY2ok2Vk0v0p07hNMHyvVf/DBiz1uRzcrqsxrNr4eOe9dw2bDOv8bDKoIgGdsUSfCfFWGiFPTVOWTovtelt3kGRSw093pIbfnz4C1NPp6D4knzWUVrTJCRKlXfAUaTz+gjazEYr3G+c/UPjhrLvZGfHYRUlOl6mGNNMkdNlWtzrka433AjNBs0AW9N8JZ5v+AykMxo8SeQtawdBTw6ZVsY+F1CdF0BoL/0x19SPOSsphs+xw== 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:(13230025)(6029001)(396003)(346002)(366004)(376002)(39860400002)(136003)(451199018)(82960400001)(55016003)(38100700002)(2906002)(38070700005)(122000001)(7696005)(71200400001)(478600001)(9686003)(186003)(86362001)(33656002)(5660300002)(316002)(54906003)(110136005)(41300700001)(66556008)(66946007)(64756008)(76116006)(8676002)(66476007)(66446008)(4326008)(6506007)(26005)(107886003)(4744005)(8936002)(52536014);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Hfu0XvHRkVRWpt4djo3gBowyT7H99CSc4BDZO2tyURk4ihPUe7HIWOsrDqJ+?= =?us-ascii?Q?0NbyS5ddGk+fYtNVyyqDgcWTPD7AdqXY3tewhtj43DCDZTEgL7GlvgRSA6Mh?= =?us-ascii?Q?W6nx1bD/rSykcBWTe7Bn27m0PkqzGxR8m4XWlcOJhT1KLDW8UcRaPo3PRRQr?= =?us-ascii?Q?v4yfgbu2qqTr+nS3cWZWvQVNZLZBjM8kWVFNqDubOJOuTconY8dVDsMFdRMe?= =?us-ascii?Q?Ze1PIPNHrU10m66YhEo7kQh/t+nsU0EQxSBX+YFtb0QZCFgvp+42A7ihZEmJ?= =?us-ascii?Q?Jwy5DgHwUq5zHFyzCu8s+X8Gpy942dt9vDesrcggSIRq6FE434dzs+sFEYAM?= =?us-ascii?Q?UYD18Tg0oIcXXzHseDNndQ6s8sw6/8/XODZAyO2SmfRfL8oR4XGQ4EW58ipO?= =?us-ascii?Q?eBZTqD60lXSuAS2SPGIvHUCLQrRDnkju7KQ2yBIKwYQNcvI8bY+ko+57Jkoj?= =?us-ascii?Q?xZapvhyjX4Aqr0o8fJoyDuhsP5plhInN+635RGNwkPHpFEQJv3bQQVe6jt6c?= =?us-ascii?Q?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NSdj1MTWjdL28PP?= =?us-ascii?Q?tdAdjFzMvfIsQvrFHaYQkx0gCPyvQ0PndWZbEpRxn2V2Shi19g3qn/akZfEq?= =?us-ascii?Q?K6mptELP6pp0iEOeJnATEdmpFu4hFrkcuFYVyUiQ3NtEANgY6m6OsCsMGi5/?= =?us-ascii?Q?WQPlm2kLWenrTfnQaww=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: f5c1aaa8-9613-405a-84db-08db29dde76f X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Mar 2023 07:28:45.0101 (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: 5eJdAwbFyuAe7bg1KSJmPfLFPL5RVQquJhLPxBGj4GV8oAyccFJ62IIakEnnHnYqpxBB5bY7uGo6fvCrZVgukw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR11MB8391 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 > + } else if ((PcdGet32 (PcdCpuBootLogicalProcessorNumber) > 0) && > + (PcdGet32 (PcdCpuMaxLogicalProcessorNumber) > 255)) > + { > + X2Apic =3D TRUE; Gerd, I agree with your needs that want X2 APIC even the actual processor number = in BIOS phase <=3D 255. Question: Is it possible that BIOS stays at XAPIC, and later OS switches to= X2 APIC when the maximum CPU count > 255? I am thinking about adding a new PCD to tell MP code switch to x2 apic in t= he first time AP wakes up. Possible timeline for the code change is about within 1 month. Do you think it can meet your needs? Thanks, Ray