From 37277190fe299c30904fd797671d204a8ac9749a Mon Sep 17 00:00:00 2001 From: J-Alves Date: Tue, 30 Nov 2021 14:59:03 +0000 Subject: fix(ff-a): encoding of vCPU and receiver IDs In the FFA_NOTIFICATION_GET interface the vCPU and receiver IDs were encoded in the wrong positions of w1, according to the FF-A v1.1 beta0 specification. This patch makes the encoding comply with the spec. Signed-off-by: J-Alves Change-Id: I9ad82d9cddf6c49e0142c027a06af8c214684959 --- tftf/tests/runtime_services/secure_service/ffa_helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tftf/tests/runtime_services/secure_service/ffa_helpers.c b/tftf/tests/runtime_services/secure_service/ffa_helpers.c index cbc028ef..4525d6e4 100644 --- a/tftf/tests/runtime_services/secure_service/ffa_helpers.c +++ b/tftf/tests/runtime_services/secure_service/ffa_helpers.c @@ -596,7 +596,7 @@ smc_ret_values ffa_notification_get(ffa_id_t receiver, uint32_t vcpu_id, { smc_args args = { .fid = FFA_NOTIFICATION_GET, - .arg1 = (receiver << 16) | (vcpu_id), + .arg1 = (vcpu_id << 16) | (receiver), .arg2 = flags, .arg3 = FFA_PARAM_MBZ, .arg4 = FFA_PARAM_MBZ, -- cgit v1.2.3