]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Spin for DMCUB PHY init in DC
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 5 Nov 2019 17:51:51 +0000 (12:51 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Nov 2019 15:12:53 +0000 (10:12 -0500)
commit94327474be4580673c39dff9cc72f2717f936775
treea623d9e6e9442f4e1b5d21fbae99df1b323fca5a
parent06e080f743596d4e2ca4d964eb02ccba6f36de79
drm/amd/display: Spin for DMCUB PHY init in DC

[Why]
DCN will hang if we access registers before PHY init is done.

So we need to spin or abort.

[How]
On hardware with DMCUB running and working we shouldn't time out
waiting for this to finish and we shouldn't hit the spin cycle.

If there's no hardware support then we should exit out of the function
early assuming that PHY init was already done elsewhere.

If we hit the timeout then there's likely a bug in firmware or software
and we need to debug - add errors and asserts as appropriate.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c