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.7282.1675310094167702929 for ; Wed, 01 Feb 2023 19:54:54 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=IJpHi7qI; 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=1675310094; x=1706846094; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=XaBNs3nd8lgmjoPuYjJIGrq8RyyrsB1Rp5Ctjn+gS9g=; b=IJpHi7qIV5jfrrMyj5y5BWgXbNFOe1oqp8L7m0FNtDKaBDEq6AKoBWiN 2cVBaDQezXbXSpoKfISjT5a/mAid411BoueExp/S++mhbGuX8pP1neo6L 7fQxSM6Lgc6YbNbk4xbHbgp0idwW0pcOIM+7E5NT6L2xllImpJTqKjD9j Aly8bQulvsRSGDfF8XZMmR9TJsSx59aTzEYCh/L5W3nwCkx4ApjnF4GLa BcpVwrcT08YqTQpBuqsiPWmTTzBN2SYVxL1tAS6H5Jt4MVvXvKgoXfBDN 6dEglIiopBoIw9r0XnQbanyJiLEHX5liL4TQ0YzQOCcOfF1/CFt6K2inE g==; X-IronPort-AV: E=McAfee;i="6500,9779,10608"; a="390733782" X-IronPort-AV: E=Sophos;i="5.97,266,1669104000"; d="scan'208";a="390733782" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2023 19:54:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10608"; a="753928948" X-IronPort-AV: E=Sophos;i="5.97,266,1669104000"; d="scan'208";a="753928948" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by FMSMGA003.fm.intel.com with ESMTP; 01 Feb 2023 19:54:53 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) 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.16; Wed, 1 Feb 2023 19:54:52 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) 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.16; Wed, 1 Feb 2023 19:54:52 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Wed, 1 Feb 2023 19:54:52 -0800 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.49) 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.16; Wed, 1 Feb 2023 19:54:51 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SPu0wolEgfEHojmd4FD7CvVynjyEEtLBmzf71xHNWQPchpuy+UGM9VwVov/GljOWRcpq/IKjJDSw0VbC1sDSjQT5XDFs36xYejedG7Q1Z8oJzPvOXKGrHtKq4v/YWLB5VKHX50dIsi0XHXrKoO3WmRcr95bcNb60/wiFR3eRqahlMLeKqNPFSQyQWGhZAShk++RiRaZUozSJI1/QRdKtIctJNDpPkd7WRGuafohh9NXhk3NkJ8LT5Z3bW2JDVjhsffoFmkoS+FABNWkSfJaj5r2QZMwTNoNhHU3X5/4yCCuki3jbX6Zr/thSM70fHAstTjUVIgP2JAwkQmscY9O3mg== 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=LyYTL/RDqN+up+/uGcehTk1NZW24lEdMufiE7JWY8M4=; b=QIN/edjUdkwWkR4z+1eJoOTNHpsBdR+yz4DO5euOdvaC9toZOR41W8Wz6Syd0IlZ0jFp2j5K1ZWcjKbCl12QKNKacJSUOTDbaWWcV4VZwwlAy1B0zOyDo2SEJah/RihiSWecelttCWaKqwTcLhUZ5oAC7kIDRtDTT8VEXdgf+ZzJY5eOqzO6OnXbidU2GaGuY57TyCAeUHEdBlokby07Bc1N1AmgNnb2QWyb6YrT3jYIBjNliQqQRLKSUrBAjV6KVWIF/YNnbqmo8jPqjS7pJLCVrXo8Wdu9pyRmekLzPlG0Xzw+KOerTfCxRJvBIs5sIkGjvzIqQ5Y+EcUWtEFHHw== 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 DM4PR11MB8226.namprd11.prod.outlook.com (2603:10b6:8:182::12) by DS7PR11MB7691.namprd11.prod.outlook.com (2603:10b6:8:e4::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.22; Thu, 2 Feb 2023 03:54:44 +0000 Received: from DM4PR11MB8226.namprd11.prod.outlook.com ([fe80::91b2:e382:77ac:a564]) by DM4PR11MB8226.namprd11.prod.outlook.com ([fe80::91b2:e382:77ac:a564%3]) with mapi id 15.20.6043.038; Thu, 2 Feb 2023 03:54:44 +0000 From: "Ni, Ray" To: "devel@edk2.groups.io" , "kraxel@redhat.com" , "Wu, Jiaxin" CC: Laszlo Ersek , "Dong, Eric" , "Zeng, Star" , "Kumar, Rahul R" , "Kinney, Michael D" , "Zimmer, Vincent" Subject: Re: [edk2-devel] [PATCH v3 1/5] UefiCpuPkg/SmmBaseHob.h: Add SMM Base HOB Data Thread-Topic: [edk2-devel] [PATCH v3 1/5] UefiCpuPkg/SmmBaseHob.h: Add SMM Base HOB Data Thread-Index: AQHZKyMs7t74sVIYH0SPAgkW85kk6a6kBxyAgAA3bfCAAruMAIAN85KAgAU6ZgCAAPWJwA== Date: Thu, 2 Feb 2023 03:54:43 +0000 Message-ID: References: <20230118095620.9860-1-jiaxin.wu@intel.com> <20230118095620.9860-2-jiaxin.wu@intel.com> <20230118111913.xgjlxdhngzwhvf76@sirius.home.kraxel.org> <8142cc40-ca21-2748-a3de-d0432ccbdc07@redhat.com> <20230201131450.qygfyr4t3uidj7z6@sirius.home.kraxel.org> In-Reply-To: <20230201131450.qygfyr4t3uidj7z6@sirius.home.kraxel.org> 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: DM4PR11MB8226:EE_|DS7PR11MB7691:EE_ x-ms-office365-filtering-correlation-id: 73ca7da7-fe37-4e4b-42f4-08db04d1381b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hD3CPj1DARpkR2QQaSItIaeEujvZqGx9Ke9bHmZhVspMiW8p8DM7Nv38amVtO5D1LQQyfwqeDZ4PmsrF/c2hdxturMrTd87bBozlzIvZ8Bc8rUe7Al1B5m5ScHcpESubYwrBq1xgvWvMwCLqikSVxm+XQ0kvQBRQTwRMC0hlO7l5qJEEyvuUpoHQyVmtVexoyi3SLefc6X6Z8bq5Tao/Pk8luUGsAtuqHYRD2em7slCn1e7kA5Ph1a1UUcGrhpeod0dgPtb73S1nu54DaQ/f32WRqoDwM+gIFnoTTqcNojVXAboimOhs34lA2VcOAo9zOcA9975zw/HlMdmDRMVxDxkLBdVODSfRt/Gv0O9Bme2hddx2qO7FySvgd61bjoqhl6PAp3aZA+xX0CmIIjRnku29JSe8aN+lkMDjAM+Ohl2Ol5UXYMLecUwLHeWFcfXHLA9cibn3dJXjhI3u0UU9FgombpeT39HecpHGBsPqbUfz0X1oX1iw1rjebEpB1w7PmKYOUQzXXsZ9xtRNWDO/RmRGcQoPOpgXr5m5j8pxpdzx4wm54lZXNhbXnlpteiz44ubLw7jCeatiWPgkpoTQ7JsAVbcCuC8N2X9D2W8hmGT4Ko7Vdv88ZCE0zgXdnHPshwZV3xXteQ3SUaWmzzphHnl3afWybBu3EygrwFsy3Vg4v8kpmRMg5siIObIOY/W8JZdrFotzIn6LueaiysV9fg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR11MB8226.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(136003)(346002)(396003)(39860400002)(366004)(376002)(451199018)(2906002)(33656002)(5660300002)(55016003)(86362001)(52536014)(82960400001)(76116006)(38100700002)(4326008)(66476007)(122000001)(8676002)(8936002)(66556008)(64756008)(66446008)(66946007)(83380400001)(107886003)(110136005)(316002)(6636002)(38070700005)(54906003)(53546011)(186003)(7696005)(6506007)(41300700001)(9686003)(71200400001)(26005)(478600001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?mbzFCxK0RZmKDYGdVwUc+C51w/DTnL0YExngsKe87IwY0nifUWcsP8znnu54?= =?us-ascii?Q?Z5eFNtp+tHnk94Ac/bP5y6InjRHxLmRqeQ/JWHfL9dPiG/GLrrErtUn1cfcq?= =?us-ascii?Q?hOibD3d9qBk0+ORmfGOxyeCe8JJ+aqw+PD9uPOm2qIHrVrSYtl+Qtxed66xh?= =?us-ascii?Q?/1lzSE0PE5BuH9PyrxT6/R9G3aETU+jUQgrFZJRVH2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sf0SiRYeGYy++hUi/pD7/KPCjCxRT6pYatjgl5Jnab?= =?us-ascii?Q?b1VWC1rgB4ZyXqrQfOEghA/xfSptTjqRLVqe2yVgvrwtYXv9adoYf3K5H/s5?= =?us-ascii?Q?ResW6zj9/RI9djATt/SzrwsTs+ivfM69CsGrKAe20poY6I8q21Abn7iIbRdj?= =?us-ascii?Q?sRjv5+TwaHegUydLR6Rhu1CT3m8wLBJxOax/l/XQLZcumMMnUaU0sVZUZ0S9?= =?us-ascii?Q?5TK5rV/f9ozbiggp7cv/t9p1eEgTCZl9iHphnLgiEHEtQJIVbK2RIFGCzeYx?= =?us-ascii?Q?OEjjt+CDK5SDahFq5YRSubWW4iSNXNaXXs4pSxL6ZwQh8GOS68SkfRCXDSms?= =?us-ascii?Q?xdnGhlnlwcJLYFfxHsCdvkTTr7mnDK7sEOXPLUZdr1l9LJdiCB+SE8J5jeQj?= =?us-ascii?Q?izpcQL6wBBUMf3YN0o3bl/uV0wggzsZw0bEvp0zfq7fpuwobikuzwj0otSH+?= =?us-ascii?Q?rdsmq3ty4Om8WzY+SlM=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB8226.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 73ca7da7-fe37-4e4b-42f4-08db04d1381b X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Feb 2023 03:54:43.8574 (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: mfYvFs79w2yQXwdv6ZeDTZ8o2hYhjZDJPmni4rgJea55GgCo5zUB3Ruzb8J4J9xiIoe5HXsvSiSONBiF7fIU+g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR11MB7691 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 > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Gerd > Hoffmann > Sent: Wednesday, February 1, 2023 9:15 PM > To: Wu, Jiaxin > Cc: Laszlo Ersek ; Ni, Ray ; > devel@edk2.groups.io; Dong, Eric ; Zeng, Star > ; Kumar, Rahul R ; Kinney, > Michael D ; Zimmer, Vincent > > Subject: Re: [edk2-devel] [PATCH v3 1/5] UefiCpuPkg/SmmBaseHob.h: Add > SMM Base HOB Data >=20 > On Sun, Jan 29, 2023 at 05:24:31AM +0000, Wu, Jiaxin wrote: > > Thanks Gerd raise this open -- how to support more processors due to ho= b > size limitation. > > > > Looks multiple hobs is the only way since we have to store each cpu's > > info? Sorry, allow me ask a stupid question: why DataLength in hob > > defined as UINT16 causing the hob size limitation? Any design > > background here? >=20 > Probably just nobody expected that big hobs being ever needed when this > was designed looooong ago. >=20 > But as laszlo outlined: There is the option to use a page allocation > for the array and store a pointer to the array in the HOB. Which is > probably the simplest approach given you have a single, linear array > then. Gerd, I replied in another thread to Laszlo's page allocation proposal to explain why page allocation is not preferred (considering the standalone MM).