diff options
| author | Mario Limonciello (AMD) <superm1@kernel.org> | 2026-08-18 23:11:51 -0500 |
|---|---|---|
| committer | Mario Limonciello <superm1@kernel.org> | 2026-09-10 14:20:41 -0500 |
| commit | db40a7877cf14fc34fa27ee479eb6561d10648cf (patch) | |
| tree | 69384ba2343e22dbbdb5c8129044ec8ce30b57f6 /tools/perf/scripts/python/stackcollapse.py | |
| parent | a23fca4ae137ec8e7620cc4f00b468b89cf5a7bd (diff) | |
cpufreq/amd-pstate: Add per SoC and per core type EPP tuning values
On newer SoCs the behavior of the platform has changed, and using
the same EPP values for everything will yield worse results than expected.
Add a x86_cpu_id match table that allows setting policies on a
per-SoC/per-core type basis. If a SoC is missing, fallback to legacy
values that are used.
Changes also:
- Change epp_values array and amd_pstate_cpu_epp_values() from unsigned int to u8
- Add static_assert to ensure epp_values has rows for all CPU types
- Fix show_energy_performance_preference() loop to exclude uninitialized
EPP_INDEX_CUSTOM and EPP_INDEX_DYNAMIC slots
- Add debug print statements
- Remove amd_pstate_get_epp_from_platform_profile and inline the logic
- Fix cleanup path in amd_pstate_set_dynamic_epp
- Change show_energy_performance_preference to use for loop with preference tracking
- Add debug prints in amd_pstate_init_epp_values
Behavioral change: show_energy_performance_preference() now returns a numeric
EPP value via sysfs when the cached EPP does not match any named preference,
instead of returning -EINVAL as before. This provides visibility into custom
EPP values set by hardware or BIOS.
No new platforms are added in this commit.
Reviewed-by: K Prateek Nayak <kprateek.nayak@amd.com>
Tested-by: K Prateek Nayak <kprateek.nayak@amd.com>
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
