diff options
Diffstat (limited to 'meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0400-drm-amd-display-Keep-DVI_SINGLE_LINK-signal-if-low-c.patch')
-rw-r--r-- | meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0400-drm-amd-display-Keep-DVI_SINGLE_LINK-signal-if-low-c.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0400-drm-amd-display-Keep-DVI_SINGLE_LINK-signal-if-low-c.patch b/meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0400-drm-amd-display-Keep-DVI_SINGLE_LINK-signal-if-low-c.patch new file mode 100644 index 00000000..3b4296ef --- /dev/null +++ b/meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0400-drm-amd-display-Keep-DVI_SINGLE_LINK-signal-if-low-c.patch @@ -0,0 +1,39 @@ +From 21b16878bc48afc8d331cc6331509f1a65d7e3cf Mon Sep 17 00:00:00 2001 +From: Harry Wentland <harry.wentland@amd.com> +Date: Tue, 9 May 2017 10:41:42 -0400 +Subject: [PATCH 0400/4131] 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. + +Signed-off-by: Harry Wentland <harry.wentland@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 9 ++++++--- + 1 file changed, 6 insertions(+), 3 deletions(-) + +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 ae8b221..9588217 100644 +--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c ++++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c +@@ -1283,9 +1283,12 @@ static void update_stream_signal(struct core_stream *stream) + stream->signal = stream->public.output_signal; + } + +- if (stream->signal == SIGNAL_TYPE_DVI_SINGLE_LINK && +- stream->public.timing.pix_clk_khz > TMDS_MAX_PIXEL_CLOCK_IN_KHZ) +- stream->signal = SIGNAL_TYPE_DVI_DUAL_LINK; ++ if (dc_is_dvi_signal(stream->signal)) { ++ if (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.7.4 + |