aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikola Cornij <[email protected]>2019-10-29 15:49:28 -0400
committerAlex Deucher <[email protected]>2019-11-19 10:12:52 -0500
commitcbd8394d3a97f6e7457f561bab5abc9c41b664e9 (patch)
treea52fb31c9d498c9c355b7da5f81b0a2be973ebc7
parent5b956e9873cb3658fd29985c446404e3bc7ae5a7 (diff)
drm/amd/display: Connect DIG FE to its BE before link training starts
[why] In SST mode no idle pattern will be generated after link training if DIG FE is not connected to DIG BE. Signed-off-by: Nikola Cornij <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc_link.c4
1 files changed, 4 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 1be427759771..49f3d0f67806 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
@@ -1546,6 +1546,10 @@ static enum dc_status enable_link_dp(
panel_mode = dp_get_panel_mode(link);
dp_set_panel_mode(link, panel_mode);
+ /* We need to do this before the link training to ensure the idle pattern in SST
+ * mode will be sent right after the link training */
+ link->link_enc->funcs->connect_dig_be_to_fe(link->link_enc,
+ pipe_ctx->stream_res.stream_enc->id, true);
skip_video_pattern = true;
if (link_settings.link_rate == LINK_RATE_LOW)