mirror of
https://github.com/torvalds/linux.git
synced 2026-12-04 20:34:05 +00:00
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: fcf7df7aae ("drm/i915/selftests: Check for the error interrupt before we wait!")
Signed-off-by: Chris Wilson <[email protected]>
Cc: Matthew Auld <[email protected]>
Reviewed-by: Matthew Auld <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
This commit is contained in:
@@ -83,7 +83,7 @@ static int wait_for_submit(struct intel_engine_cs *engine,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (i915_request_completed(rq)) /* that was quick! */
|
||||
if (i915_request_started(rq)) /* that was quick! */
|
||||
return 0;
|
||||
} while (time_before(jiffies, timeout));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user