From: Jiangtian Feng <jiangtianfeng@linux.alibaba.com>
To: rafael@kernel.org, viresh.kumar@linaro.org
Cc: 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,
zhangpengjie2@huawei.com, zhenglifeng1@huawei.com,
zhanjie9@hisilicon.com
Subject: [PATCH v5 0/2] cpufreq: Keep global boost enabled after partial enable
Date: Mon, 30 Nov 2026 19:13:46 +0800 [thread overview]
Message-ID: <20261130111348.363810-1-jiangtianfeng@linux.alibaba.com> (raw)
This series treats global boost as a permission while preserving the
existing error when no registered policy supports boost.
The first patch allows the global setting to be recorded when a capable
policy is inactive or offline. Only active, boost-capable policies are
updated through policy_set_boost(); a complete lack of boost support still
returns -EOPNOTSUPP, and real driver failures are unchanged.
The second patch is the existing partial-enable change. If enabling at
least one policy succeeds before a later failure, global boost remains
enabled so that the valid mixed per-policy state remains locally
repairable. Disable and no-success failure paths retain their previous
behavior.
Base: Linux v7.4-rc5
fe6ff8d5d675c01793b9f051d16055dd4aa75244
Changes in v5:
- Add the inactive-capable preparatory change, with links to the original
no-policy discussion and 77cf053b041f.
- Rebase to Linux v7.4-rc5.
- Keep the partial-enable code logic from v4 unchanged.
- Link Pengjie's review below.
Previous version:
https://lore.kernel.org/all/20261127090513.910723-1-jiangtianfeng@linux.alibaba.com/
Pengjie's review:
https://lore.kernel.org/all/744b868b-55af-4a12-86a8-f4fd5d132e6a@huawei.com/
Validation:
- ARM64 defconfig W=1 build of drivers/cpufreq/cpufreq.o.
- Complete ARM64 Image build; size 53,234,176 bytes, SHA-256
ce5519a4a9e498144908fc5d69f18376de23f8c80bc6ea2e2a424d35601e747a.
- Static state-matrix and policy-list locking/lifetime review covering
no-policy, no-support, inactive-capable, active success/failure,
partial-enable and subsequent online behavior.
- Independent review found no remaining High/Medium/Low code issue in the
two-patch candidate.
NOT_RUN:
- CPU hotplug, suspend/resume, driver unregister/global-write concurrency,
lockdep and KCSAN testing.
- CPPC, ACPI, AMD and ARM hardware frequency/QoS testing.
- Runtime fault injection for policy_set_boost() failures.
Qoder, an AI coding assistant, helped analyze the review history, design
and draft the preparatory change, and review the state matrix and failure
paths. The submitter reviewed the resulting changes and is responsible for
the final validation and submission.
next reply other threads:[~2026-11-30 11:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 11:13 Jiangtian Feng [this message]
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-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=20261130111348.363810-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®