diff options
| author | Yang Wang <kevinyang.wang@amd.com> | 2026-07-30 11:26:37 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-08-06 09:26:34 -0400 |
| commit | 534e172b888d1f6aab271f054dae6dd8a2f18c74 (patch) | |
| tree | 4665710ee8b84e0879c8cb15f571f80561da902b /tools/perf/scripts/python/flamegraph.py | |
| parent | 93bd6de5518da2fe11f3895b70b03753032ad72d (diff) | |
drm/amd/pm: refactor user PPT policy save and restore
The existing user policy representation has three ambiguities:
- A numeric value cannot distinguish explicit zero from an unset policy.
- One value per controller cannot preserve independent AC and DC requests.
- Suspend-only restore misses runtime resume, GPU reset, and table reload.
Refactor policy storage and restore as follows:
- Store values and validity masks by power source and PPT controller.
- Save writes against the active source.
- Restore the active source after default SMU setup.
- Reapply the target policy after live AC/DC transitions.
- Use the target source default when no explicit request exists.
The late-init path now covers system resume, runtime resume, GPU reset,
and custom PPTable reload. Common code owns persistent policy; PMFW
continues to own effective current limits.
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>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
