]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Dec 2020 07:51:58 +0000 (08:51 +0100)
commit68a9159c832b34f55c9612d492028a589d8e5985
tree48f10abf032b2e7e27b8edc4bf1731a62537a55b
parent0faa4f7d817bf24bc7804194a1d56e952430a5dd
optee: add writeback to valid memory type

[ Upstream commit 853735e404244f5496cdb6188c5ed9a0f9627ee6 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tee/optee/call.c