drm/i915: Force GPU idle on suspend
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Mar 2019 10:45:30 +0000 (10:45 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Mar 2019 18:09:27 +0000 (18:09 +0000)
commit50b022af5d6b2b23b6743dbfaf274055d1d9646f
treedbb04075541e1f23f38c7522f049e3a175f9fa1c
parent3d606249165870f28679eec1a3805ce291b0a273
drm/i915: Force GPU idle on suspend

To facilitate the next patch to allow preemptible kernels not to incur
the wrath of hangcheck, we need to ensure that we can still suspend and
shutdown. That is we will not be able to rely on hangcheck to terminate
a blocking kernel and instead must manually do so ourselves. The
advantage is that we can apply more pressure!

As we now perform a GPU reset to clean up any residual kernels, we leave
the GPU in an unknown state and in particular can not talk to the GuC
before we reinitialise it following resume. For example, we no longer
need to tell the GuC to suspend itself, as it is already reset.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190307104530.21745-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c