Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1622113

Re: [PATCH 3/3] drm/vc4: Add support for dma-buf fencing.

From Daniel Vetter <daniel@ffwll.ch>
Newsgroups linux.kernel
Subject Re: [PATCH 3/3] drm/vc4: Add support for dma-buf fencing.
Date 2017-04-12 14:50 +0200
Message-ID <tvpSF-4v9-11@gated-at.bofh.it> (permalink)
References <tuT6q-mh-3@gated-at.bofh.it> <tuT6q-mh-11@gated-at.bofh.it> <tv0rg-57u-5@gated-at.bofh.it> <tv85s-1G7-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Apr 11, 2017 at 10:43:35AM -0700, Eric Anholt wrote:
> Chris Wilson <chris@chris-wilson.co.uk> writes:
> 
> > On Mon, Apr 10, 2017 at 06:44:14PM -0700, Eric Anholt wrote:
> >> This is needed for proper synchronization with display on another DRM
> >> device (pl111 or tinydrm) with buffers produced by vc4 V3D.  Fixes the
> >> new igt vc4_dmabuf_poll testcase, and rendering of one of the glmark2
> >> desktop tests on pl111+vc4.
> >> 
> >> This doesn't yet introduce waits on other device's fences before vc4's
> >> rendering/display, because I don't have testcases for them.
> >> 
> >> Signed-off-by: Eric Anholt <eric@anholt.net>
> >> Cc: Gustavo Padovan <gustavo.padovan@collabora.com>
> >> ---
> >> +static void vc4_fence_release(struct dma_fence *fence)
> >> +{
> >> +	struct vc4_fence *f = to_vc4_fence(fence);
> >> +
> >> +	kfree_rcu(f, base.rcu);
> >> +}
> >
> > Unless you have a plan to do more here, looks like you can just use
> > the default dma_fence_free as the release callback.
> > -Chris
> 
> Yeah, this pattern came from etnaviv/msm (which I had used as
> reference), who both put their .base second.  I wonder if they would
> want to flip the order of their fields and drop their fence_release,
> too.

Sounds reasonable and gets rid of a bit of code.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/3] drm/msm: Expose our reservation object when exporting a dmabuf. Eric Anholt <eric@anholt.net> - 2017-04-11 03:50 +0200
  [PATCH 3/3] drm/vc4: Add support for dma-buf fencing. Eric Anholt <eric@anholt.net> - 2017-04-11 03:50 +0200
    Re: [PATCH 3/3] drm/vc4: Add support for dma-buf fencing. Chris Wilson <chris@chris-wilson.co.uk> - 2017-04-11 11:40 +0200
      Re: [PATCH 3/3] drm/vc4: Add support for dma-buf fencing. Eric Anholt <eric@anholt.net> - 2017-04-11 19:50 +0200
        Re: [PATCH 3/3] drm/vc4: Add support for dma-buf fencing. Daniel Vetter <daniel@ffwll.ch> - 2017-04-12 14:50 +0200
    Re: [PATCH 3/3] drm/vc4: Add support for dma-buf fencing. Daniel Vetter <daniel@ffwll.ch> - 2017-04-12 14:50 +0200
      Re: [PATCH 3/3] drm/vc4: Add support for dma-buf fencing. Eric Anholt <eric@anholt.net> - 2017-04-12 19:40 +0200
  [PATCH 2/3] drm/etnaviv: Expose our reservation object when exporting a dmabuf. Eric Anholt <eric@anholt.net> - 2017-04-11 03:50 +0200
    Re: [PATCH 2/3] drm/etnaviv: Expose our reservation object when  exporting a dmabuf. Daniel Vetter <daniel@ffwll.ch> - 2017-04-12 14:50 +0200
      Re: [PATCH 2/3] drm/etnaviv: Expose our reservation object when  exporting a dmabuf. Lucas Stach <l.stach@pengutronix.de> - 2017-04-12 15:00 +0200
        Re: [PATCH 2/3] drm/etnaviv: Expose our reservation object when exporting a dmabuf. Eric Anholt <eric@anholt.net> - 2017-04-12 19:40 +0200

csiph-web