Re: [PATCH] cpufreq: acpi: Don't enable boost on policy exit

From: Rafael J. Wysocki
Date: Thu Apr 17 2025 - 08:36:47 EST


On Thu, Apr 17, 2025 at 7:02 AM Viresh Kumar <viresh.kumar@xxxxxxxxxx> wrote:
>
> On 16-04-25, 19:54, Nicholas Chin wrote:
> > Unfortunately the issue I reported still seems to be present after
> > applying this patch. Upon resuming from suspend, the system is still
> > entering boost states descpite the boost flag being set to 0.
>
> Okay, so this is what we know so far:
>
> - Force synchronizing (disabling here) boost state at resume was
> making this work earlier.
>
> - Setting the boost flag to "enabled" state during resume works as
> well, as that makes the cpufreq core disable the boost frequencies
> again.
>
> - This patch (though doing the correct thing) doesn't work. This is
> one of the known places where boost was getting enabled before going
> to suspend though.
>
> - This means that some other part of kernel (or hardware ?) is
> enabling the boost frequencies at suspend (or early resume), which
> the kernel was disabling earlier and not anymore.
>
> Rafael, any suggestions ?

This a resume from S3, so the platform firmware may enable the boost
in its resume path.