Re: [PATCH v7 3/6] iio: core: Add new DMABUF interface infrastructure

2024-03-04 Thread Christian König
Am 04.03.24 um 15:29 schrieb Paul Cercueil: Le lundi 04 mars 2024 à 14:41 +0100, Christian König a écrit : Trying to send this once more as text only. Am 04.03.24 um 14:40 schrieb Christian König: Am 04.03.24 um 14:28 schrieb Nuno Sá: On Mon, 2024-03-04 at 13:44 +0100, Christian König wrote:

Re: [PATCH v7 3/6] iio: core: Add new DMABUF interface infrastructure

2024-03-04 Thread Paul Cercueil
Le lundi 04 mars 2024 à 14:41 +0100, Christian König a écrit : > Trying to send this once more as text only. > > Am 04.03.24 um 14:40 schrieb Christian König: > > Am 04.03.24 um 14:28 schrieb Nuno Sá: > > > On Mon, 2024-03-04 at 13:44 +0100, Christian König wrote: > > > > Am 23.02.24 um 13:14 schr

Re: [PATCH v7 3/6] iio: core: Add new DMABUF interface infrastructure

2024-03-04 Thread Paul Cercueil
Le lundi 04 mars 2024 à 15:07 +0100, Christian König a écrit : >  Am 04.03.24 um 14:59 schrieb Paul Cercueil: >   > > [SNIP] > >   > > >   > > > >   > > > > + dma_to_ram = buffer->direction == > > > > IIO_BUFFER_DIRECTION_IN; > > > > + > > > > + if (dma_to_ram) { > > > > +

Re: [PATCH v7 3/6] iio: core: Add new DMABUF interface infrastructure

2024-03-04 Thread Christian König
Am 04.03.24 um 14:59 schrieb Paul Cercueil: [SNIP] + dma_to_ram = buffer->direction == IIO_BUFFER_DIRECTION_IN; + + if (dma_to_ram) { + /* +* If we're writing to the DMABUF, make sure we don't have +* readers +*/ +

Re: [PATCH v7 3/6] iio: core: Add new DMABUF interface infrastructure

2024-03-04 Thread Paul Cercueil
Hi Christian, Le lundi 04 mars 2024 à 13:44 +0100, Christian König a écrit : > Am 23.02.24 um 13:14 schrieb Nuno Sa: > > From: Paul Cercueil > > > > Add the necessary infrastructure to the IIO core to support a new > > optional DMABUF based interface. > > > > With this new interface, DMABUF obj

Re: [PATCH v7 3/6] iio: core: Add new DMABUF interface infrastructure

2024-03-04 Thread Christian König
Trying to send this once more as text only. Am 04.03.24 um 14:40 schrieb Christian König: Am 04.03.24 um 14:28 schrieb Nuno Sá: On Mon, 2024-03-04 at 13:44 +0100, Christian König wrote: Am 23.02.24 um 13:14 schrieb Nuno Sa: From: Paul Cercueil Add the necessary infrastructure to the IIO core

Re: [PATCH v7 3/6] iio: core: Add new DMABUF interface infrastructure

2024-03-04 Thread Christian König
Am 04.03.24 um 14:28 schrieb Nuno Sá: On Mon, 2024-03-04 at 13:44 +0100, Christian König wrote: Am 23.02.24 um 13:14 schrieb Nuno Sa: From: Paul Cercueil Add the necessary infrastructure to the IIO core to support a new optional DMABUF based interface. With this new interface, DMABUF objects

Re: [PATCH v7 3/6] iio: core: Add new DMABUF interface infrastructure

2024-03-04 Thread Nuno Sá
On Mon, 2024-03-04 at 13:44 +0100, Christian König wrote: > Am 23.02.24 um 13:14 schrieb Nuno Sa: > > From: 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 cre

Re: [PATCH v7 3/6] iio: core: Add new DMABUF interface infrastructure

2024-03-04 Thread Christian König
Am 23.02.24 um 13:14 schrieb Nuno Sa: From: 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

[PATCH v7 3/6] iio: core: Add new DMABUF interface infrastructure

2024-02-23 Thread Nuno Sa
From: 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