Implement EFI_MP_SERVICES_PROTOCOL based on PSCI calls for AArch64, and
add an MpServicesTest application to exercise it.
Changes from v2:
- Moved definition of MT bit and macro to get affinity bits into
ArmLib.h.
- Fixed issues noted during review.
- Fixed various issues in non-blocking mode.
- Fixed bugs when a timeout occurs.
Tested on NVIDIA Jetson AGX Orin Developer Kit,
Arm Juno r2.
The RDN2 (Neoverse N2) FVP has problems with caches, but I believe this
is a bug in the model, not the MP Services code.
Personal (test) PR: https://github.com/tianocore/edk2/pull/3849
Rebecca Cran (3):
ArmPkg: Add GET_MPIDR_AFFINITY_BITS and MPIDR_MT_BIT to ArmLib.h
ArmPkg: implement EFI_MP_SERVICES_PROTOCOL based on PSCI calls
MdeModulePkg: Add new Application/MpServicesTest application
ArmPkg/ArmPkg.dsc | 1 +
MdeModulePkg/MdeModulePkg.dsc | 2 +
ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.inf | 56 +
MdeModulePkg/Application/MpServicesTest/MpServicesTest.inf | 40 +
ArmPkg/Drivers/ArmPsciMpServicesDxe/MpServicesInternal.h | 344 ++++
ArmPkg/Include/Library/ArmLib.h | 16 +-
MdeModulePkg/Application/MpServicesTest/Options.h | 39 +
ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.c | 1847 ++++++++++++++++++++
MdeModulePkg/Application/MpServicesTest/MpServicesTest.c | 560 ++++++
MdeModulePkg/Application/MpServicesTest/Options.c | 164 ++
ArmPkg/Drivers/ArmPsciMpServicesDxe/MpFuncs.S | 57 +
11 files changed, 3119 insertions(+), 7 deletions(-)
create mode 100644 ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.inf
create mode 100644 MdeModulePkg/Application/MpServicesTest/MpServicesTest.inf
create mode 100644 ArmPkg/Drivers/ArmPsciMpServicesDxe/MpServicesInternal.h
create mode 100644 MdeModulePkg/Application/MpServicesTest/Options.h
create mode 100644 ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.c
create mode 100644 MdeModulePkg/Application/MpServicesTest/MpServicesTest.c
create mode 100644 MdeModulePkg/Application/MpServicesTest/Options.c
create mode 100644 ArmPkg/Drivers/ArmPsciMpServicesDxe/MpFuncs.S
--
2.30.2
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#98102): https://edk2.groups.io/g/devel/message/98102
Mute This Topic: https://groups.io/mt/96090996/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-