]> www.infradead.org Git - users/jedix/linux-maple.git/commit
optee: FF-A: dynamic protected memory allocation
authorJens Wiklander <jens.wiklander@linaro.org>
Wed, 13 Aug 2025 06:02:57 +0000 (08:02 +0200)
committerJens Wiklander <jens.wiklander@linaro.org>
Thu, 11 Sep 2025 09:22:40 +0000 (11:22 +0200)
commit2b78d79cdf963e09ec8b90c55216b6ab5a83dbaf
tree424919b200ba52056f08b81b85dbf888efa96c25
parent0e32abef9fc8a418fbe64d4372c6791e02b5c386
optee: FF-A: dynamic protected memory allocation

Add support in the OP-TEE backend driver dynamic protected memory
allocation with FF-A.

The protected memory pools for dynamically allocated protected memory
are instantiated when requested by user-space. This instantiation can
fail if OP-TEE doesn't support the requested use-case of protected
memory.

Restricted memory pools based on a static carveout or dynamic allocation
can coexist for different use-cases. We use only dynamic allocation with
FF-A.

Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/optee/Makefile
drivers/tee/optee/ffa_abi.c
drivers/tee/optee/optee_private.h
drivers/tee/optee/protmem.c [new file with mode: 0644]