diff options
author | Ben Widawsky <ben@bwidawsk.net> | 2012-09-07 22:43:41 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-09-20 08:23:01 -0400 |
commit | d5570a72439b2d972c915208266440c2f330d03d (patch) | |
tree | 31de414d953ca4eebd6cc392c41e23c18d9cb848 /drivers/gpu/drm/i915/intel_pm.c | |
parent | df6eedc81d43c2245885c6baeb28d488c8a4dea4 (diff) |
drm/i915: POSTING_READ the new rps value
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>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pm.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_pm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 36c64091bc90..4e86037ae6b4 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c | |||
@@ -2338,6 +2338,8 @@ void gen6_set_rps(struct drm_device *dev, u8 val) | |||
2338 | */ | 2338 | */ |
2339 | I915_WRITE(GEN6_RP_INTERRUPT_LIMITS, limits); | 2339 | I915_WRITE(GEN6_RP_INTERRUPT_LIMITS, limits); |
2340 | 2340 | ||
2341 | POSTING_READ(GEN6_RPNSWREQ); | ||
2342 | |||
2341 | dev_priv->rps.cur_delay = val; | 2343 | dev_priv->rps.cur_delay = val; |
2342 | 2344 | ||
2343 | trace_intel_gpu_freq_change(val * 50); | 2345 | trace_intel_gpu_freq_change(val * 50); |