linux/drivers/gpu/drm/amd/pm
Yang Wang e987eabc02 drm/amd/pm: fix smu14 power limit range calculation
SMU14 derives the default PPT limit from SocketPowerLimitAc/Dc, but
MsgLimits.Power may expose a different firmware limit for the same PPT0
throttler. Using those values independently as fixed min/max bases can
report an incorrect configurable power range.

Keep the socket power limit as the default value and as the fallback for
current-limit queries. Calculate the reported range from both firmware
values instead, using the lower value as the minimum base and the higher
value as the maximum base before applying OD percentages.

Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit c936b8126b)
Cc: stable@vger.kernel.org
2026-07-08 16:46:13 -04:00
..
inc drm/amd/pm: add smu ras driver framework 2025-11-04 11:53:58 -05:00
legacy-dpm drm/amd/pm/si: Notify the SMC when switching to AC 2026-05-27 10:48:23 -04:00
powerplay drm/amd/pm: use kcalloc in phm table copy helpers 2026-06-03 13:53:03 -04:00
swsmu drm/amd/pm: fix smu14 power limit range calculation 2026-07-08 16:46:13 -04:00
amdgpu_dpm_internal.c drm/amd/pm: Remove unneeded legacy DPM related code. 2025-09-15 16:52:50 -04:00
amdgpu_dpm.c drm/amd/pm: Rename enable_bapm() to notify_ac_dc() 2026-05-27 10:48:11 -04:00
amdgpu_pm.c drm/amd/pm: fix amdgpu_pm_info power display units 2026-07-01 12:58:16 -04:00
Makefile drm/amd: Enable SMU 15_0_0 support 2026-01-08 11:41:42 -05:00