]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: check hpd before retry verify link cap
authorWenjing Liu <Wenjing.Liu@amd.com>
Fri, 26 Jul 2019 18:53:20 +0000 (14:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Aug 2019 15:57:24 +0000 (10:57 -0500)
commitb64a229debf8243b2eea9fdb88c50fa689f0bce1
tree3c1765f202a890c00f452053b9aa0f19874dee54
parentd39ea3b35da72510154bfca6b7e921efdef5f186
drm/amd/display: check hpd before retry verify link cap

[why]
During detection link training if a display is disconnected,
the current code will retry 3 times of link training
on disconnected link before giving up.

[how]
Before each retry check for HPD status, only retry
verify link cap when HPD is still high.
Also put a 10ms delay between each retry to improve
the chance of success.

Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Abdoulaye Berthe <Abdoulaye.Berthe@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h