Merge tag 'optee-rpc-arg-for-v5.19' of https://git.linaro.org/people/jens.wiklander...
authorArnd Bergmann <arnd@arndb.de>
Thu, 5 May 2022 14:01:21 +0000 (16:01 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 5 May 2022 14:01:22 +0000 (16:01 +0200)
commit6c6012ab96fd9e9ffbd90ece0e7e41255d634a3c
tree7b31bde8c4911331e283b2f1d0013402c684cd21
parenta4f7f93180a725d85a1156c7dbb86addd4e48fc3
parent5b4018b959149eb5b5f3004fc0339674af67516b
Merge tag 'optee-rpc-arg-for-v5.19' of https://git.linaro.org/people/jens.wiklander/linux-tee into arm/drivers

OP-TEE RPC argument cache

Adds caching of the OP-TEE argument structure used to pass request to
secure world. This reduces quite a bit of unnecessary alloc/free and
possibly switching back and forth to secure work in order to register
the buffers in some configurations, most notably FF-A.

* tag 'optee-rpc-arg-for-v5.19' of https://git.linaro.org/people/jens.wiklander/linux-tee:
  optee: cache argument shared memory structs
  optee: add FF-A capability OPTEE_FFA_SEC_CAP_ARG_OFFSET
  optee: add OPTEE_SMC_CALL_WITH_RPC_ARG and OPTEE_SMC_CALL_WITH_REGD_ARG
  optee: rename rpc_arg_count to rpc_param_count

Link: https://lore.kernel.org/r/20220504201759.GA180315@jade
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/tee/optee/call.c
drivers/tee/optee/ffa_abi.c