drm/i915: vlv: fix gunit HW state corruption during S4 suspend
authorImre Deak <[email protected]>
Wed, 10 Sep 2014 15:16:54 +0000 (18:16 +0300)
committerJani Nikula <[email protected]>
Thu, 6 Nov 2014 16:16:55 +0000 (18:16 +0200)
commita024d2e6f11836493d9e1751fca7b3c50fbfd215
tree8e3a2c209fec8334ceb8511965c6009380254baf
parentd6a8b72edc92471283925ceb4ba12799b67c3ff8
drm/i915: vlv: fix gunit HW state corruption during S4 suspend

During S4 freeze we don't call intel_suspend_complete(), which would
save the gunit HW state, but during S4 thaw/restore events we call
intel_resume_prepare() which restores it, thus ending up in a corrupted
HW state.

Fix this by calling intel_suspend_complete() from the corresponding
freeze_late event handler.

The issue was introduced in
commit 016970beb05da6285c2f3ed2bee1c676cb75972e
Author: Sagar Kamble <[email protected]>
Date:   Wed Aug 13 23:07:06 2014 +0530

CC: Sagar Kamble <[email protected]>
Signed-off-by: Imre Deak <[email protected]>
Reviewed-by: Ville Syrjälä <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
drivers/gpu/drm/i915/i915_drv.c