drm/amd/display: Return invalid state if GPINT times out
authorWyatt Wood <wyatt.wood@amd.com>
Fri, 19 Feb 2021 17:21:47 +0000 (12:21 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Mar 2021 19:06:55 +0000 (14:06 -0500)
commit8039bc7130ef4206a58e4dc288621bc97eba08eb
tree2686c0062c80eef2fa093942647f76e0262e91ff
parent45a1261b393bd3dc24d1ae8a55249c0897df0c88
drm/amd/display: Return invalid state if GPINT times out

[Why]
GPINT timeout is causing PSR_STATE_0 to be returned when it shouldn't.
We must guarantee that PSR is fully disabled before doing hw programming
on driver-side.

[How]
Return invalid state if GPINT command times out. Let existing retry
logic send the GPINT until successful.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Wyatt Wood <wyatt.wood@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@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/dce/dmub_psr.c