optee: support protected memory allocation
authorJens Wiklander <jens.wiklander@linaro.org>
Wed, 13 Aug 2025 06:02:56 +0000 (08:02 +0200)
committerJens Wiklander <jens.wiklander@linaro.org>
Thu, 11 Sep 2025 09:22:36 +0000 (11:22 +0200)
commit0e32abef9fc8a418fbe64d4372c6791e02b5c386
tree5c8dcb5636d699d20fa71f92a77bb01f84c3b43c
parentab09dd6d9201af9930efd5a5a0cb56a0fea6a169
optee: support protected memory allocation

Add support in the OP-TEE backend driver for protected memory
allocation. The support is limited to only the SMC ABI and for secure
video buffers.

OP-TEE is probed for the range of protected physical memory and a
memory pool allocator is initialized if OP-TEE have support for such
memory.

Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/optee/Kconfig
drivers/tee/optee/core.c
drivers/tee/optee/optee_private.h
drivers/tee/optee/smc_abi.c