From: Eric Anholt Subject: Re: [PATCH] drm/doc: Document uapi requirements in DRM Date: Fri, 19 Aug 2016 14:43:08 -0700 Message-ID: <87eg5kh1ub.fsf@eliezer.anholt.net> References: <1471639838-25591-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0128747074==" Return-path: Received: from anholt.net (anholt.net [50.246.234.109]) by gabe.freedesktop.org (Postfix) with ESMTP id 699226EC88 for ; Fri, 19 Aug 2016 21:43:19 +0000 (UTC) In-Reply-To: <1471639838-25591-1-git-send-email-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 , Liviu Dudau , Laurent Pinchart , Daniel Vetter , Thomas Hellstrom , Alexey Brodkin , Xinliang Liu , Tomi Valkeinen , Ben Skeggs , Russell King , Gerd Hoffmann , Alex Deucher , Maxime Ripard , Christian =?utf-8?Q?K=C3=B6nig?= List-Id: dri-devel@lists.freedesktop.org --===============0128747074== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Daniel Vetter writes: > Everyone knows them, except all the new folks joining from the ARM > side haven't lived through all the pain of the past years and are > entirely surprised when I raise this. Definitely time to document > this. > --- > Documentation/gpu/drm-uapi.rst | 67 ++++++++++++++++++++++++++++++++++++= ++++++ > 1 file changed, 67 insertions(+) > > diff --git a/Documentation/gpu/drm-uapi.rst b/Documentation/gpu/drm-uapi.= rst > index 94876938aef3..a7e3aa27167d 100644 > --- a/Documentation/gpu/drm-uapi.rst > +++ b/Documentation/gpu/drm-uapi.rst > @@ -36,6 +36,73 @@ Primary Nodes, DRM Master and Authentication > Open-Source Userspace Requirements > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20=20 > +The DRM subsystem has stricter requirements on what the userspace side f= or new > +uAPI needs to look like. This section here explains what exactly those > +requirements are, and why they exist. > + > +The short summary is that any addition of DRM uAPI requires corresponding > +open-sourced userspace patches, and those patches must be reviewed and r= eady for > +merging into a suitable and canonical upstream project. > + > +GFX devices (both display and render/GPU side) are really complex bits o= f hardware, > +with userspace and kernel by necessity having to work together really cl= osely. > +The interfaces, for rendering and modesetting must be extremely wide and I think there should be another comma after "modesetting". > +flexible, and therefore it is almost always impossible to precisely defi= ne them > +for every possible corner case. This in turns makes it really practically "in turn" > +These are fairly steep requirements, but have grown out from years of sh= ared > +pain and experience with uAPI added hastily, and almost always regretted= about > +as fast. GFX devices change really fast, requiring a paradigm shift and = entire > +new set of uAPI interfaces every few years at least. Together with the L= inux > +kernel's guarantee to keep existing userspace running for 10+ years this= is > +already rather painful for the DRM subsystem, with multiple different uA= PIs for > +the same thing co-existing. If we'd add a few more complete mistakes int= o the "If we" > +mix every year it would be entirely unmanagable. With the little nitpicks (probably) fixed, Reviewed-by: Eric Anholt --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJXt31sAAoJELXWKTbR/J7oSPUP/2p/4PRzH1DPmcJEf5khdGw2 iEbB2ppxnbdnkszcaxqSY5yesTofa/Sa8jCFftAtam9XXGXwtdg4nOUEtzHXAp5X 8xu8DEA0dIaZUYv4DWoGgptyyKq0Ueei0vJIxdx9bbtoI/6xLWjfwbC/bxMgFUE3 frjbIKPf/J0sIFghC2KffpcnauoUGId89cTHJS0F2rUNhGVKCgVMnST+yXEzskT0 rh8EjcvIib7DIjDXAW6wwBXv2UfDZ6nj8rc5V6srE7QRipYdH3sKshA/06PdxBgN s2SaRLWHzzMM98HyOOBweJamYWsy4VqkQB6LXwiW+k97wtd7r709jtaFTNVAbAwT 9GxhM5hWvIIYCMSGMjSr3dpUW3kMrm3iGnnXLLaQDDFFdBQR0dkoeg8vZFFfUavo xZYndbPXsOwqz70UG3Ypxtwy9cJmKfHd9u+Mg4P/3yo2VmZMyBR1ASLGb1C5rqks 8a0WvP7yIRvwaQm6ZEPbR05OMHrY92MfXPbWvyGZqd+QVXYvUn8RauCOpoGGsAmF EfHfo3krViyfN50KrbdHY8Wg8kw8yuHdOEvv+sMKgtpM5dAbpw7fkeT0VoGkxyk2 /lm07l4S51YyvFe/K8GOzY0maow2UcFbIg3hcoSuzmAMA66Xf49WfECsS/QneCgQ hOiznYAJ/pphElJS3Dsi =qnaC -----END PGP SIGNATURE----- --=-=-=-- --===============0128747074== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0128747074==--