summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c
diff options
context:
space:
mode:
authorWenjing Liu <Wenjing.Liu@amd.com>2017-08-21 16:43:08 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 18:17:01 -0400
commitc25e2d1f8ff403fdb7a82a025ae492d167bbdb99 (patch)
treeb5d1bd1ca940c834b923b1a9fc40bff09238a183 /drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c
parent39902db0343e0e4f335324d22d6707303be24448 (diff)
drm/amd/display: retry LT on failing LT in automated request
[Description] Link training is not retried in automated link training request. In case link training is occasionally failing, there is not way to retry so the requested lane settings will not set. Signed-off-by: Wenjing Liu <Wenjing.Liu@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/dc/core/dc_link_hwss.c')
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c
index 3a5abd92036a..23d8b614e0fd 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c
@@ -299,10 +299,11 @@ void dp_retrain_link_dp_test(struct dc_link *link,
dp_receiver_power_ctrl(link, true);
- dc_link_dp_perform_link_training(
+ perform_link_training_with_retries(
link,
link_setting,
- skip_video_pattern);
+ skip_video_pattern,
+ LINK_TRAINING_ATTEMPTS);
link->cur_link_settings = *link_setting;