dts: g12b: modify sched-energy dts for w400 revision-b [1/1]
authorHanjie Lin <hanjie.lin@amlogic.com>
Tue, 26 Feb 2019 06:57:44 +0000 (14:57 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 4 Mar 2019 11:44:17 +0000 (03:44 -0800)
PD#SWPL-5020

Problem:
modify sched-energy dts for w400 revision-b

Solution:
modify dts

Verify:
local.

Change-Id: I6686abc10bf07ec0e601eb9a72b7657ca3e1d991
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
arch/arm/boot/dts/amlogic/g12b-sched-energy-a.dtsi [new file with mode: 0644]
arch/arm/boot/dts/amlogic/g12b-sched-energy.dtsi
arch/arm/boot/dts/amlogic/mesong12b_a.dtsi
arch/arm64/boot/dts/amlogic/g12b-sched-energy-a.dtsi [new file with mode: 0644]
arch/arm64/boot/dts/amlogic/g12b-sched-energy.dtsi
arch/arm64/boot/dts/amlogic/mesong12b_a.dtsi

diff --git a/arch/arm/boot/dts/amlogic/g12b-sched-energy-a.dtsi b/arch/arm/boot/dts/amlogic/g12b-sched-energy-a.dtsi
new file mode 100644 (file)
index 0000000..184be9d
--- /dev/null
@@ -0,0 +1,87 @@
+
+/ {
+       energy-costs {
+               CPU_COST_A73: core-cost0 {
+                       busy-cost-data = <
+                               54    17
+                               135   110
+                               270   202
+                               360   264
+                               540   396
+                               648   470
+                               755   557
+                               816   620
+                               868   699
+                               920   759
+                               /*1024  1024*/
+                       >;
+                       idle-cost-data = <
+                               5
+                               0
+                               0
+                       >;
+               };
+               CPU_COST_A53: core-cost1 {
+                       busy-cost-data = <
+                               33  4
+                               83  23
+                               166 41
+                               221 54
+                               332 78
+                               399 92
+                               465 116
+                               503 135
+                               535 162
+                               567 184
+                               599 224
+                               631 279
+                       >;
+                       idle-cost-data = <
+                               3
+                               0
+                               0
+                       >;
+               };
+               CLUSTER_COST_A73: cluster-cost0 {
+                       busy-cost-data = <
+                               54   17
+                               135  20
+                               270  25
+                               360  27
+                               540  35
+                               648  40
+                               755  49
+                               816  57
+                               868  54
+                               920  64
+                               /*1024 79*/
+                       >;
+                       idle-cost-data = <
+                               10
+                               10
+                               0
+                       >;
+               };
+               CLUSTER_COST_A53: cluster-cost1 {
+                       busy-cost-data = <
+                               33  7
+                               83  8
+                               166 9
+                               221 10
+                               332 13
+                               399 15
+                               465 19
+                               503 23
+                               535 26
+                               567 31
+                               599 36
+                               631 42
+                       >;
+                       idle-cost-data = <
+                               6
+                               6
+                               0
+                       >;
+               };
+       };
+};
index 796f592..9177949 100644 (file)
                                816   620
                                868   699
                                920   759
-                               /*1024  1024*/
+                               972   819
+                               1030  887
+                               1088  937
+                               1134  976
+                               1192  1048
                        >;
                        idle-cost-data = <
                                5
@@ -33,6 +37,7 @@
                                503 135
                                535 162
                                567 184
+                               599 224
                                631 279
                        >;
                        idle-cost-data = <
                                816  57
                                868  54
                                920  64
-                               /*1024 79*/
+                               972  75
+                               1030  86
+                               1088  97
+                               1134  108
+                               1192  110
                        >;
                        idle-cost-data = <
                                10
@@ -73,6 +82,7 @@
                                503 23
                                535 26
                                567 31
+                               599 36
                                631 42
                        >;
                        idle-cost-data = <
index f022bbc..9e6514f 100644 (file)
@@ -27,7 +27,7 @@
 #include <dt-bindings/input/meson_rc.h>
 #include <dt-bindings/phy/phy-amlogic-pcie.h>
 #include "mesong12a-bifrost.dtsi"
-#include "g12b-sched-energy.dtsi"
+#include "g12b-sched-energy-a.dtsi"
 
 / {
        cpus:cpus {
diff --git a/arch/arm64/boot/dts/amlogic/g12b-sched-energy-a.dtsi b/arch/arm64/boot/dts/amlogic/g12b-sched-energy-a.dtsi
new file mode 100644 (file)
index 0000000..184be9d
--- /dev/null
@@ -0,0 +1,87 @@
+
+/ {
+       energy-costs {
+               CPU_COST_A73: core-cost0 {
+                       busy-cost-data = <
+                               54    17
+                               135   110
+                               270   202
+                               360   264
+                               540   396
+                               648   470
+                               755   557
+                               816   620
+                               868   699
+                               920   759
+                               /*1024  1024*/
+                       >;
+                       idle-cost-data = <
+                               5
+                               0
+                               0
+                       >;
+               };
+               CPU_COST_A53: core-cost1 {
+                       busy-cost-data = <
+                               33  4
+                               83  23
+                               166 41
+                               221 54
+                               332 78
+                               399 92
+                               465 116
+                               503 135
+                               535 162
+                               567 184
+                               599 224
+                               631 279
+                       >;
+                       idle-cost-data = <
+                               3
+                               0
+                               0
+                       >;
+               };
+               CLUSTER_COST_A73: cluster-cost0 {
+                       busy-cost-data = <
+                               54   17
+                               135  20
+                               270  25
+                               360  27
+                               540  35
+                               648  40
+                               755  49
+                               816  57
+                               868  54
+                               920  64
+                               /*1024 79*/
+                       >;
+                       idle-cost-data = <
+                               10
+                               10
+                               0
+                       >;
+               };
+               CLUSTER_COST_A53: cluster-cost1 {
+                       busy-cost-data = <
+                               33  7
+                               83  8
+                               166 9
+                               221 10
+                               332 13
+                               399 15
+                               465 19
+                               503 23
+                               535 26
+                               567 31
+                               599 36
+                               631 42
+                       >;
+                       idle-cost-data = <
+                               6
+                               6
+                               0
+                       >;
+               };
+       };
+};
index 796f592..9177949 100644 (file)
                                816   620
                                868   699
                                920   759
-                               /*1024  1024*/
+                               972   819
+                               1030  887
+                               1088  937
+                               1134  976
+                               1192  1048
                        >;
                        idle-cost-data = <
                                5
@@ -33,6 +37,7 @@
                                503 135
                                535 162
                                567 184
+                               599 224
                                631 279
                        >;
                        idle-cost-data = <
                                816  57
                                868  54
                                920  64
-                               /*1024 79*/
+                               972  75
+                               1030  86
+                               1088  97
+                               1134  108
+                               1192  110
                        >;
                        idle-cost-data = <
                                10
@@ -73,6 +82,7 @@
                                503 23
                                535 26
                                567 31
+                               599 36
                                631 42
                        >;
                        idle-cost-data = <
index 5e5b585..7b712f3 100644 (file)
@@ -27,7 +27,7 @@
 #include <dt-bindings/input/meson_rc.h>
 #include <dt-bindings/phy/phy-amlogic-pcie.h>
 #include "mesong12a-bifrost.dtsi"
-#include "g12b-sched-energy.dtsi"
+#include "g12b-sched-energy-a.dtsi"
 
 / {
        cpus:cpus {