Re: [PATCH 1/6] cpufreq: acpi: Don't enable boost on policy exit
From: Viresh Kumar
Date: Thu Apr 24 2025 - 11:52:57 EST
On 24-04-25, 13:26, Rafael J. Wysocki wrote:
> At the HW level, this is certainly possible.
>
> Say two (or more) cores are driven by the same VR. Boost typically
> (always?) requires a separate OPP with a higher voltage and this
> applies to all cores sharing the VR, so if one of them says it doesn't
> want that (which is what the bit in the boost-disable MSR effectively
> means), they all won't get it.
Right.
> They arguably should belong to the same cpufreq policy, but this
> information is often missing from the ACPI tables, sometimes on
> purpose (for instance, the firmware may want to be in charge of the
> frequency coordination between the cores).
Ahh, I see..
> > Also, IIUC this and the boost-enabling at init() only happens for one
> > CPU in a policy, as init() and exit() are only called for the first
> > and last CPU of a policy. So if a policy has multiple CPUs, we aren't
> > touching boost states of other CPUs at init/exit.
>
> But there may be a policy per CPU.
Right, and I thought they shouldn't interfere with boost of other
CPUs, but above example tells a different story.
> So I'd rather not make this change.
>
> Evidently, someone made the effort to put in a comment explaining the
> purpose of the code in question, so it looks like they had a reason
> for adding it.
Fair enough.
--
viresh