drm/i915/hsw: Fix GPU hang during resume from S3-devices state
authorImre Deak <imre.deak@intel.com>
Wed, 12 Oct 2016 14:46:37 +0000 (17:46 +0300)
committerImre Deak <imre.deak@intel.com>
Thu, 13 Oct 2016 09:11:31 +0000 (12:11 +0300)
commit1c777c5d1dcdf8fa0223fcff35fb387b5bb9517a
tree798cdaed8e70e54fc9aee30a06d49436c52beb88
parent45353ce59b3ec606e0a35386ac04210b1656e829
drm/i915/hsw: Fix GPU hang during resume from S3-devices state

Currently resuming on HSW from S3 pm_test/devices state leads to an
unrecoverable GPU hang. Resetting the GPU during suspend fixes this. For
a full S3 cycle this change only means the reset happens earlier (before
reaching S3). For S4 the reset will happen now both during the freeze
and quiesce phases, which is a benefit since it will guarantee that the
GPU is idle before creating and loading the hibernation image.

Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1476283597-580-1-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_gem.c