drm/amd/display: Waiting for 1 frame to fix the flash issue on PSR1
authorRyan Lin <tsung-hua.lin@amd.com>
Wed, 26 Oct 2022 07:12:26 +0000 (15:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Nov 2022 22:24:57 +0000 (17:24 -0500)
commit1a2b886b1f242044840147347db1a595cd7f5f56
treeac1bb2cea8dc7649803d6682a49570df6ce957e6
parent5abb360ba74f59cc7ea5a4ab149c49d70d869239
drm/amd/display: Waiting for 1 frame to fix the flash issue on PSR1

[Why]
Needs more frames waiting before the PSR_Exit sending for the specific
TCON.

[How]
Add relock_delay_frame_cnt to control how many frames waiting are needed
before the PSR_Exit sending. The default value is 0. The Driver side can
set this variable for specific TCONs.

Reviewed-by: Robin Chen <robin.chen@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Ryan Lin <tsung-hua.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/dce/dmub_psr.c
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h