summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.c
diff options
context:
space:
mode:
authorChris Wilson2016-11-22 15:41:19 +0100
committerChris Wilson2016-11-22 18:42:17 +0100
commitc2a126a46d4c843e9e56b7cad6a14b3791ffab47 (patch)
tree534c68a6615b4c5817ed0bbe3a9aeba1ce9b84f9 /drivers/gpu/drm/i915/i915_drv.c
parentdrm/i915: Don't deref context->file_priv ERR_PTR upon reset (diff)
downloadkernel-qcow2-linux-c2a126a46d4c843e9e56b7cad6a14b3791ffab47.tar.gz
kernel-qcow2-linux-c2a126a46d4c843e9e56b7cad6a14b3791ffab47.tar.xz
kernel-qcow2-linux-c2a126a46d4c843e9e56b7cad6a14b3791ffab47.zip
drm/i915: Disable hangcheck when wedged
If the gpu reset fails and the machine is terminally wedged, further hangchecks achieve nothing but noise. Disable them, with a corollary that we re-enable hangchecking after a successful GPU reset in case the user is artificially bringing the machine back to life through the debug interface. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20161122144121.7379-2-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index ff13503eae08..b893e67b4897 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -1822,6 +1822,8 @@ void i915_reset(struct drm_i915_private *dev_priv)
goto error;
}
+ i915_queue_hangcheck(dev_priv);
+
wakeup:
wake_up_bit(&error->flags, I915_RESET_IN_PROGRESS);
return;