Commit 834a9a9f authored by Martin Leung's avatar Martin Leung Committed by Alex Deucher
Browse files

drm/amd/display: Link training TPS1 workaround add back in dpcd



[Why]
Previously implemented early_cr_pattern we mistook dp_hw_link_settings
for a redundant call of dpcd_set_link_settings

[How]
revert the changes to dpcd_set_link_settings calls for this workaround.
Do not need to revert the entire change since it only affects patched
case

Signed-off-by: default avatarMartin Leung <martin.leung@amd.com>
Reviewed-by: default avatarDavid Galiffi <David.Galiffi@amd.com>
Acked-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 022b6518
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -1446,10 +1446,10 @@ enum link_training_result dc_link_dp_perform_link_training(
			&link->preferred_training_settings,
			&lt_settings);

	/* 1. set link rate, lane count and spread. */
	if (link->ctx->dc->work_arounds.lt_early_cr_pattern)
		start_clock_recovery_pattern_early(link, &lt_settings, DPRX);
	else

	/* 1. set link rate, lane count and spread. */
	dpcd_set_link_settings(link, &lt_settings);

	if (link->preferred_training_settings.fec_enable != NULL)
@@ -1669,10 +1669,10 @@ enum link_training_result dc_link_dp_sync_lt_attempt(
	dp_set_panel_mode(link, panel_mode);

	/* Attempt to train with given link training settings */
	/* Set link rate, lane count and spread. */
	if (link->ctx->dc->work_arounds.lt_early_cr_pattern)
		start_clock_recovery_pattern_early(link, &lt_settings, DPRX);
	else

	/* Set link rate, lane count and spread. */
	dpcd_set_link_settings(link, &lt_settings);

	/* 2. perform link training (set link training done