diff options
| author | Yang Wang <kevinyang.wang@amd.com> | 2026-07-31 06:11:42 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-08-06 09:26:29 -0400 |
| commit | 93bd6de5518da2fe11f3895b70b03753032ad72d (patch) | |
| tree | 6d2682ff26dea2705acaa4a450c25894bdeb0957 /tools/perf/scripts/python | |
| parent | c0122bf2ccb1a677bd9e564580d3a5c81c4b0739 (diff) | |
drm/amd/pm: account for OD percentage in effective PPT limits
SMU 13.0.0, SMU 13.0.7, and SMU 14.0.2 represent limits above the
message limit as a base value plus an overdrive percentage. GetPptLimit
returns only the base, which causes two incorrect results:
- hwmon reports the message limit instead of the effective limit.
- Lowering the cap can leave the previous OD percentage active.
Export the active overdrive table from PMFW and combine its PPT
percentage with the message result. Use the exported percentage to clear
OD state before programming a limit within the message range.
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')
0 files changed, 0 insertions, 0 deletions
