drm/amd/display: Fix disbling PSR slow response issue
authorTom Chung <chiahsuan.chung@amd.com>
Mon, 29 May 2023 06:27:11 +0000 (14:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Jun 2023 14:44:23 +0000 (10:44 -0400)
commite8c49e9eead8620c7dd3c64a1f3bb44682325710
treeb86d6b4f66021cfa83eaafdd9cbc6503d975b788
parentf308116676566b555ec3bab4c3f9eb20c1c9a5cb
drm/amd/display: Fix disbling PSR slow response issue

[Why]
dmub_psr_get_state() return an invalid PSR state while disable
the PSR because convert_psr_state() doesn't recognize the state
that return from DMCUB.

[How]
Add a PSR state to make the dmub_psr_get_state() return a
correct PSR state.

Acked-by: Stylon Wang <stylon.wang@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Reviewed-by: Wayne Lin <Wayne.Lin@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/dc_types.h
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c