Skip to content

Commit 6b55297

Browse files
ikjn-crosmbgg
authored andcommitted
arm64: dts: mt8183: adjust cpuidle target residency
Split a cluster level cpuidle state into two, so mt8183 variant boards can adjust parameters for each cluster, and reduce cluster0's default target residency to 1000us as power measurements showed that its minimum residency is slightly less than cluster1's 1300us. Signed-off-by: Ikjoon Jang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Matthias Brugger <[email protected]>
1 parent eb4a01a commit 6b55297

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

arch/arm64/boot/dts/mediatek/mt8183.dtsi

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
reg = <0x000>;
7575
enable-method = "psci";
7676
capacity-dmips-mhz = <741>;
77-
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
77+
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP0>;
7878
dynamic-power-coefficient = <84>;
7979
#cooling-cells = <2>;
8080
};
@@ -85,7 +85,7 @@
8585
reg = <0x001>;
8686
enable-method = "psci";
8787
capacity-dmips-mhz = <741>;
88-
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
88+
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP0>;
8989
dynamic-power-coefficient = <84>;
9090
#cooling-cells = <2>;
9191
};
@@ -96,7 +96,7 @@
9696
reg = <0x002>;
9797
enable-method = "psci";
9898
capacity-dmips-mhz = <741>;
99-
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
99+
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP0>;
100100
dynamic-power-coefficient = <84>;
101101
#cooling-cells = <2>;
102102
};
@@ -107,7 +107,7 @@
107107
reg = <0x003>;
108108
enable-method = "psci";
109109
capacity-dmips-mhz = <741>;
110-
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
110+
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP0>;
111111
dynamic-power-coefficient = <84>;
112112
#cooling-cells = <2>;
113113
};
@@ -118,7 +118,7 @@
118118
reg = <0x100>;
119119
enable-method = "psci";
120120
capacity-dmips-mhz = <1024>;
121-
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
121+
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP1>;
122122
dynamic-power-coefficient = <211>;
123123
#cooling-cells = <2>;
124124
};
@@ -129,7 +129,7 @@
129129
reg = <0x101>;
130130
enable-method = "psci";
131131
capacity-dmips-mhz = <1024>;
132-
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
132+
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP1>;
133133
dynamic-power-coefficient = <211>;
134134
#cooling-cells = <2>;
135135
};
@@ -140,7 +140,7 @@
140140
reg = <0x102>;
141141
enable-method = "psci";
142142
capacity-dmips-mhz = <1024>;
143-
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
143+
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP1>;
144144
dynamic-power-coefficient = <211>;
145145
#cooling-cells = <2>;
146146
};
@@ -151,7 +151,7 @@
151151
reg = <0x103>;
152152
enable-method = "psci";
153153
capacity-dmips-mhz = <1024>;
154-
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
154+
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP1>;
155155
dynamic-power-coefficient = <211>;
156156
#cooling-cells = <2>;
157157
};
@@ -168,7 +168,15 @@
168168
min-residency-us = <800>;
169169
};
170170

171-
CLUSTER_SLEEP: cluster-sleep {
171+
CLUSTER_SLEEP0: cluster-sleep@0 {
172+
compatible = "arm,idle-state";
173+
local-timer-stop;
174+
arm,psci-suspend-param = <0x01010001>;
175+
entry-latency-us = <250>;
176+
exit-latency-us = <400>;
177+
min-residency-us = <1000>;
178+
};
179+
CLUSTER_SLEEP1: cluster-sleep@1 {
172180
compatible = "arm,idle-state";
173181
local-timer-stop;
174182
arm,psci-suspend-param = <0x01010001>;

0 commit comments

Comments
 (0)