aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2013-06-25 14:38:10 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-07-01 05:14:50 -0400
commit6dc5848899a7ddbf1d02f104a97dde7ba0200693 (patch)
tree24f072e500a58783235502a09c571a2ce598e178
parent7a67092a25d854a4f5c53a6495d33e250896f9db (diff)
drm/i915: Don't increase the GPU frequency from the delayed VLV rps timer
There's little point in increasing the GPU frequency from the delayed rps work on VLV. Now when the GPU is idle, the GPU frequency actually keeps dropping gradually until it hits the minimum, whereas previously it just ping-ponged constantly between RPe and RPe-1. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/i915/intel_pm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index ed929667c5ba..ccbdd83f5220 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -3461,7 +3461,8 @@ static void vlv_rps_timer_work(struct work_struct *work)
3461 * min freq available. 3461 * min freq available.
3462 */ 3462 */
3463 mutex_lock(&dev_priv->rps.hw_lock); 3463 mutex_lock(&dev_priv->rps.hw_lock);
3464 valleyview_set_rps(dev_priv->dev, dev_priv->rps.rpe_delay); 3464 if (dev_priv->rps.cur_delay > dev_priv->rps.rpe_delay)
3465 valleyview_set_rps(dev_priv->dev, dev_priv->rps.rpe_delay);
3465 mutex_unlock(&dev_priv->rps.hw_lock); 3466 mutex_unlock(&dev_priv->rps.hw_lock);
3466} 3467}
3467 3468