drm/i915: Force the GPU reset upon wedging
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Feb 2019 15:37:04 +0000 (15:37 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Feb 2019 16:47:35 +0000 (16:47 +0000)
commit0eb6a3f7ef99e7de19efb1293be0571b1d4e83cd
tree445e987f31ac99fc28970fbad742906a871ad999
parent2caffbf1176256cc4f8d4e5c3c524fc689cb9876
drm/i915: Force the GPU reset upon wedging

When declaring the GPU wedged, we do need to hit the GPU with the reset
hammer so that its state matches our presumed state during cleanup. If
the reset fails, it fails, and we may be unhappy but wedged. However, if
we are testing our wedge/unwedged handling, the desync carries over into
the next test and promptly explodes.

References: https://bugs.freedesktop.org/show_bug.cgi?id=106702
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/20190208153708.20023-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_reset.c