summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/PiSmmCpuDxeSmm
diff options
context:
space:
mode:
authorWu, Jiaxin <jiaxin.wu@intel.com>2023-11-15 19:15:52 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-12-08 13:25:11 +0000
commit7eb504060787c9c37d5b3c33f5d65021d553ea3f (patch)
tree7ac7fcd44efb25fa638f3ec93bb5d96128a13a8c /UefiCpuPkg/PiSmmCpuDxeSmm
parentad0b1cc144b56fcbd8d369eaff6eaf5f3020efe7 (diff)
downloadedk2-7eb504060787c9c37d5b3c33f5d65021d553ea3f.tar.gz
edk2-7eb504060787c9c37d5b3c33f5d65021d553ea3f.tar.bz2
edk2-7eb504060787c9c37d5b3c33f5d65021d553ea3f.zip
UefiCpuPkg/PiSmmCpuDxeSmm: Get processor extended information
This patch is to extend SmmAddProcessor function to get processor extended information. It's to complete commit 1fadd18d. Cc: Laszlo Ersek <lersek@redhat.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Star Zeng <star.zeng@intel.com> Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Regression-tested-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20231115111553.6592-3-jiaxin.wu@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
Diffstat (limited to 'UefiCpuPkg/PiSmmCpuDxeSmm')
-rw-r--r--UefiCpuPkg/PiSmmCpuDxeSmm/CpuService.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/CpuService.c b/UefiCpuPkg/PiSmmCpuDxeSmm/CpuService.c
index 391b64e9f2..c0485b0519 100644
--- a/UefiCpuPkg/PiSmmCpuDxeSmm/CpuService.c
+++ b/UefiCpuPkg/PiSmmCpuDxeSmm/CpuService.c
@@ -171,6 +171,16 @@ SmmAddProcessor (
&gSmmCpuPrivate->ProcessorInfo[Index].Location.Thread
);
+ GetProcessorLocation2ByApicId (
+ (UINT32)ProcessorId,
+ &gSmmCpuPrivate->ProcessorInfo[Index].ExtendedInformation.Location2.Package,
+ &gSmmCpuPrivate->ProcessorInfo[Index].ExtendedInformation.Location2.Die,
+ &gSmmCpuPrivate->ProcessorInfo[Index].ExtendedInformation.Location2.Tile,
+ &gSmmCpuPrivate->ProcessorInfo[Index].ExtendedInformation.Location2.Module,
+ &gSmmCpuPrivate->ProcessorInfo[Index].ExtendedInformation.Location2.Core,
+ &gSmmCpuPrivate->ProcessorInfo[Index].ExtendedInformation.Location2.Thread
+ );
+
*ProcessorNumber = Index;
gSmmCpuPrivate->Operation[Index] = SmmCpuAdd;
return EFI_SUCCESS;