]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Only allow VRR when vrefresh is within supported range
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Thu, 21 Mar 2019 15:53:45 +0000 (11:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 21 Mar 2019 19:34:59 +0000 (14:34 -0500)
commit380ff59aea705da27214074276a6fbebe33e1092
treef41bb4579d544455824f3f4fe57e83be67b482bb
parent7689d05b6a244168ec9333d2a546519b828395ee
drm/amd/display: Only allow VRR when vrefresh is within supported range

[Why]
Black screens or artifacting can occur when enabling FreeSync outside
of the supported range of the monitor. This can happen since the
supported range isn't always the min/max vrefresh range available for
the monitor.

[How]
There was previously a fix that prevented this from happening in the
low range but it didn't cover the upper range. Expand the condition
to include both.

Cc: Sun peng Li <Sunpeng.Li@amd.com>
Cc: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c