drm/amd/display: Check that vrefresh is in freesync range
authorIlya Bakoulin <Ilya.Bakoulin@amd.com>
Thu, 17 Jan 2019 18:40:34 +0000 (13:40 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Feb 2019 02:16:23 +0000 (21:16 -0500)
commita057ec460ab1f43a85e0fbb9938c2c3460cb7445
tree0ff6e9106d478be872b64b4611494aa1102c6f19
parent22d7663f47cc36704c319c58bc1b1da8d42d53eb
drm/amd/display: Check that vrefresh is in freesync range

[Why]
Setting monitor refresh rate below freesync range would cause the
monitor to go blank indefinitely with freesync enabled

[How]
Set vrr_supported and ignore_msa_timing_param according to whether
the refresh rate is above or below the minimum freesync frequency.

Signed-off-by: Ilya Bakoulin <Ilya.Bakoulin@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c