]> git.baikalelectronics.ru Git - kernel.git/commit
optee: add writeback to valid memory type
authorRui Miguel Silva <rui.silva@linaro.org>
Fri, 13 Nov 2020 15:06:04 +0000 (15:06 +0000)
committerJens Wiklander <jens.wiklander@linaro.org>
Wed, 25 Nov 2020 11:51:52 +0000 (12:51 +0100)
commitb4eabac9e5a206cbd4dcbf3a2f4958ae375e36fc
tree35a75aa9a0bf6b1846e2ae2c1c5ba85e706cd6b2
parentcfc45683e0b3f77d850d7167351994c36f3fdee2
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: 97603a543e18 ("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>
drivers/tee/optee/call.c