From 897adff44712c3e3f9076132b2d4623ca354c22b Mon Sep 17 00:00:00 2001 From: Jens Wiklander Date: Tue, 21 Jul 2020 11:28:07 +0200 Subject: core: ff-a: clear shm buffer caching after yielding call In __thread_std_smc_entry() for the legacy SMC interface the RPC SHM cache is cleared when a thread is done. Add the same handling to the FF-A case. Acked-by: Jerome Forissier Signed-off-by: Jens Wiklander --- core/arch/arm/kernel/thread_spmc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/arch/arm/kernel/thread_spmc.c b/core/arch/arm/kernel/thread_spmc.c index 1edc3cdd..81edf03a 100644 --- a/core/arch/arm/kernel/thread_spmc.c +++ b/core/arch/arm/kernel/thread_spmc.c @@ -900,6 +900,8 @@ static uint32_t yielding_call_with_arg(uint64_t cookie) rv = tee_entry_std(arg, num_params); + thread_rpc_shm_cache_clear(&threads[thread_get_id()].shm_cache); + out_dec_map: mobj_dec_map(mobj); out_put_mobj: -- cgit v1.2.3