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.24379.1687744237863258000 for ; Sun, 25 Jun 2023 18:50:38 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=OQb5xgo5; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: yuanhao.xie@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687744237; x=1719280237; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=g9VE+DB2AW2o4wpnf+2DjgsCKGivMrJvKbrEK59Kvb8=; b=OQb5xgo5CDqsDmIDHq0DC3+ShzP+hJJczm+g9aAtHomr67A2Wl6brJtq ETQKEWQRXz5MXTdUNB/JXkqJuPz+YnSUudfaRFtMckoT23KOR2d5aDKPm ThCXzhTIwNvYapBhRIbQmTmKklVuARGG7IQoXE+eniMPToU7sJ0swe8Vz rHVTmj81GG3+OGLLDQgUGTACKI+Wzi7NeJpYZAGgryoK/8DqCNmhbhxSK T8fl+tX3Lsouygue3TWGjJ3gegYmcMcLFgT4Pa4hP48OobPvacuzRoeDn D7XEzi8WchVs1aT2tEDcxudy6EM5aUnKjBnrs3UBXmwqFriyhgn3kdUSW A==; X-IronPort-AV: E=McAfee;i="6600,9927,10752"; a="361184348" X-IronPort-AV: E=Sophos;i="6.01,158,1684825200"; d="scan'208";a="361184348" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2023 18:50:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10752"; a="840099818" X-IronPort-AV: E=Sophos;i="6.01,158,1684825200"; d="scan'208";a="840099818" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga004.jf.intel.com with ESMTP; 25 Jun 2023 18:50:36 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Sun, 25 Jun 2023 18:50:36 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) 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; Sun, 25 Jun 2023 18:50:36 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.177) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Sun, 25 Jun 2023 18:50:35 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jq5A8tJSgjq14qnqKkCRkgfRK+ADseAP57g4DJPb5Bwtg/Ge7sGebSOUjpWyfDJaWrc+hwSnVgREv66+6SXHGODGsj49m3vtmM4/y4N0p40lXLikRx9z3Xut2DicxubpH4P+EZa4g9RnaVo6fioT8CEgIBr3E8j3UW21kES6J6EPhM3sk2EjC90Q3tx/ofm6jT0CJlpGXj8eCAgo76EL1mTdJg2B32qyMbkDcYffqUw1e4KlUxqgwOgJVyNtuOdEWbD75UCpQJQHYgG/iIgclXoPh7sATgLs8J8dfNfZ+JfgZJwMQJr8Ou6bh2n49qvTUHIUPeAgCm7Nkxa0ne0PPw== 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=jjoyRgAgiUoO60prqGLBqVoDCfm058GiWyUkRyyPNSo=; b=OGViWDRt1rteU8bjv7LpDRfOgTVL/xC3pivzpKCskfclATpIQxm5/8IYa5nucGEJIN7B6K81OmAHjcp4/qYlDHGKWill3TMbLD3fl7K5JwLV/1Z27nJnP67FFWYvH2NxV6H2tkio+UECyZpEWhz79zM2HmblYggc3ypi3BKPU8olNOetOKSV8o0F6OGstyGBMaF1j6KldkAHgmtuluQzxoC2bdw+/pnY7/qe9eM2xiFsTVIf26j3WHuuaZX7qdnvHkW8WMpoV8DiHiA2GCH7oDw7PCBRNEKHLC9NbhucplyOqU/E4IdSRtoYzIjsunK2Ep4/9A+HbOAlA2iWh2j61Q== 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 CO1PR11MB5026.namprd11.prod.outlook.com (2603:10b6:303:9c::13) by IA1PR11MB6098.namprd11.prod.outlook.com (2603:10b6:208:3d6::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.26; Mon, 26 Jun 2023 01:50:34 +0000 Received: from CO1PR11MB5026.namprd11.prod.outlook.com ([fe80::95dc:1690:6fc8:790c]) by CO1PR11MB5026.namprd11.prod.outlook.com ([fe80::95dc:1690:6fc8:790c%7]) with mapi id 15.20.6521.023; Mon, 26 Jun 2023 01:50:33 +0000 From: "Yuanhao Xie" To: Gerd Hoffmann CC: "devel@edk2.groups.io" Subject: Re: [edk2-devel] [PATCH 1/5] UefiCpuPkg: Create MpHandOff to transfer info from PEI to DXE. Thread-Topic: [edk2-devel] [PATCH 1/5] UefiCpuPkg: Create MpHandOff to transfer info from PEI to DXE. Thread-Index: AQHZnTMg7mMYtGnPnk2I3Lx4ZKiEba+TxxGAgAielwA= Date: Mon, 26 Jun 2023 01:50:33 +0000 Message-ID: References: <20230612133720.15501-1-yuanhao.xie@intel.com> <20230612133720.15501-2-yuanhao.xie@intel.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: CO1PR11MB5026:EE_|IA1PR11MB6098:EE_ x-ms-office365-filtering-correlation-id: b44ad443-d11a-4139-7463-08db75e7bb0c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: GyHe5kx7p4yV8FKjw21eHh9XOZyTbm9yuSLlim9Idekd3Y3VWeWhw2lVHUAkrL1Z1m3wLnYqgJ2XfGodEbLptXYpgRXuG6WhcAsEPs+DKv28Dwvo6wau3Hw2w2+4o3zFhN2LSsUN3x23TqN34QKRNqCdg7KPLZj9mgIAlz53YzYHU1srPooLDrdrv6O0avq4Fns5/fq2XyoiLMltYn6oe6D6pQ1vyrE1Ygx0RuJIyh7rOJPAdlGWWgF6wbTtDCD6ZPqGRslLnDHWMgij5eYh+pXNfBwxmeeZEmtBopPG/OuXJPDwefTXe5y44zN4LRAY3XCsBCpEbkKD9yxVIwtE3/HcRvjtg/tglHqM1SMIsr5UwKOV4v4TzKsue6UN2HfJvzMjrIjtKjv6Xvyfta3oAhBXbI+dTHBiduAG35WdzL6LxezIE0zy3+H/p4JnM9ruXBdvSKu/PvQAD0yDQgpTbnDMtIG3LpFIlyOM71IkReYy++BWLKmD5PhADE8IPT+wn49bTh9N4wiU2Ae/lcNag4KYzJKMFFYcemydUSCrIq+Rh/JqqXwlxhdppnQqgZZSpxQUFVq+7nYR4M6/47uQH1UpSbAGYEbZnQee/GEIcdovA6yvwd26/AaOnjvjHVKE x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB5026.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(6029001)(366004)(376002)(346002)(136003)(396003)(39860400002)(451199021)(82960400001)(122000001)(38100700002)(38070700005)(83380400001)(33656002)(86362001)(478600001)(7696005)(71200400001)(41300700001)(55016003)(66476007)(66556008)(66946007)(316002)(8676002)(76116006)(8936002)(66446008)(64756008)(53546011)(26005)(6916009)(4326008)(6506007)(186003)(9686003)(2906002)(5660300002)(52536014);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?6Ku+mkqbwfGwTaU88uuqMaoOhC4wLIWGjhQf9BH6dwZUUCtXGh/A4rMXLv2t?= =?us-ascii?Q?+R6MR+LCEyt+3XEV6N/VsQk/lHEZB4Rr5Mxa5yHjUEo99XP0RZowfabZaa39?= =?us-ascii?Q?ZOCIVaMEmOyg3vzIcU6IyMJssjR90Oc3CPzVMGyPOXZx1BeF5sBMYgvhwn1L?= =?us-ascii?Q?b+vK+EkHwAr8lggT6a0Yu7i1YEZ2NgOOLqmZoXC+Owto3exxd12H4Z1c89Cm?= =?us-ascii?Q?eRNNBRtxZJnFKgsoUYntrPCxTeer7YGt/3CYnSZUnMULQ9YzuUcUftsUA8HF?= =?us-ascii?Q?7NNoGrFA6x3vgavcnBFtB4bXfeK7nepy8r6BJkud7/k7rQkHY82Q6/nKonUI?= =?us-ascii?Q?+s03iZ9Bi4q6YoQkRlYG4A9LfFdGmj8qxZIqCSjAyMvYfuJNuIUc0jNGJCQ0?= =?us-ascii?Q?4fpLNTFAT5i6uhhtwrBOD0vUHHK8TDNVnuzVJLK4NzisqxtkeU7yywanV1uO?= =?us-ascii?Q?Ethdq76gkyKCNhf4isff9+heRI1H/rfCiVcfQK5EFiyWRMrMSYLijwfdLd+H?= =?us-ascii?Q?vkla8xRA6PosBb3bU0L/kQ8jP1xCeqVsnwAgy9ZR2CfERq7eYwY0nx18ksXi?= =?us-ascii?Q?1uwJbje+lbKiovk9Rl0pwO4lRIywgGBYo7Kc5NYPj1Z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KI6XyBJayu4SNd/k2yoiSQKEU7g9W7z9d6M?= =?us-ascii?Q?nsR6TPtq1gV5opMlOg1A2RBiYupz9gKOAqgNTOnp?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB5026.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b44ad443-d11a-4139-7463-08db75e7bb0c X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jun 2023 01:50:33.8622 (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: a6pIF4g0oQ6EHchih0qCBqwxUx2zvOcdZU8MR8Hez/GEwWMeFqPSXyQuzbYXh2pLwNDKNawP04+PoIBcMIag+Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB6098 Return-Path: yuanhao.xie@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Gerd, I have updated is in V2. Please have a check. Thanks Yuanhao -----Original Message----- From: Gerd Hoffmann =20 Sent: Tuesday, June 20, 2023 10:09 PM To: devel@edk2.groups.io; Xie, Yuanhao Cc: Dong, Eric ; Ni, Ray ; Kumar, Ra= hul R ; Tom Lendacky Subject: Re: [edk2-devel] [PATCH 1/5] UefiCpuPkg: Create MpHandOff to trans= fer info from PEI to DXE. Hi, > +typedef struct { > + UINT32 ApicId; > + UINT32 Health; > + UINT64 StartupSignalAddress; > + UINT64 StartupProcedureAddress; > +} PROCESSOR_HAND_OFF; > + > +typedef struct { > + // > + // The ProcessorIndex indicates the range of processors. If it is=20 > +set to 0, it signifies > + // processors from 0 to CpuCount - 1. Multiple instances in the HOB=20 > +list describe > + // processors from ProcessorIndex to ProcessorIndex + CpuCount - 1. > + // > + UINT32 ProcessorIndex; > + UINT32 CpuCount; > + UINT32 WaitLoopExecutionMode; > + UINT32 StartupSignalValue; > + PROCESSOR_HAND_OFF Info[]; > +} MP_HAND_OFF; This works for ~2700 processors, with larger numbers you hit the hob size l= imit. Not a good idea IMHO, we already have systems that big. take care, Gerd