Re: [PATCH v11 3/7] iio: core: Add new DMABUF interface infrastructure

2024-06-19 Thread Markus Elfring
>> … >>> +++ b/drivers/iio/industrialio-buffer.c >> … >>> +static void iio_buffer_dmabuf_release(struct kref *ref) >>> +{ >> … >>> + dma_resv_lock(dmabuf->resv, NULL); >>> + dma_buf_unmap_attachment(attach, priv->sgt, priv->dir); >>> + dma_resv_unlock(dmabuf->resv); >> … >> >> Under which cir

Re: [PATCH v11 3/7] iio: core: Add new DMABUF interface infrastructure

2024-06-19 Thread Paul Cercueil
Le mercredi 19 juin 2024 à 13:43 +0200, Markus Elfring a écrit : > … > > +++ b/drivers/iio/industrialio-buffer.c > … > > +static void iio_buffer_dmabuf_release(struct kref *ref) > > +{ > … > > + dma_resv_lock(dmabuf->resv, NULL); > > + dma_buf_unmap_attachment(attach, priv->sgt, priv->dir); > >

Re: [PATCH v11 3/7] iio: core: Add new DMABUF interface infrastructure

2024-06-19 Thread Markus Elfring
… > +++ b/drivers/iio/industrialio-buffer.c … > +static void iio_buffer_dmabuf_release(struct kref *ref) > +{ … > + dma_resv_lock(dmabuf->resv, NULL); > + dma_buf_unmap_attachment(attach, priv->sgt, priv->dir); > + dma_resv_unlock(dmabuf->resv); … Under which circumstances will another

Re: [PATCH v11 3/7] iio: core: Add new DMABUF interface infrastructure

2024-06-18 Thread Nuno Sá
/commits/Paul-Cercueil/dmaengine-Add-API-function-dmaengine_prep_peripheral_dma_vec/20240618-180602 > base:   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg > patch link:    > https://lore.kernel.org/r/20240618100302.72886-4-paul%40crapouillou.net > patch subject: [PATCH v

Re: [PATCH v11 3/7] iio: core: Add new DMABUF interface infrastructure

2024-06-18 Thread kernel test robot
/scm/linux/kernel/git/jic23/iio.git togreg patch link: https://lore.kernel.org/r/20240618100302.72886-4-paul%40crapouillou.net patch subject: [PATCH v11 3/7] iio: core: Add new DMABUF interface infrastructure config: x86_64-randconfig-161-20240619 (https://download.01.org/0day-ci/archiv

[PATCH v11 3/7] iio: core: Add new DMABUF interface infrastructure

2024-06-18 Thread Paul Cercueil
Add the necessary infrastructure to the IIO core to support a new optional DMABUF based interface. With this new interface, DMABUF objects (externally created) can be attached to a IIO buffer, and subsequently used for data transfer. A userspace application can then use this interface to share DM