summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorTimur Kristóf <timur.kristof@gmail.com>2026-07-12 19:39:27 +0200
committerAlex Deucher <alexander.deucher@amd.com>2026-07-15 09:15:42 -0400
commit358dd0a9ce66d898fa934887385327547d599d88 (patch)
tree0d1be2819963ed9e0cdceab227d1c152f3830480 /tools/perf/scripts/python/stackcollapse.py
parentbd018d36171a695952c6d391471c279c9e05c8b2 (diff)
drm/amd/pm/si: Fix AC/DC switch notification
There were two mistakes in the previous implementation: The check for ATOM_PP_PLATFORM_CAP_HARDWAREDC 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 si_apply_state_adjust_rules() function selects different limits on AC and DC. Fixes: 2d071f6457af ("drm/amd/pm/si: Notify the SMC when switching to AC") Tested-by: Jeremy Klarenbeek <jeremy.klarenbeek99@gmail.com> Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions