]> 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)
commitcb2fafdd79248b1b81bebde25f09e12ea822eae9
treeb5168d06d48d9d35c3d9afda386af7329c548114
parentd67184644575ae7a2848baef88ec355ba234796d
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