From: Lauri Peltonen <lpeltonen@nvidia.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: Stephen Warren <swarren@nvidia.com>,
nouveau@lists.freedesktop.org,
Daniel Vetter <daniel.vetter@ffwll.ch>,
James Jones <jajones@nvidia.com>,
dri-devel@lists.freedesktop.org, Ben Skeggs <bskeggs@redhat.com>,
Colin Cross <ccross@android.com>,
Dave Airlie <airlied@redhat.com>,
Thierry Reding <treding@nvidia.com>,
Ken Adams <kadams@nvidia.com>
Subject: Re: [RFC PATCH 7/7] drm/prime: Support explicit fence on export
Date: Wed, 1 Oct 2014 18:52:21 +0300 [thread overview]
Message-ID: <20141001155221.GA25766@eumail.nvidia.com> (raw)
In-Reply-To: <20140929074648.GC4109@phenom.ffwll.local>
On Mon, Sep 29, 2014 at 09:46:48AM +0200, Daniel Vetter wrote:
> On Fri, Sep 26, 2014 at 01:00:12PM +0300, Lauri Peltonen wrote:
> > Allow user space to provide an explicit sync fence fd when exporting
> > a dma-buf from gem handle. The fence will be stored as the explicit
> > fence to the reservation object.
> >
> > Signed-off-by: Lauri Peltonen <lpeltonen@nvidia.com>
>
> All existing userspace treats dma_bufs as long-lived objects. Well, all
> the userspace that expects implicit syncing, afaik Android shovels lots of
> dma-bufs around all the time (since ion is using them as it's native
> buffer handles).
>
> So adding an exclusive fence once at export time isn't going to be
> terribly useful.
>
> So I think a better approach would be to add this as ioctls to the dma-buf
> fd itself. Then you can also add a "give me the fence(s) for this dma_buf"
> ioctl, which is useful for interop the other way round (i.e. implicit ->
> explicit).
Yes, I like this. I thought that one could support long-lived dma-bufs by
doing a "re-export" when a new fence needs to be attached, but your model is
indeed much nicer!
On Sat, Sep 27, 2014 at 08:49:39AM +0200, Maarten Lankhorst wrote:
> This is never true. A default resv gets allocated, see dma_buf's create
> function.
Ah, ok. I'll keep that in mind when writing new versions. :-)
Thanks,
Lauri
next prev parent reply other threads:[~2014-10-01 15:52 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-26 10:00 [RFC] Explicit synchronization for Nouveau Lauri Peltonen
2014-09-26 10:00 ` [RFC PATCH 2/7] drm/nouveau: Split nouveau_fence_sync Lauri Peltonen
2014-09-26 10:00 ` [RFC PATCH 4/7] drm/nouveau: Support fence fd's at kickoff Lauri Peltonen
2014-09-26 10:00 ` [RFC PATCH 5/7] libdrm: nouveau: Support fence fds Lauri Peltonen
2014-09-26 10:00 ` [RFC PATCH 6/7] drm/nouveau: Support marking buffers for explicit sync Lauri Peltonen
2014-09-27 6:52 ` Maarten Lankhorst
[not found] ` <1411725612-10455-1-git-send-email-lpeltonen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-09-26 10:00 ` [RFC PATCH 1/7] android: Support creating sync fence from drm fences Lauri Peltonen
2014-09-27 7:00 ` Maarten Lankhorst
2014-09-26 10:00 ` [RFC PATCH 3/7] drm/nouveau: Add fence fd helpers Lauri Peltonen
2014-09-26 10:00 ` [RFC PATCH 7/7] drm/prime: Support explicit fence on export Lauri Peltonen
2014-09-27 6:49 ` Maarten Lankhorst
[not found] ` <1411725612-10455-8-git-send-email-lpeltonen-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-09-29 7:46 ` Daniel Vetter
2014-10-01 15:52 ` Lauri Peltonen [this message]
2014-09-29 7:43 ` [RFC] Explicit synchronization for Nouveau Daniel Vetter
2014-09-29 15:42 ` Jerome Glisse
[not found] ` <20140929154217.GA2851-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-09-29 17:20 ` Daniel Vetter
2014-09-29 17:20 ` James Jones
2014-09-30 8:21 ` Daniel Vetter
2014-10-01 15:14 ` Lauri Peltonen
[not found] ` <20141001151416.GC25206-GyFFdlxoGbnFT5IIyIEb6QC/G2K4zDHf@public.gmane.org>
2014-10-01 15:58 ` Maarten Lankhorst
2014-10-01 17:27 ` Daniel Vetter
[not found] ` <20141001172721.GQ12343-dv86pmgwkMBes7Z6vYuT8azUEOm+Xw19@public.gmane.org>
2014-10-02 14:59 ` Lauri Peltonen
2014-10-02 20:44 ` Daniel Vetter
2014-10-03 21:56 ` Rom Lemarchand
[not found] ` <CAABpnA_r1Vu8pGtxqXO8Ufg5KMhkUy_9RPic-VActaJQyLRm_w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-10-06 12:25 ` Lauri Peltonen
[not found] ` <20141006122540.GA7974-GyFFdlxoGbnFT5IIyIEb6QC/G2K4zDHf@public.gmane.org>
2014-10-08 9:10 ` 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=20141001155221.GA25766@eumail.nvidia.com \
--to=lpeltonen@nvidia.com \
--cc=airlied@redhat.com \
--cc=bskeggs@redhat.com \
--cc=ccross@android.com \
--cc=daniel.vetter@ffwll.ch \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=jajones@nvidia.com \
--cc=kadams@nvidia.com \
--cc=nouveau@lists.freedesktop.org \
--cc=swarren@nvidia.com \
--cc=treding@nvidia.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.