Re: [Patch v2] tee: optee: Fix dynamic shm pool allocations

From: Jens Wiklander
Date: Fri Nov 15 2019 - 05:35:49 EST


Hi Sumit,

On Fri, Nov 08, 2019 at 04:57:14PM +0530, Sumit Garg wrote:
> In case of dynamic shared memory pool, kernel memory allocated using
> dmabuf_mgr pool needs to be registered with OP-TEE prior to its usage
> during optee_open_session() or optee_invoke_func().
>
> So fix dmabuf_mgr pool allocations via an additional call to
> optee_shm_register().
>
> Also, allow kernel pages to be registered as shared memory with OP-TEE.
>
> Fixes: 9733b072a12a ("optee: allow to work without static shared memory")
> Signed-off-by: Sumit Garg <sumit.garg@xxxxxxxxxx>
> ---
>
> Changes in v2:
> Merge the dependency patch: https://lkml.org/lkml/2019/10/31/431
>

Looks good, I'm picking this up.

Thanks,
Jens