]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5a346c5c3247eba0bfc9ca248388da2c55b61e64
treefc40672633f6183911be7d9c182b5d3198231574
parent0e6400f60fd5faaf2ea5ea1fcea1a6e8c8e76faa
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