From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web10.3971.1678782822197582515 for ; Tue, 14 Mar 2023 01:33:42 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=PSIZmoWw; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: james.lu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678782822; x=1710318822; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=CnMtNAFvvGrRxLjQZ2d+JQgJfKfDiXbv3raeTAF7cMo=; b=PSIZmoWwpO2affLYQTUnizVgBPJh7ZPL3z5UNUupz+tMsDdalPFcuKim Ks5pyEiDJ2NT7iIlr1U2e1HyxbSIyEM4jliO3EpAWE1xR5B+u8tHsdwbx rwWD+cd8tRD0oEKwPZAgDlr9PjG67ijQWM7/aLA9Y8dL8WwseXAVuH2dz PsSueAlRinHBB3WfpHhPmFHyCqCsP07X69AIwzey2n74sGwSD30gOFXi+ jgunQeggUmQU585gGFHelQg/QAW79dOTUMulsacqWY3hebzA+zO12DOMr 9bfM+D4P9oA0FmSfgFlj0kA6tO5S3Tjm4aCozwBvFqulGNOL4mSD7wrCs A==; X-IronPort-AV: E=McAfee;i="6500,9779,10648"; a="338908045" X-IronPort-AV: E=Sophos;i="5.98,259,1673942400"; d="scan'208";a="338908045" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2023 01:33:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10648"; a="802761992" X-IronPort-AV: E=Sophos;i="5.98,259,1673942400"; d="scan'208";a="802761992" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga004.jf.intel.com with ESMTP; 14 Mar 2023 01:33:41 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) 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, 14 Mar 2023 01:33:40 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx603.amr.corp.intel.com (10.18.126.83) 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, 14 Mar 2023 01:33:40 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.100) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Tue, 14 Mar 2023 01:33:40 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aXf4SaUGnDw2vzL4slJnN/beK0DX1vo6tqCl/AVw1I03CNCQEeoZTpJ95vkrWHcLgiDcQA6QSGVRSPKa96zSjXWjzojxwFpSwWtVpHQDIH4w3L2QL05JRuT9sdC7qCy7rXQtHaocsMjJcxwKIs3IyfP/BzEEPAQnTm9UK6o1jgzyFvWWFvvtc5mf8tOrYU0XVvjx34l/ZB14puNy6WH6IMgNmILPWBNtxaOLA9PhcpirmkqlFUuNvRTvUPKRYdWF/D17jim+/iPmCMrDwaqyALeNFf7+ZXQt4lOrfFk+MOX8gtubEkNRoaQmCzH79jrZmq0WU0mtOMc66eYiy4yqVQ== 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=8rK48wsgkEkpH7cDkb4Zx2J77QkxVGFVFBZybhKxHxA=; b=IcMsqmvSnbSrLYQLtn1/A+neyV0ucqhh7iOXxkG67vGCN81cAobGZtKEDm1c+t/WO2KqgFnZvgDwynayrl/O5PCvF68WGowkopZelrfEV4ueWSRiKTwtBCZs4iAfTn7s5XvQvnvXe7hX8pQZCAG0CcGRpJnIvaY3fTNbk7+z+P3jeqXHxaISCKReujdrJjcT8bvzKa1cebuIlbXvaFVu7CDVI7ZJ5P4KWa9Xgj66LwMLroSqnQq5+wQ7u6Xsxiw2Z9yorEfQ/R8scY7pTwBxW9uKFmRYtVF+Uv8v4vX7Qzd4qRc2wb4SUveih3mcdqz7Uwq+MENyfNs5TgTM8mKviw== 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 BN6PR11MB1908.namprd11.prod.outlook.com (2603:10b6:404:103::13) by SA1PR11MB7087.namprd11.prod.outlook.com (2603:10b6:806:2b5::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.24; Tue, 14 Mar 2023 08:33:37 +0000 Received: from BN6PR11MB1908.namprd11.prod.outlook.com ([fe80::3bd9:7838:fca8:77d6]) by BN6PR11MB1908.namprd11.prod.outlook.com ([fe80::3bd9:7838:fca8:77d6%11]) with mapi id 15.20.6178.026; Tue, 14 Mar 2023 08:33:37 +0000 From: "Lu, James" To: "Zhang, Xiaoqiang" , "devel@edk2.groups.io" CC: "Dong, Guo" , "Ni, Ray" Subject: Re: [PATCH v2] UefiPayloadPkg: Correct MAX_LOGICAL_PROCESSORS value Thread-Topic: [PATCH v2] UefiPayloadPkg: Correct MAX_LOGICAL_PROCESSORS value Thread-Index: AQHZVWfKISDQrhZCUkOA22DTC03DAa7586NQ Date: Tue, 14 Mar 2023 08:33:36 +0000 Message-ID: References: <20230313045326.1573-1-xiaoqiang.zhang@intel.com> In-Reply-To: <20230313045326.1573-1-xiaoqiang.zhang@intel.com> Accept-Language: en-001, en-US, zh-TW 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: BN6PR11MB1908:EE_|SA1PR11MB7087:EE_ x-ms-office365-filtering-correlation-id: 9656dda7-284b-443d-f7e0-08db2466ce2d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: jGYCdvucZvCK+po7kwgdxnOYB/9NVJoiRyz6jgsgho5EvgR4Z7TnVO6/t9kkt25cggrSTevv/E1S+51gLXhqUoMny6/dzjRyGDwC5C86oKdtMLC9NEWveglU6eqxdeLlb50HuYo1W0Ofibis0ghu2Rvfzw2Zf+O8KyqBJWp99vGtItIm9n+j4JDKG0nsRxHXXGb+m42zLBhFCOw+tVrPPYu9oCGmJYgp7dfo4yJbyEuDCVyuXi5u6NlUYlOHWR7Jf1XIPOrfV57JMriMF8Z4Xl76Zf3aO20u7dqyoJ/HAEvksb0KXrjwQgGcnpi0obV6eOtbEII8n/eJYvjRcGQw8zFSlf454CCIYpOjOmPoI4VebFhL6GMmk9dexlcsPXtxZTx9fuG0zi0NA3zC0caYL9WaOejVRQX8OaTgAVciCEOXE59TZk28lLms9Ttkke2oq4wvW3B8Mfxw+pEbg/uQnITsf6wqBQeBuEROA8aRLrncFRYcJml+ydhi7H0JGxeCDXGiOXngfXKw2Px6K9gYTH4Vspl4YX6qhhx/nr++0Zak2sYlKrzhLe8W1ebPiI3lsps411TT5F32hjDM4+Fvzw/9q+qUwBSi904w1X9wFvp72y/4trmQl99kq06Z0I7+X4//9cD4MkPNqhXfywnyNee7xYhufBqWRKiUTLlAeKqFKPglN16IQBoySgyzEc34 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN6PR11MB1908.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(376002)(136003)(346002)(39860400002)(396003)(366004)(451199018)(9686003)(4326008)(5660300002)(8936002)(52536014)(186003)(26005)(41300700001)(53546011)(6506007)(86362001)(33656002)(2906002)(83380400001)(76116006)(66556008)(110136005)(64756008)(107886003)(66476007)(966005)(8676002)(66446008)(7696005)(66946007)(54906003)(55016003)(316002)(71200400001)(478600001)(38070700005)(38100700002)(122000001)(82960400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?EN5YWw8WE31QfmiMN3W4sw/WQij8Jjz3lJUy/AOxQfk4o4SJljwBpYYyIpVm?= =?us-ascii?Q?lJuCkW+CLzxIUAUepZDYsCEXFMbnn/Z7K8pUmDg0JtZ16yklgdz/vbUkzczt?= =?us-ascii?Q?n3eHaz/mE+OCX1xE83tdPYt0Bj/uyCrAyJDn06/vbLmz3U6Xnxfnvb9Yi2Ny?= =?us-ascii?Q?ykjv0SZ8tOl/xSORPbpv3AJyoFarq9S+YWvHMl5SeEhmV3QY/mrsrIxW7Y0e?= =?us-ascii?Q?hg0UaBQHRT0psaq7RtJPhMEuzRe7qi++aUwZC6ehZFb/2ninMgivn9/2ZUp4?= =?us-ascii?Q?ietxeH8RgQC0IZHil6csk2mjb+HkCggEB1sYmYm7cJ2no1EFhTVCjJmpuorf?= =?us-ascii?Q?rdPFi6dtxFcZCETNn+m2qqI2NqZjeMYGgH82qey6FH5UDQk8bw5/toM6k83C?= =?us-ascii?Q?Y2LftFMk978uvEUL2lnSInYcrPAX4rdWP8F5dpEYDQfAPiZZnUtgv1DPo383?= =?us-ascii?Q?BzLjIa+BR2Akd1f7uiq78CF6n+BYqEsvEHFcwF0AmilRpW68xSXeGWRgm+s6?= =?us-ascii?Q?4AVJ3HSE3KnLzWA7LYT0yZUWoSCyu2tTXmHiDmgf8XM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48jJ/b0dlThqfK5enPXS0YgE1TNqLDgcP3ISuYutlvXxA+G0VI5?= =?us-ascii?Q?zUUJvAqfjAazEBZazMMnGd57zpiYXIXCOAPIaM9s3aU9EZuKFBIp5ueXOyvy?= =?us-ascii?Q?RI5WE0GYRWd++pQuBI2H7Ju1XibYkVThmzLFQU5A?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN6PR11MB1908.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9656dda7-284b-443d-f7e0-08db2466ce2d X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Mar 2023 08:33:36.6815 (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: 5PQjL+EBpTSheCaKqCCWE39JJy1XLFfekbeYH6tbjin1aniQqDnwgObD9AS57WNKRMLUgD3tyQvt1N5rv2esCQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR11MB7087 Return-Path: james.lu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: James Lu Thanks, James -----Original Message----- From: Zhang, Xiaoqiang =20 Sent: Monday, March 13, 2023 12:53 PM To: devel@edk2.groups.io Cc: Zhang, Xiaoqiang ; Dong, Guo ; Ni, Ray ; Lu, James Subject: [PATCH v2] UefiPayloadPkg: Correct MAX_LOGICAL_PROCESSORS value REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4367 Issue: For Server platforms, when FSP does not output mCpuInitMpLibHobGuid HOB, th= e code will wakeup all APs and calculate the processor count in DXE phase. = But when processor thread number is above 256, will encounter Startup IPI e= xception in DXE phase. Root cause: MAX_LOGICAL_PROCESSORS MARCO value in UefiPayloadPkg.dsc is 256, when the a= ctual processor thread number is above 256, will encounter data overflow ex= ception. Solution: Align MAX_LOGICAL_PROCESSORS value with Server platform side value 1024. Signed-off-by: Xiaoqiang Zhang Cc: Guo Dong Cc: Ray Ni Cc: James Lu --- UefiPayloadPkg/UefiPayloadPkg.dsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayload= Pkg.dsc index 35e3bfff35..bca5d3f335 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.dsc +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc @@ -59,7 +59,7 @@ # # CPU options # - DEFINE MAX_LOGICAL_PROCESSORS =3D 256 + DEFINE MAX_LOGICAL_PROCESSORS =3D 1024 =20 # # PCI options -- 2.39.1.windows.1