]> www.infradead.org Git - users/hch/configfs.git/commit
drm/amd/display: Reset VRR config during resume
authorTom Chung <chiahsuan.chung@amd.com>
Fri, 12 Jul 2024 09:29:07 +0000 (17:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 27 Jul 2024 21:32:32 +0000 (17:32 -0400)
commitdf18a4de9e77ad92c472fd1eb0fb1255d52dd4cd
tree80efcb30540647f2f85d90fac3324ac1e43efd13
parent4981bd4749fa769b3d6acbc82fe8059c030d0920
drm/amd/display: Reset VRR config during resume

[Why]
After resume the system, the new_crtc_state->vrr_infopacket does not
synchronize with the current state.  It will affect the
update_freesync_state_on_stream() does not update the state correctly.

The previous patch causes a PSR SU regression that cannot let panel go
into self-refresh mode.

[How]
Reset the VRR config during resume to force update the VRR config later.

Fixes: eb6dfbb7a9c6 ("drm/amd/display: Reset freesync config before update new state")
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Reviewed-by: Sun peng Li <sunpeng.li@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c