Skip to content

Commit 9a631df

Browse files
committed
SecurityPkg: Tcg2ConfigFfaPeim: 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 TPM SP, we use the parsed ID to issue the FFA_RUN. Signed-off-by: Kun Qin <kun.qin@microsoft.com>
1 parent ea2c683 commit 9a631df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigFfaPeim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Tpm2FfaCheckInterfaceVersion (
6969
Status = ArmFfaLibMsgSendDirectReq2 (TpmPartId, &gTpm2ServiceFfaGuid, &TpmArgs);
7070
while (Status == EFI_INTERRUPT_PENDING) {
7171
// We are assuming vCPU0 of the TPM SP since it is UP.
72-
Status = ArmFfaLibRun (TpmPartId, 0x00, &TpmArgs);
72+
Status = ArmFfaLibRun (GET_SOURCE_PARTITION_ID (TpmArgs.Header.x1), 0x00, &TpmArgs);
7373
}
7474

7575
if (EFI_ERROR (Status) || (TpmArgs.Arg0 != TPM2_FFA_SUCCESS_OK_RESULTS_RETURNED)) {

0 commit comments

Comments
 (0)