Skip to content

ACPI / cpufreq: CPPC: Add ospm_nominal_perf support

Sumit Gupta acpica-devel linux-acpi linux-pm linux-tegra lkml 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest3 patches 0 repliesNew
  2. v83 patches 9 repliesSuperseded
  3. v73 patches 5 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v62 patches7 repliesSuperseded
v51 patch2 repliesSuperseded

Changes in v10 from the cover letter

- Drop v9 patches 1-5, as they are queued for 7.5.
- Patch 1: when the register shares an access unit with Performance Limited, keep it reserved in the SystemMemory overlap validation, as it is write-only. (Sashiko)

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ACPI: CPPC: Add ospm_nominal_perf supportdrivers/acpi/cppc_acpi.c include/acpi/cppc_acpi.h+66 -00 replies
2/3cpufreq: CPPC: Add ospm_nominal_freq attributeDocumentation/ABI/testing/sysfs-devices-system-cpu drivers/cpufreq/cppc_cpufreq.c+121 -70 replies
3/3cpufreq: CPPC: Reflect the OSPM nominal in boost and limitsDocumentation/ABI/testing/sysfs-devices-system-cpu drivers/cpufreq/cppc_cpufreq.c+73 -30 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchChristian Loehle
1/3R-b
2/3R-b
3/3R-b

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

Read the v10 thread

Cover letter [PATCH v10 0/3] ACPI / cpufreq: CPPC: Add ospm_nominal_perf support

This series adds support for the OSPM Nominal Performance register (ACPI 6.6, Section 8.4.6.1.2.6) to the CPPC ACPI and cpufreq drivers.

Unlike the read-only Nominal Performance register, OSPM Nominal Performance is writable and lets OSPM request a nominal level below the platform-reported nominal. The platform treats performance above this level as boost and below as throttle.

- Patch 1: adds ACPI helpers to write the register and to check that the platform supports it.

- Patch 2: adds the per-policy ospm_nominal_freq attribute in kHz. The value is kept across CPU hotplug and suspend/resume. The register cannot be read back, so a read returns the last value written.

- Patch 3: uses the OSPM nominal as the maximum frequency while boost is off. Lowering the nominal creates a boost range on a platform that has none, and boost can then be enabled.

These are patches 6-8 of v9. Patches 1-5 of v9 are queued in for 7.5, and this series applies on top of them.

v9 -> v10:
- Drop v9 patches 1-5, as they are queued for 7.5.
- Patch 1: when the register shares an access unit with Performance Limited, keep it reserved in the SystemMemory overlap validation, as it is write-only. (Sashiko)

Sumit Gupta (3):
ACPI: CPPC: Add ospm_nominal_perf support
cpufreq: CPPC: Add ospm_nominal_freq attribute
cpufreq: CPPC: Reflect the OSPM nominal in boost and limits

 .../ABI/testing/sysfs-devices-system-cpu      |  31 ++++
 drivers/acpi/cppc_acpi.c                      |  56 ++++++
 drivers/cpufreq/cppc_cpufreq.c                | 173 +++++++++++++++++-
 include/acpi/cppc_acpi.h                      |  10 +
 4 files changed, 260 insertions(+), 10 deletions(-)

v8: https://lore.kernel.org/lkml/[email protected]/
v9: https://lore.kernel.org/lkml/[email protected]/

base-commit: 22f2a52b46d52df66cf0a5efe4d22296810cbcee

Signature · 1 line
2.34.1