]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/i915: fix unbalanced GT powersave enable / disable calls
authorImre Deak <imre.deak@intel.com>
Mon, 14 Apr 2014 17:24:34 +0000 (20:24 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 25 Apr 2014 13:40:18 +0000 (15:40 +0200)
Atm, we call intel_gt_powersave_enable() for GEN6 and GEN7 but disable
it for everything starting from GEN6. This is a problem in case of BDW.
Since I don't have a BDW to test if RC6 works properly, just keep it
disabled for now and fix only the disable function.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c

index 3b4dd8f57e0a28118a5e3b0b2f6cd1918d737195..651d690fc13173f6bc452cfdd3f83dc75107ad11 100644 (file)
@@ -4506,7 +4506,7 @@ void intel_disable_gt_powersave(struct drm_device *dev)
        if (IS_IRONLAKE_M(dev)) {
                ironlake_disable_drps(dev);
                ironlake_disable_rc6(dev);
-       } else if (INTEL_INFO(dev)->gen >= 6) {
+       } else if (IS_GEN6(dev) || IS_GEN7(dev)) {
                cancel_delayed_work_sync(&dev_priv->rps.delayed_resume_work);
                cancel_work_sync(&dev_priv->rps.work);
                mutex_lock(&dev_priv->rps.hw_lock);