All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <christian.koenig@amd.com>
To: Eric Anholt <eric@anholt.net>,
	Daniel Vetter <daniel.vetter@ffwll.ch>,
	DRI Development <dri-devel@lists.freedesktop.org>
Cc: Liviu Dudau <liviu.dudau@arm.com>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Daniel Vetter <daniel.vetter@intel.com>,
	Thomas Hellstrom <thellstrom@vmware.com>,
	Alexey Brodkin <abrodkin@synopsys.com>,
	Xinliang Liu <z.liuxinliang@hisilicon.com>,
	Tomi Valkeinen <tomi.valkeinen@ti.com>,
	Ben Skeggs <bskeggs@redhat.com>,
	Russell King <rmk+kernel@armlinux.org.uk>,
	Gerd Hoffmann <kraxel@redhat.com>,
	Alex Deucher <alexander.deucher@amd.com>,
	Maxime Ripard <maxime.ripard@free-electrons.com>
Subject: Re: [PATCH] drm/doc: Document uapi requirements in DRM
Date: Sat, 20 Aug 2016 11:45:51 +0200	[thread overview]
Message-ID: <81c2e53b-aa37-d800-c315-c1887d2c0e8f@amd.com> (raw)
In-Reply-To: <87eg5kh1ub.fsf@eliezer.anholt.net>

Am 19.08.2016 um 23:43 schrieb Eric Anholt:
> Daniel Vetter <daniel.vetter@ffwll.ch> 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.

Oh, yes please.

>> ---
>>   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
>>   ==================================
>>   
>> +The DRM subsystem has stricter requirements on what the userspace side for 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 ready for
>> +merging into a suitable and canonical upstream project.
>> +
>> +GFX devices (both display and render/GPU side) are really complex bits of hardware,
>> +with userspace and kernel by necessity having to work together really closely.
>> +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 define 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 shared
>> +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 Linux
>> +kernel's guarantee to keep existing userspace running for 10+ years this is
>> +already rather painful for the DRM subsystem, with multiple different uAPIs for
>> +the same thing co-existing. If we'd add a few more complete mistakes into the
> "If we"
>
>> +mix every year it would be entirely unmanagable.
> With the little nitpicks (probably) fixed,
>
> Reviewed-by: Eric Anholt <eric@anholt.net>

I read through it and can't find anything more to add. So with Eric's 
comments fixed the patch is Reviewed-by: Christian König 
<christian.koenig@amd.com>.

Additional to that I think with our hybrid stack this is rather 
important for AMD. So I'm going to forward it to a few people internally 
as well.

Regards,
Christian.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2016-08-20  9:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-19 20:50 [PATCH] drm/doc: Document uapi requirements in DRM Daniel Vetter
2016-08-19 21:43 ` Eric Anholt
2016-08-20  9:45   ` Christian König [this message]
2016-08-19 22:26 ` Rob Clark
2016-08-22  7:36 ` Daniel Vetter
2016-08-22  8:10   ` Jani Nikula
2016-08-23 12:54   ` Daniel Vetter
2016-09-02 10:13     ` Liviu Dudau
2016-08-26 14:09 ` Sinclair Yeh
2017-01-01 22:40 ` Laurent Pinchart
2017-01-02  8:09   ` Daniel Vetter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81c2e53b-aa37-d800-c315-c1887d2c0e8f@amd.com \
    --to=christian.koenig@amd.com \
    --cc=abrodkin@synopsys.com \
    --cc=alexander.deucher@amd.com \
    --cc=bskeggs@redhat.com \
    --cc=daniel.vetter@ffwll.ch \
    --cc=daniel.vetter@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=eric@anholt.net \
    --cc=kraxel@redhat.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=liviu.dudau@arm.com \
    --cc=maxime.ripard@free-electrons.com \
    --cc=rmk+kernel@armlinux.org.uk \
    --cc=thellstrom@vmware.com \
    --cc=tomi.valkeinen@ti.com \
    --cc=z.liuxinliang@hisilicon.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.