drm/i915/selftests: Shorten infinite wait for sseu
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 21 Nov 2019 23:30:21 +0000 (23:30 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 22 Nov 2019 08:44:57 +0000 (08:44 +0000)
Use our more regular igt_flush_test() to bind the wait-for-idle and
error out instead of waiting around forever on critical failure.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Stuart Summers <stuart.summers@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191121233021.507400-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c

index f1ce5f6..e1d8ccd 100644 (file)
@@ -1168,8 +1168,7 @@ out:
                igt_spinner_end(spin);
 
        if ((flags & TEST_IDLE) && ret == 0) {
-               ret = intel_gt_wait_for_idle(ce->engine->gt,
-                                            MAX_SCHEDULE_TIMEOUT);
+               ret = igt_flush_test(ce->engine->i915);
                if (ret)
                        return ret;