drm/amdgpu/smu10: fix SoC/fclk units in auto mode
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 1 Apr 2022 15:08:48 +0000 (11:08 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 18:59:24 +0000 (20:59 +0200)
commit155338be5d9078a569a723d8695b501ab369bdf9
tree211b7d29f355a51c2dbaf22dcd7c11b675a45712
parent0115e4f2f6bc984bc8fdba41ada55f586dc28502
drm/amdgpu/smu10: fix SoC/fclk units in auto mode

commit 2f25d8ce09b7ba5d769c132ba3d4eb84a941d2cb upstream.

SMU takes clock limits in Mhz units.  socclk and fclk were
using 10 khz units in some cases.  Switch to Mhz units.
Fixes higher than required SoC clocks.

Fixes: 97cf32996c46d9 ("drm/amd/pm: Removed fixed clock in auto mode DPM")
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c