drm/amd/display: Workaround required for link training reliability
authorDavid Galiffi <David.Galiffi@amd.com>
Wed, 29 Jan 2020 22:02:32 +0000 (17:02 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Feb 2020 16:08:19 +0000 (11:08 -0500)
commitb01f22ec88103d781f27aadb29277a35302db083
tree0ff0628b01920ff15392801ac8ac12b66be5c58f
parent31cf6f35934757a6dc752e724ca529a116451b4d
drm/amd/display: Workaround required for link training reliability

[Why]
A software workaround is required for all vendor-built cards on platform.

[How]
When performing DP link training, we must send TPS1 before DPCD:100h is
written with the proper bit rate value. This change must be applies in
ALL cases when LT happens.

Signed-off-by: David Galiffi <David.Galiffi@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Harry Wentland <harry.wentland@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/dc_link.h