]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Skip override for preferred link settings during link training
authorGeorge Shen <george.shen@amd.com>
Fri, 1 Oct 2021 14:36:09 +0000 (22:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Oct 2021 20:09:32 +0000 (16:09 -0400)
commit40e88e9ec3f472bd80b5af2917dac4331dda9deb
treecae48a3612c18268a0c21ce13c7477fa02584341
parent07e49ad237129cf9793a82adb0ebd05a7341ade7
drm/amd/display: Skip override for preferred link settings during link training

[Why]
Overriding link setting inside override_training_settings
result in fallback link settings being ignored. This can
potentially cause link training to always fail and consequently
result in an infinite loop of link training to occur in
dp_verify_link_cap during detection.

[How]
Since preferred link settings are already considered inside
decide_link_settings, skip the check in override_training_settings
to avoid infinite link training loops.

Reviewed-by: Wenjing Liu <wenjing.liu@amd.com>
Acked-by: Solomon Chiu <solomon.chiu@amd.com>
Signed-off-by: George Shen <george.shen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c