]> asedeno.scripts.mit.edu Git - linux.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)
commite7f2c80cbaabf62966d02ba752d19c9a63f422ab
tree3c1765f202a890c00f452053b9aa0f19874dee54
parent79e005204f75b54db9e42a39b3f66fac2ba190b9
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