linux/drivers/gpu/drm/amd/pm/powerplay
Timur Kristóf ec917f19ff drm/amd/pm/smu7: Fix AC/DC switch notification
There were two mistakes in the previous implementation:

The check for AutomaticDCTransition should be inverted.
We recently learned that the kernel should send
PPSMC_MSG_RunningOnAC when the flag is set, and not the
other way around.

The clocks also need to be recomputed, because the code in
the smu7_apply_state_adjust_rules() function selects
different limits on AC and DC.

Fixes: 96da0d8661 ("drm/amd/pm/smu7: Notify SMU7 of DC->AC switch")
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 516f8fc30a)
Cc: stable@vger.kernel.org
2026-07-17 17:40:43 -04:00
..
hwmgr drm/amd/pm/smu7: Fix AC/DC switch notification 2026-07-17 17:40:43 -04:00
inc drm/amd/pm/smu7: Notify SMU7 of DC->AC switch 2026-05-27 10:48:15 -04:00
smumgr drm/amdgpu/pm: align Hawaii mclk workaround with radeon 2026-05-05 09:56:41 -04:00
amd_powerplay.c drm/amd/pm: bound pp_dpm_set_pp_table() memcpy 2026-06-03 13:52:44 -04:00
Makefile drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00