ArmPkg: MmCommunication: FFA run should use the returned ID

As the FFA function now returns the target ID properly, instead of
hardcoding the FFA_RUN target ID being the STMM, we use the parsed
ID to issue the FFA_RUN.

Signed-off-by: Kun Qin <kun.qin@microsoft.com>
This commit is contained in:
Kun Qin 2026-06-19 10:06:24 -07:00 committed by mergify[bot]
parent 89c6073683
commit ed21313ac7
2 changed files with 2 additions and 2 deletions

View file

@ -97,7 +97,7 @@ SendFfaMmCommunicate (
while (Status == EFI_INTERRUPT_PENDING) {
// We are assuming vCPU0 of the StMM SP since it is UP.
Status = ArmFfaLibRun (mStMmPartId, 0x00, NULL);
Status = ArmFfaLibRun (GET_SOURCE_PARTITION_ID (CommunicateArgs.Header.x1), 0x00, &CommunicateArgs);
}
return Status;

View file

@ -217,7 +217,7 @@ SendFfaMmCommunicate (
while (Status == EFI_INTERRUPT_PENDING) {
// We are assuming vCPU0 of the StMM SP since it is UP.
Status = ArmFfaLibRun (mStMmPartId, 0x00, NULL);
Status = ArmFfaLibRun (GET_SOURCE_PARTITION_ID (CommunicateArgs.Header.x1), 0x00, &CommunicateArgs);
}
return Status;