All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kenneth Graunke <kenneth@whitecape.org>
To: Matt Turner <mattst88@gmail.com>, Dave Airlie <airlied@gmail.com>
Cc: "mesa-dev@lists.freedesktop.org" <mesa-dev@lists.freedesktop.org>,
	dri-devel <dri-devel@lists.freedesktop.org>
Subject: Re: [Mesa-dev] rules for merging patches to libdrm
Date: Fri, 08 Nov 2013 14:59:06 -0800	[thread overview]
Message-ID: <527D6CBA.8020209@whitecape.org> (raw)
In-Reply-To: <CAEdQ38Hm4cRUseM9StmYRpjZ=wzygV7noEwYRNqYOVsDfQMQYQ@mail.gmail.com>

On 11/08/2013 02:32 PM, Matt Turner wrote:
> On Fri, Nov 8, 2013 at 11:29 AM, Dave Airlie <airlied@gmail.com> wrote:
>> Since we seemed to have some confusion over this I'll state it clearly here.
>>
>> You should not merge kernel interface and ioctls to libdrm until they
>> have appeared in a git commit upstream with a stable id, this
>> generally means drm-next, but can also mean drm-intel-next.
> 
> How does this interact with the rule that kernel interfaces require an
> open source userspace? Is "here are the mesa/libdrm patches that use
> it" sufficient to get the kernel interface merged?

That's my understanding: open source userspace needs to exist, but it
doesn't need to be merged upstream yet.

> libdrm is easy to change and its releases are cheap. What problem does
> committing code that uses an in-progress kernel interface to libdrm
> cause? I guess I'm not understanding something.

Introducing new kernel API usually involves assigning numbers for things
- a new ioctl number, new #defines for bitfield members, and so on.

Multiple patches can be in flight at the same time.  For example, Abdiel
and I both defined execbuf2 flags:

#define I915_EXEC_RS (1 << 13)     (Abdiel's code)
#define I915_EXEC_OA (1 << 13)     (my code)

These obviously conflict.  One of the two will land, and the second
patch author will need to switch to (1 << 14) and resubmit.

If we both decide to push to libdrm, we might get the order backwards,
or maybe one series won't get pushed at all (in this case, I'm planning
to drop my patch).  Waiting until one lands in the kernel avoids that
problem.  Normally, I believe we copy the kernel headers to userspace
and fix them up a bit.

Dave may have other reasons; this is just the one I thought of.

--Ken

  reply	other threads:[~2013-11-08 22:59 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-08 19:29 rules for merging patches to libdrm Dave Airlie
2013-11-08 22:32 ` Matt Turner
2013-11-08 22:59   ` Kenneth Graunke [this message]
2013-11-09  8:11     ` Dave Airlie
2013-11-09 21:26       ` Ian Romanick
2013-11-18 13:29         ` Thierry Reding
2013-11-18 15:17           ` Rob Clark
2013-11-18 15:23             ` [Mesa-dev] " Thierry Reding
2013-11-18 16:21               ` Rob Clark
2013-11-18 16:41                 ` Thierry Reding
2013-11-18 18:38                   ` [Mesa-dev] " Jerome Glisse
2013-11-19  8:18                     ` Thierry Reding
2013-11-18 16:30         ` [Mesa-dev] " Maarten Lankhorst
2013-11-18 16:38           ` Thierry Reding
2013-11-19 14:26   ` Marek Olšák
2013-11-19 15:04     ` [Mesa-dev] " Christian König
2013-11-19 15:14       ` Martin Peres

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=527D6CBA.8020209@whitecape.org \
    --to=kenneth@whitecape.org \
    --cc=airlied@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=mattst88@gmail.com \
    --cc=mesa-dev@lists.freedesktop.org \
    /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.