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)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Apr 2022 16:02:57 +0000 (12:02 -0400)
commit2f25d8ce09b7ba5d769c132ba3d4eb84a941d2cb
tree580ef6ddf5c17f5e3d1742a19a7dd6fb5186b855
parent28c25238898a242c58bfaff3f46a006585c2dd94
drm/amdgpu/smu10: fix SoC/fclk units in auto mode

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
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c