Files
linux/drivers
Volodymyr Babchuk 9af8e19afc BACKPORT: 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.

Change-Id: If6b54bdd2aafaa4dabe2b0b31aa3116999eef14a
Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
(cherry picked from commit f58e236c9d)
Signed-off-by: Victor Chong <victor.chong@linaro.org>
2018-02-21 15:40:48 +00:00
..
2017-12-16 10:33:55 +01:00
2018-01-31 14:08:55 +01:00
2018-02-03 17:44:38 +01:00
2017-12-27 13:36:00 +01:00
2017-12-20 10:49:07 +01:00
2018-02-20 16:23:06 +01:00
2018-02-20 16:23:06 +01:00
2017-12-16 10:33:53 +01:00
2017-11-30 08:37:27 +00:00
2018-01-31 14:08:55 +01:00
2018-02-03 17:44:38 +01:00
2018-01-02 20:33:20 +01:00
2018-01-31 14:08:55 +01:00
2018-02-20 16:23:06 +01:00
2018-02-20 16:23:06 +01:00
2017-07-27 15:36:54 -07:00
2017-11-15 17:38:52 +01:00
2018-02-03 17:44:38 +01:00
2018-02-03 17:44:38 +01:00
2018-02-03 17:44:38 +01:00
2018-02-20 16:23:06 +01:00
2017-12-27 13:36:00 +01:00
2017-12-02 06:53:27 +00:00
2017-12-02 06:53:27 +00:00