OSDN Git Service

ARM: dts: msm8998: Recalibrate busy costs using better data
authorSultan Alsawaf <sultan@kerneltoast.com>
Mon, 22 Apr 2019 09:03:46 +0000 (02:03 -0700)
committer0ranko0P <ranko0p@outlook.com>
Tue, 24 Dec 2019 20:42:42 +0000 (04:42 +0800)
Power and performance were measured on a production wahoo device in the
kernel in a high-precision manner. Use the resulting data to create a
better energy model that reflects the actual behavior of production
hardware.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
wloot: Adapt to 98897c5c ("ARM: dts: msm8998: Remove few bottom frequencies of low energy efficiency")

arch/arm/boot/dts/qcom/msm8998.dtsi

index 8fa43ea..ca18def 100644 (file)
                energy-costs {
                        CPU_COST_0: core-cost0 {
                                busy-cost-data = <
-                                       113 30
-                                       130 33
-                                       147 35
-                                       164 36
-                                       181 42
-                                       194 47
-                                       211 54
-                                       228 62
-                                       243 67
-                                       258 73
-                                       275 79
-                                       292 88
-                                       308 95
-                                       326 104
-                                       342 111
-                                       368 134
-                                       384 155
-                                       401 178
-                                       419 201
+                                       134 154
+                                       154 156
+                                       174 159
+                                       194 161
+                                       214 164
+                                       229 166
+                                       249 172
+                                       269 175
+                                       284 179
+                                       304 185
+                                       324 189
+                                       344 196
+                                       363 199
+                                       383 205
+                                       403 212
+                                       433 228
+                                       453 241
+                                       473 255
+                                       493 272
                                >;
                                idle-cost-data = <
                                        4 4 0 0
                        };
                        CPU_COST_1: core-cost1 {
                                busy-cost-data = <
-                                       182  91
-                                       216  105
-                                       247  118
-                                       278  135
-                                       312  150
-                                       344  162
-                                       391  181
-                                       419  196
-                                       453  214
-                                       487  229
-                                       509  248
-                                       546  280
-                                       581  316
-                                       615  354
-                                       650  392
-                                       676  439
-                                       712  495
-                                       739  565
-                                       776  622
-                                       803  691
-                                       834  792
-                                       881  889
-                                       914  1059
-                                       957  1244
-                                       975  1375
-                                       996  1549
-                                       1016 1617
-                                       1021 1677
-                                       1024 1683
+                                       182  171
+                                       215  179
+                                       248  186
+                                       282  192
+                                       315  200
+                                       348  209
+                                       390  219
+                                       423  225
+                                       456  236
+                                       489  242
+                                       514  260
+                                       547  271
+                                       580  287
+                                       614  306
+                                       647  333
+                                       680  356
+                                       713  386
+                                       747  401
+                                       780  452
+                                       813  553
+                                       847  575
+                                       880  717
+                                       913  814
+                                       954  994
+                                       979  1168
+                                       1003 1428
+                                       1011 1558
+                                       1023 1677
+                                       1024 1707
                                >;
                                idle-cost-data = <
                                        10 10 0 0