From 7eb504060787c9c37d5b3c33f5d65021d553ea3f Mon Sep 17 00:00:00 2001 From: "Wu, Jiaxin" Date: Wed, 15 Nov 2023 19:15:52 +0800 Subject: [PATCH] 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 Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Cc: Gerd Hoffmann Cc: Star Zeng Signed-off-by: Jiaxin Wu Reviewed-by: Laszlo Ersek Regression-tested-by: Laszlo Ersek Message-Id: <20231115111553.6592-3-jiaxin.wu@intel.com> Reviewed-by: Ray Ni --- UefiCpuPkg/PiSmmCpuDxeSmm/CpuService.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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;