drm/amd/display: WBSCL filter init calculation fixes
authorKen Chalmers <ken.chalmers@amd.com>
Wed, 17 Jan 2018 19:17:40 +0000 (14:17 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:29 +0000 (14:19 -0500)
commita6e59fa8061b222283c27cafb134fb8f862f0d7c
tree6df2da947b5d954158cfc0bd6135e99dfaf9ec7e
parentf774b339826439aaccad026e376dcec79b7cbcd1
drm/amd/display: WBSCL filter init calculation fixes

* Previous code did some calculations with a mix of normal integers and
  integers aligned as U2.24 fixed-point values.
* There were bugs in the conversion of the final result into the
  S4.19 values required for the registers.

Signed-off-by: Ken Chalmers <ken.chalmers@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c
drivers/gpu/drm/amd/display/include/fixed31_32.h