mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jiangtian Feng <jiangtianfeng@linux.alibaba.com>
To: zhangpengjie2@huawei.com
Cc: rafael@kernel.org, viresh.kumar@linaro.org,
	linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
	zhongqiu.han@oss.qualcomm.com, christian.loehle@arm.com,
	ananthu.cv@oss.qualcomm.com, pierre.gondois@arm.com,
	zhenglifeng1@huawei.com, zhanjie9@hisilicon.com
Subject: Re: [PATCH 1/2] cpufreq: Allow global boost updates with inactive capable policies
Date: Tue,  1 Dec 2026 10:29:43 +0800	[thread overview]
Message-ID: <20261201022943.1130812-1-jiangtianfeng@linux.alibaba.com> (raw)
In-Reply-To: <467b9ef5-1fc3-4771-9895-363e815670c7@huawei.com>

Hi Pengjie,

On Mon, 30 Nov 2026, Pengjie Zhang wrote:
> With 5785772fe9e6 ("cpufreq: CPPC: Enable boost by default") [1] in
> linux-pm/linux-next, the global boost knob can start at 1 on a CPPC
> system where no registered policy supports boost. With the v5 core
> changes applied on top, writing 0 would still return -EINVAL and
> leave the knob at 1.

Thank you for pointing out the default-enabled case. I agree that this
makes the v5 no-support error problematic: userspace cannot record its
intent to disable boost before a capable policy becomes available.

> I understand that 77cf053b041f deliberately made this an error.
> Since the global knob controls permission to boost, could we let
> userspace write either 0 or 1 and read that value back even when
> no policy supports boost? A successful write of 0 must leave boost
> disabled on every active policy that supports it.

Yes. I will simplify patch 1 in v6 to initialize ret to 0 and restore the
active-policy loop, removing the any_boost_supported tracking. This
intentionally changes the no-policy result introduced by 77cf053b041f.

Active, boost-capable policies are still updated through
policy_set_boost(), and real callback failures still return an error. In
particular, a write of 0 does not report success if updating an active
capable policy fails. The second patch remains unchanged and still
restores the old global state on a failed disable.

I have also carried your Reviewed-by on patch 2. Thank you for the review.

Best regards,
Jiangtian

  reply	other threads:[~2026-12-01  2:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 11:13 [PATCH v5 0/2] cpufreq: Keep global boost enabled after partial enable Jiangtian Feng
2026-11-30 11:13 ` [PATCH 1/2] cpufreq: Allow global boost updates with inactive capable policies Jiangtian Feng
2026-11-30 13:49   ` Pengjie Zhang
2026-12-01  2:29     ` Jiangtian Feng [this message]
2026-11-30 11:13 ` [PATCH 2/2] cpufreq: Keep global boost enabled after partial enable Jiangtian Feng
2026-11-30 13:51   ` Pengjie Zhang

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=20261201022943.1130812-1-jiangtianfeng@linux.alibaba.com \
    --to=jiangtianfeng@linux.alibaba.com \
    --cc=ananthu.cv@oss.qualcomm.com \
    --cc=christian.loehle@arm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=pierre.gondois@arm.com \
    --cc=rafael@kernel.org \
    --cc=viresh.kumar@linaro.org \
    --cc=zhangpengjie2@huawei.com \
    --cc=zhanjie9@hisilicon.com \
    --cc=zhenglifeng1@huawei.com \
    --cc=zhongqiu.han@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®