diff options
author | Andrew Lutomirski <luto@mit.edu> | 2009-11-08 13:49:51 -0500 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-12-08 09:32:51 -0500 |
commit | 7e8b60faea972604c315634cff62d44803731ea9 (patch) | |
tree | a9c6fb0426fd6eac03e974b4c3242218d5996f80 /drivers/gpu/drm/i915/i915_suspend.c | |
parent | 5618ca6abc2d6f475b258badc017a5254cf43d1b (diff) |
drm/i915: restore render clock gating on resume
Rather than restoring just a few clock gating registers on resume,
just reinitialize the whole thing.
Signed-off-by: Andy Lutomirski <luto@mit.edu>
[anholt: Fixed up for RC6 support landed since the patch was written]
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_suspend.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_suspend.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/i915_suspend.c b/drivers/gpu/drm/i915/i915_suspend.c index 402a7eb2922c..00f6d97c7cc5 100644 --- a/drivers/gpu/drm/i915/i915_suspend.c +++ b/drivers/gpu/drm/i915/i915_suspend.c | |||
@@ -722,10 +722,6 @@ int i915_save_state(struct drm_device *dev) | |||
722 | dev_priv->saveIMR = I915_READ(IMR); | 722 | dev_priv->saveIMR = I915_READ(IMR); |
723 | } | 723 | } |
724 | 724 | ||
725 | /* Clock gating state */ | ||
726 | dev_priv->saveD_STATE = I915_READ(D_STATE); | ||
727 | dev_priv->saveDSPCLK_GATE_D = I915_READ(DSPCLK_GATE_D); /* Not sure about this */ | ||
728 | |||
729 | /* Cache mode state */ | 725 | /* Cache mode state */ |
730 | dev_priv->saveCACHE_MODE_0 = I915_READ(CACHE_MODE_0); | 726 | dev_priv->saveCACHE_MODE_0 = I915_READ(CACHE_MODE_0); |
731 | 727 | ||
@@ -800,8 +796,7 @@ int i915_restore_state(struct drm_device *dev) | |||
800 | } | 796 | } |
801 | 797 | ||
802 | /* Clock gating state */ | 798 | /* Clock gating state */ |
803 | I915_WRITE (D_STATE, dev_priv->saveD_STATE); | 799 | intel_init_clock_gating(dev); |
804 | I915_WRITE (DSPCLK_GATE_D, dev_priv->saveDSPCLK_GATE_D); | ||
805 | 800 | ||
806 | /* Cache mode state */ | 801 | /* Cache mode state */ |
807 | I915_WRITE (CACHE_MODE_0, dev_priv->saveCACHE_MODE_0 | 0xffff0000); | 802 | I915_WRITE (CACHE_MODE_0, dev_priv->saveCACHE_MODE_0 | 0xffff0000); |