]> git.dujemihanovic.xyz Git - u-boot.git/commit
tee: optee: sync cache on pre-reloc OP-TEE invocation
authorEtienne Carriere <etienne.carriere@linaro.org>
Wed, 19 May 2021 14:27:41 +0000 (16:27 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 23 Jul 2021 11:13:25 +0000 (07:13 -0400)
commit9e6da34c72274578be6f86ba7b7aa7849a624315
treeb620295bc54e40f7a00a60e313caa5fe3073f072
parent674afa6b3588dafe02b99406278ed81216fbefcb
tee: optee: sync cache on pre-reloc OP-TEE invocation

This change ensures both U-Boot and OP-TEE see the same content
from shared memory when OP-TEE is invoked prior U-Boot relocation.

This change is required since U-Boot may execute with data cache off
while OP-TEE always enables cache on memory shared with U-Boot.

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
drivers/tee/optee/core.c
drivers/tee/tee-uclass.c
include/tee.h