diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-04-29 10:07:35 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-04-29 11:12:37 +0100 |
commit | 62c8e423450d7140a640651227ec563d6b0141ce (patch) | |
tree | a40f24f50fb15029ecd1402e08b139188c46c80c /drivers/gpu/drm/i915/selftests | |
parent | 46472b3efb61b033f9b4807a178434c50f31d5c5 (diff) | |
download | linux-stable-62c8e423450d7140a640651227ec563d6b0141ce.tar.gz linux-stable-62c8e423450d7140a640651227ec563d6b0141ce.tar.bz2 linux-stable-62c8e423450d7140a640651227ec563d6b0141ce.zip |
drm/i915: Skip unused contexts for context_barrier_task()
If the context has not been used yet, it needs no barrier, and in the
process fix up the selftest in mock_contexts.
Testcase: igt/gem_ctx_clone/vm
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190429090735.326-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/selftests')
-rw-r--r-- | drivers/gpu/drm/i915/selftests/i915_gem_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/selftests/i915_gem_context.c b/drivers/gpu/drm/i915/selftests/i915_gem_context.c index b62f005e4d50..34ac5cc6d59f 100644 --- a/drivers/gpu/drm/i915/selftests/i915_gem_context.c +++ b/drivers/gpu/drm/i915/selftests/i915_gem_context.c @@ -1665,7 +1665,7 @@ static int mock_context_barrier(void *arg) goto out; } if (counter == 0) { - pr_err("Did not retire immediately for all inactive engines\n"); + pr_err("Did not retire immediately for all unused engines\n"); err = -EINVAL; goto out; } |