This patch is to extend SmmAddProcessor function to get processor extended information. It's to complete commit 1fadd18d.
Cc: Laszlo Ersek <ler...@redhat.com> Cc: Eric Dong <eric.d...@intel.com> Cc: Ray Ni <ray...@intel.com> Cc: Rahul Kumar <rahul1.ku...@intel.com> Cc: Gerd Hoffmann <kra...@redhat.com> Cc: Star Zeng <star.z...@intel.com> Signed-off-by: Jiaxin Wu <jiaxin...@intel.com> Reviewed-by: Laszlo Ersek <ler...@redhat.com> Regression-tested-by: Laszlo Ersek <ler...@redhat.com> --- 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 @@ -169,10 +169,20 @@ SmmAddProcessor ( &gSmmCpuPrivate->ProcessorInfo[Index].Location.Package, &gSmmCpuPrivate->ProcessorInfo[Index].Location.Core, &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; } } -- 2.16.2.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111258): https://edk2.groups.io/g/devel/message/111258 Mute This Topic: https://groups.io/mt/102602852/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-