drm/amd/display: ensure FS is enabled before sending request to DMUB for FS changes
authorSamson Tam <samson.tam@amd.com>
Sat, 12 Aug 2023 00:02:17 +0000 (20:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Aug 2023 19:01:33 +0000 (15:01 -0400)
commit99f596fc9ce556bd92a79c4c1f1ca937610ee633
tree6155d83f69560d53b65346830045e94dd5cddc5b
parent5133b8d2ffd01a5b39543495986a8df285972842
drm/amd/display: ensure FS is enabled before sending request to DMUB for FS changes

[Why]
ignore_msa_timing_param indicates FS is capable but not necessarily enabled

[How]
add check for either allow_freesync or vrr_active_variable to confirm FS is enabled

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Samson Tam <samson.tam@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_dmub_srv.c