On Thu, 8 Sept 2022 at 14:48, Olivier Masse olivier.masse@nxp.com wrote:
Hi Sumit
On ven., 2022-08-19 at 13:54 +0530, Sumit Garg wrote:
Caution: EXT Email
Hi Olivier,
On Fri, 12 Aug 2022 at 20:01, Olivier Masse olivier.masse@nxp.com wrote:
Add a new ioctl called TEE_IOC_SHM_REGISTER_FD to register a shared memory from a dmabuf file descriptor. This new ioctl will allow the Linux Kernel to register a buffer to be used by the Secure Data Path OPTEE OS feature.
Please find more information here:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstatic.lin...
Patch tested on Hikey 6220.
AFAIU, for the OP-TEE SDP feature to work you need to have a DMA-BUF heap driver for allocating secure buffers through exposed chardev: "/dev/dma_heap/sdp". Have you tested it with some out-of-tree driver as I can't find it upstream? Also, do you plan to push that upstream as well?
It has been tested with linaro,secure-heap reserved dma heap memory which is also in review for upstream.
Can you provide the corresponding reference? Also, do keep OP-TEE ML in CC if you send any new iteration for that patch.
-Sumit
BTW, please add a changelog while sending newer patch-set versions.
-Sumit
Etienne Carriere (1): tee: new ioctl to a register tee_shm from a dmabuf file descriptor
drivers/tee/tee_core.c | 38 +++++++++++++++ drivers/tee/tee_shm.c | 99 +++++++++++++++++++++++++++++++++++++++- include/linux/tee_drv.h | 11 +++++ include/uapi/linux/tee.h | 29 ++++++++++++ 4 files changed, 175 insertions(+), 2 deletions(-)
-- 2.25.0