OSDN Git Service

drm/amd/display: Fixed bandwidth calculation error when converting fractions
authorLogatharshan Thothiralingam <logatharshan.thothiralingam@amd.com>
Thu, 9 Mar 2017 16:37:26 +0000 (11:37 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:19:49 +0000 (17:19 -0400)
commit1de8c33bbde4115561a5b2e684be7af66b3f085d
tree58bef73b280bea1085e8d1c79d65652617e187c0
parenta783e7b5182ba5df2916c7abda60b8e781bdb3aa
drm/amd/display: Fixed bandwidth calculation error when converting fractions

[Problem]
VSR greyed out

[Root cause]
When converting fractions, we were using the integer function, which let to
a large display clock and the view was not supported

[Solution]
Change the integer to fraction functions

Signed-off-by: Logatharshan Thothiralingam <logatharshan.thothiralingam@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c