From: Eric Anholt Subject: Re: [PATCH 5/5] drm/vgem: properly implement mmap Date: Mon, 13 Feb 2012 18:18:01 -0800 Message-ID: <877gzqi2ee.fsf@eliezer.anholt.net> References: <1328743171-13750-1-git-send-email-ben@bwidawsk.net> <1328743171-13750-6-git-send-email-ben@bwidawsk.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1538238693==" Return-path: In-Reply-To: <1328743171-13750-6-git-send-email-ben@bwidawsk.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org Cc: Ben Widawsky List-Id: dri-devel@lists.freedesktop.org --===============1538238693== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Thu, 9 Feb 2012 00:19:31 +0100, Ben Widawsky 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. >=20 > 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. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk85xFkACgkQHUdvYGzw6veIWgCgmFQG5kyyP5Ho4js5Q6tHIj5g sC0AoJtzLEFYyLXBaflMI3sje1/XRAhV =XCNL -----END PGP SIGNATURE----- --=-=-=-- --===============1538238693== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1538238693==--