drm/amd/display: Add work around for AUX failure on wake.
authorJimmy Kizito <Jimmy.Kizito@amd.com>
Wed, 9 Mar 2022 23:26:47 +0000 (18:26 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Apr 2022 15:42:32 +0000 (11:42 -0400)
commit2944dbedc7e167221fdb99531f7b0cdbac9ac696
treed086b0256a76892e3d70ba3ea12112d68c4d85c7
parent83e9faac9a387894e945e7f33c2bb7a9c348257c
drm/amd/display: Add work around for AUX failure on wake.

[Why]
When waking from low-power states, a DP sink may remain unresponsive to
AUX transactions.

[How]
Try to toggle DPCD SET_POWER register repeatedly (up to a maximum
timeout value) until DP sink becomes responsive.

Reviewed-by: Mustapha Ghaddar <Mustapha.Ghaddar@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Jimmy Kizito <Jimmy.Kizito@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/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h