drm/i915: vlv: clamp minimum RPS frequency to what Punit allows
authorImre Deak <imre.deak@intel.com>
Thu, 4 Dec 2014 16:39:35 +0000 (18:39 +0200)
committerImre Deak <imre.deak@intel.com>
Tue, 8 Dec 2015 18:51:45 +0000 (20:51 +0200)
commit361460355c384634f05ab8e945a6184c78cf9e97
tree62f9692f6ff21e62a1ec83abd180e2cd89ebede4
parenta308ccb3a93bc665ed0f6bc864960795e2955532
drm/i915: vlv: clamp minimum RPS frequency to what Punit allows

As described in the code comment, I couldn't set the minimum RPS
frequency on my BYT-M B0 to the minimum allowed as reported by Punit.
Fix this by clamping the minimum value to the first one that was
accepted on my machine.

Atm this issue doesn't cause any test failures, since in igt/pm_rps we
only check the cached version of the current frequency which is the same
what has been set. In the future we'll add checks for the actual
frequency too, and for that to pass this fix is necessary.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1417711175-13271-1-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/intel_pm.c
This page took 0.026531 seconds and 5 git commands to generate.