]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Basic stress test for rapid context switching
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 20 Sep 2018 10:58:09 +0000 (11:58 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 20 Sep 2018 11:49:25 +0000 (12:49 +0100)
commita47cd45a37c94bb31ccf9bf6ec3d94cbcd57d6ee
treee0d9687e62bd9b725e2931a09581f601a378f114
parent82c7c4fcbf84a0943b92050e08daec85f1d9670f
drm/i915/selftests: Basic stress test for rapid context switching

We need to exercise the HW and submission paths for switching contexts
rapidly to check that features such as execlists' wa_tail are adequate.
Plus it's an interesting baseline latency metric.

v2: Check the initial request for allocation errors
v3: Use finite waits for more robust handling of broken code

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