diff options
author | Vincent Guittot <vincent.guittot@linaro.org> | 2024-02-15 15:53:07 +0100 |
---|---|---|
committer | Vincent Guittot <vincent.guittot@linaro.org> | 2024-02-15 15:53:07 +0100 |
commit | 8673070ceea43934b8e87face516b402cdd0e4d6 (patch) | |
tree | b43a4a06ae51aadb92d8a8d851b6a6d58efe7e8f | |
parent | 7407e7d47678a4fb210f05865a05a1a213930772 (diff) |
spm/scmi: reclaim memory when channel is already used
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
-rw-r--r-- | spm/common/sp_tests/sp_test_ffa.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spm/common/sp_tests/sp_test_ffa.c b/spm/common/sp_tests/sp_test_ffa.c index c26db44..2e37629 100644 --- a/spm/common/sp_tests/sp_test_ffa.c +++ b/spm/common/sp_tests/sp_test_ffa.c @@ -449,8 +449,10 @@ void ffa_scmi_server_test(struct mailbox_buffers *mb, ffa_id_t source_id) channel_id = ret.arg4; INFO("SCMI server channel id 0x%x\n", channel_id); - if (channel_id == 0xffffffff) + if (channel_id == 0xffffffff) { + ffa_mem_reclaim(mem_id, 0); return; + } cmd = FFA_SCMI_CMD_MSG_SEND_DIRECT_REQ; val0 = channel_id; |