drm/i915/gt: Suppress threshold updates on RPS parking
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 18 Dec 2019 21:05:45 +0000 (21:05 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 19 Dec 2019 17:09:37 +0000 (17:09 +0000)
commit281176327d0217d3ee0f7acc93f7542cc1b1ce9d
tree8efd272239828b512ba1e3c5e004499b0e4fbc0d
parent35cc7f32c298ba163a009598e6e7e15920a2e4e6
drm/i915/gt: Suppress threshold updates on RPS parking

When we park RPS, we set the GPU to run at minimum 'idle' frequency.
However, as the GPU is idle, we also disable the worker and RPS
interrupts - changing the RPS thresholds has no effect, it just incurs
extra changes to restore them when we unpark. So on parking, leave the
thresholds set to the current power level and so we expect them to be
valid for our restart.

References: https://gitlab.freedesktop.org/drm/intel/issues/848
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Andi Shyti <andi.shyti@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191218210545.3975426-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_rps.c