drm/amd/display: 7 retries + 50 ms timeout on AUX DEFER
authorWesley Chalmers <Wesley.Chalmers@amd.com>
Mon, 29 Mar 2021 17:27:47 +0000 (13:27 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Jun 2021 21:25:41 +0000 (17:25 -0400)
commit1d5b15f77e3567d2497dad69c99a307dd6379c8f
tree89d1282a122cb23b27e58216f5bb5a2d557370c5
parentd307ce4b6c8fdc0fecf9f316d87c7f82fc82d83e
drm/amd/display: 7 retries + 50 ms timeout on AUX DEFER

[WHY]
DP 2.0 SCR specifies that TX devices must retry at least 7 times when
receiving an AUX DEFER reply from RX. In addition, the specification
states that the TX shall not retry indefinitely, and gives a suggestive
timeout interval of 50ms.

[HOW]
Keep retrying until both 7 or more retries have been made, and the 50ms
interval has passed.

Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@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/dce/dce_aux.c