From 83572340097012c91de3f96e52797491c79cfe43 Mon Sep 17 00:00:00 2001 From: Charlene Liu Date: Mon, 17 Jul 2017 17:46:49 -0400 Subject: [PATCH] drm/amd/display: fix DVI connected to HDMI connector max tmds clock Signed-off-by: Charlene Liu Reviewed-by: Dmytro Laktyushkin Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c b/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c index 812c299..5663d3d 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c @@ -830,6 +830,12 @@ bool dce110_link_encoder_validate_dvi_output( if (crtc_timing->pixel_encoding != PIXEL_ENCODING_RGB) return false; + /*connect DVI via adpater's HDMI connector*/ + if ((connector_signal == SIGNAL_TYPE_DVI_SINGLE_LINK || + connector_signal == SIGNAL_TYPE_HDMI_TYPE_A) && + signal != SIGNAL_TYPE_HDMI_TYPE_A && + crtc_timing->pix_clk_khz > TMDS_MAX_PIXEL_CLOCK) + return false; if (crtc_timing->pix_clk_khz < TMDS_MIN_PIXEL_CLOCK) return false; -- 2.7.4