[Intel-gfx] [PATCH 11/13] drm/i915: Extend execution fence to support a callback

Chris Wilson chris at chris-wilson.co.uk
Mon Mar 11 14:22:24 UTC 2019


Quoting Tvrtko Ursulin (2019-03-11 13:09:11)
> 
> 
> On 08/03/2019 14:12, Chris Wilson wrote:
> > +int
> > +i915_request_await_execution(struct i915_request *rq,
> > +                          struct dma_fence *fence,
> > +                          void (*hook)(struct i915_request *rq,
> > +                                       struct dma_fence *signal))
> > +{
> > +     struct dma_fence **child = &fence;
> > +     unsigned int nchild = 1;
> > +     int ret;
> > +
> > +     if (dma_fence_is_array(fence)) {
> > +             struct dma_fence_array *array = to_dma_fence_array(fence);
> > +
> > +             /* XXX Error for signal-on-any fence arrays */
> 
> Unfinished?

Patches to identify signal-on-any fence arrays are still in the aether.
It doesn't really matter since they can't reach us via sync-file yet.
But they exist in the dma-fence landscape, so I keep on copying this
warning around.
-Chris


More information about the Intel-gfx mailing list