aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/0197-drm-amd-display-Clear-test-pattern-when-enabling-str.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0197-drm-amd-display-Clear-test-pattern-when-enabling-str.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/0197-drm-amd-display-Clear-test-pattern-when-enabling-str.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0197-drm-amd-display-Clear-test-pattern-when-enabling-str.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0197-drm-amd-display-Clear-test-pattern-when-enabling-str.patch
new file mode 100644
index 00000000..ae07c744
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0197-drm-amd-display-Clear-test-pattern-when-enabling-str.patch
@@ -0,0 +1,33 @@
+From 33ea3d83e960b033605461c60fe51ea441866925 Mon Sep 17 00:00:00 2001
+From: Hersen Wu <hersenxs.wu@amd.com>
+Date: Fri, 27 Jan 2017 15:44:26 -0500
+Subject: [PATCH 0197/4131] drm/amd/display: Clear test pattern when enabling
+ stream
+
+Signed-off-by: Hersen Wu <hersenxs.wu@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Acked-by: Harry Wentland <Harry.Wentland@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc_link.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
+index 2bceb3a..ec5de32 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
+@@ -1846,6 +1846,11 @@ void core_link_enable_stream(struct pipe_ctx *pipe_ctx)
+ return;
+ }
+
++ /* turn off otg test pattern if enable */
++ pipe_ctx->tg->funcs->set_test_pattern(pipe_ctx->tg,
++ CONTROLLER_DP_TEST_PATTERN_VIDEOMODE,
++ COLOR_DEPTH_UNDEFINED);
++
+ core_dc->hwss.enable_stream(pipe_ctx);
+
+ if (pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST)
+--
+2.7.4
+