aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_irq.c
diff options
context:
space:
mode:
authorMatthew Garrett <mjg59@srcf.ucam.org>2010-02-02 13:30:47 -0500
committerEric Anholt <eric@anholt.net>2010-02-22 11:46:55 -0500
commitb5b72e891a5a6056c849ef8eaf259f126090f88b (patch)
tree2d6ae8d0d0ab64e53b34fff47fcc5f4403804bc7 /drivers/gpu/drm/i915/i915_irq.c
parentf97108d1d0facc7902134ebc453b226bbd4d1cdb (diff)
drm/i915: Deobfuscate the render p-state obfuscation
The ironlake render p-state support includes some rather odd variable names. Clean them up in order to improve the readability of the code. Signed-off-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_irq.c')
-rw-r--r--drivers/gpu/drm/i915/i915_irq.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 8b35f5e1c511..1a56ae7b5a78 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -272,23 +272,23 @@ static void i915_hotplug_work_func(struct work_struct *work)
272static void i915_handle_rps_change(struct drm_device *dev) 272static void i915_handle_rps_change(struct drm_device *dev)
273{ 273{
274 drm_i915_private_t *dev_priv = dev->dev_private; 274 drm_i915_private_t *dev_priv = dev->dev_private;
275 u32 slow_up, slow_down, max_avg, min_avg; 275 u32 busy_up, busy_down, max_avg, min_avg;
276 u16 rgvswctl; 276 u16 rgvswctl;
277 u8 new_delay = dev_priv->cur_delay; 277 u8 new_delay = dev_priv->cur_delay;
278 278
279 I915_WRITE(MEMINTRSTS, I915_READ(MEMINTRSTS) & ~MEMINT_EVAL_CHG); 279 I915_WRITE(MEMINTRSTS, I915_READ(MEMINTRSTS) & ~MEMINT_EVAL_CHG);
280 slow_up = I915_READ(RCPREVBSYTUPAVG); 280 busy_up = I915_READ(RCPREVBSYTUPAVG);
281 slow_down = I915_READ(RCPREVBSYTDNAVG); 281 busy_down = I915_READ(RCPREVBSYTDNAVG);
282 max_avg = I915_READ(RCBMAXAVG); 282 max_avg = I915_READ(RCBMAXAVG);
283 min_avg = I915_READ(RCBMINAVG); 283 min_avg = I915_READ(RCBMINAVG);
284 284
285 /* Handle RCS change request from hw */ 285 /* Handle RCS change request from hw */
286 if (slow_up > max_avg) { 286 if (busy_up > max_avg) {
287 if (dev_priv->cur_delay != dev_priv->max_delay) 287 if (dev_priv->cur_delay != dev_priv->max_delay)
288 new_delay = dev_priv->cur_delay - 1; 288 new_delay = dev_priv->cur_delay - 1;
289 if (new_delay < dev_priv->max_delay) 289 if (new_delay < dev_priv->max_delay)
290 new_delay = dev_priv->max_delay; 290 new_delay = dev_priv->max_delay;
291 } else if (slow_down < min_avg) { 291 } else if (busy_down < min_avg) {
292 if (dev_priv->cur_delay != dev_priv->min_delay) 292 if (dev_priv->cur_delay != dev_priv->min_delay)
293 new_delay = dev_priv->cur_delay + 1; 293 new_delay = dev_priv->cur_delay + 1;
294 if (new_delay > dev_priv->min_delay) 294 if (new_delay > dev_priv->min_delay)
@@ -300,8 +300,8 @@ static void i915_handle_rps_change(struct drm_device *dev)
300 300
301 rgvswctl = I915_READ(MEMSWCTL); 301 rgvswctl = I915_READ(MEMSWCTL);
302 if (rgvswctl & MEMCTL_CMD_STS) { 302 if (rgvswctl & MEMCTL_CMD_STS) {
303 DRM_ERROR("gpu slow, RCS change rejected\n"); 303 DRM_ERROR("gpu busy, RCS change rejected\n");
304 return; /* still slow with another command */ 304 return; /* still busy with another command */
305 } 305 }
306 306
307 /* Program the new state */ 307 /* Program the new state */