drm/i915: change initial rps frequency for gen8
authorTom O'Rourke <Tom.O'Rourke@intel.com>
Wed, 19 Nov 2014 22:21:54 +0000 (14:21 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 20 Nov 2014 12:03:32 +0000 (13:03 +0100)
In gen8_enable_rps, change the initial rps setting
to the min_freq_softlimit (same as gen6_enable_rps).

Signed-off-by: Tom O'Rourke <Tom.O'Rourke@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c

index 6d0795d3b2e4a97690e822672911cf0dd44ee0e6..70e75477f8fce9921e0a9a73462b042f870bd42f 100644 (file)
@@ -4766,7 +4766,8 @@ static void gen8_enable_rps(struct drm_device *dev)
 
        /* 6: Ring frequency + overclocking (our driver does this later */
 
-       gen6_set_rps(dev, (I915_READ(GEN6_GT_PERF_STATUS) & 0xff00) >> 8);
+       dev_priv->rps.power = HIGH_POWER; /* force a reset */
+       gen6_set_rps(dev_priv->dev, dev_priv->rps.min_freq_softlimit);
 
        gen6_gt_force_wake_put(dev_priv, FORCEWAKE_ALL);
 }