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>
This commit is contained in:
Wu, Jiaxin 2023-11-15 19:15:52 +08:00 committed by mergify[bot]
parent ad0b1cc144
commit 7eb5040607
1 changed files with 10 additions and 0 deletions

View File

@ -171,6 +171,16 @@ SmmAddProcessor (
&gSmmCpuPrivate->ProcessorInfo[Index].Location.Thread &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; *ProcessorNumber = Index;
gSmmCpuPrivate->Operation[Index] = SmmCpuAdd; gSmmCpuPrivate->Operation[Index] = SmmCpuAdd;
return EFI_SUCCESS; return EFI_SUCCESS;