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)
commit2728200f48d315748b4fb2b2525e1ac211e97ecf
treeb5168d06d48d9d35c3d9afda386af7329c548114
parent5932925ac1f3f820368bcf91eee9cf52794aa827
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