Re: [PATCH V3 0/4] cpufreq: cppc: Add support for frequency invariance
From: Ionela Voinescu
Date: Fri Jun 25 2021 - 10:37:45 EST
Hey,
On Friday 25 Jun 2021 at 09:31:58 (-0400), Qian Cai wrote:
>
>
> On 6/25/2021 6:21 AM, Ionela Voinescu wrote:
> >> scaling_driver: acpi_cppc
> > ^^^^^^^^^
> > I suppose you mean "cppc-cpufreq"?
> >
> > "acpi_cppc" is not a scaling driver option.
>
> Ionela, yes. Sorry about that.
>
> > So your CPUs run at frequencies between 200MHz and 280MHz?
>
> 2000 to 2800 MHz.
>
Thank you for the clarification.
> > Based on your acpi_cppc information below I would have assumed 2GHz as
> > lowest nonlinear and 2.8GHz as nominal. The reason for this is that
> > according to the ACPI spec the frequency values in the _CPC objects are
> > supposed to be in MHz, so 2800 MHz for nominal frequency would be
> > 2.8GHz.
> >
> > When you try more governors, make sure to check out the difference
> > between scaling_cur_freq and cpuinfo_cur_freq at [2]. The first gives
> > you the frequency that the governor (schedutil) is asking for, while the
> > second is giving you the current frequency obtained from the counters.
> >
> > So to check the actual frequency the cores are running at, please check
> > cpuinfo_cur_freq.
>
> The problem is that all CPUs are never scaling down. "cpuinfo_cur_freq"
> and "scaling_cur_freq" are always the 2800 MHz on all CPUs on this idle
> system. This looks like a regression somewhere as in 5.4-based kernel,
> I can see "cpuinfo_cur_freq" can go down to 2000 MHz in the same
> scenario. I'll bisect a bit unless you have better ideas?
Quick questions for you:
1. When you say you tried a 5.4 kernel, did you try it with these
patches backported? They also have some dependencies with the recent
changes in the arch topology driver and cpufreq so they would not be
straight forward to backport.
If the 5.4 kernel you tried did not have these patches, it might be best
to try next/master that has these patches, but with
CONFIG_ACPI_CPPC_CPUFREQ_FIE=n, just to eliminate the possibility that
an incorrect frequency scale factor here would affect utilization that
would then affect the schedutil frequency selection. I would not expect
this behavior even if the scale factor was wrong, but it would be good
to rule out.
2. Is your platform booting with all CPUs? Are any hotplug operations
done in your scenario?
Thanks,
Ionela.