]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915/selftests: Skip live timeline/suspend tests if wedged
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 13 Apr 2019 12:58:20 +0000 (13:58 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 15 Apr 2019 10:58:19 +0000 (11:58 +0100)
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: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190413125820.14112-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem.c
drivers/gpu/drm/i915/selftests/i915_timeline.c

index 50bb7bbd26d30a6031f02cd1da21f2dda1ac5340..6fd70d3264682e3e9dfb730a310bca5f04652dad 100644 (file)
@@ -215,5 +215,8 @@ int i915_gem_live_selftests(struct drm_i915_private *i915)
                SUBTEST(igt_gem_hibernate),
        };
 
+       if (i915_terminally_wedged(i915))
+               return 0;
+
        return i915_subtests(tests, i915);
 }
index 8e7bcaa1eb663c19638abf724986ff0675bef1c9..bd96afcadfe7c21ce170d146ca8d623ee43756fe 100644 (file)
@@ -838,5 +838,8 @@ int i915_timeline_live_selftests(struct drm_i915_private *i915)
                SUBTEST(live_hwsp_wrap),
        };
 
+       if (i915_terminally_wedged(i915))
+               return 0;
+
        return i915_subtests(tests, i915);
 }