drm/i915: POSTING_READ the new rps value
authorBen Widawsky <ben@bwidawsk.net>
Sat, 8 Sep 2012 02:43:41 +0000 (19:43 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 20 Sep 2012 12:23:01 +0000 (14:23 +0200)
In order to keep our cached values in sync with the hardware, we need a
posting read here.

CC: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
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 36c64091bc909b5dd06830bfa336a3bb52c7a0f7..4e86037ae6b4b992c01545a7a1ae488d88179842 100644 (file)
@@ -2338,6 +2338,8 @@ void gen6_set_rps(struct drm_device *dev, u8 val)
         */
        I915_WRITE(GEN6_RP_INTERRUPT_LIMITS, limits);
 
+       POSTING_READ(GEN6_RPNSWREQ);
+
        dev_priv->rps.cur_delay = val;
 
        trace_intel_gpu_freq_change(val * 50);