]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915/selftests: Fix live_workarounds to actually do resets
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 30 Nov 2018 09:52:11 +0000 (09:52 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 30 Nov 2018 15:09:16 +0000 (15:09 +0000)
commitb9f78d675230a9f65611600496235cdbd369d55d
treecb1b24aa3e85acf88530e6e3b6fe15f2e58f6a25
parent8d2f6e2f2721097549dded41aa6e1c1a4e8e12ee
drm/i915/selftests: Fix live_workarounds to actually do resets

The test was missing some magic ingredients to actually trigger the
resets.

In case of the full reset we need the I915_RESET_HANDOFF flag set, and in
case of engine reset we need a busy request.

Thanks to Chris for helping with reset magic.

v2:
 * Grab RPM ref over reset.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20181130095211.23849-1-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/selftests/intel_workarounds.c