On Fri, Sep 15, 2017 at 06:31:00PM +0100, Chris Wilson wrote: > When wedging the hw, we want to mark all in-flight requests as -EIO. > This is made slightly more complex by execlists who store the ready but > not yet submitted-to-hw requests on a private queue (an rbtree > priolist). Call into execlists to cancel not only the ELSP tracking for > the submitted requests, but also the queue of unsubmitted requests. > > v2: Move the majority of engine_set_wedged to the backends (both legacy > ringbuffer and execlists handling their own lists). > > Reported-by: Michał Winiarski <michal.winiarski@xxxxxxxxx> > Testcase: igt/gem_eio/in-flight-contexts > Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> > Cc: Michał Winiarski <michal.winiarski@xxxxxxxxx> > Cc: Mika Kuoppala <mika.kuoppala@xxxxxxxxxxxxxxx> > Cc: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx> Reviewed-by: Michał Winiarski <michal.winiarski@xxxxxxxxx> -Michał > --- > drivers/gpu/drm/i915/i915_gem.c | 38 +-------------------- > drivers/gpu/drm/i915/intel_lrc.c | 60 +++++++++++++++++++++++++++++++++ > drivers/gpu/drm/i915/intel_ringbuffer.c | 20 +++++++++++ > drivers/gpu/drm/i915/intel_ringbuffer.h | 8 +++++ > 4 files changed, 89 insertions(+), 37 deletions(-) _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx