Re: [PATCH 1/2] cpufreq: Allow global boost updates with inactive capable policies

From: Jiangtian Feng

Date: Mon Nov 30 2026 - 21:30:02 EST


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