drm/amd/display: Retry getting PSR state if command times out
authorWyatt Wood <wyatt.wood@amd.com>
Fri, 19 Mar 2021 17:44:55 +0000 (13:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:51:25 +0000 (16:51 -0400)
commit04f3c88f09554714f25caa01d1a8ba999fc487bb
tree992363b424454111ad9d75e062a3ec0f16dec563
parent719a9b332305b8c4b91805c4bedee27ce82ee916
drm/amd/display: Retry getting PSR state if command times out

[Why]
GPINT command to get PSR state from FW times out.

[How]
Add retry to get valid PSR state.

Signed-off-by: Wyatt Wood <wyatt.wood@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc_types.h
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c