From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web11.44306.1685342410218843524 for ; Sun, 28 May 2023 23:40:10 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=AIp+ECFP; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: hongbin1.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=1685342410; x=1716878410; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=jphLRLh7V1m7Ngua5UbJzVG/HEkeL31x4JtFhkTBCaI=; b=AIp+ECFPyo37Sbinkg6T/YWP0H1ylWPQPeMJe9qu0yNf+4AamRaceRC4 FYWKfg8IxL38zi7GM/TFoefgURBDglWH+qLw18B6KybfILXZxpLxNYaRR qsGKfupmqgOZVVmIC0OR832HOJl82yjTz/ZmCN7jALb1ST5PZFUZRbcOe 2LgIkXGZ4PAr8ZngzZTsHc4fkTgYAWYq+X96TFHe5nExrsU5jTpQgxwtu kmGRv7TPMxpMNFOC0pOwcs9MMKF2rzPpcjgPeAGeP9I+x2PYEzgR/7/UJ IwErHTJUQ02VsGg4+z0LJaIRbbRevjgNkwrB8FeM6ZevaUWBXe3EvuILP w==; X-IronPort-AV: E=McAfee;i="6600,9927,10724"; a="339221678" X-IronPort-AV: E=Sophos;i="6.00,200,1681196400"; d="scan'208";a="339221678" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2023 23:40:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10724"; a="850285979" X-IronPort-AV: E=Sophos;i="6.00,200,1681196400"; d="scan'208";a="850285979" Received: from hongbin1-mobl1.ccr.corp.intel.com ([10.238.1.243]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2023 23:40:06 -0700 From: "Zhang, Hongbin1" To: devel@edk2.groups.io Cc: "Zhang, Hongbin1" , Eric Dong , Ray Ni , Rahul Kumar , Gerd Hoffmann , Star Zeng , Jiaxin Wu Subject: [PATCH v1] UefiCpuPkg: Get processor extended information for SmmCpuServiceProtocol Date: Mon, 29 May 2023 14:39:38 +0800 Message-Id: <20230529063938.230-1-hongbin1.zhang@intel.com> X-Mailer: git-send-email 2.37.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Some features like RAS need to use processor extended information under smm, So add code to support it Signed-off-by: Hongbin1 Zhang Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Cc: Gerd Hoffmann Cc: Star Zeng Cc: Jiaxin Wu --- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c index c0e368ea94..8311c3b9de 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c @@ -929,7 +929,7 @@ PiCpuSmmEntry ( gSmmCpuPrivate->Operation[Index] = SmmCpuNone; if (Index < mNumberOfCpus) { - Status = MpServices->GetProcessorInfo (MpServices, Index, &gSmmCpuPrivate->ProcessorInfo[Index]); + Status = MpServices->GetProcessorInfo (MpServices, Index | CPU_V2_EXTENDED_TOPOLOGY, &gSmmCpuPrivate->ProcessorInfo[Index]); ASSERT_EFI_ERROR (Status); mCpuHotPlugData.ApicId[Index] = gSmmCpuPrivate->ProcessorInfo[Index].ProcessorId; -- 2.37.0.windows.1