]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/pm: Skip redundant UCLK restore in smu_v13_0_6
authorAsad Kamal <asad.kamal@amd.com>
Wed, 18 Mar 2026 05:48:30 +0000 (13:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Mar 2026 18:48:45 +0000 (14:48 -0400)
commitcdbc3b62cfc2785da32b82260f852370cc1f2a6a
tree1b027c0b0629a9f4b58e8b93f3a6b66af89d496e
parent37c2caa167b0b8aca4f74c32404c5288b876a2a3
drm/amd/pm: Skip redundant UCLK restore in smu_v13_0_6

Only reapply UCLK soft limits during PP_OD_RESTORE_DEFAULT when the
current max differs from the DPM table max. This avoids redundant
SMC updates and prevents -EINVAL on restore when no change is needed.

Fixes: b7a900344546 ("drm/amd/pm: Allow setting max UCLK on SMU v13.0.6")
Signed-off-by: Asad Kamal <asad.kamal@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 17f11bbbc76c8e83c8474ea708316b1e3631d927)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c