Skip to content

Add CPPC HighestFreq support

Mario Limonciello (AMD) linux-acpi linux-pm lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Revert "ACPI: CPPC: Adjust debug messages in amd_set_max_freq_ratio() to warn"arch/x86/kernel/acpi/cppc.c+3 -30 replies
2/6ACPI: Add CPPC v4 definitionsdrivers/acpi/cppc_acpi.c include/acpi/cppc_acpi.h+21 -81 reply
3/6ACPI: CPPC: Add support for reading HighestFreqdrivers/acpi/cppc_acpi.c include/acpi/cppc_acpi.h+27 -110 replies
4/6ACPI: CPPC: Refactor boost ratio handlingarch/x86/kernel/acpi/cppc.c drivers/cpufreq/acpi-cpufreq.c drivers/cpufreq/amd-pstate.c +1 more+86 -620 replies
5/6cpufreq/acpi-cpufreq: Use amd_get_boost_ratio()drivers/cpufreq/acpi-cpufreq.c+9 -110 replies
6/6cpufreq/amd-pstate: Get highest freq from CPPC if availabledrivers/cpufreq/amd-pstate.c+5 -10 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by.

PatchKim Phillips
1/6T-b
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] Add CPPC HighestFreq support

On some systems, the boost ratio cannot be accurately calculated using linear interpolation of CPPC performance values because the performance-to-frequency mapping is not linear across all cores.

This series introduces support for the CPPC HighestFreq register. This register is under a proposal with ASWG at the moment and trending for inclusion in ACPI 6.7.

This optionally provides the actual highest frequency eliminating the need for interpolation. When available, this frequency value is used for more accurate CPU capacity calculations and boost ratio determination.

This series brings the existing CPPC definitions up to ACPI 6.6 and then adds support for the ACPI 6.7 proposal.

Mario Limonciello (6):
Revert "ACPI: CPPC: Adjust debug messages in amd_set_max_freq_ratio()
to warn"
ACPI: Add CPPC v4 definitions
ACPI: CPPC: Add support for reading HighestFreq
ACPI: CPPC: Refactor boost ratio handling cpufreq/acpi-cpufreq: Use amd_get_boost_ratio() cpufreq/amd-pstate: Get highest freq from CPPC if available

 arch/x86/kernel/acpi/cppc.c    | 122 ++++++++++++++++++---------------
 drivers/acpi/cppc_acpi.c       |  39 ++++++++---
 drivers/cpufreq/acpi-cpufreq.c |  17 +++--
 drivers/cpufreq/amd-pstate.c   |  18 +++--
 include/acpi/cppc_acpi.h       |  27 ++++++--
 5 files changed, 139 insertions(+), 84 deletions(-)
Signature · 1 line
2.43.0