drm/i915: Reject modeset if the dotclock is too high
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 24 May 2016 18:34:18 +0000 (21:34 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 27 May 2016 12:31:21 +0000 (15:31 +0300)
commitf326115630069063eb55db0236c5fedb3a131fdb
tree26cd2792c38ff8be1bb237dd9dce03d4f5296d14
parentbb143165510661feda06fd99298b8b3a94af3046
drm/i915: Reject modeset if the dotclock is too high

Reject the modeset if the requested dotclock exceeds the maximum allowed
by the hardware. So far we've only checked this on gen2/3 while also
handling the double wide vs. single wide pipe selection. Extend the
check to all platforms since we have the max dotclock correctly
populated now across the board.

Testcase: igt/kms_invalid_dotclock
Cc: Mika Kahola <mika.kahola@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1464114859-15610-1-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_display.c