Skip to content

Commit

Permalink
ARM: dts: r8a7790: add cpu capacity-dmips-mhz information
Browse files Browse the repository at this point in the history
The following 'capacity-dmips-mhz' dt property values are used:

Cortex-A15: 1024, Cortex-A7: 539

They have been derived form the cpu_efficiency values:

Cortex-A15: 3891, Cortex-A7: 2048

by scaling them so that the Cortex-A15s (big cores) use 1024.

The cpu_efficiency values were originally derived from the "Big.LITTLE
Processing with ARM Cortex™-A15 & Cortex-A7" white paper
(http://www.cl.cam.ac.uk/~rdm34/big.LITTLE.pdf). Table 1 lists 1.9x
(3891/2048) as the Cortex-A15 vs Cortex-A7 performance ratio for the
Dhrystone benchmark.

The following platform is affected once cpu-invariant accounting
support is re-connected to the task scheduler:

r8a7790-lager

Signed-off-by: Dietmar Eggemann <[email protected]>
Signed-off-by: Simon Horman <[email protected]>
  • Loading branch information
deggeman authored and horms committed Oct 12, 2017
1 parent 2ee1884 commit 5bdc812
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/r8a7790.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
clock-latency = <300000>; /* 300 us */
power-domains = <&sysc R8A7790_PD_CA15_CPU0>;
next-level-cache = <&L2_CA15>;
capacity-dmips-mhz = <1024>;

/* kHz - uV - OPPs unknown yet */
operating-points = <1400000 1000000>,
Expand All @@ -73,6 +74,7 @@
clock-frequency = <1300000000>;
power-domains = <&sysc R8A7790_PD_CA15_CPU1>;
next-level-cache = <&L2_CA15>;
capacity-dmips-mhz = <1024>;
};

cpu2: cpu@2 {
Expand All @@ -82,6 +84,7 @@
clock-frequency = <1300000000>;
power-domains = <&sysc R8A7790_PD_CA15_CPU2>;
next-level-cache = <&L2_CA15>;
capacity-dmips-mhz = <1024>;
};

cpu3: cpu@3 {
Expand All @@ -91,6 +94,7 @@
clock-frequency = <1300000000>;
power-domains = <&sysc R8A7790_PD_CA15_CPU3>;
next-level-cache = <&L2_CA15>;
capacity-dmips-mhz = <1024>;
};

cpu4: cpu@100 {
Expand All @@ -100,6 +104,7 @@
clock-frequency = <780000000>;
power-domains = <&sysc R8A7790_PD_CA7_CPU0>;
next-level-cache = <&L2_CA7>;
capacity-dmips-mhz = <539>;
};

cpu5: cpu@101 {
Expand All @@ -109,6 +114,7 @@
clock-frequency = <780000000>;
power-domains = <&sysc R8A7790_PD_CA7_CPU1>;
next-level-cache = <&L2_CA7>;
capacity-dmips-mhz = <539>;
};

cpu6: cpu@102 {
Expand All @@ -118,6 +124,7 @@
clock-frequency = <780000000>;
power-domains = <&sysc R8A7790_PD_CA7_CPU2>;
next-level-cache = <&L2_CA7>;
capacity-dmips-mhz = <539>;
};

cpu7: cpu@103 {
Expand All @@ -127,6 +134,7 @@
clock-frequency = <780000000>;
power-domains = <&sysc R8A7790_PD_CA7_CPU3>;
next-level-cache = <&L2_CA7>;
capacity-dmips-mhz = <539>;
};

L2_CA15: cache-controller-0 {
Expand Down

0 comments on commit 5bdc812

Please sign in to comment.