]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/pm: fix smu v14 soft clock frequency setting issue
authorYang Wang <kevinyang.wang@amd.com>
Wed, 21 Jan 2026 03:06:29 +0000 (11:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Feb 2026 15:57:43 +0000 (16:57 +0100)
commit5f841c308c4531edd32f9780932ddfd46963c40b
treea3b04bd73508a1c9aa0350a1739d1d9a573141a8
parent191e22e5d742e5d304db83e017b5becf32fb45e2
drm/amd/pm: fix smu v14 soft clock frequency setting issue

commit 239d0ccf567c3b09aed58eb88cd3376af37aaf14 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 53868dd8774344051999c880115740da92f97feb)
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0.h
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c