Re: [RFC] User space to kernel space copy optimization

2015-12-05 Thread Sinan Kaya
On 12/5/2015 3:10 AM, Vinod Koul wrote: > On Mon, Nov 16, 2015 at 04:53:27PM -0500, Sinan Kaya wrote: >> One of the things I'm interested in is to use a memcpy capable DMA >> engine HW to optimize user space and kernel space parameter copying. >> >> Of course, this will not be viable for all parame

Re: [RFC] User space to kernel space copy optimization

2015-12-05 Thread Vinod Koul
On Mon, Nov 16, 2015 at 04:53:27PM -0500, Sinan Kaya wrote: > One of the things I'm interested in is to use a memcpy capable DMA > engine HW to optimize user space and kernel space parameter copying. > > Of course, this will not be viable for all parameter sizes but I can see > this being useful.

Re: [RFC] User space to kernel space copy optimization

2015-11-17 Thread Jiang, Dave
On Mon, 2015-11-16 at 23:19 +, Sinan Kaya wrote: > On 11/16/2015 5:57 PM, Jiang, Dave wrote: > > > One of the things I'm interested in is to use a memcpy capable > > > DMA > > > > engine HW to optimize user space and kernel space parameter > > > > copying. > > Have you looked at why NET_DMA was

Re: [RFC] User space to kernel space copy optimization

2015-11-16 Thread Sinan Kaya
On 11/16/2015 5:57 PM, Jiang, Dave wrote: >> One of the things I'm interested in is to use a memcpy capable DMA >> > engine HW to optimize user space and kernel space parameter copying. > Have you looked at why NET_DMA was deprecated and using DMA engine to > do kernel->user copy could be a problem

Re: [RFC] User space to kernel space copy optimization

2015-11-16 Thread Jiang, Dave
On Mon, 2015-11-16 at 21:53 +, Sinan Kaya wrote: > One of the things I'm interested in is to use a memcpy capable DMA > engine HW to optimize user space and kernel space parameter copying. Have you looked at why NET_DMA was deprecated and using DMA engine to do kernel->user copy could be a p

[RFC] User space to kernel space copy optimization

2015-11-16 Thread Sinan Kaya
One of the things I'm interested in is to use a memcpy capable DMA engine HW to optimize user space and kernel space parameter copying. Of course, this will not be viable for all parameter sizes but I can see this being useful. The goal is to save power in the cost of little performance. Before I