]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/amd/display: Properly round nominal frequency for SPD
authorAric Cyr <aric.cyr@amd.com>
Wed, 11 Sep 2019 20:17:08 +0000 (16:17 -0400)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 6 Jan 2020 14:15:57 +0000 (08:15 -0600)
commit8eb035f1d8e1b64ba5d2e343d3e1bdb20b987009
treee5a032d93577508df64020e28ddd874c41f8eb28
parent31bb1c386f56abc823c498cab6991a33e42d9b3e
drm/amd/display: Properly round nominal frequency for SPD

BugLink: https://bugs.launchpad.net/bugs/1858428
[ Upstream commit c59802313e84bede954235b3a5dd0dd5325f49c5 ]

[Why]
Some displays rely on the SPD verticle frequency maximum value.
Must round the calculated refresh rate to the nearest integer.

[How]
Round the nominal calculated refresh rate to the nearest whole
integer.

Signed-off-by: Aric Cyr <aric.cyr@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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/gpu/drm/amd/display/modules/freesync/freesync.c