OSDN Git Service

drm/i915/selftests: Exercise context switching in parallel
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Sep 2019 14:49:19 +0000 (15:49 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Sep 2019 16:38:05 +0000 (17:38 +0100)
commit50d16d44cce45f172bc4b27dcd353b1107aa7429
treedeb508d980a6549a13b7d535b158fef8528187de
parent4abc6e7c917b1929d8fad2c2364b270cae5ed4ca
drm/i915/selftests: Exercise context switching in parallel

We currently test context switching on each engine as a basic stress
test (just verifying that nothing explodes if we execute 2 requests from
different contexts sequentially). What we have not tested is what
happens if we try and do so on all available engines simultaneously,
putting our SW and the HW under the maximal stress.

v2: Clone the set of engines from the first context into the secondary
contexts.

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