]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Jan 2026 23:24:21 +0000 (18:24 -0500)
commit239d0ccf567c3b09aed58eb88cd3376af37aaf14
tree4ed6a7358858fb36817c3df56bfbc9137cba4b7b
parentc764b7af15289051718b4859a67f9a3bc69d3fb2
drm/amd/pm: fix smu v14 soft clock frequency setting issue

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
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v14_0.h
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c