[PATCH V2] cpufreq: ARM big LITTLE: Add generic cpufreq driver and its DT glue
Viresh Kumar
viresh.kumar at linaro.org
Tue Mar 26 10:30:55 EDT 2013
On 26 March 2013 18:47, Rob Herring <robherring2 at gmail.com> wrote:
> On 03/26/2013 04:51 AM, Viresh Kumar wrote:
> I fail to see anything bL specific here. This is just multi-cluster, but
> even for that I don't see anything new other than simply allowing per
> cpu or per cluster opp's. The fact that we have one opp for a cluster is
> simply an implementation decision in CortexA cores.
For now it is a very simple driver and yes probably multi-cluster only. It
will be updated with In Kernel Switcher support as soon as Linaro makes
a decision to opensource that (likely to happen soon).
Yes, there can be implementations, like krait, which can have per cpu
control of opp, but we will wait for any such platform before making this
driver complex.
>> +NOTE: Cpus should boot in the order specified in DT and all cpus for a cluster
>> +must be present contiguously. Generic DT driver will check only node 'x' for
>> +cpu:x.
>
> The OS cannot necessarily control the order. The OS should be able to
> boot on which ever core comes up first.
This should be a FIXME instead (will update it). I am waiting for
final DT bindings
from ARM guys before this can be written on stone.
For now this is the limitation and it should go away as soon as DT bindings are
finalized.
>> +Optional properties:
>> +- clock-latency: Specify the possible maximum transition latency for clock,
>> + in unit of nanoseconds.
>
> Don't we already have "transition-latency" defined?
No, its clock-latency.
$ git grep "clock-latency" Documentation/devicetree/bindings/
Documentation/devicetree/bindings/cpufreq/cpufreq-cpu0.txt:-
clock-latency: Specify the possible maximum transition latency for
clock,
Documentation/devicetree/bindings/cpufreq/cpufreq-spear.txt:-
clock-latency: Specify the possible maximum transition latency for
clock, in
Though transition-latency is mentioned by the example of cpufreq-cpu0.
I will fix it.
> Don't create
> something new. Ideally, this should have had "-ns" appended, but the
> binding is already defined.
I had the same intention.
>> diff --git a/drivers/cpufreq/arm_big_little.c b/drivers/cpufreq/arm_big_little.c
> What is specific to bL? This looks like just a multi-cluster cpufreq
> driver and should be generalized to that. Also, why can't the existing
> cpufreq-cpu0 driver be extended to support this?
With IKS code in, it will be a complete big LITTLE driver.
>> +/* Currently we support only two clusters */
>> +#define MAX_CLUSTERS 2
>
> Why? Because that is what the define is or there are other limitations?
> Seems like this could and should be dynamically discovered with DT.
To keep it simple, as for now as all early systems (atleast which are announced)
have dual cluster systems only.
We will update it once we have some real systems breaking this law.
--
viresh
More information about the linux-arm-kernel
mailing list