Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: c02eed8e5a5497f26f2163d44c2239f5549f9fb0 https://github.com/tianocore/edk2/commit/c02eed8e5a5497f26f2163d44c2239f5549f9fb0 Author: Dun Tan <dun....@intel.com> Date: 2023-12-12 (Tue, 12 Dec 2023)
Changed paths: A UefiCpuPkg/Include/Guid/MpInformation2.h M UefiCpuPkg/UefiCpuPkg.dec Log Message: ----------- 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....@intel.com> Cc: Eric Dong <eric.d...@intel.com> Reviewed-by: Ray Ni <ray...@intel.com> Cc: Rahul Kumar <rahul1.ku...@intel.com> Cc: Gerd Hoffmann <kra...@redhat.com> Commit: e10f1f5a043a402fb2daf2091b8f725fd2951743 https://github.com/tianocore/edk2/commit/e10f1f5a043a402fb2daf2091b8f725fd2951743 Author: Dun Tan <dun....@intel.com> Date: 2023-12-12 (Tue, 12 Dec 2023) Changed paths: M UefiCpuPkg/CpuMpPei/CpuMpPei.c M UefiCpuPkg/CpuMpPei/CpuMpPei.h M UefiCpuPkg/CpuMpPei/CpuMpPei.inf Log Message: ----------- UefiCpuPkg: Build MpInfo2HOB in CpuMpPei Build MpInfo2HOB in CpuMpPei module so that later PiSmmCpuDxe or other StandaloneMm module can consume the HOB. Since there might be more one gMpInformationHobGuid2 in HOB list, CpuMpPei create a gMpInformationHobGuid2 with 0 value NumberOfProcessors field in the end of the process to indicate it's the last MP_INFORMATION2_HOB. Signed-off-by: Dun Tan <dun....@intel.com> Cc: Eric Dong <eric.d...@intel.com> Reviewed-by: Ray Ni <ray...@intel.com> Cc: Rahul Kumar <rahul1.ku...@intel.com> Cc: Gerd Hoffmann <kra...@redhat.com> Commit: be44fff7237a79726bdf144f86e434debaa3868a https://github.com/tianocore/edk2/commit/be44fff7237a79726bdf144f86e434debaa3868a Author: Dun Tan <dun....@intel.com> Date: 2023-12-12 (Tue, 12 Dec 2023) Changed paths: M UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c M UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h M UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf Log Message: ----------- UefiCpuPkg: Consume MpInfo2Hob in PiSmmCpuDxe Consume MpInfo2Hob in PiSmmCpuDxe driver to get NumberOfProcessors, MaxNumberOfCpus and EFI_PROCESSOR_INFORMATION for all CPU from the MpInformation2 HOB. This can avoid calling MP service. Signed-off-by: Dun Tan <dun....@intel.com> Cc: Eric Dong <eric.d...@intel.com> Reviewed-by: Ray Ni <ray...@intel.com> Cc: Rahul Kumar <rahul1.ku...@intel.com> Cc: Gerd Hoffmann <kra...@redhat.com> Commit: fc4f6627f8ca7fd77b0adf7b93840988fd6da78a https://github.com/tianocore/edk2/commit/fc4f6627f8ca7fd77b0adf7b93840988fd6da78a Author: Dun Tan <dun....@intel.com> Date: 2023-12-12 (Tue, 12 Dec 2023) Changed paths: M UefiCpuPkg/Include/Guid/MpInformation2.h Log Message: ----------- UefiCpuPkg: Add a new field in MpInfo2 HOB Add new field CoreType in gMpInformationHobGuid2 Signed-off-by: Dun Tan <dun....@intel.com> Cc: Eric Dong <eric.d...@intel.com> Reviewed-by: Ray Ni <ray...@intel.com> Cc: Rahul Kumar <rahul1.ku...@intel.com> Cc: Gerd Hoffmann <kra...@redhat.com> Commit: e51965ddd1816a0506818e66644a635ae830e20f https://github.com/tianocore/edk2/commit/e51965ddd1816a0506818e66644a635ae830e20f Author: Dun Tan <dun....@intel.com> Date: 2023-12-12 (Tue, 12 Dec 2023) Changed paths: M UefiCpuPkg/CpuMpPei/CpuMpPei.c M UefiCpuPkg/CpuMpPei/CpuMpPei.h Log Message: ----------- UefiCpuPkg: Cache core type in MpInfo2 HOB Cache core type in MpInfo2 HOB by CpuMpPei module. Signed-off-by: Dun Tan <dun....@intel.com> Cc: Eric Dong <eric.d...@intel.com> Reviewed-by: Ray Ni <ray...@intel.com> Cc: Rahul Kumar <rahul1.ku...@intel.com> Cc: Gerd Hoffmann <kra...@redhat.com> Commit: 725acd0b9cc047b20a1b9379e46f05d3ebcf485e https://github.com/tianocore/edk2/commit/725acd0b9cc047b20a1b9379e46f05d3ebcf485e Author: Dun Tan <dun....@intel.com> Date: 2023-12-12 (Tue, 12 Dec 2023) Changed paths: M UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c Log Message: ----------- UefiCpuPkg: Avoid assuming only one smmbasehob Modify the gSmmBaseHobGuid consumption code to remove the asuumption that there is only one gSmmBaseHobGuid. If the CPU number is big enough, there will be more than one SmmBaseHob in the HOB list. Signed-off-by: Dun Tan <dun....@intel.com> Cc: Eric Dong <eric.d...@intel.com> Reviewed-by: Ray Ni <ray...@intel.com> Cc: Rahul Kumar <rahul1.ku...@intel.com> Cc: Gerd Hoffmann <kra...@redhat.com> Compare: https://github.com/tianocore/edk2/compare/1d50544aa232...725acd0b9cc0 _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits