Re: DMA bitblt pageing?

2005-07-09 Thread Alan Cox
On Gwe, 2005-07-08 at 09:18, Thomas Hellström wrote: Is this because they are not physically contigous or because they may not be accessible to the PCI device? I was thinking of using vmalloced memory instead of kmalloced for the device sg-list, and since it is a linked list it should be able

Re: DMA bitblt pageing?

2005-07-08 Thread Thomas Hellström
Hi! 3.) Is memory allocated with vmalloc always locked into physical memory until freed? Yes but it may not be DMAable. Thanks. Is this because they are not physically contigous or because they may not be accessible to the PCI device? I was thinking of using vmalloced memory instead of

DMA bitblt pageing?

2005-07-07 Thread Thomas Hellström
Hi! I'm trying to incorporate a patch I got for DMA bitblt into the via drm. Probably useful for a lot of things including Xv image transfer, Texture downloads and Exa acceleration. Got it working, but to really know what I'm doing, being a kernel programming novice, could I have some help

Re: DMA bitblt pageing?

2005-07-07 Thread Jon Smirl
http://lwn.net/Kernel/LDD3/ Chapter 15 explains how DMA works under Linux. -- Jon Smirl [EMAIL PROTECTED] --- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore

Re: DMA bitblt pageing?

2005-07-07 Thread Thomas Hellström
Jon Smirl wrote: http://lwn.net/Kernel/LDD3/ Chapter 15 explains how DMA works under Linux. Thanks! /Thomas --- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you

Re: DMA bitblt pageing?

2005-07-07 Thread Alan Cox
On Iau, 2005-07-07 at 23:50, Thomas Hellström wrote: 1.) get_user_pages() should presumably lock a page into physical memory. Will this always cause a segfault for an invalid address? You'll get an error for invalid space. You may also get null entries in the array for locking the paged if