Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | From 289bec4cacac80cb43c19e4ca7b2c50fc932712e Mon Sep 17 00:00:00 2001 |
| 2 | From: Julian Hall <julian.hall@arm.com> |
| 3 | Date: Wed, 8 Dec 2021 11:48:28 +0000 |
| 4 | Subject: [PATCH] Fix interface ID parameter setting in sp/ffarpc_caller |
| 5 | |
| 6 | When making FFA based RPC calls from one SP to another, the |
| 7 | destination interface ID parameter was not being set correctly. |
| 8 | This change fixes this issue. |
| 9 | |
| 10 | Signed-off-by: Julian Hall <julian.hall@arm.com> |
| 11 | Change-Id: Iab520e4c7dc63ee1f5d3bf1bd1de702e4cc6f093 |
| 12 | |
| 13 | Upstream-Status: Pending [Not submitted to upstream yet] |
| 14 | Signed-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 | |
| 21 | diff --git a/components/rpc/ffarpc/caller/sp/ffarpc_caller.c b/components/rpc/ffarpc/caller/sp/ffarpc_caller.c |
| 22 | index 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; |