Skip to content

Commit 2bfbf6f

Browse files
committed
drm/i915: Do a full device reset after being wedged
We only call unset_wedged on the global reset path (since it's a global operation), so if we are terminally wedged and wish to reset, take the full device reset path rather than the quicker individual engine resets. Signed-off-by: Chris Wilson <[email protected]> Reviewed-by: Joonas Lahtinen <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 4f2c733 commit 2bfbf6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/i915/i915_irq.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3309,7 +3309,8 @@ void i915_handle_error(struct drm_i915_private *dev_priv,
33093309
* Try engine reset when available. We fall back to full reset if
33103310
* single reset fails.
33113311
*/
3312-
if (intel_has_reset_engine(dev_priv)) {
3312+
if (intel_has_reset_engine(dev_priv) &&
3313+
!i915_terminally_wedged(&dev_priv->gpu_error)) {
33133314
for_each_engine_masked(engine, dev_priv, engine_mask, tmp) {
33143315
BUILD_BUG_ON(I915_RESET_MODESET >= I915_RESET_ENGINE);
33153316
if (test_and_set_bit(I915_RESET_ENGINE + engine->id,

0 commit comments

Comments
 (0)