Reviewed-by: Ray Ni <ray...@intel.com> Thanks, Ray > -----Original Message----- > From: Wu, Jiaxin <jiaxin...@intel.com> > Sent: Wednesday, November 15, 2023 7:16 PM > To: devel@edk2.groups.io > Cc: Laszlo Ersek <ler...@redhat.com>; Dong, Eric <eric.d...@intel.com>; Ni, > Ray <ray...@intel.com>; Kumar, Rahul R <rahul.r.ku...@intel.com>; Gerd > Hoffmann <kra...@redhat.com>; Zeng, Star <star.z...@intel.com> > Subject: [PATCH v2 2/3] 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 <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.Pac > kage, > + > &gSmmCpuPrivate->ProcessorInfo[Index].ExtendedInformation.Location2.Die > , > + > &gSmmCpuPrivate->ProcessorInfo[Index].ExtendedInformation.Location2.Tile > , > + > &gSmmCpuPrivate->ProcessorInfo[Index].ExtendedInformation.Location2.Mo > dule, > + > &gSmmCpuPrivate->ProcessorInfo[Index].ExtendedInformation.Location2.Cor > e, > + > &gSmmCpuPrivate->ProcessorInfo[Index].ExtendedInformation.Location2.Thr > ead > + ); > + > *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 (#111501): https://edk2.groups.io/g/devel/message/111501 Mute This Topic: https://groups.io/mt/102602852/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/9847357/21656/1706620634/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-