]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6a5f31823aadaaa28e5f22f3b8e2fa837f7895b7
treedeb508d980a6549a13b7d535b158fef8528187de
parent3889fdcf2cfe5fcb312679709448f5e30758d89a
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