summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/CpuMpPei/CpuMpPei.h
diff options
context:
space:
mode:
authorDun Tan <dun.tan@intel.com>2023-11-07 17:25:08 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-12-12 01:37:41 +0000
commitc02eed8e5a5497f26f2163d44c2239f5549f9fb0 (patch)
tree5ac020602f44fd06f5984fedb109d268c01a575f /UefiCpuPkg/CpuMpPei/CpuMpPei.h
parent1d50544aa2321e4efcd9c193d534fb4096d64dbf (diff)
downloadedk2-c02eed8e5a5497f26f2163d44c2239f5549f9fb0.tar.gz
edk2-c02eed8e5a5497f26f2163d44c2239f5549f9fb0.tar.bz2
edk2-c02eed8e5a5497f26f2163d44c2239f5549f9fb0.zip
UefiCpuPkg: Create gMpInformationHobGuid2 in UefiCpuPkg
Create gMpInformationHobGuid2 in UefiCpuPkg. Currently, there is a gMpInformationHobGuid defined, created and consumed only in StandaloneMmPkg. The HOB contains the EFI_PROCESSOR_INFORMATION structure for each CPU and the number of processors. This is the same as the information that PiSmmCpuDxeSmm uses MpService Protocol to get. This new gMpInformationHobGuid2 also contains the NumberOfProcessors and the EFI_PROCESSOR_INFORMATION for each CPU. Also the HOB is extended to support the case that the maximum HOB length is not enough for all CPU. So there might be more than one HOB instance in the HOB list. Each HOB describes the corresponding CPU index range. The plan is to create gMpInformationHob2Guid in CpuMpPei module(implemented in next commit). Then PiSmmCpuDxeSmm and other MM_STANDALONE modules can consume the hob. This can avoid calling MpService Protocol in PiSmmCpuDxeSmm. Also the issue that one gMpInformationHobGuid might be not enough when CPU number is 1~2000 or bigger can be solved. Signed-off-by: Dun Tan <dun.tan@intel.com> Cc: Eric Dong <eric.dong@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'UefiCpuPkg/CpuMpPei/CpuMpPei.h')
0 files changed, 0 insertions, 0 deletions