Re: New USB stack and Zero copy.

2007-07-09 Thread John Baldwin
On Saturday 07 July 2007 12:14:24 pm Hans Petter Selasky wrote: > On Friday 06 July 2007 22:41, John Baldwin wrote: > > On Friday 06 July 2007 02:59:39 am Hans Petter Selasky wrote: > > > On Friday 06 July 2007 01:35, John Baldwin wrote: > > > > On Thursday 05 July 2007 04:25:17 pm John Baldwin wro

Re: New USB stack and Zero copy.

2007-07-07 Thread Hans Petter Selasky
On Friday 06 July 2007 22:41, John Baldwin wrote: > On Friday 06 July 2007 02:59:39 am Hans Petter Selasky wrote: > > On Friday 06 July 2007 01:35, John Baldwin wrote: > > > On Thursday 05 July 2007 04:25:17 pm John Baldwin wrote: > > > > On Thursday 05 July 2007 03:31:59 am Hans Petter Selasky wro

Re: New USB stack and Zero copy.

2007-07-06 Thread John Baldwin
On Friday 06 July 2007 02:59:39 am Hans Petter Selasky wrote: > On Friday 06 July 2007 01:35, John Baldwin wrote: > > On Thursday 05 July 2007 04:25:17 pm John Baldwin wrote: > > > On Thursday 05 July 2007 03:31:59 am Hans Petter Selasky wrote: > > > > On Wednesday 04 July 2007 19:35, John-Mark Gur

Re: New USB stack and Zero copy.

2007-07-05 Thread Hans Petter Selasky
On Friday 06 July 2007 01:35, John Baldwin wrote: > On Thursday 05 July 2007 04:25:17 pm John Baldwin wrote: > > On Thursday 05 July 2007 03:31:59 am Hans Petter Selasky wrote: > > > On Wednesday 04 July 2007 19:35, John-Mark Gurney wrote: > > > > Hans Petter Selasky wrote this message on Wed, Jul

Re: New USB stack and Zero copy.

2007-07-05 Thread John Baldwin
On Thursday 05 July 2007 04:25:17 pm John Baldwin wrote: > On Thursday 05 July 2007 03:31:59 am Hans Petter Selasky wrote: > > On Wednesday 04 July 2007 19:35, John-Mark Gurney wrote: > > > Hans Petter Selasky wrote this message on Wed, Jul 04, 2007 at 09:01 > +0200: > > > > Also: How is the easie

Re: New USB stack and Zero copy.

2007-07-05 Thread John Baldwin
On Thursday 05 July 2007 03:31:59 am Hans Petter Selasky wrote: > On Wednesday 04 July 2007 19:35, John-Mark Gurney wrote: > > Hans Petter Selasky wrote this message on Wed, Jul 04, 2007 at 09:01 +0200: > > > Also: How is the easiest way to load memory pages into DMA ? And I want > > > that the lo

Re: New USB stack and Zero copy.

2007-07-05 Thread Hans Petter Selasky
On Wednesday 04 July 2007 19:35, John-Mark Gurney wrote: > Hans Petter Selasky wrote this message on Wed, Jul 04, 2007 at 09:01 +0200: > > I want to get rid of the copying between DMA'able memory and non-DMA'able > > memory. > > > > Currently I allocate N memory-pages for each USB transfer like sep

Re: New USB stack and Zero copy.

2007-07-04 Thread John-Mark Gurney
Hans Petter Selasky wrote this message on Wed, Jul 04, 2007 at 09:01 +0200: > I want to get rid of the copying between DMA'able memory and non-DMA'able > memory. > > Currently I allocate N memory-pages for each USB transfer like separate pages. How do you allocate these pages? With malloc(9) or

New USB stack and Zero copy.

2007-07-04 Thread Hans Petter Selasky
Hi, I want to get rid of the copying between DMA'able memory and non-DMA'able memory. Currently I allocate N memory-pages for each USB transfer like separate pages. The bus-dma system then assigns all of these pages each their virtual address. What I see is that when I allocate more than PAGE