From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web11.10983.1678673822597638982 for ; Sun, 12 Mar 2023 19:17:02 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=Zt36LuPA; spf=pass (domain: intel.com, ip: 192.55.52.88, 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=1678673822; x=1710209822; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=C0bgWzvAjh+6Ty5EsOZKCa6vkUZ+ObLcSUaZHl+0wbc=; b=Zt36LuPAZ2gvFWM/fVMwSUwfs+MknuP99vFUIoBLkE5OGlAzcxiZAqme Y/C5H99DDf1R0DmthApzJoJGXzbIoeXbujUzjD/T10kiTghsecK7Pbs+0 VMd7KWz0u1tEQoerNIDnzdY7HIFYd124k/qd4NyYm/3JycqlxgMMfGoOP UO40UH+er/LGzK1ayy+f0HDYpe+APibupsEf+TLNUrrJO4F5Audeiorfw KzGTDe/TqBgtXV+ErEWhGvL8PBVBAXDiK58n1FiRu2onbt0jJzrkPNDaj q1i9hxvBL+KSwhq6LNI9qj4eHTk83YW7PBpVXB8lPF6+FSWPfn/xHVBzn A==; X-IronPort-AV: E=McAfee;i="6500,9779,10647"; a="364706206" X-IronPort-AV: E=Sophos;i="5.98,254,1673942400"; d="scan'208";a="364706206" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2023 19:17:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10647"; a="710952789" X-IronPort-AV: E=Sophos;i="5.98,254,1673942400"; d="scan'208";a="710952789" Received: from xzhang-desk.ccr.corp.intel.com ([10.240.80.51]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2023 19:17:00 -0700 From: Xiaoqiang Zhang To: devel@edk2.groups.io Cc: Xiaoqiang Zhang , Guo Dong , Ray Ni , James Lu Subject: [PATCH v1] UefiPayloadPkg: Correct MAX_LOGICAL_PROCESSORS value Date: Mon, 13 Mar 2023 10:15:13 +0800 Message-Id: <20230313021513.529-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 GNR FSP API mode, 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. For GNR FSP dispatch mode, without mCpuInitMpLibHobGuid HOB case, will also have this issue. 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 GNR 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