From: Ilias Apalodimas Date: Fri, 19 Feb 2021 06:36:07 +0000 (+0530) Subject: StandaloneMmPkg: Allow sending FFA Direct Request message to StandaloneMm X-Git-Tag: edk2-stable202102~16 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=68e5ecc4d208fe900530fdbe6b44dfc85bef60a8 StandaloneMmPkg: Allow sending FFA Direct Request message to StandaloneMm Allow passing of a request to StandaloneMm Core through the Firmware Framework(FF-A) using FFA_MSG_SEND_DIRECT_REQ method. This method is used as a mechanism for requesting some service from StandaloneMm. Signed-off-by: Ilias Apalodimas Signed-off-by: Sughosh Ganu Reviewed-by: Sami Mujawar Acked-by: Ard Biesheuvel --- diff --git a/StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/EventHandle.c b/StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/EventHandle.c index d86d21bb01..63fbe26642 100644 --- a/StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/EventHandle.c +++ b/StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/EventHandle.c @@ -22,6 +22,7 @@ #include #include +#include #include #include "StandaloneMmCpu.h" @@ -91,7 +92,8 @@ PiMmStandaloneArmTfCpuDriverEntry ( // receipt of a synchronous MM request. Use the Event ID to distinguish // between synchronous and asynchronous events. // - if (ARM_SMC_ID_MM_COMMUNICATE_AARCH64 != EventId) { + if ((ARM_SMC_ID_MM_COMMUNICATE_AARCH64 != EventId) && + (ARM_SVC_ID_FFA_MSG_SEND_DIRECT_REQ_AARCH64 != EventId)) { DEBUG ((DEBUG_INFO, "UnRecognized Event - 0x%x\n", EventId)); return EFI_INVALID_PARAMETER; }