[PATCH 2/2] drm/amd/display: Convert 10kHz clks from PPLib into kHz
Alex Deucher
alexdeucher at gmail.com
Tue Jul 17 16:11:25 UTC 2018
On Tue, Jul 17, 2018 at 8:36 AM, Rex Zhu <rex.zhu at amd.com> wrote:
> Except special naming as *_in_khz, The default clock unit in powerplay
> is in 10KHz. so need to * 10 as expecting clock frequency in display
> is in kHz.
>
> Signed-off-by: Rex Zhu <Rex.Zhu at amd.com>
Series is:
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
> index c69ae78..fbe878a 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
> @@ -469,8 +469,8 @@ bool dm_pp_get_static_clocks(
> return false;
>
> static_clk_info->max_clocks_state = pp_to_dc_powerlevel_state(pp_clk_info.max_clocks_state);
> - static_clk_info->max_mclk_khz = pp_clk_info.max_memory_clock;
> - static_clk_info->max_sclk_khz = pp_clk_info.max_engine_clock;
> + static_clk_info->max_mclk_khz = pp_clk_info.max_memory_clock * 10;
> + static_clk_info->max_sclk_khz = pp_clk_info.max_engine_clock * 10;
>
> return true;
> }
> --
> 1.9.1
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
More information about the amd-gfx
mailing list