drm/amd/display: verify lane status before exiting verify link cap
authorWenjing Liu <Wenjing.Liu@amd.com>
Mon, 3 Dec 2018 22:26:15 +0000 (17:26 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Dec 2018 23:25:13 +0000 (18:25 -0500)
commit1ae62f3114a95982f2f4cbe5c7bd14b81233597a
tree98bf95d8f94c2c8290ebc6b230a6cd243b96de0c
parentfd0853567cdf2eeddf22ba9021deedf6b1f90f7a
drm/amd/display: verify lane status before exiting verify link cap

[why]
DP LL CTS1.4 4.3.2.1 test failure.

[how]
The failure is caused by not handling DP link loss
hpd short pusle during set mode. The change is to read link status
before set mode link training. If link is lost, re-verify link caps.
Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@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_dp.c
drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c