summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display
diff options
context:
space:
mode:
authorHersen Wu <hersenxs.wu@amd.com>2017-01-27 15:44:26 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 17:13:30 -0400
commit71021265a6f03893139f58f2bc50d2ad9adc3826 (patch)
tree13a157c8139a8a110a47cc038c7e2bf3719f8814 /drivers/gpu/drm/amd/display
parentb7e2439c7878f06edb70379454d57ce3d51d3feb (diff)
downloadlinux-71021265a6f03893139f58f2bc50d2ad9adc3826.tar.bz2
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display')
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc_link.c5
1 files changed, 5 insertions, 0 deletions
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 2bceb3aa24b5..ec5de329b091 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)