drm/amd/pm: fix smu v13 soft clock frequency setting issue

commit c764b7af15 upstream.

v1:
resolve the issue where some freq frequencies cannot be set correctly
due to insufficient floating-point precision.

v2:
patch this convert on 'max' value only.

Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 6194f60c70)
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Yang Wang 2026-01-21 11:04:06 +08:00 • committed by Greg Kroah-Hartman
commit 191e22e5d7
2 changed files with 2 additions and 0 deletions