aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_hangcheck.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-02-13 17:15:58 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2017-02-13 20:46:53 +0000
commit496b575e3ccbf6fbe57a674c721af43dc8826361 (patch)
tree584e1923aa65efe6258ff5f9f847e35b985a61a2 /drivers/gpu/drm/i915/intel_hangcheck.c
parentdrm/i915: Exercise crossing pot boundaries in the GTT (diff)
downloadlinux-dev-496b575e3ccbf6fbe57a674c721af43dc8826361.tar.xz
linux-dev-496b575e3ccbf6fbe57a674c721af43dc8826361.zip
drm/i915: Add initial selftests for hang detection and resets
Check that we can reset the GPU and continue executing from the next request. 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/20170213171558.20942-47-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/intel_hangcheck.c')
-rw-r--r--drivers/gpu/drm/i915/intel_hangcheck.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_hangcheck.c b/drivers/gpu/drm/i915/intel_hangcheck.c
index f05971f5586f..dce742243ba6 100644
--- a/drivers/gpu/drm/i915/intel_hangcheck.c
+++ b/drivers/gpu/drm/i915/intel_hangcheck.c
@@ -480,3 +480,7 @@ void intel_hangcheck_init(struct drm_i915_private *i915)
INIT_DELAYED_WORK(&i915->gpu_error.hangcheck_work,
i915_hangcheck_elapsed);
}
+
+#if IS_ENABLED(CONFIG_DRM_I915_SELFTEST)
+#include "selftests/intel_hangcheck.c"
+#endif