Re: DMA Engine: Transfer From Userspace

2020-07-01 Thread Thomas Ruf
> On 30 June 2020 at 14:31 Peter Ujfalusi wrote: > > > > > On 29/06/2020 18.18, Thomas Ruf wrote: > > > >> On 26 June 2020 at 12:29 Peter Ujfalusi wrote: > >> > >> On 24/06/2020 16.58, Thomas Ruf wrote: > >>> > On 24 June 2020 at 14:07 Peter Ujfalusi wrote: > On 24/06/2020 12.38

Re: DMA Engine: Transfer From Userspace

2020-06-30 Thread Peter Ujfalusi
On 29/06/2020 18.18, Thomas Ruf wrote: > >> On 26 June 2020 at 12:29 Peter Ujfalusi wrote: >> >> On 24/06/2020 16.58, Thomas Ruf wrote: >>> On 24 June 2020 at 14:07 Peter Ujfalusi wrote: On 24/06/2020 12.38, Vinod Koul wrote: > On 24-06-20, 11:30, Thomas Ruf wrote: > >>

Re: DMA Engine: Transfer From Userspace

2020-06-29 Thread Thomas Ruf
> On 26 June 2020 at 22:08 Ira Weiny wrote: > > > On Thu, Jun 25, 2020 at 10:11:28AM +0200, Thomas Ruf wrote: > > > > > On 25 June 2020 at 02:42 Dave Jiang wrote: > > > > > > > > > > > > > > > On 6/21/2020 12:24 AM, Vinod Koul wrote: > > > > On 19-06-20, 16:31, Dave Jiang wrote: > > > >>

Re: DMA Engine: Transfer From Userspace

2020-06-29 Thread Thomas Ruf
> On 26 June 2020 at 12:29 Peter Ujfalusi wrote: > > On 24/06/2020 16.58, Thomas Ruf wrote: > > > >> On 24 June 2020 at 14:07 Peter Ujfalusi wrote: > >> On 24/06/2020 12.38, Vinod Koul wrote: > >>> On 24-06-20, 11:30, Thomas Ruf wrote: > >>> > To make it short - i have two questions: > >

Re: DMA Engine: Transfer From Userspace

2020-06-26 Thread Ira Weiny
On Thu, Jun 25, 2020 at 10:11:28AM +0200, Thomas Ruf wrote: > > > On 25 June 2020 at 02:42 Dave Jiang wrote: > > > > > > > > > > On 6/21/2020 12:24 AM, Vinod Koul wrote: > > > On 19-06-20, 16:31, Dave Jiang wrote: > > >> > > >> > > >> On 6/19/2020 3:47 PM, Federico Vaga wrote: > > >>> Hello,

Re: DMA Engine: Transfer From Userspace

2020-06-26 Thread Peter Ujfalusi
On 24/06/2020 16.58, Thomas Ruf wrote: > >> On 24 June 2020 at 14:07 Peter Ujfalusi wrote: >> On 24/06/2020 12.38, Vinod Koul wrote: >>> On 24-06-20, 11:30, Thomas Ruf wrote: >>> To make it short - i have two questions: - what are the chances to revive DMA_SG? >>> >>> 100%, if we hav

Re: DMA Engine: Transfer From Userspace

2020-06-25 Thread Thomas Ruf
> On 25 June 2020 at 02:42 Dave Jiang wrote: > > > > > On 6/21/2020 12:24 AM, Vinod Koul wrote: > > On 19-06-20, 16:31, Dave Jiang wrote: > >> > >> > >> On 6/19/2020 3:47 PM, Federico Vaga wrote: > >>> Hello, > >>> > >>> is there the possibility of using a DMA engine channel from userspace?

Re: DMA Engine: Transfer From Userspace

2020-06-24 Thread Dave Jiang
On 6/21/2020 12:24 AM, Vinod Koul wrote: On 19-06-20, 16:31, Dave Jiang wrote: On 6/19/2020 3:47 PM, Federico Vaga wrote: Hello, is there the possibility of using a DMA engine channel from userspace? Something like: - configure DMA using ioctl() (or whatever configuration mechanism) - re

Re: DMA Engine: Transfer From Userspace

2020-06-24 Thread Thomas Ruf
> On 24 June 2020 at 14:07 Peter Ujfalusi wrote: > On 24/06/2020 12.38, Vinod Koul wrote: > > On 24-06-20, 11:30, Thomas Ruf wrote: > > > >> To make it short - i have two questions: > >> - what are the chances to revive DMA_SG? > > > > 100%, if we have a in-kernel user > > Most DMAs can not h

Re: DMA Engine: Transfer From Userspace

2020-06-24 Thread Peter Ujfalusi
On 24/06/2020 12.38, Vinod Koul wrote: > On 24-06-20, 11:30, Thomas Ruf wrote: > >> To make it short - i have two questions: >> - what are the chances to revive DMA_SG? > > 100%, if we have a in-kernel user Most DMAs can not handle differently provisioned sg_list for src and dst. Even if they

Re: DMA Engine: Transfer From Userspace

2020-06-24 Thread Vinod Koul
On 24-06-20, 11:30, Thomas Ruf wrote: > To make it short - i have two questions: > - what are the chances to revive DMA_SG? 100%, if we have a in-kernel user > - what are the chances to get my driver for memcpy like transfers from > user space using DMA_SG upstream? ("dma-sg-proxy") pretty blea

Re: DMA Engine: Transfer From Userspace

2020-06-24 Thread Thomas Ruf
> On 22 June 2020 at 18:34 Thomas Ruf wrote: > > > > > On 22 June 2020 at 17:54 Vinod Koul wrote: > > > > > > On 22-06-20, 14:01, Thomas Ruf wrote: > > > > On 22 June 2020 at 06:47 Vinod Koul wrote: > > > > > > > > On 21-06-20, 22:36, Federico Vaga wrote: > > > > > On Sun, Jun 21, 2020 a

Re: DMA Engine: Transfer From Userspace

2020-06-22 Thread Thomas Ruf
> On 22 June 2020 at 17:54 Vinod Koul wrote: > > > On 22-06-20, 14:01, Thomas Ruf wrote: > > > On 22 June 2020 at 06:47 Vinod Koul wrote: > > > > > > On 21-06-20, 22:36, Federico Vaga wrote: > > > > On Sun, Jun 21, 2020 at 12:54:57PM +0530, Vinod Koul wrote: > > > > > On 19-06-20, 16:31, Dav

Re: DMA Engine: Transfer From Userspace

2020-06-22 Thread Vinod Koul
On 22-06-20, 14:01, Thomas Ruf wrote: > > On 22 June 2020 at 06:47 Vinod Koul wrote: > > > > On 21-06-20, 22:36, Federico Vaga wrote: > > > On Sun, Jun 21, 2020 at 12:54:57PM +0530, Vinod Koul wrote: > > > > On 19-06-20, 16:31, Dave Jiang wrote: > > > > > > > > > > > > > > > On 6/19/2020 3:47 P

Re: DMA Engine: Transfer From Userspace

2020-06-22 Thread Thomas Ruf
> On 22 June 2020 at 14:30 Federico Vaga wrote: > > > On Mon, Jun 22, 2020 at 02:01:12PM +0200, Thomas Ruf wrote: > >> On 22 June 2020 at 06:47 Vinod Koul wrote: > >> > >> On 21-06-20, 22:36, Federico Vaga wrote: > >> > On Sun, Jun 21, 2020 at 12:54:57PM +0530, Vinod Koul wrote: > >> > > On 1

Re: DMA Engine: Transfer From Userspace

2020-06-22 Thread Thomas Ruf
> On 22 June 2020 at 14:27 Richard Weinberger > wrote: > > > On Mon, Jun 22, 2020 at 2:02 PM Thomas Ruf wrote: > > > more the reason not do do so, why cant a kernel driver be added for your > > > usage? > > > > by chance i have written a driver allowing dma from user space using a > > memcpy

Re: DMA Engine: Transfer From Userspace

2020-06-22 Thread Federico Vaga
On Mon, Jun 22, 2020 at 02:01:12PM +0200, Thomas Ruf wrote: On 22 June 2020 at 06:47 Vinod Koul wrote: On 21-06-20, 22:36, Federico Vaga wrote: > On Sun, Jun 21, 2020 at 12:54:57PM +0530, Vinod Koul wrote: > > On 19-06-20, 16:31, Dave Jiang wrote: > > > > > > > > > On 6/19/2020 3:47 PM, Federic

Re: DMA Engine: Transfer From Userspace

2020-06-22 Thread Richard Weinberger
On Mon, Jun 22, 2020 at 2:02 PM Thomas Ruf wrote: > > more the reason not do do so, why cant a kernel driver be added for your > > usage? > > by chance i have written a driver allowing dma from user space using a memcpy > like interface ;-) > now i am trying to get this code upstream but was hit

Re: DMA Engine: Transfer From Userspace

2020-06-22 Thread Thomas Ruf
> On 22 June 2020 at 06:47 Vinod Koul wrote: > > On 21-06-20, 22:36, Federico Vaga wrote: > > On Sun, Jun 21, 2020 at 12:54:57PM +0530, Vinod Koul wrote: > > > On 19-06-20, 16:31, Dave Jiang wrote: > > > > > > > > > > > > On 6/19/2020 3:47 PM, Federico Vaga wrote: > > > > > Hello, > > > > > > >

Re: DMA Engine: Transfer From Userspace

2020-06-22 Thread Vinod Koul
On 22-06-20, 11:25, Federico Vaga wrote: > On Sat, Jun 20, 2020 at 12:47:16AM +0200, Federico Vaga wrote: > > Hello, > > > > is there the possibility of using a DMA engine channel from userspace? > > > > Something like: > > - configure DMA using ioctl() (or whatever configuration mechanism) > > -

Re: DMA Engine: Transfer From Userspace

2020-06-22 Thread Federico Vaga
On Sat, Jun 20, 2020 at 12:47:16AM +0200, Federico Vaga wrote: Hello, is there the possibility of using a DMA engine channel from userspace? Something like: - configure DMA using ioctl() (or whatever configuration mechanism) - read() or write() to trigger the transfer Let me add one more ques

Re: DMA Engine: Transfer From Userspace

2020-06-21 Thread Federico Vaga
On Mon, Jun 22, 2020 at 10:17:33AM +0530, Vinod Koul wrote: On 21-06-20, 22:36, Federico Vaga wrote: On Sun, Jun 21, 2020 at 12:54:57PM +0530, Vinod Koul wrote: > On 19-06-20, 16:31, Dave Jiang wrote: > > > > > > On 6/19/2020 3:47 PM, Federico Vaga wrote: > > > Hello, > > > > > > is there the po

Re: DMA Engine: Transfer From Userspace

2020-06-21 Thread Vinod Koul
On 21-06-20, 22:36, Federico Vaga wrote: > On Sun, Jun 21, 2020 at 12:54:57PM +0530, Vinod Koul wrote: > > On 19-06-20, 16:31, Dave Jiang wrote: > > > > > > > > > On 6/19/2020 3:47 PM, Federico Vaga wrote: > > > > Hello, > > > > > > > > is there the possibility of using a DMA engine channel from

Re: DMA Engine: Transfer From Userspace

2020-06-21 Thread Federico Vaga
On Sun, Jun 21, 2020 at 10:45:04PM +0200, Richard Weinberger wrote: On Sun, Jun 21, 2020 at 10:37 PM Federico Vaga wrote: >Federico, what use case do you have in mind? Userspace drivers Is using vfio an option? I do not know the subsystem. Could be, thanks for the suggestion I will have a

Re: DMA Engine: Transfer From Userspace

2020-06-21 Thread Richard Weinberger
On Sun, Jun 21, 2020 at 10:37 PM Federico Vaga wrote: > >Federico, what use case do you have in mind? > > Userspace drivers Is using vfio an option? -- Thanks, //richard

Re: DMA Engine: Transfer From Userspace

2020-06-21 Thread Federico Vaga
On Sun, Jun 21, 2020 at 12:54:57PM +0530, Vinod Koul wrote: On 19-06-20, 16:31, Dave Jiang wrote: On 6/19/2020 3:47 PM, Federico Vaga wrote: > Hello, > > is there the possibility of using a DMA engine channel from userspace? > > Something like: > - configure DMA using ioctl() (or whatever conf

Re: DMA Engine: Transfer From Userspace

2020-06-21 Thread Vinod Koul
On 19-06-20, 16:31, Dave Jiang wrote: > > > On 6/19/2020 3:47 PM, Federico Vaga wrote: > > Hello, > > > > is there the possibility of using a DMA engine channel from userspace? > > > > Something like: > > - configure DMA using ioctl() (or whatever configuration mechanism) > > - read() or write(

Re: DMA Engine: Transfer From Userspace

2020-06-19 Thread Dave Jiang
On 6/19/2020 3:47 PM, Federico Vaga wrote: Hello, is there the possibility of using a DMA engine channel from userspace? Something like: - configure DMA using ioctl() (or whatever configuration mechanism) - read() or write() to trigger the transfer I may have supposedly promised Vinod to