From 859318887ecd610653a337c5bfc78c5f3d144aab Mon Sep 17 00:00:00 2001 From: Harry Wentland Date: Tue, 9 May 2017 10:41:42 -0400 Subject: [PATCH] drm/amd/display: Keep DVI_SINGLE_LINK signal if low clk If user is using DVI->HDMI dongle dual link signal might pose a problem. Keep single link signal type if clk is lower than max tmds clk. Change-Id: I6ad1009bb195e0d1ba91a9801c6125778419f739 Signed-off-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c index 2de86f8364a3..13109f53eece 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c @@ -1264,9 +1264,12 @@ static void update_stream_signal(struct core_stream *stream) stream->signal = stream->public.output_signal; } - if (stream->signal == SIGNAL_TYPE_DVI_SINGLE_LINK && + if (dc_is_dvi_signal(stream->signal) && stream->public.timing.pix_clk_khz > TMDS_MAX_PIXEL_CLOCK_IN_KHZ) stream->signal = SIGNAL_TYPE_DVI_DUAL_LINK; + else + stream->signal = SIGNAL_TYPE_DVI_SINGLE_LINK; + } bool resource_is_stream_unchanged( -- 2.11.0