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)
commit3fb04cb0bea5c68c23eaf0cfbd4de840a7948ee9
tree8ed72c77ffb7ccd1987e32b6e208f62ebfa6ad34
parent151a99ec771c49fbfaa785e2e2bc3672641f2076
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: f6ba181ada55 ("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