From: Lukasz Luba <lukasz.luba@arm.com>
To: "Rafael J. Wysocki (Intel)" <rafael@kernel.org>
Cc: Viresh Kumar <viresh.kumar@linaro.org>,
Guo Chen <guo.chen@oss.qualcomm.com>,
Vincent Donnefort <vincent.donnefort@arm.com>,
Matthias Kaehlcke <mka@chromium.org>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org, xin.liu@oss.qualcomm.com,
aiqun.yu@oss.qualcomm.com, tengfei.fan@oss.qualcomm.com,
tingwei.zhang@oss.qualcomm.com
Subject: Re: [PATCH v2] PM: EM: Exclude boost frequencies from inefficiency ranking
Date: Tue, 10 Nov 2026 13:11:37 +0000 [thread overview]
Message-ID: <4f0c8581-a8fb-4bc4-82cc-d30f2f56d2ce@arm.com> (raw)
In-Reply-To: <CAJZ5v0i8a98rjFdQ2Jhu_Xk=qCGiNafMfhzNs26cEJNCYB6Xdg@mail.gmail.com>
Hi Rafael,
On 11/10/26 12:15, Rafael J. Wysocki (Intel) wrote:
> On Tue, Nov 10, 2026 at 10:58 AM Lukasz Luba <lukasz.luba@arm.com> wrote:
[snip]
>>
>> That's fine, please continue.
>
> I have a couple of questions though.
>
> First, why is the ondemand governor mentioned in the changelog? In
> the mainline, the ondemand governor cannot work with EAS, so it
> shouldn't matter for this issue, should it?
The ondemand is affected by the EM setup code and set 'inefficient'
flags for some OPPs. The EM is also present for cooling devices
and can work w/o EAS and schedutil, w/ just ondemand governor.
Because EM marks the OPPs kind of 'globally' as inefficient, then
they become CPUFREQ_INEFFICIENT_FREQ entries in the CPUfreq fwk.
In the EM code we have:
cpufreq_table_set_inefficient(policy, table[i].frequency);
Then ondemand check for CPUFREQ_RELATION_HE will skip them and
pass to __cpufreq_driver_target() with that flags as well.
>
> Second, why is the issue regarded as a defect in the code and not in
> the energy model? Arguably, boost frequencies should be more costly
> than the non-boost ones. At least the idea behind the boost is making
> higher-cost OPPs temporarily available. If they are sustainable,
> treating them as boost OPPs is rather pointless.
IMHO it was a bug in the commit mentioned in this patch fix tag.
It is affecting more than just EAS or EM, since the EM is working with
all generic code and all cpufreq governors.
>
> TBH, I'm too comfortable with looking at cpufreq frequency from within
> the EM code. If that needs to be done, something is amiss at the
> design level.
I think this edge case is special, as I described above.
I'm happy to hear your view on this EM influence to some global
setting in cpufreq. Maybe it was too far to establish this
'inefficiency' flags in there for many usage?
Regards,
Lukasz
next prev parent reply other threads:[~2026-11-10 13:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 11:21 Guo Chen
2026-11-05 13:23 ` Lukasz Luba
2026-11-06 15:15 ` Rafael J. Wysocki (Intel)
2026-11-09 6:47 ` Guo Chen
2026-11-09 9:40 ` Lukasz Luba
2026-11-10 9:49 ` Guo Chen
2026-11-10 9:58 ` Lukasz Luba
2026-11-10 12:15 ` Rafael J. Wysocki (Intel)
2026-11-10 13:11 ` Lukasz Luba [this message]
2026-11-10 13:43 ` Rafael J. Wysocki (Intel)
2026-11-10 14:05 ` Lukasz Luba
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=4f0c8581-a8fb-4bc4-82cc-d30f2f56d2ce@arm.com \
--to=lukasz.luba@arm.com \
--cc=aiqun.yu@oss.qualcomm.com \
--cc=guo.chen@oss.qualcomm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mka@chromium.org \
--cc=rafael@kernel.org \
--cc=stable@vger.kernel.org \
--cc=tengfei.fan@oss.qualcomm.com \
--cc=tingwei.zhang@oss.qualcomm.com \
--cc=vincent.donnefort@arm.com \
--cc=viresh.kumar@linaro.org \
--cc=xin.liu@oss.qualcomm.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®