drm/i915/gt: Only unwedge if we can reset first
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 27 Sep 2019 16:03:35 +0000 (17:03 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Sep 2019 16:48:14 +0000 (17:48 +0100)
commit1d6f1d16d3a36351a6718378790497f1ba3b5378
tree8b9a26f5a23bf6455b2f13762574a18eee5fba54
parent50d16d44cce45f172bc4b27dcd353b1107aa7429
drm/i915/gt: Only unwedge if we can reset first

Unwedging the GPU requires a successful GPU reset before we restore the
default submission, or else we may see residual context switch events
that we were not expecting.

v2: Pull in the special-case reset_clobbers_display, and explain why it
should be safe in the context of unwedging.

v3: Just forget all about resets before unwedging if it will clobber the
display; risk it all.

Reported-by: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> #v1
Link: https://patchwork.freedesktop.org/patch/msgid/20190927160335.10622-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_reset.c