alistair23-linux/drivers/tee/optee
Volodymyr Babchuk f58e236c9d tee: optee: enable dynamic SHM support
Previous patches added various features that are needed for dynamic SHM.
Dynamic SHM allows Normal World to share any buffers with OP-TEE.
While original design suggested to use pre-allocated region (usually of
1M to 2M of size), this new approach allows to use all non-secure RAM for
command buffers, RPC allocations and TA parameters.

This patch checks capability OPTEE_SMC_SEC_CAP_DYNAMIC_SHM. If it was set
by OP-TEE, then kernel part of OP-TEE will use kernel page allocator
to allocate command buffers. Also it will set TEE_GEN_CAP_REG_MEM
capability to tell userspace that it supports shared memory registration.

Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
2017-12-15 13:36:17 +01:00
..
call.c tee: optee: add registered buffers handling into RPC calls 2017-12-15 13:35:37 +01:00
core.c tee: optee: enable dynamic SHM support 2017-12-15 13:36:17 +01:00
Kconfig
Makefile tee: optee: add optee-specific shared pool implementation 2017-12-15 13:36:17 +01:00
optee_msg.h tee: optee: Update protocol definitions 2017-12-15 13:32:31 +01:00
optee_private.h tee: optee: store OP-TEE capabilities in private data 2017-12-15 13:36:16 +01:00
optee_smc.h tee: optee: Update protocol definitions 2017-12-15 13:32:31 +01:00
rpc.c tee: optee: add registered buffers handling into RPC calls 2017-12-15 13:35:37 +01:00
shm_pool.c tee: optee: add optee-specific shared pool implementation 2017-12-15 13:36:17 +01:00
shm_pool.h tee: optee: add optee-specific shared pool implementation 2017-12-15 13:36:17 +01:00
supp.c