]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Convert 10kHz clks from PPLib into kHz for Vega
authorHarry Wentland <harry.wentland@amd.com>
Thu, 12 Jul 2018 14:23:21 +0000 (10:23 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 12 Jul 2018 14:48:57 +0000 (09:48 -0500)
commitf46aa07c581810c32edbe5e95942b1bea2df994a
tree48956dcc7153839eb82958af33aeca8ffa9230d4
parentb02a827b7dbefdc30199f85a89e6367027b96077
drm/amd/display: Convert 10kHz clks from PPLib into kHz for Vega

The driver is expecting clock frequency in kHz, while SMU returns
the values in 10kHz, which causes the bandwidth validation to fail

4.18 has the faulty clock assignment in pp_to_dc_clock_levels_with_latency
only, which is only used by Vega. Make sure we multiply these values
by 10 here, as we do for other ASICs as powerplay assigned them
wrong. 4.19 has the proper fix in powerplay.

v2: Add Fixes tag
v3: Fixes -> Bugzilla, with simplified link

Bugzilla: https://bugs.freedesktop.org/107082

Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c