[Intel-gfx] [PATCH v2] drm/i915: Cancel all ready but queued requests when wedging
Michał Winiarski
michal.winiarski at intel.com
Fri Sep 15 18:13:09 UTC 2017
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 at intel.com>
> Testcase: igt/gem_eio/in-flight-contexts
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Michał Winiarski <michal.winiarski at intel.com>
> Cc: Mika Kuoppala <mika.kuoppala at linux.intel.com>
> Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
Reviewed-by: Michał Winiarski <michal.winiarski at intel.com>
-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(-)
More information about the Intel-gfx
mailing list