OSDN Git Service

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>
Fri, 1 Apr 2022 03:05:53 +0000 (23:05 -0400)
commit84d1ce0631c746c7fe025cbb49da6ade1aa80a1f
tree8977b85a4a5a231066b5d4cd9b89c7e5a7b9a92a
parenta905f0b59fefe819c59bacf9d0cfa678c96fcb8c
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