diff options
author | 2020-02-18 14:13:05 +0000 | |
---|---|---|
committer | 2020-02-18 19:45:08 +0000 | |
commit | 06289949b8dd6ed959c2b09d5911e98f6434e501 (patch) | |
tree | 044c6e7343c3ec4e6015cb89d6723ad7c4bedcde | |
parent | drm/i915/tgl: Add Wa_1808121037 to tgl. (diff) | |
download | wireguard-linux-06289949b8dd6ed959c2b09d5911e98f6434e501.tar.xz wireguard-linux-06289949b8dd6ed959c2b09d5911e98f6434e501.zip |
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: fcf7df7aae24 ("drm/i915/selftests: Check for the error interrupt before we wait!")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200218141305.1258394-1-chris@chris-wilson.co.uk
-rw-r--r-- | drivers/gpu/drm/i915/gt/selftest_lrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gt/selftest_lrc.c b/drivers/gpu/drm/i915/gt/selftest_lrc.c index 40c53cc1c7c0..7b303d5fd5b8 100644 --- a/drivers/gpu/drm/i915/gt/selftest_lrc.c +++ b/drivers/gpu/drm/i915/gt/selftest_lrc.c @@ -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)); |