drm/i915: Force GPU Freq to lowest while suspending.
authorDeepak S <deepak.s@linux.intel.com>
Fri, 20 Jun 2014 14:33:02 +0000 (20:03 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 23 Jul 2014 05:05:22 +0000 (07:05 +0200)
We might be leaving the GPU Frequency (and thus vnn) high during the suspend.
Force gt to move to lowest freq while suspending.

v2: Fixed typo in commit message (Deepak)

v3: Force gt to lowest freq in suspend_gt_powersave (Daniel)

v4: Add GPU min freq set _after_ we've cancelled the rps works (Daniel)

Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c

index 9585f1517fa911d7c0346faaa935bce15afa3268..f55347f3ac7f9a8a8ddfe313cad31a74aae6d9c9 100644 (file)
@@ -4974,6 +4974,9 @@ void intel_suspend_gt_powersave(struct drm_device *dev)
        flush_delayed_work(&dev_priv->rps.delayed_resume_work);
 
        cancel_work_sync(&dev_priv->rps.work);
+
+       /* Force GPU to min freq during suspend */
+       gen6_rps_idle(dev_priv);
 }
 
 void intel_disable_gt_powersave(struct drm_device *dev)