]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Freesync does not engage on some displays
authorHarmanprit Tatla <htatla@amd.com>
Mon, 24 Sep 2018 20:46:38 +0000 (16:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Nov 2018 19:20:41 +0000 (14:20 -0500)
commitde801062bf2c4216c1884d3707ff3f1f3533c4d9
treeefd83bfef3637b5a6ba83a596ff6dba43d508651
parent9566b67586fb1d96c36207fd975087d68296755c
drm/amd/display: Freesync does not engage on some displays

[Why]
Current render margin time is not sufficient to compute exit frame
time for most monitors.

[How]
Declared  render margin in FPS to compute a exit frame rate that is
4 FPS above the minimum FPS required to engage FreeSync.
 Also did code clean-up to remove redundancies.

Signed-off-by: Harmanprit Tatla <htatla@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/freesync/freesync.c