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 with these ones?

1.) get_user_pages() should presumably lock a page into physical memory. Will this always cause a segfault for an invalid address? 2.) Unlocking pages previously locked with get_user_pages(): is page_cache_release() sufficient or are more calls needed? Could the unlocking functions be called from an interrupt handler? Is a refcount maintained for this page locking or is it one-level only? 3.) Is memory allocated with vmalloc always locked into physical memory until freed? 4.) Are there any DRM macros for the above, to make porting to other OS'es easier?

Thanks for any advice,
Thomas Hellström






-------------------------------------------------------
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 the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to