]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Fix up igt_reset_engine
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 17 Dec 2017 13:28:52 +0000 (13:28 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 18 Dec 2017 21:54:59 +0000 (21:54 +0000)
commit6840ddbd97e935ae8f65b6d5a628437c3a62ea75
tree8ed72c77ffb7ccd1987e32b6e208f62ebfa6ad34
parent8d548ac31ec1e4ab24b185b749c511c09db2b345
drm/i915/selftests: Fix up igt_reset_engine

Now that we skip a per-engine reset on an idle engine, we need to update
the selftest to take that into account. In the process, we find that we
were not stressing the per-engine reset very hard, so add those missing
active resets.

v2: Actually test i915_reset_engine() by loading it with requests.

Fixes: 1d4d5ea3d3e1 ("drm/i915: Skip an engine reset if it recovered before our preparations")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104313
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michel Thierry <michel.thierry@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171217132852.30642-3-chris@chris-wilson.co.uk
Reviewed-by: Michel Thierry <michel.thierry@intel.com>
drivers/gpu/drm/i915/selftests/intel_hangcheck.c