drm/amd/display: Fix possible infinite loop in DP LT fallback
authorIlya <Ilya.Bakoulin@amd.com>
Mon, 7 Feb 2022 22:39:10 +0000 (17:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jun 2022 19:56:49 +0000 (15:56 -0400)
commit583ad88871b38dc39f05a316dcde909e444b09a6
treefc40672633f6183911be7d9c182b5d3198231574
parentf0ad66f42a3d914ac5f9972731ec5bc97f35002d
drm/amd/display: Fix possible infinite loop in DP LT fallback

[Why]
It's possible for some fallback scenarios to result in infinite looping
during link training.

[How]
This change modifies DP LT fallback behavior to more closely match the
DP standard. Keep track of the link rate during the EQ_FAIL fallback,
and use it as the maximum link rate for the CR sequence.

Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Ilya <Ilya.Bakoulin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c