Skip to content

Commit

Permalink
StandaloneMmPkg: Allow sending FFA Direct Request message to Standalo…
Browse files Browse the repository at this point in the history
…neMm

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 <[email protected]>
Signed-off-by: Sughosh Ganu <[email protected]>
Reviewed-by: Sami Mujawar <[email protected]>
Acked-by: Ard Biesheuvel <[email protected]>
  • Loading branch information
apalos authored and mergify[bot] committed Feb 23, 2021
1 parent 1262c02 commit 68e5ecc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <Guid/ZeroGuid.h>
#include <Guid/MmramMemoryReserve.h>

#include <IndustryStandard/ArmFfaSvc.h>
#include <IndustryStandard/ArmStdSmc.h>

#include "StandaloneMmCpu.h"
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 68e5ecc

Please sign in to comment.