mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christian Loehle <christian.loehle@arm.com>
To: "Rafael J. Wysocki (Intel)" <rafael@kernel.org>,
	Sumit Gupta <sumitg@nvidia.com>
Cc: viresh.kumar@linaro.org, pierre.gondois@arm.com,
	ionela.voinescu@arm.com, zhenglifeng1@huawei.com,
	zhanjie9@hisilicon.com, lenb@kernel.org,
	mario.limonciello@amd.com, maciej.wieczor-retman@intel.com,
	pawel.chmielewski@intel.com, linux-pm@vger.kernel.org,
	linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev,
	linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org,
	treding@nvidia.com, jonathanh@nvidia.com, vsethi@nvidia.com,
	ksitaraman@nvidia.com, sanjayc@nvidia.com, mochs@nvidia.com,
	bbasu@nvidia.com
Subject: Re: [PATCH v8 0/3] ACPI / cpufreq: CPPC: Add ospm_nominal_perf support
Date: Fri, 6 Nov 2026 16:59:07 +0000	[thread overview]
Message-ID: <5089e131-c904-471e-a078-5df7cc664372@arm.com> (raw)
In-Reply-To: <CAJZ5v0hDm=FMftFfxnzthRQXWzUqcm8SkAaxzVWZcsyQtNLj6g@mail.gmail.com>

On 11/6/26 16:08, Rafael J. Wysocki (Intel) wrote:
> Hi Sumit,
> 
> On Fri, Oct 30, 2026 at 6:28 PM Sumit Gupta <sumitg@nvidia.com> wrote:
>>
>> 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.
>>
>> This series applies on top of v7 of:
>>   cpufreq: CPPC: Preserve OSPM-set registers across hotplug and unload
>>   https://lore.kernel.org/lkml/20261030092416.1993889-1-sumitg@nvidia.com/
>>
>> v7 -> v8:
>>  - Rebase on Christian's CPPC fixes series.
>>  - Patch 1:
>>    - use cpc_is_writable() from that series and drop cpc_reg_writable().
>>    - add the register to the list of controls the driver writes.
>>    - take cpc_desc_lock in cppc_ospm_nominal_perf_supported(), so the
>>      descriptor cannot be removed during the check.
>>  - Patch 2:
>>    - make ospm_nominal_freq read-write. A read returns the last value
>>      written, or "<unset>" before the first write. (Christian, Mario)
>>    - keep saving the values in the store handler, not at init(), so
>>      the driver writes the register only after the OS sets it. (Pierre)
>>  - Patch 3:
>>    - document in the ABI file how the OSPM nominal sets cpuinfo_max_freq
>>      and caps scaling_max_freq.
>>
>> 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                      |  44 +++++
>>  drivers/cpufreq/cppc_cpufreq.c                | 173 +++++++++++++++++-
>>  include/acpi/cppc_acpi.h                      |  10 +
>>  4 files changed, 248 insertions(+), 10 deletions(-)
>>
>> v7: https://lore.kernel.org/lkml/20260807214837.863209-1-sumitg@nvidia.com/
>> v6: https://lore.kernel.org/lkml/20260717215330.2215058-1-sumitg@nvidia.com/
>> v5: https://lore.kernel.org/lkml/20260615185934.2383514-1-sumitg@nvidia.com/
>> v4: https://lore.kernel.org/lkml/20260527194626.185286-1-sumitg@nvidia.com/
>> v3: https://lore.kernel.org/lkml/20260514194822.1841748-1-sumitg@nvidia.com/
>> v2: https://lore.kernel.org/lkml/20260430142430.755437-1-sumitg@nvidia.com/
>> v1: https://lore.kernel.org/lkml/20260427051823.280419-1-sumitg@nvidia.com/
>>
>> --
> 
> This would be good to go except that it doesn't apply for me on top of 7.4-rc1.
> 
> Can you please rebase it and resend, with Christian's tags included?
> 
> Thanks!

It's based on the hotplug/resume series, I guess Sumit could post them as a combined patchset

  reply	other threads:[~2026-11-06 16:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-30 17:27 Sumit Gupta
2026-10-30 17:27 ` [PATCH v8 1/3] ACPI: " Sumit Gupta
2026-11-04 17:39   ` Christian Loehle
2026-10-30 17:27 ` [PATCH v8 2/3] cpufreq: CPPC: Add ospm_nominal_freq attribute Sumit Gupta
2026-11-04 17:39   ` Christian Loehle
2026-10-30 17:27 ` [PATCH v8 3/3] cpufreq: CPPC: Reflect the OSPM nominal in boost and limits Sumit Gupta
2026-11-03 17:12   ` Christian Loehle
2026-11-04 15:08     ` Sumit Gupta
2026-11-04 15:16       ` Christian Loehle
2026-11-06 16:08 ` [PATCH v8 0/3] ACPI / cpufreq: CPPC: Add ospm_nominal_perf support Rafael J. Wysocki (Intel)
2026-11-06 16:59   ` Christian Loehle [this message]
2026-11-06 17:01     ` Rafael J. Wysocki (Intel)
2026-11-06 19:43       ` Sumit Gupta

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5089e131-c904-471e-a078-5df7cc664372@arm.com \
    --to=christian.loehle@arm.com \
    --cc=acpica-devel@lists.linux.dev \
    --cc=bbasu@nvidia.com \
    --cc=ionela.voinescu@arm.com \
    --cc=jonathanh@nvidia.com \
    --cc=ksitaraman@nvidia.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=maciej.wieczor-retman@intel.com \
    --cc=mario.limonciello@amd.com \
    --cc=mochs@nvidia.com \
    --cc=pawel.chmielewski@intel.com \
    --cc=pierre.gondois@arm.com \
    --cc=rafael@kernel.org \
    --cc=sanjayc@nvidia.com \
    --cc=sumitg@nvidia.com \
    --cc=treding@nvidia.com \
    --cc=viresh.kumar@linaro.org \
    --cc=vsethi@nvidia.com \
    --cc=zhanjie9@hisilicon.com \
    --cc=zhenglifeng1@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®