OSDN Git Service

drm/amd/display: refine to decide the verified link setting
authorZhikai Zhai <zhikai.zhai@amd.com>
Fri, 30 Jun 2023 05:56:04 +0000 (13:56 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Jul 2023 15:14:44 +0000 (11:14 -0400)
commitc99fcb02bc73d33f9cc52b1e9b705d7a3320c50b
tree8389ef536a9302e62ed61d97adaf98ce494f753d
parent3a87e25aaa1bc406fcb4459cfc78642bb070af1a
drm/amd/display: refine to decide the verified link setting

[WHY]
We return false by default when link training fail at link loss.
It will cause we get a fail verified link caps directly.

[HOW]
Record the highest verified link caps. Use the recorded value as
the verified link caps if it is not successful in the last attempt
to avoid to use the lowest link setting.

Reviewed-by: Wenjing Liu <wenjing.liu@amd.com>
Acked-by: Alan Liu <haoping.liu@amd.com>
Signed-off-by: Zhikai Zhai <zhikai.zhai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c