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 14:20:45 +0000 (10:20 -0400)
commit9bbcf182060842a652c30f63692c6b6a8eb54386
tree7b6bb4e35c5460a4e97b185356b8f08f04aa08be
parent60f6fe665e854f94486aac6251950d62b1356a48
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>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c