From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web11.11601.1688541757439050911 for ; Wed, 05 Jul 2023 00:22:37 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=kgcPYzoD; spf=pass (domain: intel.com, ip: 134.134.136.31, 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=1688541757; x=1720077757; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=p5DIdSsT8BNv6BrOf6IxGvVLB5bXOFcum/rIe/4NSg0=; b=kgcPYzoDfRBrEDg1V2WeTGN3bpr3n+GWtS9y/GMSsrO5aP+tgktVUsnl PTPGYizPNHjSwQaYNohxoPyv+A5gJP1CHrEM1/+F/1Uvs+UQGPyd76yUF s8+4nQtHe23rQ9bVa6nUgzSChoe2CQmYy2IC6lWCXC8lAeygfQWCVxUUb BuH5mmuLyRgXKCW/UMi3rhTVfU4CNm3HfWGyxIXDk7gqJtOWshTtiDUVV gnCQM1Q3mHiHDeeFOvNGLa8ifrgM7qIJNdo5ydUmqNmFCbBjAnX3OiP+o tqD22iTMxn3te//zvNxCJ6IkPP6Yuz6HxOn+p6yXu+wD1u1Cx1BCqvNOg w==; X-IronPort-AV: E=McAfee;i="6600,9927,10761"; a="426953874" X-IronPort-AV: E=Sophos;i="6.01,182,1684825200"; d="scan'208";a="426953874" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2023 00:22:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10761"; a="832416989" X-IronPort-AV: E=Sophos;i="6.01,182,1684825200"; d="scan'208";a="832416989" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga002.fm.intel.com with ESMTP; 05 Jul 2023 00:22:36 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) 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.27; Wed, 5 Jul 2023 00:22:35 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27 via Frontend Transport; Wed, 5 Jul 2023 00:22:35 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.102) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.27; Wed, 5 Jul 2023 00:22:35 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mIW8LK6pRcgPpBA7252J3R1t2ug93SXbSGFPNym/z+DBJOwxjMHuGVJ27+OYE+6qyKGEdAuP78fHubwhmiEV2JgLnenY6zTmXkYEgf0vYN/WTtZKn1VEDfIlZsJvfl46zlAaK2oG0as7Ug8Br0+YcxVR5SSOuyG/EWVTa8khKw1qL4oER7YSqEcyHghW64Re7X0hqulaXE2be3V6HpRiHmCus3uH8yViZOIYvXy5FqVhLyXrhmay8TbIYoQ7sLbAAv2Oh8UqwQyG639l66uceW4URfXYG/oFS84euYz07JQVG6Lyu92XcgDU7sn/0NqcJ47sSz9dTiCGTQN58qFePg== 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=hMdvrmUgRK46aqXpDId+sTsRPDIBO59CSg8LOWlgg0Q=; b=Fc6wkrT5GcWt663i4AZ7O9yyBYcq3ZCauTWSsaqHemYOhuXeXzX8/aAEtp/PMZCaD3B6gK2fyMvgWYphRnoVPcY1MYwvwqJk0QrLzSPryYCCqfbqrBGPRwExO9KxmZ2N1/rM+m49YOROR0PG2dAj0QMHKjvlHNVAWD6cOKAPtsLyhxRqc1DySWtJr+qRUWwRtYFCgsuT/yX5q4VNw6aJf0L8hECIBsZjBGiXurg0Ojhg8W9zakDLK/E9gI4GxoEAafWz0qd/4HGzTO99SHGzYxL2pnqTOZqivPD8PloWtpuwhwfj0palAJiSotI4YnkgzEYs+ROUg2jABOZsCCQ/8Q== 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 PH8PR11MB7141.namprd11.prod.outlook.com (2603:10b6:510:22f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Wed, 5 Jul 2023 07:22:28 +0000 Received: from MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::5542:6ddb:ea31:33df]) by MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::5542:6ddb:ea31:33df%4]) with mapi id 15.20.6544.024; Wed, 5 Jul 2023 07:22:06 +0000 From: "Ni, Ray" To: "kraxel@redhat.com" CC: "devel@edk2.groups.io" , "Ni, Ray" , "Xie, Yuanhao" Subject: Re: [edk2-devel] [Patch V4 0/5] Eliminate the second INIT-SIPI-SIPI sequence Thread-Topic: [edk2-devel] [Patch V4 0/5] Eliminate the second INIT-SIPI-SIPI sequence Thread-Index: AQHZqZ11D8H3ADpkrUWe0zj66pm4bq+qgw5wgABMMZA= Date: Wed, 5 Jul 2023 07:22:06 +0000 Message-ID: References: <20230628084724.57574-1-yuanhao.xie@intel.com> <176ED8D3FC1743E3.25260@groups.io> In-Reply-To: <176ED8D3FC1743E3.25260@groups.io> 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_|PH8PR11MB7141:EE_ x-ms-office365-filtering-correlation-id: d50572c9-59c6-432a-7754-08db7d2889b5 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: yQLLH35797mN31en5oq28qendwqg+GkR4+gNHPcdKsXoHqWwXc3ZMrknvotLI2yPY8aw80UBYNbDYGFvnMnxhdSL0S/A0DAMZO1gph6HSz/FqM5T42/lCFfReWyOAnbO8V9X5sD0EKHJ/NX39NF/DQ/QIq6RoB1nNKT/jRAd4KbpDf95f9NfiuNYxdeNHML9g7C6m6GPvREOS+IGBGR4mSPGPVFMeci47dJvG08omX1f60lfApEvXAa0Buvvpr5WZsWgDdq64M5Zlwy2Rm5+1P/sO9Q8zSyPV+g3i6GRXrukbeoBWhdSVO+tiLmAXcJPXgHEim3Bbmf8DiH6egD60PwZ4UIEOL4njqsf+4pRar6Bd1zjqoNul/0gpo7fzewJ40AtTGmIpwdX5Ldf4uLhevb6eK3quDRIwKPsGjyolwBmN1SzQUvY9/GfcCCNGMe5H3NIWPWentZTnYmTZhcg9j5fIGwY8lSfwOHN/ZKxiMedFKQjmfdaqzy4QH4zY5S+2xzclQ/s0PyAR61YlWSm5xsz4QHisMOkfvow/zNH+aGmEkO7dSQ4X4AejRcSG7UicTkURFCXuj6HY1JZbJjMdBYU4xVXWmAHptE3FTgESR4hNWuiiQmh6UTDpBUKibDN3dAloKKnkrre8UHGisfuzw== 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)(346002)(39860400002)(366004)(396003)(136003)(376002)(451199021)(41300700001)(86362001)(38100700002)(107886003)(83380400001)(122000001)(71200400001)(82960400001)(53546011)(6506007)(9686003)(966005)(55016003)(7696005)(54906003)(38070700005)(19627235002)(478600001)(316002)(66476007)(76116006)(4326008)(66446008)(66556008)(66946007)(6916009)(64756008)(33656002)(8676002)(8936002)(186003)(52536014)(2906002)(5660300002)(66899021);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?JRNCtTSExijAlhFx0mkM56KREJ2R3uKDGdxNcLnXA8ucOa0LYvhIYB4DrrKS?= =?us-ascii?Q?7teqAXbO+eayzVZJ4kmlkEE8V3cXOGvUOSMvUn/BRO79F8e0YEAHd6xOCEJf?= =?us-ascii?Q?tH5GTIfqC663DNBoZO5kvnvZ9XW4F//7Jd3AX6XH6sUjgJumyoMvBhGEjBr5?= =?us-ascii?Q?rz/4B+9DBvti5EAOwN4sVRyRVqSnFlk0esr6QpQYlpIVGs2eIuqh7u49gIId?= =?us-ascii?Q?YX+iL5eO3jjZ1nt9xZGwMmCs+68XkW6WVGvviGYszbxRQMNICZa1ABK4gmOT?= =?us-ascii?Q?NbuPG3yRqIjyjXufsy77w2eeR81Sd/79PvVhd/WLlk+qO1IsrdwuChPx/Z7r?= =?us-ascii?Q?2XVbbOwdQxu+fj+abaK24dASFBeFG/5jzrQdJsmyh1OdDqtWT1snL9J+T13X?= =?us-ascii?Q?K44x4zttiw8ajNbearqlrDYWf5lFMF7LNhv6atvjzVT69annwr32VVam+JPG?= =?us-ascii?Q?PUAkkJH7kizaVsWeOVx8EkwazpalU/I5nvagNsxjs9jTZblmUYpyMnhQWzyZ?= =?us-ascii?Q?BJbnYZbjQ4Jh8en7J/VYok3dTFAM5trXalG+/vMxSTWTlCFS05QvHqWKZxNx?= =?us-ascii?Q?Q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vz74ErPXnZ1FTcV9ujO9EPQHFhpg?= =?us-ascii?Q?6zqYgKAATRt6EmER/aFPSIAuQ3cEHJ/8JWKyBdnFasdM6DNIBHlGc+SISg?= =?us-ascii?Q?=3D=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: d50572c9-59c6-432a-7754-08db7d2889b5 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jul 2023 07:22:06.5416 (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: /ZEL7IMCUHbM8foRE/GRuPrvTz5sWUgOggsH3lWR1u86zFABOZgPXv/FYwxGiXsnva35ffZ6N7er57QdxOzEIw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR11MB7141 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 Gard, any comments? > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Ni, Ray > Sent: Wednesday, July 5, 2023 10:49 AM > To: devel@edk2.groups.io; Xie, Yuanhao > Subject: Re: [edk2-devel] [Patch V4 0/5] Eliminate the second INIT-SIPI-S= IPI > sequence >=20 > Reviewed-by: Ray Ni >=20 > > -----Original Message----- > > From: devel@edk2.groups.io On Behalf Of Yuanhao > Xie > > Sent: Wednesday, June 28, 2023 4:47 PM > > To: devel@edk2.groups.io > > Subject: [edk2-devel] [Patch V4 0/5] Eliminate the second INIT-SIPI-SIP= I > > sequence > > > > To speed up MP initialization, this set of patches replaces the > > time-consuming init-sipi-sipi process in the DXE phase. Instead, > > a start-up signal is used to wake up the APs and switch context > > from the PEI phase to the DXE phase. This optimization is > > effective when both PEI and DXE operate in the same bit mode. > > The current HOB characterized by mCpuInitMpLibHobGuid has > > two purposes: > > Acting as a global variable for the PEI phase. > > Transferring information from the PEI phase to the DXE phase. > > This series of patches creates a new HOB specifically designed > > to transfer only the minimal necessary information > > (MpHandoff structure) from the PEI phase to the DXE phase. > > > > YuanhaoXie (5): > > UefiCpuPkg: Refactor the logic for placing APs in HltLoop. > > UefiCpuPkg: Refactor the logic for placing APs in Mwait/Runloop. > > UefiCpuPkg: Create MpHandOff. > > UefiCpuPkg: ApWakeupFunction directly use CpuMpData. > > UefiCpuPkg: Eliminate the second INIT-SIPI-SIPI sequence. > > > > UefiCpuPkg/Library/MpInitLib/AmdSev.c | 17 +++++++++++++++++ > > UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf | 1 + > > UefiCpuPkg/Library/MpInitLib/Ia32/MpFuncs.nasm | 4 ++-- > > UefiCpuPkg/Library/MpInitLib/MpHandOff.h | 47 > > +++++++++++++++++++++++++++++++++++++++++++++++ > > UefiCpuPkg/Library/MpInitLib/MpLib.c | 345 > > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > ++++++++++++++++++++---------------------------------------------------= -------------- > > UefiCpuPkg/Library/MpInitLib/MpLib.h | 28 > > ++++++++++++++++++++++++++++ > > UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf | 2 +- > > UefiCpuPkg/Library/MpInitLib/PeiMpLib.c | 32 > > +++++++++++++++++++++++++++++++- > > UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm | 3 +-- > > 9 files changed, 408 insertions(+), 71 deletions(-) > > create mode 100644 UefiCpuPkg/Library/MpInitLib/MpHandOff.h > > > > -- > > 2.36.1.windows.1 > > > > > > > > > > >=20 >=20 >=20 >=20 >=20