drm/i915: Re-enable gen7 RC6 and GPU turbo after resume.
authorEric Anholt <eric@anholt.net>
Tue, 24 Jan 2012 00:14:06 +0000 (16:14 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 24 Jan 2012 21:25:10 +0000 (13:25 -0800)
Signed-off-by: Eric Anholt <eric@anholt.net>
Cc: stable@vger.kernel.org
Reviewed-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/i915_suspend.c

index 30d924f447c0abbb8aae45a76b699a3114b2a7e4..2b5eb229ff2cc1c443d7f01039a4cc308201d211 100644 (file)
@@ -827,7 +827,7 @@ int i915_save_state(struct drm_device *dev)
 
        if (IS_IRONLAKE_M(dev))
                ironlake_disable_drps(dev);
-       if (IS_GEN6(dev))
+       if (INTEL_INFO(dev)->gen >= 6)
                gen6_disable_rps(dev);
 
        /* Cache mode state */
@@ -886,7 +886,7 @@ int i915_restore_state(struct drm_device *dev)
                intel_init_emon(dev);
        }
 
-       if (IS_GEN6(dev)) {
+       if (INTEL_INFO(dev)->gen >= 6) {
                gen6_enable_rps(dev_priv);
                gen6_update_ring_freq(dev_priv);
        }