Thread (27 messages) 27 messages, 6 authors, 2023-10-26

Re: [PATCH v3 3/6] cpufreq/schedutil: use a fixed reference frequency

From: Vincent Guittot <vincent.guittot@linaro.org>
Date: 2023-10-25 12:52:06
Also in: linux-acpi, linux-pm, linux-riscv, lkml

On Wed, 25 Oct 2023 at 13:53, Peter Zijlstra [off-list ref] wrote:
On Wed, Oct 18, 2023 at 06:25:37PM +0200, Vincent Guittot wrote:
quoted
+static __always_inline
+unsigned long get_capacity_ref_freq(struct cpufreq_policy *policy)
+{
+     unsigned int freq = arch_scale_freq_ref(policy->cpu);
+
+     if (freq)
+             return freq;
+
+     if (arch_scale_freq_invariant())
+             return policy->cpuinfo.max_freq;
+
+     return policy->cur;
+}
Hmm, what should x86 do here? I know it mostly doesn't use these things,
but would it make sense to stick the base frequency in ?
get_capacity_ref_freq() should return the frequency that is used as
the reference for the max compute capacity.

On Arm64, we have seen some inconsistency especially because we use
the energy model, we compute the CPU's capacity at boot and we can
have different compute capacity in our system whereas x86 always uses
SCHED_CAPACITY_SCALE even on hybrid system if I'm not wrong

So I was not sure that this will make any difference for x86 platform
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help