]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/cpufreq/cppc_cpufreq.c
cpufreq / CPPC: Set platform specific transition_delay_us
authorPrashanth Prakash <pprakash@codeaurora.org>
Fri, 27 Apr 2018 17:35:27 +0000 (11:35 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 Apr 2018 08:14:08 +0000 (10:14 +0200)
commitd4f3388afd488ed15368fa7413b8bd6d1f98bb1d
tree56ff9c746d4c2b75502d000204f4c20d6fafc78e
parent6da6c0db5316275015e8cc2959f12a17584aeb64
cpufreq / CPPC: Set platform specific transition_delay_us

Add support to specify platform specific transition_delay_us instead
of using the transition delay derived from PCC.

With commit 3d41386d556d (cpufreq: CPPC: Use transition_delay_us
depending transition_latency) we are setting transition_delay_us
directly and not applying the LATENCY_MULTIPLIER. Because of that,
on Qualcomm Centriq we can end up with a very high rate of frequency
change requests when using the schedutil governor (default
rate_limit_us=10 compared to an earlier value of 10000).

The PCC subspace describes the rate at which the platform can accept
commands on the CPPC's PCC channel. This includes read and write
command on the PCC channel that can be used for reasons other than
frequency transitions. Moreover the same PCC subspace can be used by
multiple freq domains and deriving transition_delay_us from it as we
do now can be sub-optimal.

Moreover if a platform does not use PCC for desired_perf register then
there is no way to compute the transition latency or the delay_us.

CPPC does not have a standard defined mechanism to get the transition
rate or the latency at the moment.

Given the above limitations, it is simpler to have a platform specific
transition_delay_us and rely on PCC derived value only if a platform
specific value is not available.

Signed-off-by: Prashanth Prakash <pprakash@codeaurora.org>
Cc: 4.14+ <stable@vger.kernel.org> # 4.14+
Fixes: 3d41386d556d (cpufreq: CPPC: Use transition_delay_us depending transition_latency)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cppc_cpufreq.c