From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web11.7499.1684931673111544978 for ; Wed, 24 May 2023 05:34:33 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=Nse8ECTf; spf=pass (domain: intel.com, ip: 192.55.52.115, 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=1684931673; x=1716467673; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Yqit4mj+2r56dKJx4E70yk93U80Wd9MpwGYC57+wWqg=; b=Nse8ECTfqtMVsTvZkfmIrUWboIVwRDw2f5grmCXI6cOVc3DRWQqK5Zr8 ohVo1dlJ5GvIyVOzhOnFaKbT+rl4WT30srf3K54IoeiruCYeg1qDF6wDC LSmFBanx7Gn0x2ZNrVatUcSHgcukjnFWYXc1kVV++bK8dA7rzcPGDqHlC inR5RGn7ARlrw5GT0xtMdbEYxVqWfzGgUqbBJNBdyVvpAy9+FT/cMd1xf SnuiXyxoXA/vW/FIAnLXzsLSWxgzudmGdzbB3K1OnKZDYU4rWXMN8k024 JYfndcrlACrjZPrAQCZ9pz0yWLJf4XynmmxzFMU2i9N+HkPm6VBVFKGEz Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10720"; a="353571889" X-IronPort-AV: E=Sophos;i="6.00,189,1681196400"; d="scan'208";a="353571889" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2023 05:32:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10720"; a="737286048" X-IronPort-AV: E=Sophos;i="6.00,189,1681196400"; d="scan'208";a="737286048" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga001.jf.intel.com with ESMTP; 24 May 2023 05:32:28 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) 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.23; Wed, 24 May 2023 05:32:27 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) 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 via Frontend Transport; Wed, 24 May 2023 05:32:27 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.109) 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, 24 May 2023 05:32:27 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ckRM9mCbefJ2pPnNL++t3vVRJ3/+zP8est476NYasN89zrygBYOUqFSDK75eJPtiIN9P1X7g1gw9HqNteU8ZugPk68v/wAIebUSEB+fQZymlO4liiNzvKRWhdtAJcgPJJOgJAAjIKK11th9PTLdo6SIJ1hILAM4/oS4+twSLby+X09qMj4XYR8K038tC2KWJN4yAogH9HKZ7vnm9OodvVcdv6LY7jxv8mAYcadygL92nFohBbRlbw6+EOki3ZeAMKzrR/5WUhv6/geR50gEvD+pwLpUZYVJjwocXEG1KRqSBmqzy4Pci6ybgXfyFRpWQpZSPjULjvXspABeWo0O9ow== 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=kT3J9giAOnYXViguGhgYjm6eYusVoHKyESC4qdM8l9o=; b=Xfuk94NKLG0e4CqU8lAe3HkDO1fXrCXqlI0Qx+Mi8K8hqS61fwTUHPTtg7fpFiNU0Fvud4hC+4qO/01AKE3ZYg61PUFwz3hYH3nPwLTBoLjXjKYNtOlctQtxBUYpDnJcV5l1ecQ6MvR9PXFQzlQL6r+g9OYThm+P/5+9OWKGVhy3tlK6WOHhBtjtvkpfYdyB8tagrgjq/tq7NBEZF1GkPBpTRVACqLQ8TbAJS9hyJsS4uBYVTpefP/OjgwNuNxNFvTBFJIngvMq+ApT1v6XtciQ/IVCQE9S9gJQQKAXEHDRd1VPn8wFGQ3LcCx3ahmcHzgDAFEb3dDGGe0J8Nb0BBw== 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 CH3PR11MB7321.namprd11.prod.outlook.com (2603:10b6:610:150::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.15; Wed, 24 May 2023 12:32:24 +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.6411.028; Wed, 24 May 2023 12:32:24 +0000 From: "Ni, Ray" To: "kraxel@redhat.com" CC: "devel@edk2.groups.io" , 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: AQHZUO9J2NWxJ7VKpkimWiO1203cE68DhjgggET4bICAIVbFAA== Date: Wed, 24 May 2023 12:32:24 +0000 Message-ID: References: <20230307122037.3100651-1-kraxel@redhat.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_|CH3PR11MB7321:EE_ x-ms-office365-filtering-correlation-id: 3c3dd397-2b48-43d7-93be-08db5c52ed59 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Q11UDR3nnv3doNgX8HgwGwAduO249ciKw4iHStlsW2C1vCuFFZZanC/rMHFDfkngu8FkorZ6foS3hV132BBcIvR/muDAxz2cvITejDvMdmXeozF7h5tMYiSAmpPysTbc3dkOwknQvknze3g2iP9vN4K7qvlrUTVKvA4/dwvWpfq2+IpOBMy7x1tzAM8JZtKX3zuFon8pDGMBG2nXvuYXXcDp9VL8S0YXNDPsjySN4SsqHPXMzAqvFBwstbP470jJZJiXhI83Bvx+MpqsdiAeC/TcUnFJEHanCmxotfH3tLUM3vEuo18PZj1Nchg9its/4wF7yuOsU48NMDd6wpVdZ8f1nazUs/5MTejDfndeh2A93mtA9oLwhxS+6A/8zJ2Esi6vx6axk3Hhu1cuLp82eJkA3c+9ee1IR8IWChzV/NcDxCQOaj64NG4kWPJwwaZh2Slb0ocifgexNRD26Wqln+G8nobxZGjgh9GPkjY45ssMvsbKr/TOJsBN3Ym33ZbPsDiAM27ZJ8c/IqyvzzTudhZvAPjSaqlU6EDf6fx1eAw0uCcJMdXkVw8e2gj/6RFENuKkAicj8DyD6MdyCiYcOoZdsoGprheD9NIla5GAImgCwuW+8l52P2DPBfKRIL4k 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)(6029001)(136003)(39860400002)(376002)(366004)(346002)(396003)(451199021)(2906002)(186003)(107886003)(55016003)(8936002)(8676002)(9686003)(52536014)(5660300002)(6506007)(26005)(53546011)(478600001)(76116006)(66946007)(66446008)(66556008)(66476007)(64756008)(6916009)(4326008)(86362001)(54906003)(38070700005)(38100700002)(82960400001)(122000001)(41300700001)(83380400001)(7696005)(71200400001)(316002)(33656002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?W+XZ5hZaaZim/Lv4QPxhXYrGGut8QNv+kPQq32nC342gozXAJ4waaP4DiE3n?= =?us-ascii?Q?kbcs0MmuGfN7q2mg3uEH5ypf03GtP6T7r7o8eLM9XO/yEX8ava3Bvs+oMwQB?= =?us-ascii?Q?DkMkQlRM/ZE/ajjWDMqFOU4kJkhETGB85x4kUal5tuw3v0DJEqs5f2unVfir?= =?us-ascii?Q?Rzo9rUZeu95S+LWSfjoytSysZc4IHTriuYnMPdb5AK0fjN/JSl1cXQ19UIEm?= =?us-ascii?Q?Z+ulxuGT1EF9jQ56Dh0QDu0Hes1w5zYFtqKgS1XTAtnERDF4oIj878y0sIcc?= =?us-ascii?Q?Ow9J8MVDGHGDvkaUGsBwoV6DynVL5+46SvADg/FcNE7bALddZmVVAbhIVSIU?= =?us-ascii?Q?EUVXoMhMDzHi4Nk4GLt9IHM93CAmaGKMWl47M/n1KrTwHIYkwHKA7ZwQ0sqz?= =?us-ascii?Q?PuQm86nPwelQybSJG25UZEEhO+gKH2B6r4pKRR/5xdh9aO8kK0k1Aciv9kHw?= =?us-ascii?Q?PO0cN4WjG0UJYUSXaKTr33SeYLs/U0aCePUTH2sLi/saNWEsdLF9OlWTcmpu?= =?us-ascii?Q?U3frGlk4ylqiOrUgjy9tNh+7pbUbrU0mYDOmNVC4gf63OYPXGMgR5yGRqlU0?= =?us-ascii?Q?XLIwx/Qfa4ZN31ESFC47BIUMC1zaeUfAHNOWwT/tbH3BrTzfwJ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P3nRH4naWblqaWfq8DZx6ayez7p2nc4ET6IJ6y7iIl9?= =?us-ascii?Q?eG1ORi2+yuAO/a2rnRg=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: 3c3dd397-2b48-43d7-93be-08db5c52ed59 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 May 2023 12:32:24.2184 (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: zaFhOmI5yKOV1HB2skNMixyic5YcGfi2l9g/s7+ji/5tNNSvU57bIdrnWjPZUom2zM805phlQgsq72Pah10Y+Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB7321 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 Gerd, I was busy on something else. The patch was ready and I am testing it befor= e sending them out. Thanks, Ray > -----Original Message----- > From: kraxel@redhat.com > Sent: Wednesday, May 3, 2023 3:24 PM > To: Ni, Ray > Cc: devel@edk2.groups.io; Pawel Polawski ; Kumar, > Rahul R ; Oliver Steffen ; > Dong, Eric > Subject: Re: [edk2-devel] [PATCH 1/1] UefiCpuPkg/MpInitLib: fix apic mode > for cpu hotplug >=20 > On Tue, Mar 21, 2023 at 07:28:44AM +0000, Ni, Ray wrote: > > > + } 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 num= ber > in BIOS phase <=3D 255. > > > > Question: Is it possible that BIOS stays at XAPIC, and later OS switche= s 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 the > first time AP wakes up. Possible timeline for the code change is > > about within 1 month. Do you think it can meet your needs? >=20 > Ping. What is the status here? I'd like to see that fixed for OVMF > for the next stable release, and freeze is coming closer ... >=20 > take care, > Gerd