[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAO_48GE=FHaNzybUxjY=igyOO1oasKb9yu_yAjJEdjTQXicaJA@mail.gmail.com>
Date: Thu, 11 Sep 2025 13:30:35 +0530
From: Sumit Semwal <sumit.semwal@...aro.org>
To: Jens Wiklander <jens.wiklander@...aro.org>
Cc: "T.J. Mercier" <tjmercier@...gle.com>, Sumit Garg <sumit.garg@...nel.org>,
Christian König <christian.koenig@....com>,
linux-kernel@...r.kernel.org, linux-media@...r.kernel.org,
dri-devel@...ts.freedesktop.org, linaro-mm-sig@...ts.linaro.org,
op-tee@...ts.trustedfirmware.org, linux-arm-kernel@...ts.infradead.org,
Olivier Masse <olivier.masse@....com>, Thierry Reding <thierry.reding@...il.com>,
Yong Wu <yong.wu@...iatek.com>, Benjamin Gaignard <benjamin.gaignard@...labora.com>,
Brian Starkey <Brian.Starkey@....com>, John Stultz <jstultz@...gle.com>,
Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>, azarrabi@....qualcomm.com,
Simona Vetter <simona.vetter@...ll.ch>, Daniel Stone <daniel@...ishbar.org>,
Rouven Czerwinski <rouven.czerwinski@...aro.org>, robin.murphy@....com,
Sumit Garg <sumit.garg@....qualcomm.com>
Subject: Re: [PATCH v11 2/9] dma-buf: dma-heap: export declared functions
Hi Jens,
On Thu, 11 Sept 2025 at 13:20, Jens Wiklander <jens.wiklander@...aro.org> wrote:
>
> Hi Sumit,
>
> On Thu, Sep 11, 2025 at 9:15 AM Sumit Semwal <sumit.semwal@...aro.org> wrote:
> >
> > Hello Jens,
> >
> > On Fri, 15 Aug 2025 at 05:00, T.J. Mercier <tjmercier@...gle.com> wrote:
> > >
> > > On Wed, Aug 13, 2025 at 11:13 PM Sumit Garg <sumit.garg@...nel.org> wrote:
> > > >
> > > > On Wed, Aug 13, 2025 at 08:02:51AM +0200, Jens Wiklander wrote:
> > > > > Export the dma-buf heap functions to allow them to be used by the OP-TEE
> > > > > driver. The OP-TEE driver wants to register and manage specific secure
> > > > > DMA heaps with it.
> > Thank you for the series.
> >
> > Could you please use EXPORT_SYMBOL_GPL_NS instead of EXPORT_SYMBOL for these?
>
> Sure, what namespace do you want in the argument for
> EXPORT_SYMBOL_GPL_NS()? "DMA_BUF"?
I think "DMA_BUF_HEAP" may be better?
>
> >
> > With that change, please feel free to use my
> > Acked-by: Sumit Semwal <sumit.semwal@...aro.org>
>
> Thanks,
> Jens
>
> > > > >
> > > > > Signed-off-by: Jens Wiklander <jens.wiklander@...aro.org>
> > > > > Reviewed-by: Sumit Garg <sumit.garg@....qualcomm.com>
> > > > > ---
> > > > > drivers/dma-buf/dma-heap.c | 3 +++
> > > > > 1 file changed, 3 insertions(+)
> > > > >
> > > >
> > > > Can we get an ack from DMAbuf maintainers here? With that we should be
> > > > able to queue this patch-set for linux-next targetting the 6.18 merge
> > > > window.
> > > >
> > > > -Sumit
> > >
> > > Reviewed-by: T.J. Mercier <tjmercier@...gle.com>
> > >
> > > Sorry I haven't been able to participate much upstream lately.
> > > >
> > > > > diff --git a/drivers/dma-buf/dma-heap.c b/drivers/dma-buf/dma-heap.c
> > > > > index 3cbe87d4a464..cdddf0e24dce 100644
> > > > > --- a/drivers/dma-buf/dma-heap.c
> > > > > +++ b/drivers/dma-buf/dma-heap.c
> > > > > @@ -202,6 +202,7 @@ void *dma_heap_get_drvdata(struct dma_heap *heap)
> > > > > {
> > > > > return heap->priv;
> > > > > }
> > > > > +EXPORT_SYMBOL(dma_heap_get_drvdata);
> > > > >
> > > > > /**
> > > > > * dma_heap_get_name - get heap name
> > > > > @@ -214,6 +215,7 @@ const char *dma_heap_get_name(struct dma_heap *heap)
> > > > > {
> > > > > return heap->name;
> > > > > }
> > > > > +EXPORT_SYMBOL(dma_heap_get_name);
> > > > >
> > > > > /**
> > > > > * dma_heap_add - adds a heap to dmabuf heaps
> > > > > @@ -303,6 +305,7 @@ struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info)
> > > > > kfree(heap);
> > > > > return err_ret;
> > > > > }
> > > > > +EXPORT_SYMBOL(dma_heap_add);
> > > > >
> > > > > static char *dma_heap_devnode(const struct device *dev, umode_t *mode)
> > > > > {
> > > > > --
> > > > > 2.43.0
> > > > >
> >
> > Best,
> > Sumit.
--
Thanks and regards,
Sumit Semwal (he / him)
Senior Tech Lead - Android, Platforms and Virtualisation
Linaro.org │ Arm Solutions at Light Speed
Powered by blists - more mailing lists