From: Eric Anholt Subject: Re: [PATCH] drm/todo: Fallout from v3d review Date: Wed, 25 Apr 2018 09:13:09 -0700 Message-ID: <87vacf8dt6.fsf@anholt.net> References: <20180425111742.5872-1-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0717733844==" Return-path: Received: from anholt.net (anholt.net [50.246.234.109]) by gabe.freedesktop.org (Postfix) with ESMTP id 1F6BD6E627 for ; Wed, 25 Apr 2018 16:13:14 +0000 (UTC) In-Reply-To: <20180425111742.5872-1-daniel.vetter@ffwll.ch> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: DRI Development Cc: Daniel Vetter , Daniel Vetter List-Id: dri-devel@lists.freedesktop.org --===============0717733844== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Daniel Vetter writes: > Bunch of ideas from Eric and me on what we could do to make gem gpu > rendering drivers a notch simpler to type. > > Cc: Eric Anholt > Signed-off-by: Daniel Vetter > diff --git a/Documentation/gpu/todo.rst b/Documentation/gpu/todo.rst > index f4d0b3476d9c..d1fe865e6d2e 100644 > --- a/Documentation/gpu/todo.rst > +++ b/Documentation/gpu/todo.rst > @@ -212,6 +212,24 @@ probably use drm_fb_helper_fbdev_teardown(). >=20=20 > Contact: Maintainer of the driver you plan to convert >=20=20 > +Clean up mmap forwarding > +------------------------ > + > +A lot of drivers forward gem mmap calls to dma-buf mmap for imported buf= fers. > +And also a lot of them forward dma-buf mmap to the gem mmap implemenatio= ns. > +Would be great to refactor this all into a set of small common helpers. "implementations" Reviewed-by: Eric Anholt > + > +Contact: Daniel Vetter > + > +Put a reservation_object into drm_gem_object > +-------------------------------------------- > + > +This would remove the need for the ->gem_prime_res_obj callback. It woul= d also > +allow us to implement generic helpers for waiting for a bo, allowing for= quite a > +bit of refactoring in the various wait ioctl implemenations. > + > +Contact: Daniel Vetter > + > idr_init_base() > --------------- >=20=20 > --=20 > 2.16.2 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE/JuuFDWp9/ZkuCBXtdYpNtH8nugFAlrgqRUACgkQtdYpNtH8 nugcSA//YWYCo5XhkecMR+tvQysQNuKfWDd/QeH1emaNWbZ19DbnIeZKbXL/vF9R WSkHlQ2yen7H/FiXihXMvEDfFnA+Lfvq8vUnsOC/tAFBNiGFpRe4H36T/9C0L0PU VC4eWdTAf14E9YxFauVdjbWWwrb8If6aVMVNL5Y+KSjUmGQWF8ih3+2Q5dmiMQA9 Orr/RCsec3qEHwGBAuUz/8iETmtRI787wl3xB0G88+2FIHwd3t7+P7ulMzt3d/Hh 26//JEWFwVEiGhB+HS9NkZVpdUopg0zd4U1Jh0T4IOytn1IBcWH8+6T0+1UFbdDT l5934q+F2FwannPQx1mGli6yIdd6cCdKzg7Lq8L/Mq4OO5jJeikHX805Py6CDNx3 oFhHo3j3gx6Z28aKLGkiV+1x9MteQQreANhyFWGdwq9ieYrm0N9ugU0e0y0jY6iO v2hBErO2Bo8i/C8cGlsx2+Kn5uKcK2td7MfE3ojVlLxMc2/I4S/KzxJEtjQvfb7U p1xltl0rGI74lHzSQSKpWEManWmGL1rFBxpKT92raPilV1KW0tJgbfyY2nD1L/M/ QuNBimr/Gpdlr07IqVMZqgQwH0Yr4Gz0xA2Hv0dcWoeWSkIk5sRuZFjBLSrfTFXp 2PAKR7I/l4fG4ouq0s5vgLY2cmIcwI0aLCB6HZspGrvVYe64vlc= =n2eh -----END PGP SIGNATURE----- --=-=-=-- --===============0717733844== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0717733844==--