mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mario Limonciello <superm1@kernel.org>
To: "Rafael J. Wysocki (Intel)" <rafael@kernel.org>
Cc: Christian Loehle <christian.loehle@arm.com>,
	linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-pm@vger.kernel.org,
	K Prateek Nayak <kprateek.nayak@amd.com>,
	x86@kernel.org, Mario Limonciello <mario.limonciello@amd.com>
Subject: Re: [PATCH v3 1/3] ACPI: CPPC: Refactor boost ratio handling
Date: Wed, 30 Sep 2026 14:45:44 -0500	[thread overview]
Message-ID: <7104d7ca-9dbc-42ee-bc3d-f1bb95cdb830@kernel.org> (raw)
In-Reply-To: <CAJZ5v0ig_sfHd6iG0n4ZA=957+YuvYE3y08xbj93n6ktaV9PVg@mail.gmail.com>

On 9/30/26 14:43, Rafael J. Wysocki (Intel) wrote:
> On Wed, Sep 30, 2026 at 9:41 PM Mario Limonciello <superm1@kernel.org> wrote:
>>
>> On 9/30/26 14:37, Rafael J. Wysocki (Intel) wrote:
>>> On Fri, Sep 25, 2026 at 4:54 PM Mario Limonciello <superm1@kernel.org> wrote:
>>>>
>>>> On 9/25/26 04:40, Christian Loehle wrote:
>>>>> On 9/24/26 17:00, Mario Limonciello (AMD) wrote:
>>>>>> From: Mario Limonciello <mario.limonciello@amd.com>
>>>>>>
>>>>>> Rename amd_get_boost_ratio_numerator() to amd_get_effective_highest_perf()
>>>>>> to better reflect that it returns the effective highest performance value
>>>>>> for a CPU, accounting for preferred cores and heterogeneous topologies.
>>>>>>
>>>>>> Add a new helper amd_get_boost_ratio() for doing both for boost
>>>>>> ratio calculations and update callers to use it.
>>>>>>
>>>>>> This refactoring is needed because on some AMD systems (Zen6+),
>>>>>> the boost ratio should be calculated from frequency values rather than
>>>>>> performance values.
>>>>>
>>>>> I think I see why you chose to implement it this way (the x86 APERF / MPERF)
>>>>> issue, but I'd still prefer it to be spelled out here why this is necessary.
>>>>>
>>>>
>>>> Do you mean in the commit message, like spin the patch?  Or just in this
>>>> thread?
>>>>
>>>> Not all cores will operate at the same frequency and fixed scaling
>>>> values from CPPC perf don't apply anymore.
>>>
>>> Well, CPPC is per-CPU at least in principle, so the above doesn't
>>> explain much TBH.
>>>
>>> It kind of follows from the cover letter that there's something
>>> missing in CPPC, so this is a stop-gap thing, but it would be good to
>>> put the information from the cover letter to the changelog of this
>>> patch.
>>
>> OK; I'll respin the series with the detail in this commit message.
> 
> Thanks!
> 
> With that, please feel free to add my ACKs to the first two patches in
> this series and route it as a whole through the amd-pstate tree.

Will do; thanks.

> 
>> And yeah; this is totally stop gap to allow other development that needs
>> this.
>>
>> Once next ACPI spec is out I'll tear out the stop gap and put in the
>> right support.
> 
> OK


  reply	other threads:[~2026-09-30 19:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-24 16:00 [PATCH v3 0/3] Zen6 client CPPC Mario Limonciello (AMD)
2026-09-24 16:00 ` [PATCH v3 1/3] ACPI: CPPC: Refactor boost ratio handling Mario Limonciello (AMD)
2026-09-25  9:40   ` Christian Loehle
2026-09-25 14:54     ` Mario Limonciello
2026-09-30 19:37       ` Rafael J. Wysocki (Intel)
2026-09-30 19:41         ` Mario Limonciello
2026-09-30 19:43           ` Rafael J. Wysocki (Intel)
2026-09-30 19:45             ` Mario Limonciello [this message]
2026-09-24 16:00 ` [PATCH v3 2/3] cpufreq/acpi-cpufreq: Use amd_get_boost_ratio() Mario Limonciello (AMD)
2026-09-24 16:00 ` [PATCH v3 3/3] cpufreq/amd-pstate: Get Highest Freq for a CPU Mario Limonciello (AMD)

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=7104d7ca-9dbc-42ee-bc3d-f1bb95cdb830@kernel.org \
    --to=superm1@kernel.org \
    --cc=christian.loehle@arm.com \
    --cc=kprateek.nayak@amd.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=mario.limonciello@amd.com \
    --cc=rafael@kernel.org \
    --cc=x86@kernel.org \
    /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®