drm/i915/rps: Flip interpretation of ips fmin/fmax to max rps
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 26 Oct 2019 20:09:17 +0000 (21:09 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 27 Oct 2019 20:44:48 +0000 (20:44 +0000)
commitdd095afc88d557f11e5c0613848d97568d675fb7
treee092c6d329c03f4209c634d973f13104895c0699
parentd9d54a530a70eee6f003bd3ade38817cf85b9325
drm/i915/rps: Flip interpretation of ips fmin/fmax to max rps

ips uses clock delays as opposed to rps frequency bins. To fit the
delays into the same rps calculations, we need to invert the ips delays.

Fixes: 3e7abf814193 ("drm/i915: Extract GT render power state management")
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/20191026200917.1780-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_rps.c