Commit bcc5042a authored by abdoulaye berthe's avatar abdoulaye berthe Committed by Alex Deucher

drm/amd/display: set lttpr mode before link settings

[Why]
Some lttpr devices do not work properly when lttpr mode is configured
after link settings.

[How]
Move lttpr configuration before lane settings.
Signed-off-by: default avatarabdoulaye berthe <abdoulaye.berthe@amd.com>
Reviewed-by: default avatarWenjing Liu <Wenjing.Liu@amd.com>
Acked-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ccb6af1e
...@@ -1446,6 +1446,10 @@ enum link_training_result dc_link_dp_perform_link_training( ...@@ -1446,6 +1446,10 @@ enum link_training_result dc_link_dp_perform_link_training(
&link->preferred_training_settings, &link->preferred_training_settings,
&lt_settings); &lt_settings);
/* Configure lttpr mode */
if (!link->is_lttpr_mode_transparent)
configure_lttpr_mode(link);
if (link->ctx->dc->work_arounds.lt_early_cr_pattern) if (link->ctx->dc->work_arounds.lt_early_cr_pattern)
start_clock_recovery_pattern_early(link, &lt_settings, DPRX); start_clock_recovery_pattern_early(link, &lt_settings, DPRX);
...@@ -1460,8 +1464,6 @@ enum link_training_result dc_link_dp_perform_link_training( ...@@ -1460,8 +1464,6 @@ enum link_training_result dc_link_dp_perform_link_training(
dp_set_fec_ready(link, fec_enable); dp_set_fec_ready(link, fec_enable);
if (!link->is_lttpr_mode_transparent) { if (!link->is_lttpr_mode_transparent) {
/* Configure lttpr mode */
configure_lttpr_mode(link);
/* 2. perform link training (set link training done /* 2. perform link training (set link training done
* to false is done as well) * to false is done as well)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment