On Thu, 9 Feb 2012 00:19:31 +0100, Ben Widawsky <ben at bwidawsk.net> wrote: > Mostly copied from i915 gtt mmaps, this will properly fault in pages as > the user tries to use them. The only thing of note are that no > prefaulting occurs, so perhaps some kind of madvise will happen later if > needed. > > The only other thing missing right not is shrinker support, which will > come next after I figure out if locking is actually required right now. > Hmm, and now that I think about it, mremap, and munmap may not work > either.
I still think the mmap ioctl should be fixed to just get the mmap offset, and you use the normal mmap() syscall later. The do_mmap-in-the-ioctl in the original GEM implementation was a bad idea. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20120213/c8660b8e/attachment.pgp>