]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Add missing PSR state
authorMikita Lipski <mikita.lipski@amd.com>
Wed, 29 Sep 2021 12:39:21 +0000 (08:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Oct 2021 21:19:16 +0000 (17:19 -0400)
commit51cd2b91c5035660b72ce0140bdba6e263dceb6e
tree7c7c6c763a4a34de2fc9b01f034654e7f0394ced
parentf5b97ef81eb61c15721744da301cee17c8b0723d
drm/amd/display: Add missing PSR state

[why]
PSR_STATE2b was introduced on DMCUB side, but not on the driver side,
which caused convert_psr_state helper function to return
PSR_STATE_INVALID. That caused visual lagging during state transition.

[how]
Add PSR_STATE2b to dc_psr_state and convert_psr_state

Reviewed-by: Wyatt Wood <Wyatt.Wood@amd.com>
Acked-by: Agustin Gutierrez Sanchez <agustin.gutierrez@amd.com>
Signed-off-by: Mikita Lipski <mikita.lipski@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