drm/i915: Reject unsupported TMDS rates on ICL+
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 11 Mar 2022 21:28:45 +0000 (23:28 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 16 Mar 2022 15:12:56 +0000 (17:12 +0200)
commite5086cb3f3d3f94091be29eec38cf13f8a75a778
tree27a89b7d955df055677835675e77a7e6d44f3c5d
parent579899c7da714fac736b13fdb202e0a2cb9d3d27
drm/i915: Reject unsupported TMDS rates on ICL+

ICL+ PLLs can't genenerate certain frequencies. Running the PLL
algorithms through for all frequencies 25-594MHz we see a gap just
above 500 MHz. Specifically 500-522.8MHZ for TC PLLs, and 500-533.2
MHz for combo PHY PLLs. Reject those frequencies hdmi_port_clock_valid()
so that we properly filter out unsupported modes and/or color depths
for HDMI.

Cc: stable@vger.kernel.org
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/5247
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220311212845.32358-1-ville.syrjala@linux.intel.com
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
drivers/gpu/drm/i915/display/intel_hdmi.c