Skip to content

Commit

Permalink
drm/i915/selftests: Shorten infinite wait for sseu
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Chris Wilson committed Nov 22, 2019
1 parent 1ff2f9e commit f05bfce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -1168,8 +1168,7 @@ __sseu_finish(const char *name,
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;

Expand Down

0 comments on commit f05bfce

Please sign in to comment.