]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: disable GT power saving early during system suspend
authorImre Deak <imre.deak@intel.com>
Mon, 12 May 2014 15:35:05 +0000 (18:35 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 22 May 2014 19:53:27 +0000 (21:53 +0200)
commit6584d03c72bb6728c08f4ce1209f416dc5e2b0cc
treef7787062684cfba082a7f8466086baf169bcd941
parent45a00637e54b0a2df95b4c106d2c19593f8fad29
drm/i915: disable GT power saving early during system suspend

Atm, we disable GT power saving during the end of the suspend sequence
in i915_save_state(). Doing the disabling at that point seems arbitrary.
One reason to disable it early though is to have a quiescent HW state
before we do anything else (for example save registers). So move the
disabling earlier, which also takes care canceling of the deferred RPS
enabling work done by intel_disable_gt_powersave().

Note that after the move we'll call intel_disable_gt_powersave() only
in case modeset is enabled, but that's anyway the only case where we
have it enabled in the first place.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Robert Beckett <robert.beckett@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_suspend.c