drm/i915: Don't accidentally increase the frequency in handling DOWN rps
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Feb 2017 15:03:47 +0000 (15:03 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 14 Feb 2017 22:35:39 +0000 (22:35 +0000)
commit17136d548e1b5ecd947da996f125907a671313d9
tree9a90eb2bea1f9b7514427aac730c0f3f07a1db0f
parentdb4c5e0b726f021e864e887e6b49ad6ecebabf5a
drm/i915: Don't accidentally increase the frequency in handling DOWN rps

If we receive a DOWN_TIMEOUT rps interrupt, we respond by reducing the
GPU clocks significantly. Before we do, double check that the frequency
we pick is actually a decrease.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170210150348.22146-2-chris@chris-wilson.co.uk
Reviewed-by: Radoslaw Szwichtenberg <radoslaw.szwichtenberg@intel.com>
drivers/gpu/drm/i915/i915_irq.c