]> 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:48:12 +0000 (08:48 +0100)
commitd6172283a4706aef3136d704e27b8446e879f010
tree662235fb1b1c42d1d001e48b37d1f00fe5484a3a
parentf862c859218200fa2d4f22f8d2c5bfbbd09a53b9
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