drm/amdgpu: Add preferred mode in modeset when freesync video mode's enabled.
authorSolomon Chiu <solomon.chiu@amd.com>
Tue, 27 Jul 2021 16:20:30 +0000 (00:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Aug 2021 01:18:00 +0000 (21:18 -0400)
commite88ebd83ed50aeaa46eb600ca3315c8eb2cdc4fb
tree909443c4298fad968d949f469c22dc135a396cca
parenta5467ebd681fa2ba09cfa64689c5fc0773fd0634
drm/amdgpu: Add preferred mode in modeset when freesync video mode's enabled.

[Why]
With kernel module parameter "freesync_video" is enabled, if the mode
is changed to preferred mode(the mode with highest rate), then Freesync
fails because the preferred mode is treated as one of freesync video
mode, and then be configurated as freesync video mode(fixed refresh
rate).

[How]
Skip freesync fixed rate configurating when modeset to preferred mode.

Signed-off-by: Solomon Chiu <solomon.chiu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c