blob: 9ad506b1bddd0cec683f71f34e83db9674c660a2 [file] [log] [blame]
Brad Bishopbec4ebc2022-08-03 09:55:16 -04001From 289bec4cacac80cb43c19e4ca7b2c50fc932712e Mon Sep 17 00:00:00 2001
2From: Julian Hall <julian.hall@arm.com>
3Date: Wed, 8 Dec 2021 11:48:28 +0000
4Subject: [PATCH] Fix interface ID parameter setting in sp/ffarpc_caller
5
6When making FFA based RPC calls from one SP to another, the
7destination interface ID parameter was not being set correctly.
8This change fixes this issue.
9
10Signed-off-by: Julian Hall <julian.hall@arm.com>
11Change-Id: Iab520e4c7dc63ee1f5d3bf1bd1de702e4cc6f093
12
13Upstream-Status: Pending [Not submitted to upstream yet]
14Signed-off-by: Vishnu Banavath <vishnu.banavath@arm.com>
15
16
17---
18 components/rpc/ffarpc/caller/sp/ffarpc_caller.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/components/rpc/ffarpc/caller/sp/ffarpc_caller.c b/components/rpc/ffarpc/caller/sp/ffarpc_caller.c
22index 250b1781..dabcd90c 100644
23--- a/components/rpc/ffarpc/caller/sp/ffarpc_caller.c
24+++ b/components/rpc/ffarpc/caller/sp/ffarpc_caller.c
25@@ -81,7 +81,7 @@ static rpc_status_t call_invoke(void *context, rpc_call_handle handle, uint32_t
26 req.destination_id = this_context->dest_partition_id;
27 req.source_id = own_id;
28 req.args[SP_CALL_ARGS_IFACE_ID_OPCODE] =
29- FFA_CALL_ARGS_COMBINE_IFACE_ID_OPCODE(this_context->dest_partition_id, opcode);
30+ FFA_CALL_ARGS_COMBINE_IFACE_ID_OPCODE(this_context->dest_iface_id, opcode);
31 //TODO: downcast problem?
32 req.args[SP_CALL_ARGS_REQ_DATA_LEN] = (uint32_t)this_context->req_len;
33 req.args[SP_CALL_ARGS_ENCODING] = this_context->rpc_caller.encoding;