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.13004.1678683215744714069 for ; Sun, 12 Mar 2023 21:53:35 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=AHEkpILk; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: xiaoqiang.zhang@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678683215; x=1710219215; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=D0u1UwK/lmrmwBgdeYEXTuyzO2VIp6X0/bG/QRNSmjU=; b=AHEkpILkkovjBhMNhtfAga/lfnPvpMX1tPnDczxnYjHHPLu0AXfhGjz2 DBs/IlJm3EvLkSOiGoteGAJ5YH2wB3Hb9kb+ROc+JokO6MyG0TyN6ciaK U53s08VSTM2lC0wmyPdfztGOlZ7IWlOEKhLxvqSvM0tg/nH842GG6zfml /B+zT1pDFb67GnF7wi2u/t9Ota6Yw7de2sn9Ah37e9XZ2EhEm6zPHdJiC OtoqnLoEJKjeVE/OMh2b3InIlp4MdW0IHmI0NVCwcCrD5oIPWXDhG/CvF iXUF3uOew8OXQGOoEZiPpMFImpCrnu20BnanEWsKZKiS0amLescvQ/0nj g==; X-IronPort-AV: E=McAfee;i="6500,9779,10647"; a="337081277" X-IronPort-AV: E=Sophos;i="5.98,254,1673942400"; d="scan'208";a="337081277" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2023 21:53:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10647"; a="821803528" X-IronPort-AV: E=Sophos;i="5.98,254,1673942400"; d="scan'208";a="821803528" Received: from xzhang-desk.ccr.corp.intel.com ([10.240.80.51]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2023 21:53:33 -0700 From: Xiaoqiang Zhang To: devel@edk2.groups.io Cc: Xiaoqiang Zhang , Guo Dong , Ray Ni , James Lu Subject: [PATCH v2] UefiPayloadPkg: Correct MAX_LOGICAL_PROCESSORS value Date: Mon, 13 Mar 2023 12:53:26 +0800 Message-Id: <20230313045326.1573-1-xiaoqiang.zhang@intel.com> X-Mailer: git-send-email 2.39.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4367 Issue: For Server platforms, when FSP does not output mCpuInitMpLibHobGuid HOB, the 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 exception in DXE phase. Root cause: MAX_LOGICAL_PROCESSORS MARCO value in UefiPayloadPkg.dsc is 256, when the actual processor thread number is above 256, will encounter data overflow exception. 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/UefiPayloadPkg.dsc index 35e3bfff35..bca5d3f335 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.dsc +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc @@ -59,7 +59,7 @@ # # CPU options # - DEFINE MAX_LOGICAL_PROCESSORS = 256 + DEFINE MAX_LOGICAL_PROCESSORS = 1024 # # PCI options -- 2.39.1.windows.1