* Re: [edk2-devel] [Patch V2 0/3] Move gMpInformationHobGuid from StandaloneMmPkg to UefiCpuPkg. [not found] <17985FA7D8DAB616.3002@groups.io> @ 2023-11-17 9:57 ` duntan 2024-01-03 15:11 ` Ard Biesheuvel 0 siblings, 1 reply; 4+ messages in thread From: duntan @ 2023-11-17 9:57 UTC (permalink / raw) To: Ard Biesheuvel; +Cc: Ni, Ray, devel@edk2.groups.io Hi Ard, I'm working on moving gMpInformationHobGuid from StandaloneMmPkg to UefiCpuPkg in this patch series. Currently in Edk2, the HOB is only consumed by StandaloneMmCpu.inf. As we know that this HOB is used to provide a lightweight static information of MP processor. However, there might be a concern that the maximum HOB size 64KB is not large enough when CPU number is 1~2000 or bigger. May I know if you considered this situation or is there any solution to avoid this issue on Arm? Thanks, Dun -----Original Message----- From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of duntan Sent: Friday, November 17, 2023 5:40 PM To: devel@edk2.groups.io Subject: [edk2-devel] [Patch V2 0/3] Move gMpInformationHobGuid from StandaloneMmPkg to UefiCpuPkg. In the V2 patch set: Added more comments in the new MpInformation.h to document that some fields in this HOB may be invalidated. Move gMpInformationHobGuid from StandaloneMmPkg to UefiCpuPkg. Previously, the HOB is defined, created and consumed only in StandaloneMmPkg. The HOB contains the number of processors and EFI_PROCESSOR_INFORMATION structure. This is the same as the information that PiSmmCpuDxeSmm uses EfiMpServiceProtocolGuid to get. The incoming plan is to create gMpInformationHobGuid for both StandaloneMm and legacy DXE_SMM in early phase(for example in CpuMpPei). Then PiSmmCpuDxeSmm can consume the hob, which can simplify code logic in PiSmmCpuDxeSmm driver. So move this HOB definition to UefiCpuPkg in this patch series. Dun Tan (3): UefiCpuPkg: Create MpInformation.h in UefiCpuPkg StandaloneMmPkg:Add UefiCpuPkg.dec in DependencyCheck StandaloneMmPkg:Remove MpInformation.h StandaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.inf | 1 + StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf | 1 + StandaloneMmPkg/StandaloneMmPkg.ci.yaml | 3 ++- StandaloneMmPkg/StandaloneMmPkg.dec | 1 - {StandaloneMmPkg => UefiCpuPkg}/Include/Guid/MpInformation.h | 6 +++++- UefiCpuPkg/UefiCpuPkg.dec | 3 +++ 6 files changed, 12 insertions(+), 3 deletions(-) rename {StandaloneMmPkg => UefiCpuPkg}/Include/Guid/MpInformation.h (71%) -- 2.31.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111352): https://edk2.groups.io/g/devel/message/111352 Mute This Topic: https://groups.io/mt/102644629/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [edk2-devel] [Patch V2 0/3] Move gMpInformationHobGuid from StandaloneMmPkg to UefiCpuPkg. 2023-11-17 9:57 ` [edk2-devel] [Patch V2 0/3] Move gMpInformationHobGuid from StandaloneMmPkg to UefiCpuPkg duntan @ 2024-01-03 15:11 ` Ard Biesheuvel 2024-01-04 2:21 ` duntan 0 siblings, 1 reply; 4+ messages in thread From: Ard Biesheuvel @ 2024-01-03 15:11 UTC (permalink / raw) To: Tan, Dun, Samer El-Haj-Mahmoud, Jose Marinho Cc: Ard Biesheuvel, Ni, Ray, devel@edk2.groups.io (cc Samer and Jose) Hello Dun Tan, On Fri, 17 Nov 2023 at 10:57, Tan, Dun <dun.tan@intel.com> wrote: > > Hi Ard, > > I'm working on moving gMpInformationHobGuid from StandaloneMmPkg to UefiCpuPkg in this patch series. Currently in Edk2, the HOB is only consumed by StandaloneMmCpu.inf. > > As we know that this HOB is used to provide a lightweight static information of MP processor. However, there might be a concern that the maximum HOB size 64KB is not large enough when CPU number is 1~2000 or bigger. > > May I know if you considered this situation or is there any solution to avoid this issue on Arm? > I don't think this has ever come up. Is this maximum HOB size a PI limitation? Or simply a limitation of the existing implementation? > > -----Original Message----- > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of duntan > Sent: Friday, November 17, 2023 5:40 PM > To: devel@edk2.groups.io > Subject: [edk2-devel] [Patch V2 0/3] Move gMpInformationHobGuid from StandaloneMmPkg to UefiCpuPkg. > > In the V2 patch set: Added more comments in the new MpInformation.h to document that some fields in this HOB may be invalidated. > > Move gMpInformationHobGuid from StandaloneMmPkg to UefiCpuPkg. > > Previously, the HOB is defined, created and consumed only in StandaloneMmPkg. The HOB contains the number of processors and EFI_PROCESSOR_INFORMATION structure. This is the same as the information that PiSmmCpuDxeSmm uses EfiMpServiceProtocolGuid to get. > > The incoming plan is to create gMpInformationHobGuid for both StandaloneMm and legacy DXE_SMM in early phase(for example in CpuMpPei). Then PiSmmCpuDxeSmm can consume the hob, which can simplify code logic in PiSmmCpuDxeSmm driver. > > So move this HOB definition to UefiCpuPkg in this patch series. > > Dun Tan (3): > UefiCpuPkg: Create MpInformation.h in UefiCpuPkg > StandaloneMmPkg:Add UefiCpuPkg.dec in DependencyCheck > StandaloneMmPkg:Remove MpInformation.h > > StandaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.inf | 1 + > StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf | 1 + > StandaloneMmPkg/StandaloneMmPkg.ci.yaml | 3 ++- > StandaloneMmPkg/StandaloneMmPkg.dec | 1 - > {StandaloneMmPkg => UefiCpuPkg}/Include/Guid/MpInformation.h | 6 +++++- > UefiCpuPkg/UefiCpuPkg.dec | 3 +++ > 6 files changed, 12 insertions(+), 3 deletions(-) rename {StandaloneMmPkg => UefiCpuPkg}/Include/Guid/MpInformation.h (71%) > > -- > 2.31.1.windows.1 > > > > > > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113099): https://edk2.groups.io/g/devel/message/113099 Mute This Topic: https://groups.io/mt/102644629/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [edk2-devel] [Patch V2 0/3] Move gMpInformationHobGuid from StandaloneMmPkg to UefiCpuPkg. 2024-01-03 15:11 ` Ard Biesheuvel @ 2024-01-04 2:21 ` duntan 0 siblings, 0 replies; 4+ messages in thread From: duntan @ 2024-01-04 2:21 UTC (permalink / raw) To: Ard Biesheuvel, Samer El-Haj-Mahmoud, Jose Marinho Cc: Ard Biesheuvel, Ni, Ray, devel@edk2.groups.io I think it's a limitation of the existing implementation. Currently the HobLength in EFI_HOB_GENERIC_HEADER is UINT16. Thanks, Dun -----Original Message----- From: Ard Biesheuvel <ardb@kernel.org> Sent: Wednesday, January 3, 2024 11:11 PM To: Tan, Dun <dun.tan@intel.com>; Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>; Jose Marinho <Jose.Marinho@arm.com> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>; Ni, Ray <ray.ni@intel.com>; devel@edk2.groups.io Subject: Re: [edk2-devel] [Patch V2 0/3] Move gMpInformationHobGuid from StandaloneMmPkg to UefiCpuPkg. (cc Samer and Jose) Hello Dun Tan, On Fri, 17 Nov 2023 at 10:57, Tan, Dun <dun.tan@intel.com> wrote: > > Hi Ard, > > I'm working on moving gMpInformationHobGuid from StandaloneMmPkg to UefiCpuPkg in this patch series. Currently in Edk2, the HOB is only consumed by StandaloneMmCpu.inf. > > As we know that this HOB is used to provide a lightweight static information of MP processor. However, there might be a concern that the maximum HOB size 64KB is not large enough when CPU number is 1~2000 or bigger. > > May I know if you considered this situation or is there any solution to avoid this issue on Arm? > I don't think this has ever come up. Is this maximum HOB size a PI limitation? Or simply a limitation of the existing implementation? > > -----Original Message----- > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of duntan > Sent: Friday, November 17, 2023 5:40 PM > To: devel@edk2.groups.io > Subject: [edk2-devel] [Patch V2 0/3] Move gMpInformationHobGuid from StandaloneMmPkg to UefiCpuPkg. > > In the V2 patch set: Added more comments in the new MpInformation.h to document that some fields in this HOB may be invalidated. > > Move gMpInformationHobGuid from StandaloneMmPkg to UefiCpuPkg. > > Previously, the HOB is defined, created and consumed only in StandaloneMmPkg. The HOB contains the number of processors and EFI_PROCESSOR_INFORMATION structure. This is the same as the information that PiSmmCpuDxeSmm uses EfiMpServiceProtocolGuid to get. > > The incoming plan is to create gMpInformationHobGuid for both StandaloneMm and legacy DXE_SMM in early phase(for example in CpuMpPei). Then PiSmmCpuDxeSmm can consume the hob, which can simplify code logic in PiSmmCpuDxeSmm driver. > > So move this HOB definition to UefiCpuPkg in this patch series. > > Dun Tan (3): > UefiCpuPkg: Create MpInformation.h in UefiCpuPkg > StandaloneMmPkg:Add UefiCpuPkg.dec in DependencyCheck > StandaloneMmPkg:Remove MpInformation.h > > StandaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.inf | 1 + > StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf | 1 + > StandaloneMmPkg/StandaloneMmPkg.ci.yaml | 3 ++- > StandaloneMmPkg/StandaloneMmPkg.dec | 1 - > {StandaloneMmPkg => UefiCpuPkg}/Include/Guid/MpInformation.h | 6 +++++- > UefiCpuPkg/UefiCpuPkg.dec | 3 +++ > 6 files changed, 12 insertions(+), 3 deletions(-) rename > {StandaloneMmPkg => UefiCpuPkg}/Include/Guid/MpInformation.h (71%) > > -- > 2.31.1.windows.1 > > > > > > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113113): https://edk2.groups.io/g/devel/message/113113 Mute This Topic: https://groups.io/mt/102644629/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 4+ messages in thread
* [edk2-devel] [Patch V2 0/3] Move gMpInformationHobGuid from StandaloneMmPkg to UefiCpuPkg. @ 2023-11-17 9:39 duntan 0 siblings, 0 replies; 4+ messages in thread From: duntan @ 2023-11-17 9:39 UTC (permalink / raw) To: devel In the V2 patch set: Added more comments in the new MpInformation.h to document that some fields in this HOB may be invalidated. Move gMpInformationHobGuid from StandaloneMmPkg to UefiCpuPkg. Previously, the HOB is defined, created and consumed only in StandaloneMmPkg. The HOB contains the number of processors and EFI_PROCESSOR_INFORMATION structure. This is the same as the information that PiSmmCpuDxeSmm uses EfiMpServiceProtocolGuid to get. The incoming plan is to create gMpInformationHobGuid for both StandaloneMm and legacy DXE_SMM in early phase(for example in CpuMpPei). Then PiSmmCpuDxeSmm can consume the hob, which can simplify code logic in PiSmmCpuDxeSmm driver. So move this HOB definition to UefiCpuPkg in this patch series. Dun Tan (3): UefiCpuPkg: Create MpInformation.h in UefiCpuPkg StandaloneMmPkg:Add UefiCpuPkg.dec in DependencyCheck StandaloneMmPkg:Remove MpInformation.h StandaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.inf | 1 + StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf | 1 + StandaloneMmPkg/StandaloneMmPkg.ci.yaml | 3 ++- StandaloneMmPkg/StandaloneMmPkg.dec | 1 - {StandaloneMmPkg => UefiCpuPkg}/Include/Guid/MpInformation.h | 6 +++++- UefiCpuPkg/UefiCpuPkg.dec | 3 +++ 6 files changed, 12 insertions(+), 3 deletions(-) rename {StandaloneMmPkg => UefiCpuPkg}/Include/Guid/MpInformation.h (71%) -- 2.31.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111347): https://edk2.groups.io/g/devel/message/111347 Mute This Topic: https://groups.io/mt/102644629/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-01-04 2:22 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <17985FA7D8DAB616.3002@groups.io> 2023-11-17 9:57 ` [edk2-devel] [Patch V2 0/3] Move gMpInformationHobGuid from StandaloneMmPkg to UefiCpuPkg duntan 2024-01-03 15:11 ` Ard Biesheuvel 2024-01-04 2:21 ` duntan 2023-11-17 9:39 duntan
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox