drm/i915: Warn about odd rps values on CHV
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 18 Aug 2014 11:42:43 +0000 (14:42 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 3 Sep 2014 09:04:56 +0000 (11:04 +0200)
commit1c14762d0cc3eecfdc5060bd634d124d32bd9d44
treeb04f2e251cd1379ffacda321d9ecc3ba3a5a8c57
parentcbce710709f2b57cb955a98c0d3fad1559c4d93d
drm/i915: Warn about odd rps values on CHV

CHV wants even rps opcodes so print a warning of the
min/max/rpe/rp1 values are odd, and warn if an odd value
slips through to valleyview_set_rps() and truncate it to
an even value.

Also add a comment to chv_freq_opcode() to make sure no one
changes the code without considering this requirement.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Deepak S <deepak.s@linux.intel.com>
[danvet: Help git along in applying the patch, somehow it silently
ended up in the vlv init_gt_powersave function.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c