]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Force ordering of context switches
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 16 Oct 2019 22:57:30 +0000 (23:57 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 25 Oct 2019 12:38:08 +0000 (13:38 +0100)
commit302eb033fe9f4d846f05dd021ea6a992d0f5bede
treeb5168d06d48d9d35c3d9afda386af7329c548114
parent344b993b93dc01e15977ec2a29b67972ab89fabd
drm/i915/selftests: Force ordering of context switches

The parallel switch test has an underlying assumption that its requests
are executed in order of submission, which is only true if the backend
manages to keep up. Ensure the order of execution matches the submission
order by explicit dependencies and so when we wait on the last request,
we know we wait on completion of the entire queue.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191016225730.29447-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c