From: Christian Loehle <christian.loehle@arm.com>
To: Vincent Guittot <vincent.guittot@linaro.org>,
"Kumar, Kaushlendra" <kaushlendra.kumar@intel.com>
Cc: Lukasz Luba <lukasz.luba@arm.com>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
"rafael@kernel.org" <rafael@kernel.org>,
"vschneid@redhat.com" <vschneid@redhat.com>,
"mgorman@suse.de" <mgorman@suse.de>,
"dietmar.eggemann@arm.com" <dietmar.eggemann@arm.com>,
"juri.lelli@redhat.com" <juri.lelli@redhat.com>,
"peterz@infradead.org" <peterz@infradead.org>,
"viresh.kumar@linaro.org" <viresh.kumar@linaro.org>,
"mingo@redhat.com" <mingo@redhat.com>,
"bsegall@google.com" <bsegall@google.com>
Subject: Re: [PATCH] sched/cpufreq: Fix capacity calc in shared policy update
Date: Tue, 25 Nov 2025 09:46:07 +0000 [thread overview]
Message-ID: <5ce509d3-0e11-444f-a22e-6c01280dd9af@arm.com> (raw)
In-Reply-To: <CAKfTPtChUavg0TYK_BiA9NnR-9_A1nz49kMASf6g8vCwhpJzcg@mail.gmail.com>
On 11/25/25 09:38, Vincent Guittot wrote:
> On Tue, 25 Nov 2025 at 10:23, Kumar, Kaushlendra
> <kaushlendra.kumar@intel.com> wrote:
>>
>> Hi Lukasz,
>>
>> On 11/25/25 XX:XX, Lukasz Luba wrote:
>>> Hi Kaushlendra,
>>>
>>> On 11/25/25 03:24, Kaushlendra Kumar wrote:
>>>> In sugov_next_freq_shared(), the CPU capacity is retrieved only for
>>>> the CPU that triggered the update (sg_cpu->cpu) and then incorrectly
>>>> applied to all CPUs in the shared frequency domain during the loop.On
>>>> heterogeneous systems with CPUs of different capacities sharing a
>>>> frequency domain, this causes incorrect frequency selection.
>>>
>>> How is this possible?
>>> Is it old or new Intel SoC (a chip name would be also welcome)?
>>
>> This is with respect to intel platforms which has E-cores and P-cores.
>
> Do you mean that they share the same frequency domains ?
Just to get everybody on the same page:
Intel has what's called "favored cores", P-cores that allow for slightly
higher frequencies than the other (same uArch) P-cores.
Rafael's EAS series decided that it wouldn't be worth the effort make EAS
always iterate over an extra cluster (overhead on every wakeup hot-path)
for CPUs where in the bigger picture the difference is negligible.
https://lore.kernel.org/lkml/1592aa65-9dfb-47d6-9bcf-17afd3184a0a@arm.com/
(capacities are 623, 1009 and 1024 here, 1009 and 1024 are lumped into one
cluster.)
I think this isn't unreasonable, as long as this technicality lives inside
of intel_pstate setup code and doesn't escape, like proposed here.
Obviously EAS heavily relies on "1 cluster => 1 capacity" assumption as
mentioned before, even just for max-spare-cap in feec().
Breaking this assumption would require a huge rework, which AFAIU specifically
wasn't was Rafael intended, but I'm sure he'll chime in himself.
So if you really have issues with the different capacities within a cluster
trick that Rafael went with, please just reconsider that instead of trying
to patch things up outside of intel_pstate.
next prev parent reply other threads:[~2025-11-25 9:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-25 3:24 [PATCH] sched/cpufreq: Fix capacity calc in shared policy update Kaushlendra Kumar
2025-11-25 8:37 ` Christian Loehle
2025-11-25 9:28 ` Kumar, Kaushlendra
2025-11-25 9:04 ` Lukasz Luba
2025-11-25 9:23 ` Kumar, Kaushlendra
2025-11-25 9:38 ` Vincent Guittot
2025-11-25 9:46 ` Christian Loehle [this message]
2025-11-25 9:57 ` Vincent Guittot
2025-11-25 12:41 ` Rafael J. Wysocki
2025-11-25 14:05 ` Kumar, Kaushlendra
2025-11-25 12:09 ` Rafael J. Wysocki
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=5ce509d3-0e11-444f-a22e-6c01280dd9af@arm.com \
--to=christian.loehle@arm.com \
--cc=bsegall@google.com \
--cc=dietmar.eggemann@arm.com \
--cc=juri.lelli@redhat.com \
--cc=kaushlendra.kumar@intel.com \
--cc=linux-pm@vger.kernel.org \
--cc=lukasz.luba@arm.com \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=rafael@kernel.org \
--cc=vincent.guittot@linaro.org \
--cc=viresh.kumar@linaro.org \
--cc=vschneid@redhat.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