android_kernel_xiaomi_sdm845/drivers/tee
Rui Miguel Silva 6e3cd2a7be UPSTREAM: optee: add writeback to valid memory type
Only in smp systems the cache policy is setup as write alloc, in
single cpu systems the cache policy is set as writeback and it is
normal memory, so, it should pass the is_normal_memory check in the
share memory registration.

Add the right condition to make it work in no smp systems.

Fixes: cdbcf83d29c1 ("tee: optee: check type of registered shared memory")
Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
(cherry picked from commit 853735e404244f5496cdb6188c5ed9a0f9627ee6)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I51048c263982850c46b639d12b1bf25604d5dd15
2022-02-21 16:30:33 +01:00
..
optee UPSTREAM: optee: add writeback to valid memory type 2022-02-21 16:30:33 +01:00
Kconfig BACKPORT: tee: add ARM_SMCCC dependency 2018-01-12 16:44:40 +00:00
Makefile
tee_core.c UPSTREAM: tee: fix put order in teedev_close_context() 2022-02-21 16:22:34 +01:00
tee_private.h BACKPORT: tee: use reference counting for tee_context 2018-02-21 15:40:43 +00:00
tee_shm_pool.c BACKPORT: tee: flexible shared memory pool creation 2018-02-21 15:40:42 +00:00
tee_shm.c UPSTREAM: tee: shm: fix use-after-free via temporarily dropped reference 2020-11-16 14:21:26 +00:00