tee: add tee_shm_alloc_dma_mem()
authorJens Wiklander <jens.wiklander@linaro.org>
Wed, 13 Aug 2025 06:02:55 +0000 (08:02 +0200)
committerJens Wiklander <jens.wiklander@linaro.org>
Thu, 11 Sep 2025 09:22:33 +0000 (11:22 +0200)
commitab09dd6d9201af9930efd5a5a0cb56a0fea6a169
tree6619e182de37095f593dd29df89db3635719440e
parent146bf4e75ecab9759ed78c9d167e860042d627fb
tee: add tee_shm_alloc_dma_mem()

Add tee_shm_alloc_dma_mem() to allocate DMA memory. The memory is
represented by a tee_shm object using the new flag TEE_SHM_DMA_MEM to
identify it as DMA memory. The allocated memory will later be lent to
the TEE to be used as protected memory.

Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/tee_shm.c
include/linux/tee_core.h