drm/i915/selftests: Exercise resetting during non-user payloads
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 26 Feb 2019 09:49:22 +0000 (09:49 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 26 Feb 2019 09:55:41 +0000 (09:55 +0000)
commit368375107ba4d03917ba7954217c39461350a8a3
tree0ab6f0da41df62d11dcdae5498513e3c9d21636c
parentb300fde8965fdd628341c4b602481ebde8ac9cb7
drm/i915/selftests: Exercise resetting during non-user payloads

In selftests/live_hangcheck, we have a lot of tests for resetting simple
spinners, but nothing quite prepared us for how the GPU reacted to
triggering a reset outside of the safe spinner. These two subtests fill
the ring with plain old empty, non-spinning requests, and then triggers
a reset. Without a user-payload to blame, these requests will exercise
the 'non-started' paths and mostly be replayed verbatim.

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