]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit82f05a9283c26fcf70ccfaf0cd9c917194596081
tree6df2da947b5d954158cfc0bd6135e99dfaf9ec7e
parent64feb401e3fcfa230a1338507bb7407ed1eb30f4
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