Commit 06289949 authored by Chris Wilson's avatar Chris Wilson

drm/i915/selftests: Check for any sign of request starting in wait_for_submit()

We only want to wait until the request has been submitted at least once;
that is it is either in flight, or has been.

References: fcf7df7a ("drm/i915/selftests: Check for the error interrupt before we wait!")
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200218141305.1258394-1-chris@chris-wilson.co.uk
parent ac204c1b
...@@ -83,7 +83,7 @@ static int wait_for_submit(struct intel_engine_cs *engine, ...@@ -83,7 +83,7 @@ static int wait_for_submit(struct intel_engine_cs *engine,
return 0; return 0;
} }
if (i915_request_completed(rq)) /* that was quick! */ if (i915_request_started(rq)) /* that was quick! */
return 0; return 0;
} while (time_before(jiffies, timeout)); } while (time_before(jiffies, timeout));
......
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