Commit 1ab494cc authored by Chris Wilson's avatar Chris Wilson

drm/i915/selftests: Skip live timeline/suspend tests if wedged

If the driver is wedged, we can not issue the requests to exercise the
timelines or the system across suspend, so skip the tests. live_hangcheck
is there to fail if we cannot recover.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190413125820.14112-4-chris@chris-wilson.co.uk
parent 5d75dc2b
...@@ -215,5 +215,8 @@ int i915_gem_live_selftests(struct drm_i915_private *i915) ...@@ -215,5 +215,8 @@ int i915_gem_live_selftests(struct drm_i915_private *i915)
SUBTEST(igt_gem_hibernate), SUBTEST(igt_gem_hibernate),
}; };
if (i915_terminally_wedged(i915))
return 0;
return i915_subtests(tests, i915); return i915_subtests(tests, i915);
} }
...@@ -838,5 +838,8 @@ int i915_timeline_live_selftests(struct drm_i915_private *i915) ...@@ -838,5 +838,8 @@ int i915_timeline_live_selftests(struct drm_i915_private *i915)
SUBTEST(live_hwsp_wrap), SUBTEST(live_hwsp_wrap),
}; };
if (i915_terminally_wedged(i915))
return 0;
return i915_subtests(tests, i915); return i915_subtests(tests, i915);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment