]> git.ipfire.org Git - thirdparty/kernel/linux.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:16:37 +0000 (14:16 -0400)
commit17f11bbbc76c8e83c8474ea708316b1e3631d927
treec9af9f665a545e7d6467560e446716ce7c3f1681
parente65e749941bb686bb7a6dce996c44707bb8474be
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>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c