All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: "Marek Olšák" <maraeo@gmail.com>
Cc: James Jones <jajones@nvidia.com>,
	dri-devel <dri-devel@lists.freedesktop.org>
Subject: Re: Unix Device Memory Allocation project
Date: Wed, 19 Oct 2016 08:23:59 +0200	[thread overview]
Message-ID: <CAKMK7uFrnGVO_+T+6p48xh-c5hhxPF5DQZDPzwT-XQLdO+cE9g@mail.gmail.com> (raw)
In-Reply-To: <CAAxE2A7LgYWHSrhTTMe0fCisXHRrjhDbiMks62xbOj8mHHGakg@mail.gmail.com>

On Wed, Oct 19, 2016 at 1:40 AM, Marek Olšák <maraeo@gmail.com> wrote:
> - The producer-consumer interop API doesn't know about the metadata.
> All you need to pass around is a buffer handle. (KMS, DMABUF, etc.)
>   * There was a note during the talk that DMABUF doesn't have any
> metadata. Well, I just told you that it has, but it's private to
> amdgpu and possibly accessible to other kernel drivers too.
>   * We can build upon this idea. I think the worst thing to do would
> be to add metadata handling to driver-agnostic userspace APIs. Really,
> driver-agnostic APIs shouldn't know about that, because they can't
> understand all the hw-specific information encoded in the metadata.
> Also, when you want to change the metadata format, you only have to
> update the affected drivers, not userspace APIs.

That's a bit a surprise to hear, since "can't we just add a bit of
opaque metadata to dma-buf" came up all the time over the past years,
and died all the time again. dma-buf shouldn't imo be just yet another
linux IPC mechanism and protocol, which is pretty much what you end up
doing when you add this stuff. DRM runs all kinds of compositors with
all kinds of existing userspace proto, and with reasonable ones like
Wayland vendors can add whatever extensions they want. Plus there's
all the interop with v4l and every other kernel subsytem. Trying to
standardize that into some blob that works for everyone is imo nigh
impossible.

On top of that dma-buf is the wrong thing - you don't want this on
buffers, but on surfaces. At least when it's time to reallocate. And
oh dear I have seen what happens when soc vendors extend this design
to cover that use-case, plus dynamic reallocation and all that. Imo
there should be no way at all this ever comes close to dma-buf itself.

And tbh I think it's a bit silly that amd snuck this in through
amdgpu. But as long as you don't expect this to spread I guess it'll
be fine.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2016-10-19  6:24 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-04 23:47 Unix Device Memory Allocation project James Jones
2016-10-05  8:42 ` Benjamin Gaignard
2016-10-05 12:19   ` Rob Clark
2016-10-18 23:40 ` Marek Olšák
2016-10-19  0:08   ` James Jones
2016-10-19  6:31     ` Daniel Vetter
2016-10-19  6:23   ` Daniel Vetter [this message]
2016-10-19 12:15     ` Christian König
2016-10-19 13:15     ` Marek Olšák
2016-10-19 14:10       ` Daniel Vetter
2016-10-19 16:46         ` Marek Olšák
2016-10-20  6:31           ` Daniel Vetter
2017-01-03 23:38             ` Marek Olšák
2017-01-03 23:43               ` James Jones
2017-01-04  0:06                 ` Marek Olšák
2017-01-04  0:19                   ` James Jones
2017-01-04  8:46               ` Stéphane Marchesin
2017-01-04 12:03               ` Daniel Stone
2017-01-04 13:06                 ` Rob Clark
2017-01-04 14:54                   ` Daniel Vetter
2017-01-04 15:47                     ` Rob Clark
2017-01-04 16:02                       ` Christian König
2017-01-04 16:16                         ` Rob Clark
2017-01-04 16:26                           ` Christian König
2017-01-04 16:59                         ` Daniel Stone
2017-01-16 22:54                           ` Marek Olšák
2017-01-23  7:38                             ` Daniel Vetter
2016-10-19  6:49   ` Michel Dänzer
2016-10-19 12:33   ` Nicolai Hähnle
     [not found]     ` <CAAxE2A7ih_84H7w361msVYzRb8jb4ye8Psc1e5CO6gjJ2frO6g@mail.gmail.com>
     [not found]       ` <CAAxE2A53E_r9uA=FG_A63aBVgqaTWBuAzDZfDvRe9K+0EWmFeQ@mail.gmail.com>
2016-10-19 13:40         ` Marek Olšák

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=CAKMK7uFrnGVO_+T+6p48xh-c5hhxPF5DQZDPzwT-XQLdO+cE9g@mail.gmail.com \
    --to=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jajones@nvidia.com \
    --cc=maraeo@gmail.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.