Skip to content

Commit

Permalink
[CHERRY-PICK] UefiCpuPkg/PiSmmCpuDxeSmm: Get processor extended infor…
Browse files Browse the repository at this point in the history
…mation

This patch is to extend SmmAddProcessor function to get processor
extended information. It's to complete commit 1fadd18.

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>
  • Loading branch information
jiaxinwu authored and kenlautner committed May 21, 2024
1 parent cd3ce1d commit 3382091
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions UefiCpuPkg/PiSmmCpuDxeSmm/CpuService.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3382091

Please sign in to comment.