Commit 3141ec60 authored by Eric Anholt's avatar Eric Anholt Committed by Greg Kroah-Hartman

drm/i915: Re-enable gen7 RC6 and GPU turbo after resume.

commit 04115a9d upstream.
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
Reviewed-by: default avatarKeith Packard <keithp@keithp.com>
Reviewed-by: default avatarEugeni Dodonov <eugeni.dodonov@intel.com>
Reviewed-by: default avatarKenneth Graunke <kenneth@whitecape.org>
Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e71fe01d
...@@ -822,7 +822,7 @@ int i915_save_state(struct drm_device *dev) ...@@ -822,7 +822,7 @@ int i915_save_state(struct drm_device *dev)
if (IS_IRONLAKE_M(dev)) if (IS_IRONLAKE_M(dev))
ironlake_disable_drps(dev); ironlake_disable_drps(dev);
if (IS_GEN6(dev)) if (INTEL_INFO(dev)->gen >= 6)
gen6_disable_rps(dev); gen6_disable_rps(dev);
/* Cache mode state */ /* Cache mode state */
...@@ -881,7 +881,7 @@ int i915_restore_state(struct drm_device *dev) ...@@ -881,7 +881,7 @@ int i915_restore_state(struct drm_device *dev)
intel_init_emon(dev); intel_init_emon(dev);
} }
if (IS_GEN6(dev)) { if (INTEL_INFO(dev)->gen >= 6) {
gen6_enable_rps(dev_priv); gen6_enable_rps(dev_priv);
gen6_update_ring_freq(dev_priv); gen6_update_ring_freq(dev_priv);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment