drm/i915: Fix computation of last_adjustment for RPS autotuning
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 Apr 2015 15:20:29 +0000 (16:20 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 10 Apr 2015 06:56:01 +0000 (08:56 +0200)
commitedcf284bfe9c94eab2923b13cfff7456c0dc7dc6
treee50f2d4799757730e797326a4b02ee0b02b49750
parent8fb55197e64d5988ec57b54e973daeea72c3f2ff
drm/i915: Fix computation of last_adjustment for RPS autotuning

The issue is that by computing the last_adj value after applying the
clamping, we can end up with a bogus value for feeding into the next RPS
autotuning step.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Deepak S <deepak.s@linux.intel.com>
Reviewed-by: Deepak S <deepak.s@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c