Skip to contentSkip to conversation

Regression in TEO cpuidle governor between 6.6 and 6.12

PATCH In review Reka Norman 4 participants 48 messages Nov 4, 2025 – Nov 19, 2025 CPU idle time management framework Page 2 of 2

lore
Share & tools
lore
#27 lore raw
In reply to Christian Loehle
Quoted 137 lines · Christian Loehle
Quoted 129 lines · Rafael J. Wysocki
Quoted 120 lines · Christian Loehle
Quoted 109 lines · Rafael J. Wysocki
Quoted 6 lines · Christian Loehle
Quoted 4 lines · Rafael J. Wysocki
Quoted 2 lines · Christian Loehle

On 11/11/25 10:00, Christian Loehle wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

I see two issues:
1) Because of DECAY_SHIFT 3 values < 8 cannot decay (I guess this wouldn't really be an issue without 2))

This shouldn't be a problem.

Agreed, it should be a non-issue. Nonetheless if this wasn't the case $subject would've likely never been an issue.

Well, I think that the leftovers can be cleared when they become less than 8.

Quoted 81 lines
Quoted 55 lines
Quoted 4 lines
Quoted 4 lines

2) if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) isn't an appropriate check, it will exclude the state if it its idx_hit_sum make up the vast majority of cpu_data->total (i.e. it would have been a really good candidate actually).

Well, it would exclude the state if the sum of hits for the states below it is large enough. This is questionable (because why would hits matter here), but I attempted to make the change below and somebody reported a regression IIRC.

This check is related to the problem at hand though (see below).

Quoted 43 lines
Quoted 13 lines

I lightly tested the below, it seems to be at least comparable to mainline teo. (the documentation/comments would need adapting too, of course)

-----8<-----

drivers/cpuidle/governors/teo.c +0 -0
index bfa55c1eab5b..f8f76e3b8364 100644

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 361

Quoted 8 lines
drivers/cpuidle/governors/teo.c +1 -1
@@ -355,7 +355,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
         * all of the deeper states, a shallower idle state is likely to be a
         * better choice.
         */
-       if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {
+       if (2 * idx_intercept_sum > idx_hit_sum) {
                int first_suitable_idx = idx;
 
                /*

... nevermind the patch, idx_hit_sum is of course the sum of 0...idx-1. Maybe something like this, again lightly tested:

-----8<-----

drivers/cpuidle/governors/teo.c +2 -0
index 173ddcac540a..6bfb9cedb75e 100644
@@ -383,13 +395,15 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
                 * has been stopped already into account.
                 */
                intercept_sum = 0;
+               hit_sum = 0;
 
                for (i = idx - 1; i >= 0; i--) {
                        struct teo_bin *bin = &cpu_data->state_bins[i];
 
                        intercept_sum += bin->intercepts;
+                       hit_sum += bin->hits;
 
Quoted 10 lines

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 409

Quoted 5 lines
drivers/cpuidle/governors/teo.c +1 -1
-                       if (2 * intercept_sum > idx_intercept_sum) {
+                       if (2 * intercept_sum > cpu_data->total || 2 * hit_sum > cpu_data->total) {
                                /*
                                 * Use the current state unless it is too
                                 * shallow or disabled, in which case take the

This will only matter after the deepest state has been rejected already and on the system in question this means selecting state 0 no matter what.

Ah, right!

Quoted 11 lines

The pre-6.12 behavior can be explained if tick wakeups are taken into account.

Namely, when state 0 is chosen (because of the check mentioned above), the tick is not stopped and the sleep length is KTIME_MAX. If the subsequent wakeup is a tick one, it will be counted as a hit on the deepest state (and it will contribute to the total sum in the check mentioned above). Then, at one point, cpu_data->total will be large enough and the deepest state will become the candidate one. If tick_nohz_get_sleep_length() returns a large value at that point, the tick will be stopped and the deepest state will be entered. Nirvana ensues.

Quoted 6 lines

So fundamentally we will have to count tick-wakeups as a) nothing, which doesn't allow us to ever break out of the intercept logic that caused us to leave the tick on b) intercepts, which is bonkers and doesn't allow us to ever break out and c) hits == sleep_length would've been accurate. Of course counting a tick wakeup as a hit for sleep_length negates the intercept logic.

Quoted 8 lines

Not quite. The intercept logic is there for wakeups other than tick wakeups and timer wakeups.

I actually think that tick wakeups can be counted as hits on the deepest available state - maybe only when tick wakeups dominate the wakeup pattern - but generally this is not unreasonable: When the wakeup pattern is dominated by tick wakeups, this by itself is a good enough reason to stop the tick.

Quoted 6 lines

(assuming HZ=1000 below but it doesn't matter)
That will exclude any 'intercept' logic from having much effect if the avg idle duration is >TICK_NSEC/2, which is potentially still quite a bit off from state1 residency, like in Reka's case here.
That's why I thought it would cause unreasonable regressions here. I'll give it a go as well though!

Quoted 6 lines

Thanks!

Note that I'd prefer to add a check if tick wakeups dominate the wakeup pattern before setting sleep_length_ns to KTIME_MAX though. I'd first like to know how the Reka's system reacts to the more drastic variant of this change.

Quoted 5 lines

Below are my usual tests, it's definitely visible but the impact is limited on this platform anyway. I think if we gate the KTIME_MAX setting behind the "tick wakeup dominate" it should be acceptable!
Let's see what Reka reports.

Forgot to post the full results, anyway as expected with mtdblock (a very slow / low frequent wakeup scenario) the impact becomes clearly visible. Still hopeful that the more conservative approach will be acceptable!

device     gov        iter     iops      idles  idle_miss      ratio     belows     aboves
mmcblk1    teo-m      0      2330     644806         69      0.000         47         22
mmcblk1    teo-m      1      2328     642994        102      0.000         66         36
mmcblk1    teo-m      2      2352     644020         44      0.000         28         16
mmcblk1    teo-patch  0      2323     596298       1830      0.003       1799         31
mmcblk1    teo-patch  1      2324     598574       1964      0.003       1926         38
mmcblk1    teo-patch  2      2325     599980       1908      0.003       1894         14
mmcblk1    teo-6-6    0      2329     596768       1753      0.003       1686         67
mmcblk1    teo-6-6    1      2330     600324       1527      0.003       1495         32
mmcblk1    teo-6-6    2      2331     600110       1439      0.002       1397         42
mmcblk1    teo-6-12   0      2347     741170          6      0.000          4          2
mmcblk1    teo-6-12   1      2329     782232          0      0.000          4          2
mmcblk1    teo-6-12   2      2328     775652         10      0.000          8          2
mmcblk2    teo-m      0      5758     860660         61      0.000         47         14
mmcblk2    teo-m      1      5731     827264        493      0.001        477         16
mmcblk2    teo-m      2      5700     861346         69      0.000         50         19
mmcblk2    teo-patch  0      5494     817672      19415      0.024      19379         36
mmcblk2    teo-patch  1      5474     717618      20018      0.028      19962         56
mmcblk2    teo-patch  2      5308     640356      33998      0.053      33970         28
mmcblk2    teo-6-6    0      5692     848824       1748      0.002       1685         63
mmcblk2    teo-6-6    1      5898     876180       1225      0.001       1215         10
mmcblk2    teo-6-6    2      5646     633846       2248      0.004       2199         49
mmcblk2    teo-6-12   0      5869    1009742          9      0.000          6          3
mmcblk2    teo-6-12   1      5644     775326          4      0.000          4          0
mmcblk2    teo-6-12   2      5671     904480          4      0.000          4          0
nvme0n1    teo-m      0     10342     765802        152      0.000         55         97
nvme0n1    teo-m      1     10703     789232        157      0.000         52        105
nvme0n1    teo-m      2     10405     770046         62      0.000         34         28
nvme0n1    teo-patch  0     10590     740088       1995      0.003       1848        147
nvme0n1    teo-patch  1     10472     733540       1686      0.002       1573        113
nvme0n1    teo-patch  2     10654     741262       1424      0.002       1329         95
nvme0n1    teo-6-6    0     11507     798450       1564      0.002       1505         59
nvme0n1    teo-6-6    1     10499     735294       2009      0.003       1879        130
nvme0n1    teo-6-6    2     10598     740936       1756      0.002       1477        279
nvme0n1    teo-6-12   0     10542     922846         18      0.000         12          6
nvme0n1    teo-6-12   1     10482     922114         23      0.000         16          7
nvme0n1    teo-6-12   2     11046     940398         23      0.000         17          6
sda        teo-m      0      1269     778958        111      0.000        108          3
sda        teo-m      1      1268     831064       1064      0.001       1054         10
sda        teo-m      2      1270     803714       2044      0.003       2034         10
sda        teo-patch  0      1206     763874      62173      0.081      62169          4
sda        teo-patch  1      1219     740656      58484      0.079      58477          7
sda        teo-patch  2      1172     728598      95154      0.131      95151          3
sda        teo-6-6    0      1257     591486       5450      0.009       5435         15
sda        teo-6-6    1      1265     788536       4412      0.006       4404          8
sda        teo-6-6    2      1254     788282       4470      0.006       4461          9
sda        teo-6-12   0      1274     841398          0      0.000       4461          9
sda        teo-6-12   1      1271     840824          0      0.000       4461          9
sda        teo-6-12   2      1272     923816          4      0.000          4          0
nullb0     teo-m      0    101284     114406        178      0.002         70        108
nullb0     teo-m      1    101381     112804        496      0.004        303        193
nullb0     teo-m      2    101716     100370        380      0.004        225        155
nullb0     teo-patch  0    100748      71690       1966      0.027       1853        113
nullb0     teo-patch  1    100858      75426       1716      0.023       1524        192
nullb0     teo-patch  2    101503      74320       1864      0.025       1851         13
nullb0     teo-6-6    0    101295      74346       2369      0.032       2139        230
nullb0     teo-6-6    1    101299      75350       1943      0.026       1803        140
nullb0     teo-6-6    2    100578      73924       2317      0.031       2089        228
nullb0     teo-6-12   0    100005     269180          7      0.000          4          3
nullb0     teo-6-12   1    100705     315302          0      0.000          4          3
nullb0     teo-6-12   2    100861     293350          6      0.000          3          3
mtdblock3  teo-m      0       262     312586         66      0.000         47         19
mtdblock3  teo-m      1       259     635682        100      0.000         97          3
mtdblock3  teo-m      2       258     771110        128      0.000         89         39
mtdblock3  teo-patch  0       244     435660      29414      0.068      29248        166
mtdblock3  teo-patch  1       236     449612      43754      0.097      43631        123
mtdblock3  teo-patch  2       238     814510      35946      0.044      35928         18
mtdblock3  teo-6-6    0       258     782434       1611      0.002       1572         39
mtdblock3  teo-6-6    1       259     591852       1658      0.003       1532        126
mtdblock3  teo-6-6    2       262     274192       1523      0.006       1432         91
mtdblock3  teo-6-12   0       256     986250         11      0.000         10          1
mtdblock3  teo-6-12   1       258     853982         11      0.000          9          2
mtdblock3  teo-6-12   2       260     654184          7      0.000          6          1
test       gov        i     score  %change    idles  idle_miss  miss_rt   belows   aboves
schbench   teo-m      0       196    0      26276         12      0.000         10          2
schbench   teo-m      1       195   -0      25668         23      0.001         19          4
schbench   teo-m      2       208    6      26180         24      0.001         21          3
schbench   teo-m      3       191   -2      25384          4      0.000          3          1
schbench   teo-m      4       194   -1      26060         31      0.001         21         10
schbench   teo-patch  0       195   -0      24678        253      0.010        239         14
schbench   teo-patch  1       192   -2      24100        228      0.009        221          7
schbench   teo-patch  2       192   -2      25154        310      0.012        281         29
schbench   teo-patch  3       194   -1      24426        253      0.010        236         17
schbench   teo-patch  4       193   -2      25008        277      0.011        262         15
schbench   teo-6-6    0       199    2      24676        128      0.005        121          7
schbench   teo-6-6    1       211    8      26794        127      0.005        117         10
schbench   teo-6-6    2       205    5      25026        140      0.006        125         15
schbench   teo-6-6    3       198    1      24816        196      0.008        174         22
schbench   teo-6-6    4       198    1      26604        236      0.009        218         18
schbench   teo-6-12   0       190   -3      24464          0      0.000        218         18
schbench   teo-6-12   1       190   -3      25274          0      0.000        218         18
schbench   teo-6-12   2       190   -3      25256          0      0.000        218         18
schbench   teo-6-12   3       199    2      26342          0      0.000        218         18
schbench   teo-6-12   4       188   -4      25508          0      0.000        218         18
ebizzy     teo-m      0     10733    0       1358          7      0.005          7          0
ebizzy     teo-m      1     10750    0       1206         12      0.010          8          4
ebizzy     teo-m      2     10699   -0       1950         24      0.012         23          1
ebizzy     teo-m      3     10773    0       1384         18      0.013         16          2
ebizzy     teo-m      4     10667   -1       2060         24      0.012         23          1
ebizzy     teo-patch  0     10728   -0       1474         49      0.033         45          4
ebizzy     teo-patch  1     10682   -0        962         26      0.027         26          0
ebizzy     teo-patch  2     10687   -0       1082         56      0.052         56          0
ebizzy     teo-patch  3     10736    0       1072         22      0.021         22          0
ebizzy     teo-patch  4     10674   -1       1156         53      0.046         50          3
ebizzy     teo-6-6    0     10659   -1       1442         58      0.040         46         12
ebizzy     teo-6-6    1     10653   -1       1144         43      0.038         41          2
ebizzy     teo-6-6    2     10696   -0       1256         37      0.029         35          2
ebizzy     teo-6-6    3     10710   -0       1168         43      0.037         38          5
ebizzy     teo-6-6    4     10696   -0       1166         47      0.040         43          4
ebizzy     teo-6-12   0     10709   -0       2186          0      0.000         43          4
ebizzy     teo-6-12   1     10687   -0       1688          0      0.000         43          4
ebizzy     teo-6-12   2     10689   -0       2806          0      0.000         43          4
ebizzy     teo-6-12   3     10734    0       1426          0      0.000         43          4
ebizzy     teo-6-12   4     10757    0       2346          0      0.000         43          4
adrestia   teo-m      0         8    0     103680         21      0.000         19          2
adrestia   teo-m      1        12   50     104026         31      0.000         16         15
adrestia   teo-m      2        12   50     104063         32      0.000         24          8
adrestia   teo-m      3        12   50     104768         44      0.000         22         22
adrestia   teo-m      4        12   50     104388         18      0.000         16          2
adrestia   teo-patch  0        12   50     103096         67      0.001         65          2
adrestia   teo-patch  1        12   50     103128         57      0.001         49          8
adrestia   teo-patch  2         8    0     102812         78      0.001         72          6
adrestia   teo-patch  3        12   50     102990         60      0.001         55          5
adrestia   teo-patch  4        12   50     103168         24      0.000         24          0
adrestia   teo-6-6    0        12   50     102832         61      0.001         51         10
adrestia   teo-6-6    1        12   50     103136         52      0.001         38         14
adrestia   teo-6-6    2        12   50     102882         37      0.000         29          8
adrestia   teo-6-6    3        12   50     103102         51      0.000         40         11
adrestia   teo-6-6    4        12   50     103260         60      0.001         43         17
adrestia   teo-6-12   0        12   50     112320          0      0.000         43         17
adrestia   teo-6-12   1        12   50     114412          0      0.000         43         17
adrestia   teo-6-12   2        11   38     112220          0      0.000         43         17
adrestia   teo-6-12   3        12   50     112028          0      0.000         43         17
adrestia   teo-6-12   4        12   50     112750          0      0.000         43         17
#28 lore raw

PATCH 1/1 cpuidle: governors: teo: Rework the handling of tick wakeups

Quoted 138 lines · CET Christian Loehle
Quoted 137 lines · Christian Loehle
Quoted 135 lines · Rafael J. Wysocki
Quoted 120 lines · Christian Loehle
Quoted 109 lines · Rafael J. Wysocki
Quoted 6 lines · Christian Loehle
Quoted 4 lines · Rafael J. Wysocki
Quoted 2 lines · Christian Loehle

On 11/11/25 10:00, Christian Loehle wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

I see two issues:
1) Because of DECAY_SHIFT 3 values < 8 cannot decay (I guess this wouldn't really be an issue without 2))

This shouldn't be a problem.

Agreed, it should be a non-issue. Nonetheless if this wasn't the case $subject would've likely never been an issue.

Well, I think that the leftovers can be cleared when they become less than 8.

Quoted 81 lines
Quoted 55 lines
Quoted 4 lines
Quoted 4 lines

2) if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) isn't an appropriate check, it will exclude the state if it its idx_hit_sum make up the vast majority of cpu_data->total (i.e. it would have been a really good candidate actually).

Well, it would exclude the state if the sum of hits for the states below it is large enough. This is questionable (because why would hits matter here), but I attempted to make the change below and somebody reported a regression IIRC.

This check is related to the problem at hand though (see below).

Quoted 43 lines
Quoted 13 lines

I lightly tested the below, it seems to be at least comparable to mainline teo. (the documentation/comments would need adapting too, of course)

-----8<-----

drivers/cpuidle/governors/teo.c +0 -0
index bfa55c1eab5b..f8f76e3b8364 100644

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 361

Quoted 8 lines
drivers/cpuidle/governors/teo.c +1 -1
@@ -355,7 +355,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
         * all of the deeper states, a shallower idle state is likely to be a
         * better choice.
         */
-       if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {
+       if (2 * idx_intercept_sum > idx_hit_sum) {
                int first_suitable_idx = idx;
 
                /*

... nevermind the patch, idx_hit_sum is of course the sum of 0...idx-1. Maybe something like this, again lightly tested:

-----8<-----

drivers/cpuidle/governors/teo.c +2 -0
index 173ddcac540a..6bfb9cedb75e 100644
@@ -383,13 +395,15 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
                 * has been stopped already into account.
                 */
                intercept_sum = 0;
+               hit_sum = 0;
 
                for (i = idx - 1; i >= 0; i--) {
                        struct teo_bin *bin = &cpu_data->state_bins[i];
 
                        intercept_sum += bin->intercepts;
+                       hit_sum += bin->hits;
 
Quoted 10 lines

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 409

Quoted 5 lines
drivers/cpuidle/governors/teo.c +1 -1
-                       if (2 * intercept_sum > idx_intercept_sum) {
+                       if (2 * intercept_sum > cpu_data->total || 2 * hit_sum > cpu_data->total) {
                                /*
                                 * Use the current state unless it is too
                                 * shallow or disabled, in which case take the

This will only matter after the deepest state has been rejected already and on the system in question this means selecting state 0 no matter what.

Ah, right!

Quoted 11 lines

The pre-6.12 behavior can be explained if tick wakeups are taken into account.

Namely, when state 0 is chosen (because of the check mentioned above), the tick is not stopped and the sleep length is KTIME_MAX. If the subsequent wakeup is a tick one, it will be counted as a hit on the deepest state (and it will contribute to the total sum in the check mentioned above). Then, at one point, cpu_data->total will be large enough and the deepest state will become the candidate one. If tick_nohz_get_sleep_length() returns a large value at that point, the tick will be stopped and the deepest state will be entered. Nirvana ensues.

Quoted 6 lines

So fundamentally we will have to count tick-wakeups as a) nothing, which doesn't allow us to ever break out of the intercept logic that caused us to leave the tick on b) intercepts, which is bonkers and doesn't allow us to ever break out and c) hits == sleep_length would've been accurate. Of course counting a tick wakeup as a hit for sleep_length negates the intercept logic.

Quoted 8 lines

Not quite. The intercept logic is there for wakeups other than tick wakeups and timer wakeups.

I actually think that tick wakeups can be counted as hits on the deepest available state - maybe only when tick wakeups dominate the wakeup pattern - but generally this is not unreasonable: When the wakeup pattern is dominated by tick wakeups, this by itself is a good enough reason to stop the tick.

Quoted 6 lines

(assuming HZ=1000 below but it doesn't matter)
That will exclude any 'intercept' logic from having much effect if the avg idle duration is >TICK_NSEC/2, which is potentially still quite a bit off from state1 residency, like in Reka's case here.
That's why I thought it would cause unreasonable regressions here. I'll give it a go as well though!

Thanks!

Note that I'd prefer to add a check if tick wakeups dominate the wakeup pattern before setting sleep_length_ns to KTIME_MAX though. I'd first like to know how the Reka's system reacts to the more drastic variant of this change.

Quoted 8 lines
Quoted 5 lines

Below are my usual tests, it's definitely visible but the impact is limited on this platform anyway. I think if we gate the KTIME_MAX setting behind the "tick wakeup dominate" it should be acceptable!
Let's see what Reka reports.

Forgot to post the full results, anyway as expected with mtdblock (a very slow / low frequent wakeup scenario) the impact becomes clearly visible. Still hopeful that the more conservative approach will be acceptable!

Speaking of which, the patch to test is appended below, but it doesn't apply directly on top of the mainline. It is based on some other patches that have been posted recently, so here's a git branch with all of the requisite material:

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git cpuidle-teo-testing

Reka, please try this one and let us know how it goes.

---
From: Rafael J. Wysocki <[email protected]>
Subject: [PATCH v1] cpuidle: governors: teo: Rework the handling of tick wakeups

If the wakeup pattern is clearly dominated by tick wakeups, count those wakeups as hits on the deepest available idle state to increase the likelihood of stopping the tick, especially on systems where there are only 2 usable idle states and the tick can only be stopped when the deeper state is selected.

This change is expected to reduce power on some systems where state 0 is selected relatively often even though they are almost idle.

---
 drivers/cpuidle/governors/teo.c |   39 ++++++++++++++++++++++++---------------
 1 file changed, 24 insertions(+), 15 deletions(-)
drivers/cpuidle/governors/teo.c +24 -15
@@ -133,17 +133,19 @@ struct teo_bin {
  * @sleep_length_ns: Time till the closest timer event (at the selection time).
  * @state_bins: Idle state data bins for this CPU.
  * @total: Grand total of the "intercepts" and "hits" metrics for all bins.
+ * @total_tick: Wakeups by the scheduler tick.
  * @tick_intercepts: "Intercepts" before TICK_NSEC.
  * @short_idles: Wakeups after short idle periods.
- * @artificial_wakeup: Set if the wakeup has been triggered by a safety net.
+ * @tick_wakeup: Set if the last wakeup was by the scheduler tick.
  */
 struct teo_cpu {
 	s64 sleep_length_ns;
 	struct teo_bin state_bins[CPUIDLE_STATE_MAX];
 	unsigned int total;
+	unsigned int total_tick;
 	unsigned int tick_intercepts;
 	unsigned int short_idles;
-	bool artificial_wakeup;
+	bool tick_wakeup;
 };
 
 static DEFINE_PER_CPU(struct teo_cpu, teo_cpus);
@@ -172,9 +174,10 @@ static void teo_update(struct cpuidle_dr
 
 	teo_decay(&cpu_data->short_idles);
 
-	if (cpu_data->artificial_wakeup) {
+	if (dev->poll_time_limit) {
+		dev->poll_time_limit = false;
 		/*
-		 * If one of the safety nets has triggered, assume that this
+		 * Polling state timeout has triggered, so assume that this
 		 * might have been a long sleep.
 		 */
 		measured_ns = S64_MAX;
@@ -223,6 +226,21 @@ static void teo_update(struct cpuidle_dr
 	cpu_data->total = total + PULSE;
 
 	teo_decay(&cpu_data->tick_intercepts);
+
+	teo_decay(&cpu_data->total_tick);
+	if (cpu_data->tick_wakeup) {
+		cpu_data->total_tick += PULSE;
+		/*
+		 * If tick wakeups dominate the wakeup pattern, count this one
+		 * as a hit on the deepest available idle state to increase the
+		 * likelihood of stopping the tick.
+		 */
+		if (3 * cpu_data->total_tick > 2 * cpu_data->total) {
+			cpu_data->state_bins[drv->state_count-1].hits += PULSE;
+			return;
+		}
+	}
+
 	/*
 	 * If the measured idle duration falls into the same bin as the sleep
 	 * length, this is a "hit", so update the "hits" metric for that bin.
@@ -512,18 +530,9 @@ static void teo_reflect(struct cpuidle_d
 {
 	struct teo_cpu *cpu_data = per_cpu_ptr(&teo_cpus, dev->cpu);
 
+	cpu_data->tick_wakeup = tick_nohz_idle_got_tick();
+
 	dev->last_state_idx = state;
-	if (dev->poll_time_limit ||
-	    (tick_nohz_idle_got_tick() && cpu_data->sleep_length_ns > TICK_NSEC)) {
-		/*
-		 * The wakeup was not "genuine", but triggered by one of the
-		 * safety nets.
-		 */
-		dev->poll_time_limit = false;
-		cpu_data->artificial_wakeup = true;
-	} else {
-		cpu_data->artificial_wakeup = false;
-	}
 }
 
 /**
#29 lore raw

Re: [PATCH v1] cpuidle: governors: teo: Rework the handling of tick wakeups

Quoted 149 lines · Rafael J. Wysocki
Quoted 138 lines · CET Christian Loehle
Quoted 137 lines · Christian Loehle
Quoted 135 lines · Rafael J. Wysocki
Quoted 120 lines · Christian Loehle
Quoted 109 lines · Rafael J. Wysocki
Quoted 6 lines · Christian Loehle
Quoted 4 lines · Rafael J. Wysocki
Quoted 2 lines · Christian Loehle

On 11/11/25 10:00, Christian Loehle wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

I see two issues:
1) Because of DECAY_SHIFT 3 values < 8 cannot decay (I guess this wouldn't really be an issue without 2))

This shouldn't be a problem.

Agreed, it should be a non-issue. Nonetheless if this wasn't the case $subject would've likely never been an issue.

Well, I think that the leftovers can be cleared when they become less than 8.

Quoted 81 lines
Quoted 55 lines
Quoted 4 lines
Quoted 4 lines

2) if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) isn't an appropriate check, it will exclude the state if it its idx_hit_sum make up the vast majority of cpu_data->total (i.e. it would have been a really good candidate actually).

Well, it would exclude the state if the sum of hits for the states below it is large enough. This is questionable (because why would hits matter here), but I attempted to make the change below and somebody reported a regression IIRC.

This check is related to the problem at hand though (see below).

Quoted 43 lines
Quoted 13 lines

I lightly tested the below, it seems to be at least comparable to mainline teo. (the documentation/comments would need adapting too, of course)

-----8<-----

drivers/cpuidle/governors/teo.c +0 -0
index bfa55c1eab5b..f8f76e3b8364 100644

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 361

Quoted 8 lines
drivers/cpuidle/governors/teo.c +1 -1
@@ -355,7 +355,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
         * all of the deeper states, a shallower idle state is likely to be a
         * better choice.
         */
-       if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {
+       if (2 * idx_intercept_sum > idx_hit_sum) {
                int first_suitable_idx = idx;
 
                /*

... nevermind the patch, idx_hit_sum is of course the sum of 0...idx-1. Maybe something like this, again lightly tested:

-----8<-----

drivers/cpuidle/governors/teo.c +2 -0
index 173ddcac540a..6bfb9cedb75e 100644
@@ -383,13 +395,15 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
                 * has been stopped already into account.
                 */
                intercept_sum = 0;
+               hit_sum = 0;
 
                for (i = idx - 1; i >= 0; i--) {
                        struct teo_bin *bin = &cpu_data->state_bins[i];
 
                        intercept_sum += bin->intercepts;
+                       hit_sum += bin->hits;
 
Quoted 10 lines

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 409

Quoted 5 lines
drivers/cpuidle/governors/teo.c +1 -1
-                       if (2 * intercept_sum > idx_intercept_sum) {
+                       if (2 * intercept_sum > cpu_data->total || 2 * hit_sum > cpu_data->total) {
                                /*
                                 * Use the current state unless it is too
                                 * shallow or disabled, in which case take the

This will only matter after the deepest state has been rejected already and on the system in question this means selecting state 0 no matter what.

Ah, right!

Quoted 11 lines

The pre-6.12 behavior can be explained if tick wakeups are taken into account.

Namely, when state 0 is chosen (because of the check mentioned above), the tick is not stopped and the sleep length is KTIME_MAX. If the subsequent wakeup is a tick one, it will be counted as a hit on the deepest state (and it will contribute to the total sum in the check mentioned above). Then, at one point, cpu_data->total will be large enough and the deepest state will become the candidate one. If tick_nohz_get_sleep_length() returns a large value at that point, the tick will be stopped and the deepest state will be entered. Nirvana ensues.

Quoted 6 lines

So fundamentally we will have to count tick-wakeups as a) nothing, which doesn't allow us to ever break out of the intercept logic that caused us to leave the tick on b) intercepts, which is bonkers and doesn't allow us to ever break out and c) hits == sleep_length would've been accurate. Of course counting a tick wakeup as a hit for sleep_length negates the intercept logic.

Quoted 8 lines

Not quite. The intercept logic is there for wakeups other than tick wakeups and timer wakeups.

I actually think that tick wakeups can be counted as hits on the deepest available state - maybe only when tick wakeups dominate the wakeup pattern - but generally this is not unreasonable: When the wakeup pattern is dominated by tick wakeups, this by itself is a good enough reason to stop the tick.

Quoted 6 lines

(assuming HZ=1000 below but it doesn't matter)
That will exclude any 'intercept' logic from having much effect if the avg idle duration is >TICK_NSEC/2, which is potentially still quite a bit off from state1 residency, like in Reka's case here.
That's why I thought it would cause unreasonable regressions here. I'll give it a go as well though!

Thanks!

Note that I'd prefer to add a check if tick wakeups dominate the wakeup pattern before setting sleep_length_ns to KTIME_MAX though. I'd first like to know how the Reka's system reacts to the more drastic variant of this change.

Quoted 8 lines
Quoted 5 lines

Below are my usual tests, it's definitely visible but the impact is limited on this platform anyway. I think if we gate the KTIME_MAX setting behind the "tick wakeup dominate" it should be acceptable!
Let's see what Reka reports.

Forgot to post the full results, anyway as expected with mtdblock (a very slow / low frequent wakeup scenario) the impact becomes clearly visible. Still hopeful that the more conservative approach will be acceptable!

Quoted 8 lines

Speaking of which, the patch to test is appended below, but it doesn't apply directly on top of the mainline. It is based on some other patches that have been posted recently, so here's a git branch with all of the requisite material:

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git cpuidle-teo-testing

Reka, please try this one and let us know how it goes.

Results attached. The residencies are a bit less deep than before - about 4.5% in WFI vs 2% at 6.6 or with the more aggressive patch. But I’m guessing that’s expected.

I also measured the power on a slightly different system where I first noticed this regression, and it’s indistinguishable from 6.6. So from my side this looks great, thank you!

/sys/devices/system/cpu/cpu0/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu0/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu0/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu0/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu0/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu0/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu0/cpuidle/state0/time:94969300 /sys/devices/system/cpu/cpu0/cpuidle/state0/usage:219385 /sys/devices/system/cpu/cpu0/cpuidle/state1/above:5583 /sys/devices/system/cpu/cpu0/cpuidle/state1/below:16110 /sys/devices/system/cpu/cpu0/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu0/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu0/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu0/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/rejected:172 /sys/devices/system/cpu/cpu0/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu0/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/time:364855825 /sys/devices/system/cpu/cpu0/cpuidle/state1/usage:21914 /sys/devices/system/cpu/cpu0/cpuidle/state2/above:8043 /sys/devices/system/cpu/cpu0/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu0/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu0/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu0/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/rejected:1855035 /sys/devices/system/cpu/cpu0/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu0/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/time:583391339 /sys/devices/system/cpu/cpu0/cpuidle/state2/usage:32260 /sys/devices/system/cpu/cpu0/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu0/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu0/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu0/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/rejected:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu0/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu1/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu1/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu1/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu1/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu1/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu1/cpuidle/state0/time:50505309 /sys/devices/system/cpu/cpu1/cpuidle/state0/usage:124278 /sys/devices/system/cpu/cpu1/cpuidle/state1/above:240 /sys/devices/system/cpu/cpu1/cpuidle/state1/below:183 /sys/devices/system/cpu/cpu1/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu1/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu1/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu1/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/rejected:18 /sys/devices/system/cpu/cpu1/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu1/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/time:11303508 /sys/devices/system/cpu/cpu1/cpuidle/state1/usage:426 /sys/devices/system/cpu/cpu1/cpuidle/state2/above:5664 /sys/devices/system/cpu/cpu1/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu1/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu1/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu1/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/rejected:2512857 /sys/devices/system/cpu/cpu1/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu1/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/time:983932726 /sys/devices/system/cpu/cpu1/cpuidle/state2/usage:19348 /sys/devices/system/cpu/cpu1/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu1/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu1/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu1/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/rejected:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu1/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu2/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu2/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu2/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu2/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu2/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu2/cpuidle/state0/time:45934866 /sys/devices/system/cpu/cpu2/cpuidle/state0/usage:112828 /sys/devices/system/cpu/cpu2/cpuidle/state1/above:137 /sys/devices/system/cpu/cpu2/cpuidle/state1/below:97 /sys/devices/system/cpu/cpu2/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu2/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu2/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu2/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/rejected:6 /sys/devices/system/cpu/cpu2/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu2/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/time:8457859 /sys/devices/system/cpu/cpu2/cpuidle/state1/usage:234 /sys/devices/system/cpu/cpu2/cpuidle/state2/above:4992 /sys/devices/system/cpu/cpu2/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu2/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu2/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu2/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/rejected:2367593 /sys/devices/system/cpu/cpu2/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu2/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/time:991774896 /sys/devices/system/cpu/cpu2/cpuidle/state2/usage:15203 /sys/devices/system/cpu/cpu2/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu2/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu2/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu2/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/rejected:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu2/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu3/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu3/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu3/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu3/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu3/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu3/cpuidle/state0/time:34511593 /sys/devices/system/cpu/cpu3/cpuidle/state0/usage:79854 /sys/devices/system/cpu/cpu3/cpuidle/state1/above:75 /sys/devices/system/cpu/cpu3/cpuidle/state1/below:76 /sys/devices/system/cpu/cpu3/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu3/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu3/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu3/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/rejected:20 /sys/devices/system/cpu/cpu3/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu3/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/time:6943930 /sys/devices/system/cpu/cpu3/cpuidle/state1/usage:151 /sys/devices/system/cpu/cpu3/cpuidle/state2/above:3576 /sys/devices/system/cpu/cpu3/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu3/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu3/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu3/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/rejected:2401590 /sys/devices/system/cpu/cpu3/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu3/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/time:1005273805 /sys/devices/system/cpu/cpu3/cpuidle/state2/usage:10684 /sys/devices/system/cpu/cpu3/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu3/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu3/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu3/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/rejected:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu3/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu4/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu4/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu4/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu4/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu4/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu4/cpuidle/state0/time:28538133 /sys/devices/system/cpu/cpu4/cpuidle/state0/usage:91315 /sys/devices/system/cpu/cpu4/cpuidle/state1/above:70 /sys/devices/system/cpu/cpu4/cpuidle/state1/below:12 /sys/devices/system/cpu/cpu4/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state1/desc:cpuoff-m /sys/devices/system/cpu/cpu4/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/latency:196 /sys/devices/system/cpu/cpu4/cpuidle/state1/name:cpuoff-m /sys/devices/system/cpu/cpu4/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/rejected:7 /sys/devices/system/cpu/cpu4/cpuidle/state1/residency:2120 /sys/devices/system/cpu/cpu4/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/time:1296982 /sys/devices/system/cpu/cpu4/cpuidle/state1/usage:83 /sys/devices/system/cpu/cpu4/cpuidle/state2/above:2461 /sys/devices/system/cpu/cpu4/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state2/desc:clusteroff-m /sys/devices/system/cpu/cpu4/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/latency:247 /sys/devices/system/cpu/cpu4/cpuidle/state2/name:clusteroff-m /sys/devices/system/cpu/cpu4/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/rejected:3380104 /sys/devices/system/cpu/cpu4/cpuidle/state2/residency:2120 /sys/devices/system/cpu/cpu4/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/time:1019526691 /sys/devices/system/cpu/cpu4/cpuidle/state2/usage:6045 /sys/devices/system/cpu/cpu4/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu4/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu4/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu4/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/rejected:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu4/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu5/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu5/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu5/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu5/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu5/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu5/cpuidle/state0/time:28456006 /sys/devices/system/cpu/cpu5/cpuidle/state0/usage:93117 /sys/devices/system/cpu/cpu5/cpuidle/state1/above:82 /sys/devices/system/cpu/cpu5/cpuidle/state1/below:18 /sys/devices/system/cpu/cpu5/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state1/desc:cpuoff-m /sys/devices/system/cpu/cpu5/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/latency:196 /sys/devices/system/cpu/cpu5/cpuidle/state1/name:cpuoff-m /sys/devices/system/cpu/cpu5/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/rejected:27 /sys/devices/system/cpu/cpu5/cpuidle/state1/residency:2120 /sys/devices/system/cpu/cpu5/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/time:401675 /sys/devices/system/cpu/cpu5/cpuidle/state1/usage:101 /sys/devices/system/cpu/cpu5/cpuidle/state2/above:2672 /sys/devices/system/cpu/cpu5/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state2/desc:clusteroff-m /sys/devices/system/cpu/cpu5/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/latency:247 /sys/devices/system/cpu/cpu5/cpuidle/state2/name:clusteroff-m /sys/devices/system/cpu/cpu5/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/rejected:3284020 /sys/devices/system/cpu/cpu5/cpuidle/state2/residency:2120 /sys/devices/system/cpu/cpu5/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/time:1021554932 /sys/devices/system/cpu/cpu5/cpuidle/state2/usage:6108 /sys/devices/system/cpu/cpu5/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu5/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu5/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu5/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/rejected:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu5/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu6/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu6/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu6/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu6/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu6/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu6/cpuidle/state0/time:29405277 /sys/devices/system/cpu/cpu6/cpuidle/state0/usage:93472 /sys/devices/system/cpu/cpu6/cpuidle/state1/above:83 /sys/devices/system/cpu/cpu6/cpuidle/state1/below:22 /sys/devices/system/cpu/cpu6/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state1/desc:cpuoff-m /sys/devices/system/cpu/cpu6/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/latency:196 /sys/devices/system/cpu/cpu6/cpuidle/state1/name:cpuoff-m /sys/devices/system/cpu/cpu6/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/rejected:25 /sys/devices/system/cpu/cpu6/cpuidle/state1/residency:2120 /sys/devices/system/cpu/cpu6/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/time:1675034 /sys/devices/system/cpu/cpu6/cpuidle/state1/usage:105 /sys/devices/system/cpu/cpu6/cpuidle/state2/above:2666 /sys/devices/system/cpu/cpu6/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state2/desc:clusteroff-m /sys/devices/system/cpu/cpu6/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/latency:247 /sys/devices/system/cpu/cpu6/cpuidle/state2/name:clusteroff-m /sys/devices/system/cpu/cpu6/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/rejected:3204667 /sys/devices/system/cpu/cpu6/cpuidle/state2/residency:2120 /sys/devices/system/cpu/cpu6/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/time:1019501515 /sys/devices/system/cpu/cpu6/cpuidle/state2/usage:6938 /sys/devices/system/cpu/cpu6/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu6/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu6/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu6/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/rejected:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu6/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu7/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu7/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu7/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu7/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu7/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu7/cpuidle/state0/time:29185886 /sys/devices/system/cpu/cpu7/cpuidle/state0/usage:88003 /sys/devices/system/cpu/cpu7/cpuidle/state1/above:76 /sys/devices/system/cpu/cpu7/cpuidle/state1/below:30 /sys/devices/system/cpu/cpu7/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state1/desc:cpuoff-b /sys/devices/system/cpu/cpu7/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/latency:147 /sys/devices/system/cpu/cpu7/cpuidle/state1/name:cpuoff-b /sys/devices/system/cpu/cpu7/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/rejected:27 /sys/devices/system/cpu/cpu7/cpuidle/state1/residency:2580 /sys/devices/system/cpu/cpu7/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/time:1561098 /sys/devices/system/cpu/cpu7/cpuidle/state1/usage:107 /sys/devices/system/cpu/cpu7/cpuidle/state2/above:3808 /sys/devices/system/cpu/cpu7/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state2/desc:clusteroff-b /sys/devices/system/cpu/cpu7/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/latency:181 /sys/devices/system/cpu/cpu7/cpuidle/state2/name:clusteroff-b /sys/devices/system/cpu/cpu7/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/rejected:3007434 /sys/devices/system/cpu/cpu7/cpuidle/state2/residency:2580 /sys/devices/system/cpu/cpu7/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/time:1017590774 /sys/devices/system/cpu/cpu7/cpuidle/state2/usage:15575 /sys/devices/system/cpu/cpu7/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu7/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu7/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu7/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/rejected:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu7/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/usage:0

/sys/devices/system/cpu/cpu0/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu0/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu0/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu0/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu0/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu0/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu0/cpuidle/state0/time:98403664 /sys/devices/system/cpu/cpu0/cpuidle/state0/usage:225994 /sys/devices/system/cpu/cpu0/cpuidle/state1/above:5642 /sys/devices/system/cpu/cpu0/cpuidle/state1/below:16481 /sys/devices/system/cpu/cpu0/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu0/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu0/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu0/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/rejected:175 /sys/devices/system/cpu/cpu0/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu0/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/time:375084790 /sys/devices/system/cpu/cpu0/cpuidle/state1/usage:22344 /sys/devices/system/cpu/cpu0/cpuidle/state2/above:8355 /sys/devices/system/cpu/cpu0/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu0/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu0/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu0/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/rejected:1855068 /sys/devices/system/cpu/cpu0/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu0/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/time:601346083 /sys/devices/system/cpu/cpu0/cpuidle/state2/usage:33330 /sys/devices/system/cpu/cpu0/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu0/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu0/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu0/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/rejected:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu0/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu1/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu1/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu1/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu1/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu1/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu1/cpuidle/state0/time:52516679 /sys/devices/system/cpu/cpu1/cpuidle/state0/usage:128243 /sys/devices/system/cpu/cpu1/cpuidle/state1/above:250 /sys/devices/system/cpu/cpu1/cpuidle/state1/below:190 /sys/devices/system/cpu/cpu1/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu1/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu1/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu1/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/rejected:22 /sys/devices/system/cpu/cpu1/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu1/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/time:11676892 /sys/devices/system/cpu/cpu1/cpuidle/state1/usage:444 /sys/devices/system/cpu/cpu1/cpuidle/state2/above:6015 /sys/devices/system/cpu/cpu1/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu1/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu1/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu1/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/rejected:2512862 /sys/devices/system/cpu/cpu1/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu1/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/time:1013234973 /sys/devices/system/cpu/cpu1/cpuidle/state2/usage:20098 /sys/devices/system/cpu/cpu1/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu1/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu1/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu1/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/rejected:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu1/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu2/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu2/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu2/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu2/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu2/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu2/cpuidle/state0/time:47347736 /sys/devices/system/cpu/cpu2/cpuidle/state0/usage:116203 /sys/devices/system/cpu/cpu2/cpuidle/state1/above:157 /sys/devices/system/cpu/cpu2/cpuidle/state1/below:101 /sys/devices/system/cpu/cpu2/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu2/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu2/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu2/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/rejected:11 /sys/devices/system/cpu/cpu2/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu2/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/time:8659658 /sys/devices/system/cpu/cpu2/cpuidle/state1/usage:258 /sys/devices/system/cpu/cpu2/cpuidle/state2/above:5150 /sys/devices/system/cpu/cpu2/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu2/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu2/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu2/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/rejected:2367598 /sys/devices/system/cpu/cpu2/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu2/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/time:1022047821 /sys/devices/system/cpu/cpu2/cpuidle/state2/usage:15610 /sys/devices/system/cpu/cpu2/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu2/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu2/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu2/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/rejected:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu2/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu3/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu3/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu3/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu3/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu3/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu3/cpuidle/state0/time:36077130 /sys/devices/system/cpu/cpu3/cpuidle/state0/usage:82534 /sys/devices/system/cpu/cpu3/cpuidle/state1/above:82 /sys/devices/system/cpu/cpu3/cpuidle/state1/below:82 /sys/devices/system/cpu/cpu3/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu3/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu3/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu3/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/rejected:24 /sys/devices/system/cpu/cpu3/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu3/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/time:7261343 /sys/devices/system/cpu/cpu3/cpuidle/state1/usage:164 /sys/devices/system/cpu/cpu3/cpuidle/state2/above:3756 /sys/devices/system/cpu/cpu3/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu3/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu3/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu3/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/rejected:2401598 /sys/devices/system/cpu/cpu3/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu3/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/time:1035242962 /sys/devices/system/cpu/cpu3/cpuidle/state2/usage:11162 /sys/devices/system/cpu/cpu3/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu3/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu3/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu3/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/rejected:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu3/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu4/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu4/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu4/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu4/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu4/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu4/cpuidle/state0/time:29426001 /sys/devices/system/cpu/cpu4/cpuidle/state0/usage:93795 /sys/devices/system/cpu/cpu4/cpuidle/state1/above:82 /sys/devices/system/cpu/cpu4/cpuidle/state1/below:13 /sys/devices/system/cpu/cpu4/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state1/desc:cpuoff-m /sys/devices/system/cpu/cpu4/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/latency:196 /sys/devices/system/cpu/cpu4/cpuidle/state1/name:cpuoff-m /sys/devices/system/cpu/cpu4/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/rejected:7 /sys/devices/system/cpu/cpu4/cpuidle/state1/residency:2120 /sys/devices/system/cpu/cpu4/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/time:1363623 /sys/devices/system/cpu/cpu4/cpuidle/state1/usage:96 /sys/devices/system/cpu/cpu4/cpuidle/state2/above:2548 /sys/devices/system/cpu/cpu4/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state2/desc:clusteroff-m /sys/devices/system/cpu/cpu4/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/latency:247 /sys/devices/system/cpu/cpu4/cpuidle/state2/name:clusteroff-m /sys/devices/system/cpu/cpu4/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/rejected:3380106 /sys/devices/system/cpu/cpu4/cpuidle/state2/residency:2120 /sys/devices/system/cpu/cpu4/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/time:1050347951 /sys/devices/system/cpu/cpu4/cpuidle/state2/usage:6246 /sys/devices/system/cpu/cpu4/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu4/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu4/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu4/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/rejected:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu4/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu5/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu5/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu5/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu5/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu5/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu5/cpuidle/state0/time:29309648 /sys/devices/system/cpu/cpu5/cpuidle/state0/usage:95508 /sys/devices/system/cpu/cpu5/cpuidle/state1/above:100 /sys/devices/system/cpu/cpu5/cpuidle/state1/below:19 /sys/devices/system/cpu/cpu5/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state1/desc:cpuoff-m /sys/devices/system/cpu/cpu5/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/latency:196 /sys/devices/system/cpu/cpu5/cpuidle/state1/name:cpuoff-m /sys/devices/system/cpu/cpu5/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/rejected:32 /sys/devices/system/cpu/cpu5/cpuidle/state1/residency:2120 /sys/devices/system/cpu/cpu5/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/time:434723 /sys/devices/system/cpu/cpu5/cpuidle/state1/usage:120 /sys/devices/system/cpu/cpu5/cpuidle/state2/above:2763 /sys/devices/system/cpu/cpu5/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state2/desc:clusteroff-m /sys/devices/system/cpu/cpu5/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/latency:247 /sys/devices/system/cpu/cpu5/cpuidle/state2/name:clusteroff-m /sys/devices/system/cpu/cpu5/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/rejected:3284025 /sys/devices/system/cpu/cpu5/cpuidle/state2/residency:2120 /sys/devices/system/cpu/cpu5/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/time:1052474426 /sys/devices/system/cpu/cpu5/cpuidle/state2/usage:6310 /sys/devices/system/cpu/cpu5/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu5/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu5/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu5/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/rejected:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu5/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu6/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu6/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu6/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu6/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu6/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu6/cpuidle/state0/time:30257268 /sys/devices/system/cpu/cpu6/cpuidle/state0/usage:95879 /sys/devices/system/cpu/cpu6/cpuidle/state1/above:101 /sys/devices/system/cpu/cpu6/cpuidle/state1/below:23 /sys/devices/system/cpu/cpu6/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state1/desc:cpuoff-m /sys/devices/system/cpu/cpu6/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/latency:196 /sys/devices/system/cpu/cpu6/cpuidle/state1/name:cpuoff-m /sys/devices/system/cpu/cpu6/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/rejected:30 /sys/devices/system/cpu/cpu6/cpuidle/state1/residency:2120 /sys/devices/system/cpu/cpu6/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/time:1764138 /sys/devices/system/cpu/cpu6/cpuidle/state1/usage:124 /sys/devices/system/cpu/cpu6/cpuidle/state2/above:2745 /sys/devices/system/cpu/cpu6/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state2/desc:clusteroff-m /sys/devices/system/cpu/cpu6/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/latency:247 /sys/devices/system/cpu/cpu6/cpuidle/state2/name:clusteroff-m /sys/devices/system/cpu/cpu6/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/rejected:3204676 /sys/devices/system/cpu/cpu6/cpuidle/state2/residency:2120 /sys/devices/system/cpu/cpu6/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/time:1050377013 /sys/devices/system/cpu/cpu6/cpuidle/state2/usage:7140 /sys/devices/system/cpu/cpu6/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu6/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu6/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu6/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/rejected:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu6/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu7/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu7/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu7/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu7/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu7/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu7/cpuidle/state0/time:30143739 /sys/devices/system/cpu/cpu7/cpuidle/state0/usage:90540 /sys/devices/system/cpu/cpu7/cpuidle/state1/above:94 /sys/devices/system/cpu/cpu7/cpuidle/state1/below:33 /sys/devices/system/cpu/cpu7/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state1/desc:cpuoff-b /sys/devices/system/cpu/cpu7/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/latency:147 /sys/devices/system/cpu/cpu7/cpuidle/state1/name:cpuoff-b /sys/devices/system/cpu/cpu7/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/rejected:32 /sys/devices/system/cpu/cpu7/cpuidle/state1/residency:2580 /sys/devices/system/cpu/cpu7/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/time:1724734 /sys/devices/system/cpu/cpu7/cpuidle/state1/usage:128 /sys/devices/system/cpu/cpu7/cpuidle/state2/above:3936 /sys/devices/system/cpu/cpu7/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state2/desc:clusteroff-b /sys/devices/system/cpu/cpu7/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/latency:181 /sys/devices/system/cpu/cpu7/cpuidle/state2/name:clusteroff-b /sys/devices/system/cpu/cpu7/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/rejected:3007443 /sys/devices/system/cpu/cpu7/cpuidle/state2/residency:2580 /sys/devices/system/cpu/cpu7/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/time:1048509059 /sys/devices/system/cpu/cpu7/cpuidle/state2/usage:16076 /sys/devices/system/cpu/cpu7/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu7/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu7/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu7/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/rejected:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu7/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/usage:0

#30 lore raw

Re: [PATCH v1] cpuidle: governors: teo: Rework the handling of tick wakeups

Quoted 159 lines · Reka Norman
Quoted 149 lines · Rafael J. Wysocki
Quoted 138 lines · CET Christian Loehle
Quoted 137 lines · Christian Loehle
Quoted 135 lines · Rafael J. Wysocki
Quoted 120 lines · Christian Loehle
Quoted 109 lines · Rafael J. Wysocki
Quoted 6 lines · Christian Loehle
Quoted 4 lines · Rafael J. Wysocki
Quoted 2 lines · Christian Loehle

On 11/11/25 10:00, Christian Loehle wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

I see two issues:
1) Because of DECAY_SHIFT 3 values < 8 cannot decay (I guess this wouldn't really be an issue without 2))

This shouldn't be a problem.

Agreed, it should be a non-issue. Nonetheless if this wasn't the case $subject would've likely never been an issue.

Well, I think that the leftovers can be cleared when they become less than 8.

Quoted 81 lines
Quoted 55 lines
Quoted 4 lines
Quoted 4 lines

2) if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) isn't an appropriate check, it will exclude the state if it its idx_hit_sum make up the vast majority of cpu_data->total (i.e. it would have been a really good candidate actually).

Well, it would exclude the state if the sum of hits for the states below it is large enough. This is questionable (because why would hits matter here), but I attempted to make the change below and somebody reported a regression IIRC.

This check is related to the problem at hand though (see below).

Quoted 43 lines
Quoted 13 lines

I lightly tested the below, it seems to be at least comparable to mainline teo. (the documentation/comments would need adapting too, of course)

-----8<-----

drivers/cpuidle/governors/teo.c +0 -0
index bfa55c1eab5b..f8f76e3b8364 100644

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 361

Quoted 8 lines
drivers/cpuidle/governors/teo.c +1 -1
@@ -355,7 +355,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
         * all of the deeper states, a shallower idle state is likely to be a
         * better choice.
         */
-       if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {
+       if (2 * idx_intercept_sum > idx_hit_sum) {
                int first_suitable_idx = idx;
 
                /*

... nevermind the patch, idx_hit_sum is of course the sum of 0...idx-1. Maybe something like this, again lightly tested:

-----8<-----

drivers/cpuidle/governors/teo.c +2 -0
index 173ddcac540a..6bfb9cedb75e 100644
@@ -383,13 +395,15 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
                 * has been stopped already into account.
                 */
                intercept_sum = 0;
+               hit_sum = 0;
 
                for (i = idx - 1; i >= 0; i--) {
                        struct teo_bin *bin = &cpu_data->state_bins[i];
 
                        intercept_sum += bin->intercepts;
+                       hit_sum += bin->hits;
 
Quoted 10 lines

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 409

Quoted 5 lines
drivers/cpuidle/governors/teo.c +1 -1
-                       if (2 * intercept_sum > idx_intercept_sum) {
+                       if (2 * intercept_sum > cpu_data->total || 2 * hit_sum > cpu_data->total) {
                                /*
                                 * Use the current state unless it is too
                                 * shallow or disabled, in which case take the

This will only matter after the deepest state has been rejected already and on the system in question this means selecting state 0 no matter what.

Ah, right!

Quoted 11 lines

The pre-6.12 behavior can be explained if tick wakeups are taken into account.

Namely, when state 0 is chosen (because of the check mentioned above), the tick is not stopped and the sleep length is KTIME_MAX. If the subsequent wakeup is a tick one, it will be counted as a hit on the deepest state (and it will contribute to the total sum in the check mentioned above). Then, at one point, cpu_data->total will be large enough and the deepest state will become the candidate one. If tick_nohz_get_sleep_length() returns a large value at that point, the tick will be stopped and the deepest state will be entered. Nirvana ensues.

Quoted 6 lines

So fundamentally we will have to count tick-wakeups as a) nothing, which doesn't allow us to ever break out of the intercept logic that caused us to leave the tick on b) intercepts, which is bonkers and doesn't allow us to ever break out and c) hits == sleep_length would've been accurate. Of course counting a tick wakeup as a hit for sleep_length negates the intercept logic.

Quoted 8 lines

Not quite. The intercept logic is there for wakeups other than tick wakeups and timer wakeups.

I actually think that tick wakeups can be counted as hits on the deepest available state - maybe only when tick wakeups dominate the wakeup pattern - but generally this is not unreasonable: When the wakeup pattern is dominated by tick wakeups, this by itself is a good enough reason to stop the tick.

Quoted 6 lines

(assuming HZ=1000 below but it doesn't matter)
That will exclude any 'intercept' logic from having much effect if the avg idle duration is >TICK_NSEC/2, which is potentially still quite a bit off from state1 residency, like in Reka's case here.
That's why I thought it would cause unreasonable regressions here. I'll give it a go as well though!

Thanks!

Note that I'd prefer to add a check if tick wakeups dominate the wakeup pattern before setting sleep_length_ns to KTIME_MAX though. I'd first like to know how the Reka's system reacts to the more drastic variant of this change.

Quoted 8 lines
Quoted 5 lines

Below are my usual tests, it's definitely visible but the impact is limited on this platform anyway. I think if we gate the KTIME_MAX setting behind the "tick wakeup dominate" it should be acceptable!
Let's see what Reka reports.

Forgot to post the full results, anyway as expected with mtdblock (a very slow / low frequent wakeup scenario) the impact becomes clearly visible. Still hopeful that the more conservative approach will be acceptable!

Quoted 8 lines

Speaking of which, the patch to test is appended below, but it doesn't apply directly on top of the mainline. It is based on some other patches that have been posted recently, so here's a git branch with all of the requisite material:

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git cpuidle-teo-testing

Reka, please try this one and let us know how it goes.

Quoted 7 lines

Results attached. The residencies are a bit less deep than before - about 4.5% in WFI vs 2% at 6.6 or with the more aggressive patch. But I’m guessing that’s expected.

I also measured the power on a slightly different system where I first noticed this regression, and it’s indistinguishable from 6.6. So from my side this looks great, thank you!

Good news!
For completeness:

Per-Cluster deltas: BIG

+---------+-------+--------------+------------+---------+--------+--------+---------+--------+---------+
| cluster | state | name         | timeΔ      | time%   | usageΔ | aboveΔ | above%  | belowΔ | below%  |
+=========+=======+==============+============+=========+========+========+=========+========+=========+
| BIG     |     0 | WFI          | 957,853    |   2.99% | 2,537  | 0      |   0.00% | 0      |   0.00% |
| BIG     |     1 | cpuoff-b     | 163,636    |   0.51% | 21     | 18     |  85.71% | 3      |  14.29% |
| BIG     |     2 | clusteroff-b | 30,918,285 |  96.50% | 501    | 128    |  25.55% | 0      |   0.00% |
| BIG     |     3 | s2idle       | 0          |   0.00% | 0      | 0      |   0.00% | 0      |   0.00% |
| BIG     | TOTAL |              | 32,039,774 | 100.00% | 3,059  | 146    |   4.77% | 3      |   0.10% |
+---------+-------+--------------+------------+---------+--------+--------+---------+--------+---------+

Per-Cluster deltas: LITTLE

+---------+-------+--------------+-------------+---------+--------+--------+---------+--------+---------+
| cluster | state | name         | timeΔ       | time%   | usageΔ | aboveΔ | above%  | belowΔ | below%  |
+=========+=======+==============+=============+=========+========+========+=========+========+=========+
| LITTLE  |     0 | WFI          | 8,424,141   |   6.63% | 16,629 | 0      |   0.00% | 0      |   0.00% |
| LITTLE  |     1 | cpuoff-l     | 11,121,561  |   8.75% | 485    | 96     |  19.79% | 388    |  80.00% |
| LITTLE  |     2 | clusteroff-l | 107,499,073 |  84.62% | 2,705  | 1,001  |  37.01% | 0      |   0.00% |
| LITTLE  |     3 | s2idle       | 0           |   0.00% | 0      | 0      |   0.00% | 0      |   0.00% |
| LITTLE  | TOTAL |              | 127,044,775 | 100.00% | 19,819 | 1,097  |   5.54% | 388    |   1.96% |
+---------+-------+--------------+-------------+---------+--------+--------+---------+--------+---------+

Per-Cluster deltas: MID

+---------+-------+--------------+------------+---------+--------+--------+---------+--------+---------+
| cluster | state | name         | timeΔ      | time%   | usageΔ | aboveΔ | above%  | belowΔ | below%  |
+=========+=======+==============+============+=========+========+========+=========+========+=========+
| MID     |     0 | WFI          | 2,593,501  |   2.72% | 7,278  | 0      |   0.00% | 0      |   0.00% |
| MID     |     1 | cpuoff-m     | 188,793    |   0.20% | 51     | 48     |  94.12% | 3      |   5.88% |
| MID     |     2 | clusteroff-m | 92,616,252 |  97.08% | 605    | 257    |  42.48% | 0      |   0.00% |
| MID     |     3 | s2idle       | 0          |   0.00% | 0      | 0      |   0.00% | 0      |   0.00% |
| MID     | TOTAL |              | 95,398,546 | 100.00% | 7,934  | 305    |   3.84% | 3      |   0.04% |
+---------+-------+--------------+------------+---------+--------+--------+---------+--------+---------+

Out of curiosity:
Do you know if the platform respects cpuoff / clusteroff distinction properly? Is the power difference measurable?
There really is no reason for cpuidle to not autopromote them, if there's no latency requirement that would prevent that.
Especially for the big cluster (just one CPU).

#31 lore raw

Re: [PATCH v1] cpuidle: governors: teo: Rework the handling of tick wakeups

Quoted 165 lines · Christian Loehle
Quoted 163 lines · Reka Norman
Quoted 149 lines · Rafael J. Wysocki
Quoted 138 lines · CET Christian Loehle
Quoted 137 lines · Christian Loehle
Quoted 135 lines · Rafael J. Wysocki
Quoted 120 lines · Christian Loehle
Quoted 109 lines · Rafael J. Wysocki
Quoted 6 lines · Christian Loehle
Quoted 4 lines · Rafael J. Wysocki
Quoted 2 lines · Christian Loehle

On 11/11/25 10:00, Christian Loehle wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

I see two issues:
1) Because of DECAY_SHIFT 3 values < 8 cannot decay (I guess this wouldn't really be an issue without 2))

This shouldn't be a problem.

Agreed, it should be a non-issue. Nonetheless if this wasn't the case $subject would've likely never been an issue.

Well, I think that the leftovers can be cleared when they become less than 8.

Quoted 81 lines
Quoted 55 lines
Quoted 4 lines
Quoted 4 lines

2) if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) isn't an appropriate check, it will exclude the state if it its idx_hit_sum make up the vast majority of cpu_data->total (i.e. it would have been a really good candidate actually).

Well, it would exclude the state if the sum of hits for the states below it is large enough. This is questionable (because why would hits matter here), but I attempted to make the change below and somebody reported a regression IIRC.

This check is related to the problem at hand though (see below).

Quoted 43 lines
Quoted 13 lines

I lightly tested the below, it seems to be at least comparable to mainline teo. (the documentation/comments would need adapting too, of course)

-----8<-----

drivers/cpuidle/governors/teo.c +0 -0
index bfa55c1eab5b..f8f76e3b8364 100644

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 361

Quoted 8 lines
drivers/cpuidle/governors/teo.c +1 -1
@@ -355,7 +355,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
         * all of the deeper states, a shallower idle state is likely to be a
         * better choice.
         */
-       if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {
+       if (2 * idx_intercept_sum > idx_hit_sum) {
                int first_suitable_idx = idx;
 
                /*

... nevermind the patch, idx_hit_sum is of course the sum of 0...idx-1. Maybe something like this, again lightly tested:

-----8<-----

drivers/cpuidle/governors/teo.c +2 -0
index 173ddcac540a..6bfb9cedb75e 100644
@@ -383,13 +395,15 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
                 * has been stopped already into account.
                 */
                intercept_sum = 0;
+               hit_sum = 0;
 
                for (i = idx - 1; i >= 0; i--) {
                        struct teo_bin *bin = &cpu_data->state_bins[i];
 
                        intercept_sum += bin->intercepts;
+                       hit_sum += bin->hits;
 
Quoted 10 lines

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 409

Quoted 5 lines
drivers/cpuidle/governors/teo.c +1 -1
-                       if (2 * intercept_sum > idx_intercept_sum) {
+                       if (2 * intercept_sum > cpu_data->total || 2 * hit_sum > cpu_data->total) {
                                /*
                                 * Use the current state unless it is too
                                 * shallow or disabled, in which case take the

This will only matter after the deepest state has been rejected already and on the system in question this means selecting state 0 no matter what.

Ah, right!

Quoted 11 lines

The pre-6.12 behavior can be explained if tick wakeups are taken into account.

Namely, when state 0 is chosen (because of the check mentioned above), the tick is not stopped and the sleep length is KTIME_MAX. If the subsequent wakeup is a tick one, it will be counted as a hit on the deepest state (and it will contribute to the total sum in the check mentioned above). Then, at one point, cpu_data->total will be large enough and the deepest state will become the candidate one. If tick_nohz_get_sleep_length() returns a large value at that point, the tick will be stopped and the deepest state will be entered. Nirvana ensues.

Quoted 6 lines

So fundamentally we will have to count tick-wakeups as a) nothing, which doesn't allow us to ever break out of the intercept logic that caused us to leave the tick on b) intercepts, which is bonkers and doesn't allow us to ever break out and c) hits == sleep_length would've been accurate. Of course counting a tick wakeup as a hit for sleep_length negates the intercept logic.

Quoted 8 lines

Not quite. The intercept logic is there for wakeups other than tick wakeups and timer wakeups.

I actually think that tick wakeups can be counted as hits on the deepest available state - maybe only when tick wakeups dominate the wakeup pattern - but generally this is not unreasonable: When the wakeup pattern is dominated by tick wakeups, this by itself is a good enough reason to stop the tick.

Quoted 6 lines

(assuming HZ=1000 below but it doesn't matter)
That will exclude any 'intercept' logic from having much effect if the avg idle duration is >TICK_NSEC/2, which is potentially still quite a bit off from state1 residency, like in Reka's case here.
That's why I thought it would cause unreasonable regressions here. I'll give it a go as well though!

Thanks!

Note that I'd prefer to add a check if tick wakeups dominate the wakeup pattern before setting sleep_length_ns to KTIME_MAX though. I'd first like to know how the Reka's system reacts to the more drastic variant of this change.

Quoted 8 lines
Quoted 5 lines

Below are my usual tests, it's definitely visible but the impact is limited on this platform anyway. I think if we gate the KTIME_MAX setting behind the "tick wakeup dominate" it should be acceptable!
Let's see what Reka reports.

Forgot to post the full results, anyway as expected with mtdblock (a very slow / low frequent wakeup scenario) the impact becomes clearly visible. Still hopeful that the more conservative approach will be acceptable!

Quoted 8 lines

Speaking of which, the patch to test is appended below, but it doesn't apply directly on top of the mainline. It is based on some other patches that have been posted recently, so here's a git branch with all of the requisite material:

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git cpuidle-teo-testing

Reka, please try this one and let us know how it goes.

Results attached. The residencies are a bit less deep than before - about 4.5% in WFI vs 2% at 6.6 or with the more aggressive patch. But I’m guessing that’s expected.

Quoted 5 lines
Quoted 3 lines

I also measured the power on a slightly different system where I first noticed this regression, and it’s indistinguishable from 6.6. So from my side this looks great, thank you!

Good news!

So I'm going to queue this up for 6.19 along with the material it depends on.

I'd rather not rush it into 6.18-rc7 because it would not get meaningful exposure in linux-next before appearing in the mainline in that case.

Reka, I'm going to add your Tested-by: to it, please let me know if there are any concerns regarding that.

Now, I think that it needs to go into -stable (6.12+ I suppose?) and I'm going to instruct -stable to pick up the dependencies along with it.

Thanks!

#32 lore raw

Re: [PATCH v1] cpuidle: governors: teo: Rework the handling of tick wakeups

Quoted 171 lines · Rafael J. Wysocki
Quoted 169 lines · Christian Loehle
Quoted 166 lines · Reka Norman
Quoted 149 lines · Rafael J. Wysocki
Quoted 138 lines · CET Christian Loehle
Quoted 137 lines · Christian Loehle
Quoted 135 lines · Rafael J. Wysocki
Quoted 120 lines · Christian Loehle
Quoted 109 lines · Rafael J. Wysocki
Quoted 6 lines · Christian Loehle
Quoted 4 lines · Rafael J. Wysocki
Quoted 2 lines · Christian Loehle

On 11/11/25 10:00, Christian Loehle wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

I see two issues:
1) Because of DECAY_SHIFT 3 values < 8 cannot decay (I guess this wouldn't really be an issue without 2))

This shouldn't be a problem.

Agreed, it should be a non-issue. Nonetheless if this wasn't the case $subject would've likely never been an issue.

Well, I think that the leftovers can be cleared when they become less than 8.

Quoted 81 lines
Quoted 55 lines
Quoted 4 lines
Quoted 4 lines

2) if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) isn't an appropriate check, it will
exclude the state if it its idx_hit_sum make up the vast majority of cpu_data->total (i.e. it would
have been a really good candidate actually).

Well, it would exclude the state if the sum of hits for the states below it is large enough. This is questionable (because why would hits matter here), but I attempted to make the change below and somebody reported a regression IIRC.

This check is related to the problem at hand though (see below).

Quoted 43 lines
Quoted 21 lines

I lightly tested the below, it seems to be at least comparable to mainline teo.
(the documentation/comments would need adapting too, of course)

-----8<-----

diff --git a/drivers/cpuidle/governors/teo.c b/drivers/cpuidle/governors/teo.c
index bfa55c1eab5b..f8f76e3b8364 100644
--- a/drivers/cpuidle/governors/teo.c
+++ b/drivers/cpuidle/governors/teo.c
@@ -355,7 +355,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
* all of the deeper states, a shallower idle state is likely to be a
* better choice.
*/
- if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {
+ if (2 * idx_intercept_sum > idx_hit_sum) {
int first_suitable_idx = idx;

/*

... nevermind the patch, idx_hit_sum is of course the sum of 0...idx-1. Maybe something like this, again lightly tested:

-----8<-----

drivers/cpuidle/governors/teo.c +2 -0
index 173ddcac540a..6bfb9cedb75e 100644
@@ -383,13 +395,15 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
                 * has been stopped already into account.
                 */
                intercept_sum = 0;
+               hit_sum = 0;
 
                for (i = idx - 1; i >= 0; i--) {
                        struct teo_bin *bin = &cpu_data->state_bins[i];
 
                        intercept_sum += bin->intercepts;
+                       hit_sum += bin->hits;
 
Quoted 10 lines

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 409

Quoted 5 lines
drivers/cpuidle/governors/teo.c +1 -1
-                       if (2 * intercept_sum > idx_intercept_sum) {
+                       if (2 * intercept_sum > cpu_data->total || 2 * hit_sum > cpu_data->total) {
                                /*
                                 * Use the current state unless it is too
                                 * shallow or disabled, in which case take the

This will only matter after the deepest state has been rejected already and on the system in question this means selecting state 0 no matter what.

Ah, right!

Quoted 11 lines

The pre-6.12 behavior can be explained if tick wakeups are taken into account.

Namely, when state 0 is chosen (because of the check mentioned above), the tick is not stopped and the sleep length is KTIME_MAX. If the subsequent wakeup is a tick one, it will be counted as a hit on the deepest state (and it will contribute to the total sum in the check mentioned above). Then, at one point, cpu_data->total will be large enough and the deepest state will become the candidate one. If tick_nohz_get_sleep_length() returns a large value at that point, the tick will be stopped and the deepest state will be entered. Nirvana ensues.

Quoted 6 lines

So fundamentally we will have to count tick-wakeups as a) nothing, which doesn't allow us to ever break out of the intercept logic that caused us to leave the tick on b) intercepts, which is bonkers and doesn't allow us to ever break out and c) hits == sleep_length would've been accurate. Of course counting a tick wakeup as a hit for sleep_length negates the intercept logic.

Quoted 8 lines

Not quite. The intercept logic is there for wakeups other than tick wakeups and timer wakeups.

I actually think that tick wakeups can be counted as hits on the deepest available state - maybe only when tick wakeups dominate the wakeup pattern - but generally this is not unreasonable: When the wakeup pattern is dominated by tick wakeups, this by itself is a good enough reason to stop the tick.

Quoted 6 lines

(assuming HZ=1000 below but it doesn't matter)
That will exclude any 'intercept' logic from having much effect if the avg idle duration is >TICK_NSEC/2, which is potentially still quite a bit off from state1 residency, like in Reka's case here.
That's why I thought it would cause unreasonable regressions here. I'll give it a go as well though!

Thanks!

Note that I'd prefer to add a check if tick wakeups dominate the wakeup pattern before setting sleep_length_ns to KTIME_MAX though. I'd first like to know how the Reka's system reacts to the more drastic variant of this change.

Quoted 8 lines
Quoted 5 lines

Below are my usual tests, it's definitely visible but the impact is limited on this platform anyway. I think if we gate the KTIME_MAX setting behind the "tick wakeup dominate" it should be acceptable!
Let's see what Reka reports.

Forgot to post the full results, anyway as expected with mtdblock (a very slow / low frequent wakeup scenario) the impact becomes clearly visible. Still hopeful that the more conservative approach will be acceptable!

Quoted 8 lines

Speaking of which, the patch to test is appended below, but it doesn't apply directly on top of the mainline. It is based on some other patches that have been posted recently, so here's a git branch with all of the requisite material:

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git cpuidle-teo-testing

Reka, please try this one and let us know how it goes.

Results attached. The residencies are a bit less deep than before - about 4.5% in WFI vs 2% at 6.6 or with the more aggressive patch. But I’m guessing that’s expected.

I also measured the power on a slightly different system where I first noticed this regression, and it’s indistinguishable from 6.6. So from my side this looks great, thank you!

Quoted 7 lines
Quoted 1 line

Good news!

So I'm going to queue this up for 6.19 along with the material it depends on.

I'd rather not rush it into 6.18-rc7 because it would not get meaningful exposure in linux-next before appearing in the mainline in that case.

Ack

Quoted 8 lines

Reka, I'm going to add your Tested-by: to it, please let me know if there are any concerns regarding that.

Now, I think that it needs to go into -stable (6.12+ I suppose?) and I'm going to instruct -stable to pick up the dependencies along with it.

Would be nice to get teo slightly more aligned, agreed! As noted I don't think it's 6.12+ only but clearly that's where the impact of the issue is the highest.
Thanks for fixing this!

#33 lore raw

Re: [PATCH v1] cpuidle: governors: teo: Rework the handling of tick wakeups

Quoted 192 lines · Christian Loehle
Quoted 171 lines · Rafael J. Wysocki
Quoted 169 lines · Christian Loehle
Quoted 166 lines · Reka Norman
Quoted 149 lines · Rafael J. Wysocki
Quoted 138 lines · CET Christian Loehle
Quoted 137 lines · Christian Loehle
Quoted 135 lines · Rafael J. Wysocki
Quoted 120 lines · Christian Loehle
Quoted 109 lines · Rafael J. Wysocki
Quoted 6 lines · Christian Loehle
Quoted 4 lines · Rafael J. Wysocki
Quoted 2 lines · Christian Loehle

On 11/11/25 10:00, Christian Loehle wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

I see two issues:
1) Because of DECAY_SHIFT 3 values < 8 cannot decay (I guess this wouldn't really be an issue without 2))

This shouldn't be a problem.

Agreed, it should be a non-issue. Nonetheless if this wasn't the case $subject would've likely never been an issue.

Well, I think that the leftovers can be cleared when they become less than 8.

Quoted 81 lines
Quoted 55 lines
Quoted 4 lines

2) if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) isn't an appropriate check, it will
exclude the state if it its idx_hit_sum make up the vast majority of cpu_data->total (i.e. it would
have been a really good candidate actually).

Well, it would exclude the state if the sum of hits for the states below it is large enough. This is questionable (because why would hits matter here), but I attempted to make the change below and somebody reported a regression IIRC.

This check is related to the problem at hand though (see below).

Quoted 43 lines

I lightly tested the below, it seems to be at least comparable to mainline teo.
(the documentation/comments would need adapting too, of course)

-----8<-----

diff --git a/drivers/cpuidle/governors/teo.c b/drivers/cpuidle/governors/teo.c
index bfa55c1eab5b..f8f76e3b8364 100644
--- a/drivers/cpuidle/governors/teo.c
+++ b/drivers/cpuidle/governors/teo.c
@@ -355,7 +355,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
* all of the deeper states, a shallower idle state is likely to be a
* better choice.
*/
- if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {
+ if (2 * idx_intercept_sum > idx_hit_sum) {
int first_suitable_idx = idx;

/*

... nevermind the patch, idx_hit_sum is of course the sum of 0...idx-1.
Maybe something like this, again lightly tested:

-----8<-----

diff --git a/drivers/cpuidle/governors/teo.c b/drivers/cpuidle/governors/teo.c
index 173ddcac540a..6bfb9cedb75e 100644
--- a/drivers/cpuidle/governors/teo.c
+++ b/drivers/cpuidle/governors/teo.c
@@ -383,13 +395,15 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
* has been stopped already into account.
*/
intercept_sum = 0;
+ hit_sum = 0;

for (i = idx - 1; i >= 0; i--) {
struct teo_bin *bin = &cpu_data->state_bins[i];

intercept_sum += bin->intercepts;
+ hit_sum += bin->hits;

Quoted 10 lines
Quoted 5 lines

- if (2 * intercept_sum > idx_intercept_sum) {
+ if (2 * intercept_sum > cpu_data->total || 2 * hit_sum > cpu_data->total) {
/*
* Use the current state unless it is too
* shallow or disabled, in which case take the

This will only matter after the deepest state has been rejected already and on the system in question this means selecting state 0 no matter what.

Ah, right!

Quoted 11 lines

The pre-6.12 behavior can be explained if tick wakeups are taken into account.

Namely, when state 0 is chosen (because of the check mentioned above), the tick is not stopped and the sleep length is KTIME_MAX. If the subsequent wakeup is a tick one, it will be counted as a hit on the deepest state (and it will contribute to the total sum in the check mentioned above). Then, at one point, cpu_data->total will be large enough and the deepest state will become the candidate one. If tick_nohz_get_sleep_length() returns a large value at that point, the tick will be stopped and the deepest state will be entered. Nirvana ensues.

Quoted 6 lines

So fundamentally we will have to count tick-wakeups as a) nothing, which doesn't allow us to ever break out of the intercept logic that caused us to leave the tick on b) intercepts, which is bonkers and doesn't allow us to ever break out and c) hits == sleep_length would've been accurate. Of course counting a tick wakeup as a hit for sleep_length negates the intercept logic.

Quoted 8 lines

Not quite. The intercept logic is there for wakeups other than tick wakeups and timer wakeups.

I actually think that tick wakeups can be counted as hits on the deepest available state - maybe only when tick wakeups dominate the wakeup pattern - but generally this is not unreasonable: When the wakeup pattern is dominated by tick wakeups, this by itself is a good enough reason to stop the tick.

Quoted 6 lines

(assuming HZ=1000 below but it doesn't matter)
That will exclude any 'intercept' logic from having much effect if the avg idle duration is >TICK_NSEC/2, which is potentially still quite a bit off from state1 residency, like in Reka's case here.
That's why I thought it would cause unreasonable regressions here. I'll give it a go as well though!

Thanks!

Note that I'd prefer to add a check if tick wakeups dominate the wakeup pattern before setting sleep_length_ns to KTIME_MAX though. I'd first like to know how the Reka's system reacts to the more drastic variant of this change.

Quoted 8 lines
Quoted 5 lines

Below are my usual tests, it's definitely visible but the impact is limited on this platform anyway. I think if we gate the KTIME_MAX setting behind the "tick wakeup dominate" it should be acceptable!
Let's see what Reka reports.

Forgot to post the full results, anyway as expected with mtdblock (a very slow / low frequent wakeup scenario) the impact becomes clearly visible. Still hopeful that the more conservative approach will be acceptable!

Quoted 8 lines

Speaking of which, the patch to test is appended below, but it doesn't apply directly on top of the mainline. It is based on some other patches that have been posted recently, so here's a git branch with all of the requisite material:

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git cpuidle-teo-testing

Reka, please try this one and let us know how it goes.

Results attached. The residencies are a bit less deep than before - about 4.5% in WFI vs 2% at 6.6 or with the more aggressive patch. But I’m guessing that’s expected.

I also measured the power on a slightly different system where I first noticed this regression, and it’s indistinguishable from 6.6. So from my side this looks great, thank you!

Quoted 7 lines
Quoted 1 line

Good news!

So I'm going to queue this up for 6.19 along with the material it depends on.

I'd rather not rush it into 6.18-rc7 because it would not get meaningful exposure in linux-next before appearing in the mainline in that case.

Ack

Quoted 8 lines

Reka, I'm going to add your Tested-by: to it, please let me know if there are any concerns regarding that.

Now, I think that it needs to go into -stable (6.12+ I suppose?) and I'm going to instruct -stable to pick up the dependencies along with it.

Quoted 4 lines

Would be nice to get teo slightly more aligned, agreed! As noted I don't think it's 6.12+ only but clearly that's where the impact of the issue is the highest.
Thanks for fixing this!

Anytime!

#34 lore raw

Re: [PATCH v1] cpuidle: governors: teo: Rework the handling of tick wakeups

In reply to Rafael J. Wysocki
Quoted 174 lines · Rafael J. Wysocki
Quoted 165 lines · Christian Loehle
Quoted 163 lines · Reka Norman
Quoted 149 lines · Rafael J. Wysocki
Quoted 138 lines · CET Christian Loehle
Quoted 137 lines · Christian Loehle
Quoted 135 lines · Rafael J. Wysocki
Quoted 120 lines · Christian Loehle
Quoted 109 lines · Rafael J. Wysocki
Quoted 6 lines · Christian Loehle
Quoted 4 lines · Rafael J. Wysocki
Quoted 2 lines · Christian Loehle

On 11/11/25 10:00, Christian Loehle wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

I see two issues:
1) Because of DECAY_SHIFT 3 values < 8 cannot decay (I guess this wouldn't really be an issue without 2))

This shouldn't be a problem.

Agreed, it should be a non-issue. Nonetheless if this wasn't the case $subject would've likely never been an issue.

Well, I think that the leftovers can be cleared when they become less than 8.

Quoted 81 lines
Quoted 55 lines
Quoted 4 lines
Quoted 4 lines

2) if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) isn't an appropriate check, it will
exclude the state if it its idx_hit_sum make up the vast majority of cpu_data->total (i.e. it would
have been a really good candidate actually).

Well, it would exclude the state if the sum of hits for the states below it is large enough. This is questionable (because why would hits matter here), but I attempted to make the change below and somebody reported a regression IIRC.

This check is related to the problem at hand though (see below).

Quoted 43 lines
Quoted 21 lines

I lightly tested the below, it seems to be at least comparable to mainline teo.
(the documentation/comments would need adapting too, of course)

-----8<-----

diff --git a/drivers/cpuidle/governors/teo.c b/drivers/cpuidle/governors/teo.c
index bfa55c1eab5b..f8f76e3b8364 100644
--- a/drivers/cpuidle/governors/teo.c
+++ b/drivers/cpuidle/governors/teo.c
@@ -355,7 +355,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
* all of the deeper states, a shallower idle state is likely to be a
* better choice.
*/
- if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {
+ if (2 * idx_intercept_sum > idx_hit_sum) {
int first_suitable_idx = idx;

/*

... nevermind the patch, idx_hit_sum is of course the sum of 0...idx-1. Maybe something like this, again lightly tested:

-----8<-----

drivers/cpuidle/governors/teo.c +2 -0
index 173ddcac540a..6bfb9cedb75e 100644
@@ -383,13 +395,15 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
                 * has been stopped already into account.
                 */
                intercept_sum = 0;
+               hit_sum = 0;
 
                for (i = idx - 1; i >= 0; i--) {
                        struct teo_bin *bin = &cpu_data->state_bins[i];
 
                        intercept_sum += bin->intercepts;
+                       hit_sum += bin->hits;
 
Quoted 10 lines

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 409

Quoted 5 lines
drivers/cpuidle/governors/teo.c +1 -1
-                       if (2 * intercept_sum > idx_intercept_sum) {
+                       if (2 * intercept_sum > cpu_data->total || 2 * hit_sum > cpu_data->total) {
                                /*
                                 * Use the current state unless it is too
                                 * shallow or disabled, in which case take the

This will only matter after the deepest state has been rejected already and on the system in question this means selecting state 0 no matter what.

Ah, right!

Quoted 11 lines

The pre-6.12 behavior can be explained if tick wakeups are taken into account.

Namely, when state 0 is chosen (because of the check mentioned above), the tick is not stopped and the sleep length is KTIME_MAX. If the subsequent wakeup is a tick one, it will be counted as a hit on the deepest state (and it will contribute to the total sum in the check mentioned above). Then, at one point, cpu_data->total will be large enough and the deepest state will become the candidate one. If tick_nohz_get_sleep_length() returns a large value at that point, the tick will be stopped and the deepest state will be entered. Nirvana ensues.

Quoted 6 lines

So fundamentally we will have to count tick-wakeups as a) nothing, which doesn't allow us to ever break out of the intercept logic that caused us to leave the tick on b) intercepts, which is bonkers and doesn't allow us to ever break out and c) hits == sleep_length would've been accurate. Of course counting a tick wakeup as a hit for sleep_length negates the intercept logic.

Quoted 8 lines

Not quite. The intercept logic is there for wakeups other than tick wakeups and timer wakeups.

I actually think that tick wakeups can be counted as hits on the deepest available state - maybe only when tick wakeups dominate the wakeup pattern - but generally this is not unreasonable: When the wakeup pattern is dominated by tick wakeups, this by itself is a good enough reason to stop the tick.

Quoted 6 lines

(assuming HZ=1000 below but it doesn't matter)
That will exclude any 'intercept' logic from having much effect if the avg idle duration is >TICK_NSEC/2, which is potentially still quite a bit off from state1 residency, like in Reka's case here.
That's why I thought it would cause unreasonable regressions here. I'll give it a go as well though!

Thanks!

Note that I'd prefer to add a check if tick wakeups dominate the wakeup pattern before setting sleep_length_ns to KTIME_MAX though. I'd first like to know how the Reka's system reacts to the more drastic variant of this change.

Quoted 8 lines
Quoted 5 lines

Below are my usual tests, it's definitely visible but the impact is limited on this platform anyway. I think if we gate the KTIME_MAX setting behind the "tick wakeup dominate" it should be acceptable!
Let's see what Reka reports.

Forgot to post the full results, anyway as expected with mtdblock (a very slow / low frequent wakeup scenario) the impact becomes clearly visible. Still hopeful that the more conservative approach will be acceptable!

Quoted 8 lines

Speaking of which, the patch to test is appended below, but it doesn't apply directly on top of the mainline. It is based on some other patches that have been posted recently, so here's a git branch with all of the requisite material:

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git cpuidle-teo-testing

Reka, please try this one and let us know how it goes.

Results attached. The residencies are a bit less deep than before - about 4.5% in WFI vs 2% at 6.6 or with the more aggressive patch. But I’m guessing that’s expected.

Quoted 5 lines
Quoted 3 lines

I also measured the power on a slightly different system where I first noticed this regression, and it’s indistinguishable from 6.6. So from my side this looks great, thank you!

Good news!

Quoted 8 lines

So I'm going to queue this up for 6.19 along with the material it depends on.

I'd rather not rush it into 6.18-rc7 because it would not get meaningful exposure in linux-next before appearing in the mainline in that case.

Reka, I'm going to add your Tested-by: to it, please let me know if there are any concerns regarding that.

No concerns, thank you.

And thanks a lot to both of you for the quick investigation and fix, it’s really appreciated!

#35 lore raw

Re: [PATCH v1] cpuidle: governors: teo: Rework the handling of tick wakeups

In reply to Christian Loehle
Quoted 208 lines · Christian Loehle
Quoted 159 lines · Reka Norman
Quoted 149 lines · Rafael J. Wysocki
Quoted 138 lines · CET Christian Loehle
Quoted 137 lines · Christian Loehle
Quoted 135 lines · Rafael J. Wysocki
Quoted 120 lines · Christian Loehle
Quoted 109 lines · Rafael J. Wysocki
Quoted 6 lines · Christian Loehle
Quoted 4 lines · Rafael J. Wysocki
Quoted 2 lines · Christian Loehle

On 11/11/25 10:00, Christian Loehle wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

I see two issues:
1) Because of DECAY_SHIFT 3 values < 8 cannot decay (I guess this wouldn't really be an issue without 2))

This shouldn't be a problem.

Agreed, it should be a non-issue. Nonetheless if this wasn't the case $subject would've likely never been an issue.

Well, I think that the leftovers can be cleared when they become less than 8.

Quoted 81 lines
Quoted 55 lines
Quoted 4 lines
Quoted 4 lines

2) if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) isn't an appropriate check, it will exclude the state if it its idx_hit_sum make up the vast majority of cpu_data->total (i.e. it would have been a really good candidate actually).

Well, it would exclude the state if the sum of hits for the states below it is large enough. This is questionable (because why would hits matter here), but I attempted to make the change below and somebody reported a regression IIRC.

This check is related to the problem at hand though (see below).

Quoted 43 lines
Quoted 13 lines

I lightly tested the below, it seems to be at least comparable to mainline teo. (the documentation/comments would need adapting too, of course)

-----8<-----

drivers/cpuidle/governors/teo.c +0 -0
index bfa55c1eab5b..f8f76e3b8364 100644

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 361

Quoted 8 lines
drivers/cpuidle/governors/teo.c +1 -1
@@ -355,7 +355,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
         * all of the deeper states, a shallower idle state is likely to be a
         * better choice.
         */
-       if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {
+       if (2 * idx_intercept_sum > idx_hit_sum) {
                int first_suitable_idx = idx;
 
                /*

... nevermind the patch, idx_hit_sum is of course the sum of 0...idx-1. Maybe something like this, again lightly tested:

-----8<-----

drivers/cpuidle/governors/teo.c +2 -0
index 173ddcac540a..6bfb9cedb75e 100644
@@ -383,13 +395,15 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
                 * has been stopped already into account.
                 */
                intercept_sum = 0;
+               hit_sum = 0;
 
                for (i = idx - 1; i >= 0; i--) {
                        struct teo_bin *bin = &cpu_data->state_bins[i];
 
                        intercept_sum += bin->intercepts;
+                       hit_sum += bin->hits;
 
Quoted 10 lines

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 409

Quoted 5 lines
drivers/cpuidle/governors/teo.c +1 -1
-                       if (2 * intercept_sum > idx_intercept_sum) {
+                       if (2 * intercept_sum > cpu_data->total || 2 * hit_sum > cpu_data->total) {
                                /*
                                 * Use the current state unless it is too
                                 * shallow or disabled, in which case take the

This will only matter after the deepest state has been rejected already and on the system in question this means selecting state 0 no matter what.

Ah, right!

Quoted 11 lines

The pre-6.12 behavior can be explained if tick wakeups are taken into account.

Namely, when state 0 is chosen (because of the check mentioned above), the tick is not stopped and the sleep length is KTIME_MAX. If the subsequent wakeup is a tick one, it will be counted as a hit on the deepest state (and it will contribute to the total sum in the check mentioned above). Then, at one point, cpu_data->total will be large enough and the deepest state will become the candidate one. If tick_nohz_get_sleep_length() returns a large value at that point, the tick will be stopped and the deepest state will be entered. Nirvana ensues.

Quoted 6 lines

So fundamentally we will have to count tick-wakeups as a) nothing, which doesn't allow us to ever break out of the intercept logic that caused us to leave the tick on b) intercepts, which is bonkers and doesn't allow us to ever break out and c) hits == sleep_length would've been accurate. Of course counting a tick wakeup as a hit for sleep_length negates the intercept logic.

Quoted 8 lines

Not quite. The intercept logic is there for wakeups other than tick wakeups and timer wakeups.

I actually think that tick wakeups can be counted as hits on the deepest available state - maybe only when tick wakeups dominate the wakeup pattern - but generally this is not unreasonable: When the wakeup pattern is dominated by tick wakeups, this by itself is a good enough reason to stop the tick.

Quoted 6 lines

(assuming HZ=1000 below but it doesn't matter)
That will exclude any 'intercept' logic from having much effect if the avg idle duration is >TICK_NSEC/2, which is potentially still quite a bit off from state1 residency, like in Reka's case here.
That's why I thought it would cause unreasonable regressions here. I'll give it a go as well though!

Thanks!

Note that I'd prefer to add a check if tick wakeups dominate the wakeup pattern before setting sleep_length_ns to KTIME_MAX though. I'd first like to know how the Reka's system reacts to the more drastic variant of this change.

Quoted 8 lines
Quoted 5 lines

Below are my usual tests, it's definitely visible but the impact is limited on this platform anyway. I think if we gate the KTIME_MAX setting behind the "tick wakeup dominate" it should be acceptable!
Let's see what Reka reports.

Forgot to post the full results, anyway as expected with mtdblock (a very slow / low frequent wakeup scenario) the impact becomes clearly visible. Still hopeful that the more conservative approach will be acceptable!

Quoted 8 lines

Speaking of which, the patch to test is appended below, but it doesn't apply directly on top of the mainline. It is based on some other patches that have been posted recently, so here's a git branch with all of the requisite material:

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git cpuidle-teo-testing

Reka, please try this one and let us know how it goes.

Quoted 7 lines

Results attached. The residencies are a bit less deep than before - about 4.5% in WFI vs 2% at 6.6 or with the more aggressive patch. But I’m guessing that’s expected.

I also measured the power on a slightly different system where I first noticed this regression, and it’s indistinguishable from 6.6. So from my side this looks great, thank you!

Good news!
For completeness:

Per-Cluster deltas: BIG

+---------+-------+--------------+------------+---------+--------+--------+---------+--------+---------+
| cluster | state | name         | timeΔ      | time%   | usageΔ | aboveΔ | above%  | belowΔ | below%  |
+=========+=======+==============+============+=========+========+========+=========+========+=========+
| BIG     |     0 | WFI          | 957,853    |   2.99% | 2,537  | 0      |   0.00% | 0      |   0.00% |
| BIG     |     1 | cpuoff-b     | 163,636    |   0.51% | 21     | 18     |  85.71% | 3      |  14.29% |
| BIG     |     2 | clusteroff-b | 30,918,285 |  96.50% | 501    | 128    |  25.55% | 0      |   0.00% |
| BIG     |     3 | s2idle       | 0          |   0.00% | 0      | 0      |   0.00% | 0      |   0.00% |
| BIG     | TOTAL |              | 32,039,774 | 100.00% | 3,059  | 146    |   4.77% | 3      |   0.10% |
+---------+-------+--------------+------------+---------+--------+--------+---------+--------+---------+

Per-Cluster deltas: LITTLE

+---------+-------+--------------+-------------+---------+--------+--------+---------+--------+---------+
| cluster | state | name         | timeΔ       | time%   | usageΔ | aboveΔ | above%  | belowΔ | below%  |
+=========+=======+==============+=============+=========+========+========+=========+========+=========+
| LITTLE  |     0 | WFI          | 8,424,141   |   6.63% | 16,629 | 0      |   0.00% | 0      |   0.00% |
| LITTLE  |     1 | cpuoff-l     | 11,121,561  |   8.75% | 485    | 96     |  19.79% | 388    |  80.00% |
| LITTLE  |     2 | clusteroff-l | 107,499,073 |  84.62% | 2,705  | 1,001  |  37.01% | 0      |   0.00% |
| LITTLE  |     3 | s2idle       | 0           |   0.00% | 0      | 0      |   0.00% | 0      |   0.00% |
| LITTLE  | TOTAL |              | 127,044,775 | 100.00% | 19,819 | 1,097  |   5.54% | 388    |   1.96% |
+---------+-------+--------------+-------------+---------+--------+--------+---------+--------+---------+

Per-Cluster deltas: MID

+---------+-------+--------------+------------+---------+--------+--------+---------+--------+---------+
| cluster | state | name         | timeΔ      | time%   | usageΔ | aboveΔ | above%  | belowΔ | below%  |
+=========+=======+==============+============+=========+========+========+=========+========+=========+
| MID     |     0 | WFI          | 2,593,501  |   2.72% | 7,278  | 0      |   0.00% | 0      |   0.00% |
| MID     |     1 | cpuoff-m     | 188,793    |   0.20% | 51     | 48     |  94.12% | 3      |   5.88% |
| MID     |     2 | clusteroff-m | 92,616,252 |  97.08% | 605    | 257    |  42.48% | 0      |   0.00% |
| MID     |     3 | s2idle       | 0          |   0.00% | 0      | 0      |   0.00% | 0      |   0.00% |
| MID     | TOTAL |              | 95,398,546 | 100.00% | 7,934  | 305    |   3.84% | 3      |   0.04% |
+---------+-------+--------------+------------+---------+--------+--------+---------+--------+---------+
Quoted 3 lines

Out of curiosity:
Do you know if the platform respects cpuoff / clusteroff distinction properly? Is the power difference measurable?

No, I’m not really familiar with the details myself. I’ll check if others know more. I did a quick test with disabling cpuoff on all cores, then disabling clusteroff on all cores. The power does seem to be slightly higher with clusteroff disabled, but the difference is barely above the noise level so I’m not certain.

Quoted 3 lines

There really is no reason for cpuidle to not autopromote them, if there's no latency requirement that would prevent that.
Especially for the big cluster (just one CPU).

For my understanding, could you explain a bit more what you mean? It’s already spending a lot less time in cpuoff than clusteroff. Would you expect to see even less time in cpuoff (and 0 for the big core)?

#36 lore raw

Re: [PATCH v1] cpuidle: governors: teo: Rework the handling of tick wakeups

Quoted 220 lines · Reka Norman
Quoted 208 lines · Christian Loehle
Quoted 159 lines · Reka Norman
Quoted 149 lines · Rafael J. Wysocki
Quoted 138 lines · CET Christian Loehle
Quoted 137 lines · Christian Loehle
Quoted 135 lines · Rafael J. Wysocki
Quoted 120 lines · Christian Loehle
Quoted 109 lines · Rafael J. Wysocki
Quoted 6 lines · Christian Loehle
Quoted 4 lines · Rafael J. Wysocki
Quoted 2 lines · Christian Loehle

On 11/11/25 10:00, Christian Loehle wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

I see two issues:
1) Because of DECAY_SHIFT 3 values < 8 cannot decay (I guess this wouldn't really be an issue without 2))

This shouldn't be a problem.

Agreed, it should be a non-issue. Nonetheless if this wasn't the case $subject would've likely never been an issue.

Well, I think that the leftovers can be cleared when they become less than 8.

Quoted 81 lines
Quoted 55 lines
Quoted 4 lines
Quoted 4 lines

2) if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) isn't an appropriate check, it will
exclude the state if it its idx_hit_sum make up the vast majority of cpu_data->total (i.e. it would
have been a really good candidate actually).

Well, it would exclude the state if the sum of hits for the states below it is large enough. This is questionable (because why would hits matter here), but I attempted to make the change below and somebody reported a regression IIRC.

This check is related to the problem at hand though (see below).

Quoted 43 lines
Quoted 21 lines

I lightly tested the below, it seems to be at least comparable to mainline teo.
(the documentation/comments would need adapting too, of course)

-----8<-----

diff --git a/drivers/cpuidle/governors/teo.c b/drivers/cpuidle/governors/teo.c
index bfa55c1eab5b..f8f76e3b8364 100644
--- a/drivers/cpuidle/governors/teo.c
+++ b/drivers/cpuidle/governors/teo.c
@@ -355,7 +355,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
* all of the deeper states, a shallower idle state is likely to be a
* better choice.
*/
- if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {
+ if (2 * idx_intercept_sum > idx_hit_sum) {
int first_suitable_idx = idx;

/*

... nevermind the patch, idx_hit_sum is of course the sum of 0...idx-1. Maybe something like this, again lightly tested:

-----8<-----

drivers/cpuidle/governors/teo.c +2 -0
index 173ddcac540a..6bfb9cedb75e 100644
@@ -383,13 +395,15 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
                 * has been stopped already into account.
                 */
                intercept_sum = 0;
+               hit_sum = 0;
 
                for (i = idx - 1; i >= 0; i--) {
                        struct teo_bin *bin = &cpu_data->state_bins[i];
 
                        intercept_sum += bin->intercepts;
+                       hit_sum += bin->hits;
 
Quoted 10 lines

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 409

Quoted 5 lines
drivers/cpuidle/governors/teo.c +1 -1
-                       if (2 * intercept_sum > idx_intercept_sum) {
+                       if (2 * intercept_sum > cpu_data->total || 2 * hit_sum > cpu_data->total) {
                                /*
                                 * Use the current state unless it is too
                                 * shallow or disabled, in which case take the

This will only matter after the deepest state has been rejected already and on the system in question this means selecting state 0 no matter what.

Ah, right!

Quoted 11 lines

The pre-6.12 behavior can be explained if tick wakeups are taken into account.

Namely, when state 0 is chosen (because of the check mentioned above), the tick is not stopped and the sleep length is KTIME_MAX. If the subsequent wakeup is a tick one, it will be counted as a hit on the deepest state (and it will contribute to the total sum in the check mentioned above). Then, at one point, cpu_data->total will be large enough and the deepest state will become the candidate one. If tick_nohz_get_sleep_length() returns a large value at that point, the tick will be stopped and the deepest state will be entered. Nirvana ensues.

Quoted 6 lines

So fundamentally we will have to count tick-wakeups as a) nothing, which doesn't allow us to ever break out of the intercept logic that caused us to leave the tick on b) intercepts, which is bonkers and doesn't allow us to ever break out and c) hits == sleep_length would've been accurate. Of course counting a tick wakeup as a hit for sleep_length negates the intercept logic.

Quoted 8 lines

Not quite. The intercept logic is there for wakeups other than tick wakeups and timer wakeups.

I actually think that tick wakeups can be counted as hits on the deepest available state - maybe only when tick wakeups dominate the wakeup pattern - but generally this is not unreasonable: When the wakeup pattern is dominated by tick wakeups, this by itself is a good enough reason to stop the tick.

Quoted 6 lines

(assuming HZ=1000 below but it doesn't matter)
That will exclude any 'intercept' logic from having much effect if the avg idle duration is >TICK_NSEC/2, which is potentially still quite a bit off from state1 residency, like in Reka's case here.
That's why I thought it would cause unreasonable regressions here. I'll give it a go as well though!

Thanks!

Note that I'd prefer to add a check if tick wakeups dominate the wakeup pattern before setting sleep_length_ns to KTIME_MAX though. I'd first like to know how the Reka's system reacts to the more drastic variant of this change.

Quoted 8 lines
Quoted 5 lines

Below are my usual tests, it's definitely visible but the impact is limited on this platform anyway. I think if we gate the KTIME_MAX setting behind the "tick wakeup dominate" it should be acceptable!
Let's see what Reka reports.

Forgot to post the full results, anyway as expected with mtdblock (a very slow / low frequent wakeup scenario) the impact becomes clearly visible. Still hopeful that the more conservative approach will be acceptable!

Quoted 8 lines

Speaking of which, the patch to test is appended below, but it doesn't apply directly on top of the mainline. It is based on some other patches that have been posted recently, so here's a git branch with all of the requisite material:

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git cpuidle-teo-testing

Reka, please try this one and let us know how it goes.

Quoted 7 lines

Results attached. The residencies are a bit less deep than before - about 4.5% in WFI vs 2% at 6.6 or with the more aggressive patch. But I’m guessing that’s expected.

I also measured the power on a slightly different system where I first noticed this regression, and it’s indistinguishable from 6.6. So from my side this looks great, thank you!

Good news!
For completeness:

Per-Cluster deltas: BIG

+---------+-------+--------------+------------+---------+--------+--------+---------+--------+---------+
| cluster | state | name         | timeΔ      | time%   | usageΔ | aboveΔ | above%  | belowΔ | below%  |
+=========+=======+==============+============+=========+========+========+=========+========+=========+
| BIG     |     0 | WFI          | 957,853    |   2.99% | 2,537  | 0      |   0.00% | 0      |   0.00% |
| BIG     |     1 | cpuoff-b     | 163,636    |   0.51% | 21     | 18     |  85.71% | 3      |  14.29% |
| BIG     |     2 | clusteroff-b | 30,918,285 |  96.50% | 501    | 128    |  25.55% | 0      |   0.00% |
| BIG     |     3 | s2idle       | 0          |   0.00% | 0      | 0      |   0.00% | 0      |   0.00% |
| BIG     | TOTAL |              | 32,039,774 | 100.00% | 3,059  | 146    |   4.77% | 3      |   0.10% |
+---------+-------+--------------+------------+---------+--------+--------+---------+--------+---------+

Per-Cluster deltas: LITTLE

+---------+-------+--------------+-------------+---------+--------+--------+---------+--------+---------+
| cluster | state | name         | timeΔ       | time%   | usageΔ | aboveΔ | above%  | belowΔ | below%  |
+=========+=======+==============+=============+=========+========+========+=========+========+=========+
| LITTLE  |     0 | WFI          | 8,424,141   |   6.63% | 16,629 | 0      |   0.00% | 0      |   0.00% |
| LITTLE  |     1 | cpuoff-l     | 11,121,561  |   8.75% | 485    | 96     |  19.79% | 388    |  80.00% |
| LITTLE  |     2 | clusteroff-l | 107,499,073 |  84.62% | 2,705  | 1,001  |  37.01% | 0      |   0.00% |
| LITTLE  |     3 | s2idle       | 0           |   0.00% | 0      | 0      |   0.00% | 0      |   0.00% |
| LITTLE  | TOTAL |              | 127,044,775 | 100.00% | 19,819 | 1,097  |   5.54% | 388    |   1.96% |
+---------+-------+--------------+-------------+---------+--------+--------+---------+--------+---------+

Per-Cluster deltas: MID

+---------+-------+--------------+------------+---------+--------+--------+---------+--------+---------+
| cluster | state | name         | timeΔ      | time%   | usageΔ | aboveΔ | above%  | belowΔ | below%  |
+=========+=======+==============+============+=========+========+========+=========+========+=========+
| MID     |     0 | WFI          | 2,593,501  |   2.72% | 7,278  | 0      |   0.00% | 0      |   0.00% |
| MID     |     1 | cpuoff-m     | 188,793    |   0.20% | 51     | 48     |  94.12% | 3      |   5.88% |
| MID     |     2 | clusteroff-m | 92,616,252 |  97.08% | 605    | 257    |  42.48% | 0      |   0.00% |
| MID     |     3 | s2idle       | 0          |   0.00% | 0      | 0      |   0.00% | 0      |   0.00% |
| MID     | TOTAL |              | 95,398,546 | 100.00% | 7,934  | 305    |   3.84% | 3      |   0.04% |
+---------+-------+--------------+------------+---------+--------+--------+---------+--------+---------+
Quoted 3 lines

Out of curiosity:
Do you know if the platform respects cpuoff / clusteroff distinction properly? Is the power difference measurable?

No, I’m not really familiar with the details myself. I’ll check if others know more. I did a quick test with disabling cpuoff on all cores, then disabling clusteroff on all cores. The power does seem to be slightly higher with clusteroff disabled, but the difference is barely above the noise level so I’m not certain.

Quoted 7 lines
Quoted 3 lines

There really is no reason for cpuidle to not autopromote them, if there's no latency requirement that would prevent that.
Especially for the big cluster (just one CPU).

For my understanding, could you explain a bit more what you mean? It’s already spending a lot less time in cpuoff than clusteroff. Would you expect to see even less time in cpuoff (and 0 for the big core)?

So the clusteroff states for psci in PC mode are exposed per-CPU, like here, but since it (usually) refers to powering down the voltage rail of that cluster it requires all CPUs of that cluster to be in the clusteroff state to actually be entered (kernel is unaware of what state actually happened, only which one it requested). What's special about your platform though:
The target residency (How long do I need to be in this state for the entering+exiting to pay off energy-wise) of cpuoff and clusteroff is equal. Therefore if you don't care about the wakeup latency, clusteroff should be the strictly better choice from a governor perspective (If a cluster can't be powered off because >=1 CPUs aren't in clusteroff, the clusteroff-selected CPUs will still go cpuoff). Additionally the big CPU is (I'm assuming) alone on a cluster, therefore if it doesn't need the latency requirement it should never go cpuoff, always (actual) clusteroff.

The fact that teo still selects cpuoff is due to much of the logic working on per-state bins. It's rather an artifact than intended behaviour.
If you wanna experiment you might wanna try running this platform with all cpuoff states removed.

#37 lore raw

Re: [PATCH v1] cpuidle: governors: teo: Rework the handling of tick wakeups

Quoted 243 lines · Christian Loehle
Quoted 220 lines · Reka Norman
Quoted 208 lines · Christian Loehle
Quoted 159 lines · Reka Norman
Quoted 149 lines · Rafael J. Wysocki
Quoted 138 lines · CET Christian Loehle
Quoted 137 lines · Christian Loehle
Quoted 135 lines · Rafael J. Wysocki
Quoted 120 lines · Christian Loehle
Quoted 109 lines · Rafael J. Wysocki
Quoted 6 lines · Christian Loehle
Quoted 4 lines · Rafael J. Wysocki
Quoted 2 lines · Christian Loehle

On 11/11/25 10:00, Christian Loehle wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

I see two issues:
1) Because of DECAY_SHIFT 3 values < 8 cannot decay (I guess this wouldn't really be an issue without 2))

This shouldn't be a problem.

Agreed, it should be a non-issue. Nonetheless if this wasn't the case $subject would've likely never been an issue.

Well, I think that the leftovers can be cleared when they become less than 8.

Quoted 81 lines
Quoted 55 lines
Quoted 4 lines

2) if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) isn't an appropriate check, it will
exclude the state if it its idx_hit_sum make up the vast majority of cpu_data->total (i.e. it would
have been a really good candidate actually).

Well, it would exclude the state if the sum of hits for the states below it is large enough. This is questionable (because why would hits matter here), but I attempted to make the change below and somebody reported a regression IIRC.

This check is related to the problem at hand though (see below).

Quoted 43 lines

I lightly tested the below, it seems to be at least comparable to mainline teo.
(the documentation/comments would need adapting too, of course)

-----8<-----

diff --git a/drivers/cpuidle/governors/teo.c b/drivers/cpuidle/governors/teo.c
index bfa55c1eab5b..f8f76e3b8364 100644
--- a/drivers/cpuidle/governors/teo.c
+++ b/drivers/cpuidle/governors/teo.c
@@ -355,7 +355,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
* all of the deeper states, a shallower idle state is likely to be a
* better choice.
*/
- if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {
+ if (2 * idx_intercept_sum > idx_hit_sum) {
int first_suitable_idx = idx;

/*

... nevermind the patch, idx_hit_sum is of course the sum of 0...idx-1.
Maybe something like this, again lightly tested:

-----8<-----

diff --git a/drivers/cpuidle/governors/teo.c b/drivers/cpuidle/governors/teo.c
index 173ddcac540a..6bfb9cedb75e 100644
--- a/drivers/cpuidle/governors/teo.c
+++ b/drivers/cpuidle/governors/teo.c
@@ -383,13 +395,15 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
* has been stopped already into account.
*/
intercept_sum = 0;
+ hit_sum = 0;

for (i = idx - 1; i >= 0; i--) {
struct teo_bin *bin = &cpu_data->state_bins[i];

intercept_sum += bin->intercepts;
+ hit_sum += bin->hits;

Quoted 10 lines
Quoted 5 lines

- if (2 * intercept_sum > idx_intercept_sum) {
+ if (2 * intercept_sum > cpu_data->total || 2 * hit_sum > cpu_data->total) {
/*
* Use the current state unless it is too
* shallow or disabled, in which case take the

This will only matter after the deepest state has been rejected already and on the system in question this means selecting state 0 no matter what.

Ah, right!

Quoted 11 lines

The pre-6.12 behavior can be explained if tick wakeups are taken into account.

Namely, when state 0 is chosen (because of the check mentioned above), the tick is not stopped and the sleep length is KTIME_MAX. If the subsequent wakeup is a tick one, it will be counted as a hit on the deepest state (and it will contribute to the total sum in the check mentioned above). Then, at one point, cpu_data->total will be large enough and the deepest state will become the candidate one. If tick_nohz_get_sleep_length() returns a large value at that point, the tick will be stopped and the deepest state will be entered. Nirvana ensues.

Quoted 6 lines

So fundamentally we will have to count tick-wakeups as a) nothing, which doesn't allow us to ever break out of the intercept logic that caused us to leave the tick on b) intercepts, which is bonkers and doesn't allow us to ever break out and c) hits == sleep_length would've been accurate. Of course counting a tick wakeup as a hit for sleep_length negates the intercept logic.

Quoted 8 lines

Not quite. The intercept logic is there for wakeups other than tick wakeups and timer wakeups.

I actually think that tick wakeups can be counted as hits on the deepest available state - maybe only when tick wakeups dominate the wakeup pattern - but generally this is not unreasonable: When the wakeup pattern is dominated by tick wakeups, this by itself is a good enough reason to stop the tick.

Quoted 6 lines

(assuming HZ=1000 below but it doesn't matter)
That will exclude any 'intercept' logic from having much effect if the avg idle duration is >TICK_NSEC/2, which is potentially still quite a bit off from state1 residency, like in Reka's case here.
That's why I thought it would cause unreasonable regressions here. I'll give it a go as well though!

Thanks!

Note that I'd prefer to add a check if tick wakeups dominate the wakeup pattern before setting sleep_length_ns to KTIME_MAX though. I'd first like to know how the Reka's system reacts to the more drastic variant of this change.

Quoted 8 lines
Quoted 5 lines

Below are my usual tests, it's definitely visible but the impact is limited on this platform anyway. I think if we gate the KTIME_MAX setting behind the "tick wakeup dominate" it should be acceptable!
Let's see what Reka reports.

Forgot to post the full results, anyway as expected with mtdblock (a very slow / low frequent wakeup scenario) the impact becomes clearly visible. Still hopeful that the more conservative approach will be acceptable!

Quoted 8 lines

Speaking of which, the patch to test is appended below, but it doesn't apply directly on top of the mainline. It is based on some other patches that have been posted recently, so here's a git branch with all of the requisite material:

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git cpuidle-teo-testing

Reka, please try this one and let us know how it goes.

Quoted 7 lines

Results attached. The residencies are a bit less deep than before - about 4.5% in WFI vs 2% at 6.6 or with the more aggressive patch. But I’m guessing that’s expected.

I also measured the power on a slightly different system where I first noticed this regression, and it’s indistinguishable from 6.6. So from my side this looks great, thank you!

Good news!
For completeness:

Per-Cluster deltas: BIG

+---------+-------+--------------+------------+---------+--------+--------+---------+--------+---------+
| cluster | state | name         | timeΔ      | time%   | usageΔ | aboveΔ | above%  | belowΔ | below%  |
+=========+=======+==============+============+=========+========+========+=========+========+=========+
| BIG     |     0 | WFI          | 957,853    |   2.99% | 2,537  | 0      |   0.00% | 0      |   0.00% |
| BIG     |     1 | cpuoff-b     | 163,636    |   0.51% | 21     | 18     |  85.71% | 3      |  14.29% |
| BIG     |     2 | clusteroff-b | 30,918,285 |  96.50% | 501    | 128    |  25.55% | 0      |   0.00% |
| BIG     |     3 | s2idle       | 0          |   0.00% | 0      | 0      |   0.00% | 0      |   0.00% |
| BIG     | TOTAL |              | 32,039,774 | 100.00% | 3,059  | 146    |   4.77% | 3      |   0.10% |
+---------+-------+--------------+------------+---------+--------+--------+---------+--------+---------+

Per-Cluster deltas: LITTLE

+---------+-------+--------------+-------------+---------+--------+--------+---------+--------+---------+
| cluster | state | name         | timeΔ       | time%   | usageΔ | aboveΔ | above%  | belowΔ | below%  |
+=========+=======+==============+=============+=========+========+========+=========+========+=========+
| LITTLE  |     0 | WFI          | 8,424,141   |   6.63% | 16,629 | 0      |   0.00% | 0      |   0.00% |
| LITTLE  |     1 | cpuoff-l     | 11,121,561  |   8.75% | 485    | 96     |  19.79% | 388    |  80.00% |
| LITTLE  |     2 | clusteroff-l | 107,499,073 |  84.62% | 2,705  | 1,001  |  37.01% | 0      |   0.00% |
| LITTLE  |     3 | s2idle       | 0           |   0.00% | 0      | 0      |   0.00% | 0      |   0.00% |
| LITTLE  | TOTAL |              | 127,044,775 | 100.00% | 19,819 | 1,097  |   5.54% | 388    |   1.96% |
+---------+-------+--------------+-------------+---------+--------+--------+---------+--------+---------+

Per-Cluster deltas: MID

+---------+-------+--------------+------------+---------+--------+--------+---------+--------+---------+
| cluster | state | name         | timeΔ      | time%   | usageΔ | aboveΔ | above%  | belowΔ | below%  |
+=========+=======+==============+============+=========+========+========+=========+========+=========+
| MID     |     0 | WFI          | 2,593,501  |   2.72% | 7,278  | 0      |   0.00% | 0      |   0.00% |
| MID     |     1 | cpuoff-m     | 188,793    |   0.20% | 51     | 48     |  94.12% | 3      |   5.88% |
| MID     |     2 | clusteroff-m | 92,616,252 |  97.08% | 605    | 257    |  42.48% | 0      |   0.00% |
| MID     |     3 | s2idle       | 0          |   0.00% | 0      | 0      |   0.00% | 0      |   0.00% |
| MID     | TOTAL |              | 95,398,546 | 100.00% | 7,934  | 305    |   3.84% | 3      |   0.04% |
+---------+-------+--------------+------------+---------+--------+--------+---------+--------+---------+
Quoted 3 lines

Out of curiosity:
Do you know if the platform respects cpuoff / clusteroff distinction properly? Is the power difference measurable?

No, I’m not really familiar with the details myself. I’ll check if others know more. I did a quick test with disabling cpuoff on all cores, then disabling clusteroff on all cores. The power does seem to be slightly higher with clusteroff disabled, but the difference is barely above the noise level so I’m not certain.

Quoted 7 lines
Quoted 3 lines

There really is no reason for cpuidle to not autopromote them, if there's no latency requirement that would prevent that.
Especially for the big cluster (just one CPU).

For my understanding, could you explain a bit more what you mean? It’s already spending a lot less time in cpuoff than clusteroff. Would you expect to see even less time in cpuoff (and 0 for the big core)?

So the clusteroff states for psci in PC mode are exposed per-CPU, like here, but since it (usually) refers to powering down the voltage rail of that cluster it requires all CPUs of that cluster to be in the clusteroff state to actually be entered (kernel is unaware of what state actually happened, only which one it requested). What's special about your platform though:
The target residency (How long do I need to be in this state for the entering+exiting to pay off energy-wise) of cpuoff and clusteroff is equal. Therefore if you don't care about the wakeup latency, clusteroff should be the strictly better choice from a governor perspective (If a cluster can't be powered off because >=1 CPUs aren't in clusteroff, the clusteroff-selected CPUs will still go cpuoff). Additionally the big CPU is (I'm assuming) alone on a cluster, therefore if it doesn't need the latency requirement it should never go cpuoff, always (actual) clusteroff.

Quoted 2 lines

The fact that teo still selects cpuoff is due to much of the logic working on per-state bins. It's rather an artifact than intended behaviour.

I think what happens is that in teo_select(), the main check for the deepest enabled state selection is false, but the tick has been stopped, so the governor selects the previous deepest state that happens to have the same target residency.

It looks like a check against the target residency of the deepest state should be added there, but I'd prefer to do it on top of
https://lore.kernel.org/linux-pm/[email protected]/.

#38 lore raw

Re: [PATCH v1] cpuidle: governors: teo: Rework the handling of tick wakeups

In reply to Christian Loehle
Quoted 243 lines · Christian Loehle
Quoted 220 lines · Reka Norman
Quoted 208 lines · Christian Loehle
Quoted 159 lines · Reka Norman
Quoted 149 lines · Rafael J. Wysocki
Quoted 138 lines · CET Christian Loehle
Quoted 137 lines · Christian Loehle
Quoted 135 lines · Rafael J. Wysocki
Quoted 120 lines · Christian Loehle
Quoted 109 lines · Rafael J. Wysocki
Quoted 6 lines · Christian Loehle
Quoted 4 lines · Rafael J. Wysocki
Quoted 2 lines · Christian Loehle

On 11/11/25 10:00, Christian Loehle wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

I see two issues:
1) Because of DECAY_SHIFT 3 values < 8 cannot decay (I guess this wouldn't really be an issue without 2))

This shouldn't be a problem.

Agreed, it should be a non-issue. Nonetheless if this wasn't the case $subject would've likely never been an issue.

Well, I think that the leftovers can be cleared when they become less than 8.

Quoted 81 lines
Quoted 55 lines
Quoted 4 lines

2) if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) isn't an appropriate check, it will
exclude the state if it its idx_hit_sum make up the vast majority of cpu_data->total (i.e. it would
have been a really good candidate actually).

Well, it would exclude the state if the sum of hits for the states below it is large enough. This is questionable (because why would hits matter here), but I attempted to make the change below and somebody reported a regression IIRC.

This check is related to the problem at hand though (see below).

Quoted 43 lines

I lightly tested the below, it seems to be at least comparable to mainline teo.
(the documentation/comments would need adapting too, of course)

-----8<-----

diff --git a/drivers/cpuidle/governors/teo.c b/drivers/cpuidle/governors/teo.c
index bfa55c1eab5b..f8f76e3b8364 100644
--- a/drivers/cpuidle/governors/teo.c
+++ b/drivers/cpuidle/governors/teo.c
@@ -355,7 +355,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
* all of the deeper states, a shallower idle state is likely to be a
* better choice.
*/
- if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {
+ if (2 * idx_intercept_sum > idx_hit_sum) {
int first_suitable_idx = idx;

/*

... nevermind the patch, idx_hit_sum is of course the sum of 0...idx-1.
Maybe something like this, again lightly tested:

-----8<-----

diff --git a/drivers/cpuidle/governors/teo.c b/drivers/cpuidle/governors/teo.c
index 173ddcac540a..6bfb9cedb75e 100644
--- a/drivers/cpuidle/governors/teo.c
+++ b/drivers/cpuidle/governors/teo.c
@@ -383,13 +395,15 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
* has been stopped already into account.
*/
intercept_sum = 0;
+ hit_sum = 0;

for (i = idx - 1; i >= 0; i--) {
struct teo_bin *bin = &cpu_data->state_bins[i];

intercept_sum += bin->intercepts;
+ hit_sum += bin->hits;

Quoted 10 lines
Quoted 5 lines

- if (2 * intercept_sum > idx_intercept_sum) {
+ if (2 * intercept_sum > cpu_data->total || 2 * hit_sum > cpu_data->total) {
/*
* Use the current state unless it is too
* shallow or disabled, in which case take the

This will only matter after the deepest state has been rejected already and on the system in question this means selecting state 0 no matter what.

Ah, right!

Quoted 11 lines

The pre-6.12 behavior can be explained if tick wakeups are taken into account.

Namely, when state 0 is chosen (because of the check mentioned above), the tick is not stopped and the sleep length is KTIME_MAX. If the subsequent wakeup is a tick one, it will be counted as a hit on the deepest state (and it will contribute to the total sum in the check mentioned above). Then, at one point, cpu_data->total will be large enough and the deepest state will become the candidate one. If tick_nohz_get_sleep_length() returns a large value at that point, the tick will be stopped and the deepest state will be entered. Nirvana ensues.

Quoted 6 lines

So fundamentally we will have to count tick-wakeups as a) nothing, which doesn't allow us to ever break out of the intercept logic that caused us to leave the tick on b) intercepts, which is bonkers and doesn't allow us to ever break out and c) hits == sleep_length would've been accurate. Of course counting a tick wakeup as a hit for sleep_length negates the intercept logic.

Quoted 8 lines

Not quite. The intercept logic is there for wakeups other than tick wakeups and timer wakeups.

I actually think that tick wakeups can be counted as hits on the deepest available state - maybe only when tick wakeups dominate the wakeup pattern - but generally this is not unreasonable: When the wakeup pattern is dominated by tick wakeups, this by itself is a good enough reason to stop the tick.

Quoted 6 lines

(assuming HZ=1000 below but it doesn't matter)
That will exclude any 'intercept' logic from having much effect if the avg idle duration is >TICK_NSEC/2, which is potentially still quite a bit off from state1 residency, like in Reka's case here.
That's why I thought it would cause unreasonable regressions here. I'll give it a go as well though!

Thanks!

Note that I'd prefer to add a check if tick wakeups dominate the wakeup pattern before setting sleep_length_ns to KTIME_MAX though. I'd first like to know how the Reka's system reacts to the more drastic variant of this change.

Quoted 8 lines
Quoted 5 lines

Below are my usual tests, it's definitely visible but the impact is limited on this platform anyway. I think if we gate the KTIME_MAX setting behind the "tick wakeup dominate" it should be acceptable!
Let's see what Reka reports.

Forgot to post the full results, anyway as expected with mtdblock (a very slow / low frequent wakeup scenario) the impact becomes clearly visible. Still hopeful that the more conservative approach will be acceptable!

Quoted 8 lines

Speaking of which, the patch to test is appended below, but it doesn't apply directly on top of the mainline. It is based on some other patches that have been posted recently, so here's a git branch with all of the requisite material:

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git cpuidle-teo-testing

Reka, please try this one and let us know how it goes.

Quoted 7 lines

Results attached. The residencies are a bit less deep than before - about 4.5% in WFI vs 2% at 6.6 or with the more aggressive patch. But I’m guessing that’s expected.

I also measured the power on a slightly different system where I first noticed this regression, and it’s indistinguishable from 6.6. So from my side this looks great, thank you!

Good news!
For completeness:

Per-Cluster deltas: BIG

+---------+-------+--------------+------------+---------+--------+--------+---------+--------+---------+
| cluster | state | name         | timeΔ      | time%   | usageΔ | aboveΔ | above%  | belowΔ | below%  |
+=========+=======+==============+============+=========+========+========+=========+========+=========+
| BIG     |     0 | WFI          | 957,853    |   2.99% | 2,537  | 0      |   0.00% | 0      |   0.00% |
| BIG     |     1 | cpuoff-b     | 163,636    |   0.51% | 21     | 18     |  85.71% | 3      |  14.29% |
| BIG     |     2 | clusteroff-b | 30,918,285 |  96.50% | 501    | 128    |  25.55% | 0      |   0.00% |
| BIG     |     3 | s2idle       | 0          |   0.00% | 0      | 0      |   0.00% | 0      |   0.00% |
| BIG     | TOTAL |              | 32,039,774 | 100.00% | 3,059  | 146    |   4.77% | 3      |   0.10% |
+---------+-------+--------------+------------+---------+--------+--------+---------+--------+---------+

Per-Cluster deltas: LITTLE

+---------+-------+--------------+-------------+---------+--------+--------+---------+--------+---------+
| cluster | state | name         | timeΔ       | time%   | usageΔ | aboveΔ | above%  | belowΔ | below%  |
+=========+=======+==============+=============+=========+========+========+=========+========+=========+
| LITTLE  |     0 | WFI          | 8,424,141   |   6.63% | 16,629 | 0      |   0.00% | 0      |   0.00% |
| LITTLE  |     1 | cpuoff-l     | 11,121,561  |   8.75% | 485    | 96     |  19.79% | 388    |  80.00% |
| LITTLE  |     2 | clusteroff-l | 107,499,073 |  84.62% | 2,705  | 1,001  |  37.01% | 0      |   0.00% |
| LITTLE  |     3 | s2idle       | 0           |   0.00% | 0      | 0      |   0.00% | 0      |   0.00% |
| LITTLE  | TOTAL |              | 127,044,775 | 100.00% | 19,819 | 1,097  |   5.54% | 388    |   1.96% |
+---------+-------+--------------+-------------+---------+--------+--------+---------+--------+---------+

Per-Cluster deltas: MID

+---------+-------+--------------+------------+---------+--------+--------+---------+--------+---------+
| cluster | state | name         | timeΔ      | time%   | usageΔ | aboveΔ | above%  | belowΔ | below%  |
+=========+=======+==============+============+=========+========+========+=========+========+=========+
| MID     |     0 | WFI          | 2,593,501  |   2.72% | 7,278  | 0      |   0.00% | 0      |   0.00% |
| MID     |     1 | cpuoff-m     | 188,793    |   0.20% | 51     | 48     |  94.12% | 3      |   5.88% |
| MID     |     2 | clusteroff-m | 92,616,252 |  97.08% | 605    | 257    |  42.48% | 0      |   0.00% |
| MID     |     3 | s2idle       | 0          |   0.00% | 0      | 0      |   0.00% | 0      |   0.00% |
| MID     | TOTAL |              | 95,398,546 | 100.00% | 7,934  | 305    |   3.84% | 3      |   0.04% |
+---------+-------+--------------+------------+---------+--------+--------+---------+--------+---------+
Quoted 3 lines

Out of curiosity:
Do you know if the platform respects cpuoff / clusteroff distinction properly? Is the power difference measurable?

No, I’m not really familiar with the details myself. I’ll check if others know more. I did a quick test with disabling cpuoff on all cores, then disabling clusteroff on all cores. The power does seem to be slightly higher with clusteroff disabled, but the difference is barely above the noise level so I’m not certain.

Quoted 7 lines
Quoted 3 lines

There really is no reason for cpuidle to not autopromote them, if there's no latency requirement that would prevent that.
Especially for the big cluster (just one CPU).

For my understanding, could you explain a bit more what you mean? It’s already spending a lot less time in cpuoff than clusteroff. Would you expect to see even less time in cpuoff (and 0 for the big core)?

So the clusteroff states for psci in PC mode are exposed per-CPU, like here, but since it (usually) refers to powering down the voltage rail of that cluster it requires all CPUs of that cluster to be in the clusteroff state to actually be entered (kernel is unaware of what state actually happened, only which one it requested). What's special about your platform though:
The target residency (How long do I need to be in this state for the entering+exiting to pay off energy-wise) of cpuoff and clusteroff is equal. Therefore if you don't care about the wakeup latency, clusteroff should be the strictly better choice from a governor perspective (If a cluster can't be powered off because >=1 CPUs aren't in clusteroff, the clusteroff-selected CPUs will still go cpuoff). Additionally the big CPU is (I'm assuming) alone on a cluster, therefore if it doesn't need the latency requirement it should never go cpuoff, always (actual) clusteroff.

Quoted 4 lines

The fact that teo still selects cpuoff is due to much of the logic working on per-state bins. It's rather an artifact than intended behaviour.
If you wanna experiment you might wanna try running this platform with all cpuoff states removed.

Thanks for the explanation, that all makes sense. FWIW, a colleague shared that in their experience the power difference between cpuoff and clusteroff is measurable, at least for the middle cores. So I’ll try experimenting with that. Thanks!

#39 lore raw

Re: [PATCH v1] cpuidle: governors: teo: Rework the handling of tick wakeups

In reply to Reka Norman
Quoted 159 lines · Reka Norman
Quoted 149 lines · Rafael J. Wysocki
Quoted 138 lines · CET Christian Loehle
Quoted 137 lines · Christian Loehle
Quoted 135 lines · Rafael J. Wysocki
Quoted 120 lines · Christian Loehle
Quoted 109 lines · Rafael J. Wysocki
Quoted 6 lines · Christian Loehle
Quoted 4 lines · Rafael J. Wysocki
Quoted 2 lines · Christian Loehle

On 11/11/25 10:00, Christian Loehle wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

I see two issues:
1) Because of DECAY_SHIFT 3 values < 8 cannot decay (I guess this wouldn't really be an issue without 2))

This shouldn't be a problem.

Agreed, it should be a non-issue. Nonetheless if this wasn't the case $subject would've likely never been an issue.

Well, I think that the leftovers can be cleared when they become less than 8.

Quoted 81 lines
Quoted 55 lines
Quoted 4 lines
Quoted 4 lines

2) if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) isn't an appropriate check, it will exclude the state if it its idx_hit_sum make up the vast majority of cpu_data->total (i.e. it would have been a really good candidate actually).

Well, it would exclude the state if the sum of hits for the states below it is large enough. This is questionable (because why would hits matter here), but I attempted to make the change below and somebody reported a regression IIRC.

This check is related to the problem at hand though (see below).

Quoted 43 lines
Quoted 13 lines

I lightly tested the below, it seems to be at least comparable to mainline teo. (the documentation/comments would need adapting too, of course)

-----8<-----

drivers/cpuidle/governors/teo.c +0 -0
index bfa55c1eab5b..f8f76e3b8364 100644

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 361

Quoted 8 lines
drivers/cpuidle/governors/teo.c +1 -1
@@ -355,7 +355,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
         * all of the deeper states, a shallower idle state is likely to be a
         * better choice.
         */
-       if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {
+       if (2 * idx_intercept_sum > idx_hit_sum) {
                int first_suitable_idx = idx;
 
                /*

... nevermind the patch, idx_hit_sum is of course the sum of 0...idx-1. Maybe something like this, again lightly tested:

-----8<-----

drivers/cpuidle/governors/teo.c +2 -0
index 173ddcac540a..6bfb9cedb75e 100644
@@ -383,13 +395,15 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
                 * has been stopped already into account.
                 */
                intercept_sum = 0;
+               hit_sum = 0;
 
                for (i = idx - 1; i >= 0; i--) {
                        struct teo_bin *bin = &cpu_data->state_bins[i];
 
                        intercept_sum += bin->intercepts;
+                       hit_sum += bin->hits;
 
Quoted 10 lines

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 409

Quoted 5 lines
drivers/cpuidle/governors/teo.c +1 -1
-                       if (2 * intercept_sum > idx_intercept_sum) {
+                       if (2 * intercept_sum > cpu_data->total || 2 * hit_sum > cpu_data->total) {
                                /*
                                 * Use the current state unless it is too
                                 * shallow or disabled, in which case take the

This will only matter after the deepest state has been rejected already and on the system in question this means selecting state 0 no matter what.

Ah, right!

Quoted 11 lines

The pre-6.12 behavior can be explained if tick wakeups are taken into account.

Namely, when state 0 is chosen (because of the check mentioned above), the tick is not stopped and the sleep length is KTIME_MAX. If the subsequent wakeup is a tick one, it will be counted as a hit on the deepest state (and it will contribute to the total sum in the check mentioned above). Then, at one point, cpu_data->total will be large enough and the deepest state will become the candidate one. If tick_nohz_get_sleep_length() returns a large value at that point, the tick will be stopped and the deepest state will be entered. Nirvana ensues.

Quoted 6 lines

So fundamentally we will have to count tick-wakeups as a) nothing, which doesn't allow us to ever break out of the intercept logic that caused us to leave the tick on b) intercepts, which is bonkers and doesn't allow us to ever break out and c) hits == sleep_length would've been accurate. Of course counting a tick wakeup as a hit for sleep_length negates the intercept logic.

Quoted 8 lines

Not quite. The intercept logic is there for wakeups other than tick wakeups and timer wakeups.

I actually think that tick wakeups can be counted as hits on the deepest available state - maybe only when tick wakeups dominate the wakeup pattern - but generally this is not unreasonable: When the wakeup pattern is dominated by tick wakeups, this by itself is a good enough reason to stop the tick.

Quoted 6 lines

(assuming HZ=1000 below but it doesn't matter)
That will exclude any 'intercept' logic from having much effect if the avg idle duration is >TICK_NSEC/2, which is potentially still quite a bit off from state1 residency, like in Reka's case here.
That's why I thought it would cause unreasonable regressions here. I'll give it a go as well though!

Thanks!

Note that I'd prefer to add a check if tick wakeups dominate the wakeup pattern before setting sleep_length_ns to KTIME_MAX though. I'd first like to know how the Reka's system reacts to the more drastic variant of this change.

Quoted 8 lines
Quoted 5 lines

Below are my usual tests, it's definitely visible but the impact is limited on this platform anyway. I think if we gate the KTIME_MAX setting behind the "tick wakeup dominate" it should be acceptable!
Let's see what Reka reports.

Forgot to post the full results, anyway as expected with mtdblock (a very slow / low frequent wakeup scenario) the impact becomes clearly visible. Still hopeful that the more conservative approach will be acceptable!

Quoted 8 lines

Speaking of which, the patch to test is appended below, but it doesn't apply directly on top of the mainline. It is based on some other patches that have been posted recently, so here's a git branch with all of the requisite material:

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git cpuidle-teo-testing

Reka, please try this one and let us know how it goes.

Quoted 7 lines

Results attached. The residencies are a bit less deep than before - about 4.5% in WFI vs 2% at 6.6 or with the more aggressive patch. But I’m guessing that’s expected.

I also measured the power on a slightly different system where I first noticed this regression, and it’s indistinguishable from 6.6. So from my side this looks great, thank you!

Could you share details on the other platform?
I wasn't able to reproduce your exact behaviour on my systems, so I'd still like to close my testing gap here!

#40 lore raw

Re: [PATCH v1] cpuidle: governors: teo: Rework the handling of tick wakeups

Quoted 165 lines · Christian Loehle
Quoted 163 lines · Reka Norman
Quoted 149 lines · Rafael J. Wysocki
Quoted 138 lines · CET Christian Loehle
Quoted 137 lines · Christian Loehle
Quoted 135 lines · Rafael J. Wysocki
Quoted 120 lines · Christian Loehle
Quoted 109 lines · Rafael J. Wysocki
Quoted 6 lines · Christian Loehle
Quoted 4 lines · Rafael J. Wysocki
Quoted 2 lines · Christian Loehle

On 11/11/25 10:00, Christian Loehle wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

I see two issues:
1) Because of DECAY_SHIFT 3 values < 8 cannot decay (I guess this wouldn't really be an issue without 2))

This shouldn't be a problem.

Agreed, it should be a non-issue. Nonetheless if this wasn't the case $subject would've likely never been an issue.

Well, I think that the leftovers can be cleared when they become less than 8.

Quoted 81 lines
Quoted 55 lines
Quoted 4 lines
Quoted 4 lines

2) if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) isn't an appropriate check, it will exclude the state if it its idx_hit_sum make up the vast majority of cpu_data->total (i.e. it would have been a really good candidate actually).

Well, it would exclude the state if the sum of hits for the states below it is large enough. This is questionable (because why would hits matter here), but I attempted to make the change below and somebody reported a regression IIRC.

This check is related to the problem at hand though (see below).

Quoted 43 lines
Quoted 13 lines

I lightly tested the below, it seems to be at least comparable to mainline teo. (the documentation/comments would need adapting too, of course)

-----8<-----

drivers/cpuidle/governors/teo.c +0 -0
index bfa55c1eab5b..f8f76e3b8364 100644

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 361

Quoted 8 lines
drivers/cpuidle/governors/teo.c +1 -1
@@ -355,7 +355,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
         * all of the deeper states, a shallower idle state is likely to be a
         * better choice.
         */
-       if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {
+       if (2 * idx_intercept_sum > idx_hit_sum) {
                int first_suitable_idx = idx;
 
                /*

... nevermind the patch, idx_hit_sum is of course the sum of 0...idx-1. Maybe something like this, again lightly tested:

-----8<-----

drivers/cpuidle/governors/teo.c +2 -0
index 173ddcac540a..6bfb9cedb75e 100644
@@ -383,13 +395,15 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
                 * has been stopped already into account.
                 */
                intercept_sum = 0;
+               hit_sum = 0;
 
                for (i = idx - 1; i >= 0; i--) {
                        struct teo_bin *bin = &cpu_data->state_bins[i];
 
                        intercept_sum += bin->intercepts;
+                       hit_sum += bin->hits;
 
Quoted 10 lines

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 409

Quoted 5 lines
drivers/cpuidle/governors/teo.c +1 -1
-                       if (2 * intercept_sum > idx_intercept_sum) {
+                       if (2 * intercept_sum > cpu_data->total || 2 * hit_sum > cpu_data->total) {
                                /*
                                 * Use the current state unless it is too
                                 * shallow or disabled, in which case take the

This will only matter after the deepest state has been rejected already and on the system in question this means selecting state 0 no matter what.

Ah, right!

Quoted 11 lines

The pre-6.12 behavior can be explained if tick wakeups are taken into account.

Namely, when state 0 is chosen (because of the check mentioned above), the tick is not stopped and the sleep length is KTIME_MAX. If the subsequent wakeup is a tick one, it will be counted as a hit on the deepest state (and it will contribute to the total sum in the check mentioned above). Then, at one point, cpu_data->total will be large enough and the deepest state will become the candidate one. If tick_nohz_get_sleep_length() returns a large value at that point, the tick will be stopped and the deepest state will be entered. Nirvana ensues.

Quoted 6 lines

So fundamentally we will have to count tick-wakeups as a) nothing, which doesn't allow us to ever break out of the intercept logic that caused us to leave the tick on b) intercepts, which is bonkers and doesn't allow us to ever break out and c) hits == sleep_length would've been accurate. Of course counting a tick wakeup as a hit for sleep_length negates the intercept logic.

Quoted 8 lines

Not quite. The intercept logic is there for wakeups other than tick wakeups and timer wakeups.

I actually think that tick wakeups can be counted as hits on the deepest available state - maybe only when tick wakeups dominate the wakeup pattern - but generally this is not unreasonable: When the wakeup pattern is dominated by tick wakeups, this by itself is a good enough reason to stop the tick.

Quoted 6 lines

(assuming HZ=1000 below but it doesn't matter)
That will exclude any 'intercept' logic from having much effect if the avg idle duration is >TICK_NSEC/2, which is potentially still quite a bit off from state1 residency, like in Reka's case here.
That's why I thought it would cause unreasonable regressions here. I'll give it a go as well though!

Thanks!

Note that I'd prefer to add a check if tick wakeups dominate the wakeup pattern before setting sleep_length_ns to KTIME_MAX though. I'd first like to know how the Reka's system reacts to the more drastic variant of this change.

Quoted 8 lines
Quoted 5 lines

Below are my usual tests, it's definitely visible but the impact is limited on this platform anyway. I think if we gate the KTIME_MAX setting behind the "tick wakeup dominate" it should be acceptable!
Let's see what Reka reports.

Forgot to post the full results, anyway as expected with mtdblock (a very slow / low frequent wakeup scenario) the impact becomes clearly visible. Still hopeful that the more conservative approach will be acceptable!

Quoted 8 lines

Speaking of which, the patch to test is appended below, but it doesn't apply directly on top of the mainline. It is based on some other patches that have been posted recently, so here's a git branch with all of the requisite material:

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git cpuidle-teo-testing

Reka, please try this one and let us know how it goes.

Results attached. The residencies are a bit less deep than before - about 4.5% in WFI vs 2% at 6.6 or with the more aggressive patch. But I’m guessing that’s expected.

Quoted 7 lines
Quoted 3 lines

I also measured the power on a slightly different system where I first noticed this regression, and it’s indistinguishable from 6.6. So from my side this looks great, thank you!

Could you share details on the other platform?
I wasn't able to reproduce your exact behaviour on my systems, so I'd still like to close my testing gap here!

Sorry, I wasn’t clear. It’s the same hardware (MT8196) and same configuration parameters to cpuidle. It’s just different software and a slightly less idle workload, so I was seeing the effects more strongly, and the power difference with and without the fix is more significant. I’ve attached sysfs dumps at mainline for completeness, but I don’t expect there’s much new information there.

/sys/devices/system/cpu/cpu0/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu0/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu0/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu0/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu0/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu0/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu0/cpuidle/state0/time:256498500 /sys/devices/system/cpu/cpu0/cpuidle/state0/usage:159324 /sys/devices/system/cpu/cpu0/cpuidle/state1/above:243 /sys/devices/system/cpu/cpu0/cpuidle/state1/below:433 /sys/devices/system/cpu/cpu0/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu0/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu0/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu0/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/rejected:3 /sys/devices/system/cpu/cpu0/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu0/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/time:4209726 /sys/devices/system/cpu/cpu0/cpuidle/state1/usage:681 /sys/devices/system/cpu/cpu0/cpuidle/state2/above:706 /sys/devices/system/cpu/cpu0/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu0/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu0/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu0/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/rejected:2098900 /sys/devices/system/cpu/cpu0/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu0/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/time:10977263 /sys/devices/system/cpu/cpu0/cpuidle/state2/usage:1705 /sys/devices/system/cpu/cpu0/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu0/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu0/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu0/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/rejected:7570 /sys/devices/system/cpu/cpu0/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu0/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu1/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu1/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu1/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu1/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu1/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu1/cpuidle/state0/time:123487900 /sys/devices/system/cpu/cpu1/cpuidle/state0/usage:73504 /sys/devices/system/cpu/cpu1/cpuidle/state1/above:18 /sys/devices/system/cpu/cpu1/cpuidle/state1/below:26 /sys/devices/system/cpu/cpu1/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu1/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu1/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu1/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/rejected:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu1/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/time:1800104 /sys/devices/system/cpu/cpu1/cpuidle/state1/usage:44 /sys/devices/system/cpu/cpu1/cpuidle/state2/above:392 /sys/devices/system/cpu/cpu1/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu1/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu1/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu1/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/rejected:2203752 /sys/devices/system/cpu/cpu1/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu1/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/time:150229794 /sys/devices/system/cpu/cpu1/cpuidle/state2/usage:1409 /sys/devices/system/cpu/cpu1/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu1/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu1/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu1/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/rejected:8608 /sys/devices/system/cpu/cpu1/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu1/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu2/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu2/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu2/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu2/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu2/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu2/cpuidle/state0/time:117793314 /sys/devices/system/cpu/cpu2/cpuidle/state0/usage:71716 /sys/devices/system/cpu/cpu2/cpuidle/state1/above:3 /sys/devices/system/cpu/cpu2/cpuidle/state1/below:14 /sys/devices/system/cpu/cpu2/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu2/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu2/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu2/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/rejected:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu2/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/time:1619020 /sys/devices/system/cpu/cpu2/cpuidle/state1/usage:17 /sys/devices/system/cpu/cpu2/cpuidle/state2/above:389 /sys/devices/system/cpu/cpu2/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu2/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu2/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu2/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/rejected:1791640 /sys/devices/system/cpu/cpu2/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu2/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/time:160103918 /sys/devices/system/cpu/cpu2/cpuidle/state2/usage:1152 /sys/devices/system/cpu/cpu2/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu2/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu2/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu2/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/rejected:2670 /sys/devices/system/cpu/cpu2/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu2/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu3/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu3/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu3/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu3/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu3/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu3/cpuidle/state0/time:111437502 /sys/devices/system/cpu/cpu3/cpuidle/state0/usage:71607 /sys/devices/system/cpu/cpu3/cpuidle/state1/above:4 /sys/devices/system/cpu/cpu3/cpuidle/state1/below:3 /sys/devices/system/cpu/cpu3/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu3/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu3/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu3/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/rejected:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu3/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/time:167610 /sys/devices/system/cpu/cpu3/cpuidle/state1/usage:7 /sys/devices/system/cpu/cpu3/cpuidle/state2/above:337 /sys/devices/system/cpu/cpu3/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu3/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu3/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu3/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/rejected:1691597 /sys/devices/system/cpu/cpu3/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu3/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/time:169191821 /sys/devices/system/cpu/cpu3/cpuidle/state2/usage:1323 /sys/devices/system/cpu/cpu3/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu3/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu3/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu3/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/rejected:1184 /sys/devices/system/cpu/cpu3/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu3/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu4/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/below:21606 /sys/devices/system/cpu/cpu4/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu4/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu4/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu4/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu4/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu4/cpuidle/state0/time:90236594 /sys/devices/system/cpu/cpu4/cpuidle/state0/usage:60354 /sys/devices/system/cpu/cpu4/cpuidle/state1/above:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/below:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state1/desc:cpuoff-m /sys/devices/system/cpu/cpu4/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/latency:196 /sys/devices/system/cpu/cpu4/cpuidle/state1/name:cpuoff-m /sys/devices/system/cpu/cpu4/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/rejected:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/residency:2120 /sys/devices/system/cpu/cpu4/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/above:349 /sys/devices/system/cpu/cpu4/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state2/desc:clusteroff-m /sys/devices/system/cpu/cpu4/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/latency:247 /sys/devices/system/cpu/cpu4/cpuidle/state2/name:clusteroff-m /sys/devices/system/cpu/cpu4/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/rejected:1723589 /sys/devices/system/cpu/cpu4/cpuidle/state2/residency:2120 /sys/devices/system/cpu/cpu4/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/time:191503845 /sys/devices/system/cpu/cpu4/cpuidle/state2/usage:1260 /sys/devices/system/cpu/cpu4/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu4/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu4/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu4/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/rejected:970740 /sys/devices/system/cpu/cpu4/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu4/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu5/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/below:19056 /sys/devices/system/cpu/cpu5/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu5/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu5/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu5/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu5/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu5/cpuidle/state0/time:79846812 /sys/devices/system/cpu/cpu5/cpuidle/state0/usage:55008 /sys/devices/system/cpu/cpu5/cpuidle/state1/above:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/below:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state1/desc:cpuoff-m /sys/devices/system/cpu/cpu5/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/latency:196 /sys/devices/system/cpu/cpu5/cpuidle/state1/name:cpuoff-m /sys/devices/system/cpu/cpu5/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/rejected:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/residency:2120 /sys/devices/system/cpu/cpu5/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/above:323 /sys/devices/system/cpu/cpu5/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state2/desc:clusteroff-m /sys/devices/system/cpu/cpu5/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/latency:247 /sys/devices/system/cpu/cpu5/cpuidle/state2/name:clusteroff-m /sys/devices/system/cpu/cpu5/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/rejected:1979574 /sys/devices/system/cpu/cpu5/cpuidle/state2/residency:2120 /sys/devices/system/cpu/cpu5/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/time:200972024 /sys/devices/system/cpu/cpu5/cpuidle/state2/usage:955 /sys/devices/system/cpu/cpu5/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu5/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu5/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu5/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/rejected:960861 /sys/devices/system/cpu/cpu5/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu5/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu6/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/below:18552 /sys/devices/system/cpu/cpu6/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu6/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu6/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu6/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu6/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu6/cpuidle/state0/time:78628477 /sys/devices/system/cpu/cpu6/cpuidle/state0/usage:57998 /sys/devices/system/cpu/cpu6/cpuidle/state1/above:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/below:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state1/desc:cpuoff-m /sys/devices/system/cpu/cpu6/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/latency:196 /sys/devices/system/cpu/cpu6/cpuidle/state1/name:cpuoff-m /sys/devices/system/cpu/cpu6/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/rejected:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/residency:2120 /sys/devices/system/cpu/cpu6/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/above:324 /sys/devices/system/cpu/cpu6/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state2/desc:clusteroff-m /sys/devices/system/cpu/cpu6/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/latency:247 /sys/devices/system/cpu/cpu6/cpuidle/state2/name:clusteroff-m /sys/devices/system/cpu/cpu6/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/rejected:1629873 /sys/devices/system/cpu/cpu6/cpuidle/state2/residency:2120 /sys/devices/system/cpu/cpu6/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/time:203607155 /sys/devices/system/cpu/cpu6/cpuidle/state2/usage:956 /sys/devices/system/cpu/cpu6/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu6/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu6/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu6/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/rejected:947046 /sys/devices/system/cpu/cpu6/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu6/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu7/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/below:23420 /sys/devices/system/cpu/cpu7/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu7/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu7/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu7/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu7/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu7/cpuidle/state0/time:100713224 /sys/devices/system/cpu/cpu7/cpuidle/state0/usage:68609 /sys/devices/system/cpu/cpu7/cpuidle/state1/above:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/below:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state1/desc:cpuoff-b /sys/devices/system/cpu/cpu7/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/latency:147 /sys/devices/system/cpu/cpu7/cpuidle/state1/name:cpuoff-b /sys/devices/system/cpu/cpu7/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/rejected:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/residency:2580 /sys/devices/system/cpu/cpu7/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/above:348 /sys/devices/system/cpu/cpu7/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state2/desc:clusteroff-b /sys/devices/system/cpu/cpu7/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/latency:181 /sys/devices/system/cpu/cpu7/cpuidle/state2/name:clusteroff-b /sys/devices/system/cpu/cpu7/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/rejected:1525521 /sys/devices/system/cpu/cpu7/cpuidle/state2/residency:2580 /sys/devices/system/cpu/cpu7/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/time:181809912 /sys/devices/system/cpu/cpu7/cpuidle/state2/usage:1687 /sys/devices/system/cpu/cpu7/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu7/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu7/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu7/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/rejected:850982 /sys/devices/system/cpu/cpu7/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu7/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/usage:0

/sys/devices/system/cpu/cpu0/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu0/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu0/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu0/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu0/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu0/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu0/cpuidle/state0/time:283359003 /sys/devices/system/cpu/cpu0/cpuidle/state0/usage:171521 /sys/devices/system/cpu/cpu0/cpuidle/state1/above:297 /sys/devices/system/cpu/cpu0/cpuidle/state1/below:503 /sys/devices/system/cpu/cpu0/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu0/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu0/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu0/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/rejected:7 /sys/devices/system/cpu/cpu0/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu0/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/time:4885125 /sys/devices/system/cpu/cpu0/cpuidle/state1/usage:806 /sys/devices/system/cpu/cpu0/cpuidle/state2/above:860 /sys/devices/system/cpu/cpu0/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu0/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu0/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu0/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/rejected:2098900 /sys/devices/system/cpu/cpu0/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu0/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/time:12887731 /sys/devices/system/cpu/cpu0/cpuidle/state2/usage:2031 /sys/devices/system/cpu/cpu0/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu0/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu0/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu0/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/rejected:7570 /sys/devices/system/cpu/cpu0/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu0/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu1/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu1/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu1/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu1/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu1/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu1/cpuidle/state0/time:134448804 /sys/devices/system/cpu/cpu1/cpuidle/state0/usage:77181 /sys/devices/system/cpu/cpu1/cpuidle/state1/above:19 /sys/devices/system/cpu/cpu1/cpuidle/state1/below:29 /sys/devices/system/cpu/cpu1/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu1/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu1/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu1/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/rejected:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu1/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/time:2570359 /sys/devices/system/cpu/cpu1/cpuidle/state1/usage:48 /sys/devices/system/cpu/cpu1/cpuidle/state2/above:438 /sys/devices/system/cpu/cpu1/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu1/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu1/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu1/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/rejected:2203754 /sys/devices/system/cpu/cpu1/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu1/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/time:168375398 /sys/devices/system/cpu/cpu1/cpuidle/state2/usage:1612 /sys/devices/system/cpu/cpu1/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu1/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu1/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu1/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/rejected:8608 /sys/devices/system/cpu/cpu1/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu1/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu2/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu2/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu2/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu2/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu2/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu2/cpuidle/state0/time:126642431 /sys/devices/system/cpu/cpu2/cpuidle/state0/usage:74730 /sys/devices/system/cpu/cpu2/cpuidle/state1/above:5 /sys/devices/system/cpu/cpu2/cpuidle/state1/below:14 /sys/devices/system/cpu/cpu2/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu2/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu2/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu2/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/rejected:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu2/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/time:1625335 /sys/devices/system/cpu/cpu2/cpuidle/state1/usage:19 /sys/devices/system/cpu/cpu2/cpuidle/state2/above:432 /sys/devices/system/cpu/cpu2/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu2/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu2/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu2/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/rejected:1791640 /sys/devices/system/cpu/cpu2/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu2/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/time:181146324 /sys/devices/system/cpu/cpu2/cpuidle/state2/usage:1284 /sys/devices/system/cpu/cpu2/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu2/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu2/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu2/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/rejected:2670 /sys/devices/system/cpu/cpu2/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu2/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu3/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu3/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu3/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu3/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu3/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu3/cpuidle/state0/time:119337310 /sys/devices/system/cpu/cpu3/cpuidle/state0/usage:75098 /sys/devices/system/cpu/cpu3/cpuidle/state1/above:4 /sys/devices/system/cpu/cpu3/cpuidle/state1/below:3 /sys/devices/system/cpu/cpu3/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu3/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu3/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu3/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/rejected:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu3/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/time:167610 /sys/devices/system/cpu/cpu3/cpuidle/state1/usage:7 /sys/devices/system/cpu/cpu3/cpuidle/state2/above:377 /sys/devices/system/cpu/cpu3/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu3/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu3/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu3/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/rejected:1691601 /sys/devices/system/cpu/cpu3/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu3/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/time:191231077 /sys/devices/system/cpu/cpu3/cpuidle/state2/usage:1462 /sys/devices/system/cpu/cpu3/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu3/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu3/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu3/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/rejected:1184 /sys/devices/system/cpu/cpu3/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu3/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu4/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/below:23323 /sys/devices/system/cpu/cpu4/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu4/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu4/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu4/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu4/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu4/cpuidle/state0/time:97200687 /sys/devices/system/cpu/cpu4/cpuidle/state0/usage:62800 /sys/devices/system/cpu/cpu4/cpuidle/state1/above:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/below:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state1/desc:cpuoff-m /sys/devices/system/cpu/cpu4/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/latency:196 /sys/devices/system/cpu/cpu4/cpuidle/state1/name:cpuoff-m /sys/devices/system/cpu/cpu4/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/rejected:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/residency:2120 /sys/devices/system/cpu/cpu4/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/above:387 /sys/devices/system/cpu/cpu4/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state2/desc:clusteroff-m /sys/devices/system/cpu/cpu4/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/latency:247 /sys/devices/system/cpu/cpu4/cpuidle/state2/name:clusteroff-m /sys/devices/system/cpu/cpu4/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/rejected:1723590 /sys/devices/system/cpu/cpu4/cpuidle/state2/residency:2120 /sys/devices/system/cpu/cpu4/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/time:214572099 /sys/devices/system/cpu/cpu4/cpuidle/state2/usage:1399 /sys/devices/system/cpu/cpu4/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu4/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu4/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu4/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/rejected:970740 /sys/devices/system/cpu/cpu4/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu4/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu5/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/below:20762 /sys/devices/system/cpu/cpu5/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu5/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu5/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu5/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu5/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu5/cpuidle/state0/time:86751994 /sys/devices/system/cpu/cpu5/cpuidle/state0/usage:57420 /sys/devices/system/cpu/cpu5/cpuidle/state1/above:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/below:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state1/desc:cpuoff-m /sys/devices/system/cpu/cpu5/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/latency:196 /sys/devices/system/cpu/cpu5/cpuidle/state1/name:cpuoff-m /sys/devices/system/cpu/cpu5/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/rejected:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/residency:2120 /sys/devices/system/cpu/cpu5/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/above:358 /sys/devices/system/cpu/cpu5/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state2/desc:clusteroff-m /sys/devices/system/cpu/cpu5/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/latency:247 /sys/devices/system/cpu/cpu5/cpuidle/state2/name:clusteroff-m /sys/devices/system/cpu/cpu5/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/rejected:1979575 /sys/devices/system/cpu/cpu5/cpuidle/state2/residency:2120 /sys/devices/system/cpu/cpu5/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/time:224095960 /sys/devices/system/cpu/cpu5/cpuidle/state2/usage:1059 /sys/devices/system/cpu/cpu5/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu5/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu5/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu5/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/rejected:960861 /sys/devices/system/cpu/cpu5/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu5/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu6/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/below:20131 /sys/devices/system/cpu/cpu6/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu6/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu6/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu6/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu6/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu6/cpuidle/state0/time:85024544 /sys/devices/system/cpu/cpu6/cpuidle/state0/usage:60274 /sys/devices/system/cpu/cpu6/cpuidle/state1/above:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/below:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state1/desc:cpuoff-m /sys/devices/system/cpu/cpu6/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/latency:196 /sys/devices/system/cpu/cpu6/cpuidle/state1/name:cpuoff-m /sys/devices/system/cpu/cpu6/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/rejected:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/residency:2120 /sys/devices/system/cpu/cpu6/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/above:354 /sys/devices/system/cpu/cpu6/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state2/desc:clusteroff-m /sys/devices/system/cpu/cpu6/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/latency:247 /sys/devices/system/cpu/cpu6/cpuidle/state2/name:clusteroff-m /sys/devices/system/cpu/cpu6/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/rejected:1629873 /sys/devices/system/cpu/cpu6/cpuidle/state2/residency:2120 /sys/devices/system/cpu/cpu6/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/time:227166697 /sys/devices/system/cpu/cpu6/cpuidle/state2/usage:1051 /sys/devices/system/cpu/cpu6/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu6/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu6/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu6/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/rejected:947046 /sys/devices/system/cpu/cpu6/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu6/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu7/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/below:25579 /sys/devices/system/cpu/cpu7/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu7/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu7/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu7/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu7/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu7/cpuidle/state0/time:109460148 /sys/devices/system/cpu/cpu7/cpuidle/state0/usage:71494 /sys/devices/system/cpu/cpu7/cpuidle/state1/above:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/below:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state1/desc:cpuoff-b /sys/devices/system/cpu/cpu7/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/latency:147 /sys/devices/system/cpu/cpu7/cpuidle/state1/name:cpuoff-b /sys/devices/system/cpu/cpu7/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/rejected:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/residency:2580 /sys/devices/system/cpu/cpu7/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/above:391 /sys/devices/system/cpu/cpu7/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state2/desc:clusteroff-b /sys/devices/system/cpu/cpu7/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/latency:181 /sys/devices/system/cpu/cpu7/cpuidle/state2/name:clusteroff-b /sys/devices/system/cpu/cpu7/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/rejected:1525521 /sys/devices/system/cpu/cpu7/cpuidle/state2/residency:2580 /sys/devices/system/cpu/cpu7/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/time:203060565 /sys/devices/system/cpu/cpu7/cpuidle/state2/usage:1909 /sys/devices/system/cpu/cpu7/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu7/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu7/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu7/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/rejected:850982 /sys/devices/system/cpu/cpu7/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu7/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/usage:0

reviewer Tested-by on v1 1/1
#41 lore raw

Re: [PATCH v1] cpuidle: governors: teo: Rework the handling of tick wakeups

In reply to Rafael J. Wysocki
Quoted 161 lines · Rafael J. Wysocki
Quoted 138 lines · CET Christian Loehle
Quoted 137 lines · Christian Loehle
Quoted 135 lines · Rafael J. Wysocki
Quoted 120 lines · Christian Loehle
Quoted 109 lines · Rafael J. Wysocki
Quoted 6 lines · Christian Loehle
Quoted 4 lines · Rafael J. Wysocki
Quoted 2 lines · Christian Loehle

On 11/11/25 10:00, Christian Loehle wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

I see two issues:
1) Because of DECAY_SHIFT 3 values < 8 cannot decay (I guess this wouldn't really be an issue without 2))

This shouldn't be a problem.

Agreed, it should be a non-issue. Nonetheless if this wasn't the case $subject would've likely never been an issue.

Well, I think that the leftovers can be cleared when they become less than 8.

Quoted 81 lines
Quoted 55 lines
Quoted 4 lines
Quoted 4 lines

2) if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) isn't an appropriate check, it will exclude the state if it its idx_hit_sum make up the vast majority of cpu_data->total (i.e. it would have been a really good candidate actually).

Well, it would exclude the state if the sum of hits for the states below it is large enough. This is questionable (because why would hits matter here), but I attempted to make the change below and somebody reported a regression IIRC.

This check is related to the problem at hand though (see below).

Quoted 43 lines
Quoted 13 lines

I lightly tested the below, it seems to be at least comparable to mainline teo. (the documentation/comments would need adapting too, of course)

-----8<-----

drivers/cpuidle/governors/teo.c +0 -0
index bfa55c1eab5b..f8f76e3b8364 100644

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 361

Quoted 8 lines
drivers/cpuidle/governors/teo.c +1 -1
@@ -355,7 +355,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
         * all of the deeper states, a shallower idle state is likely to be a
         * better choice.
         */
-       if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {
+       if (2 * idx_intercept_sum > idx_hit_sum) {
                int first_suitable_idx = idx;
 
                /*

... nevermind the patch, idx_hit_sum is of course the sum of 0...idx-1. Maybe something like this, again lightly tested:

-----8<-----

drivers/cpuidle/governors/teo.c +2 -0
index 173ddcac540a..6bfb9cedb75e 100644
@@ -383,13 +395,15 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
                 * has been stopped already into account.
                 */
                intercept_sum = 0;
+               hit_sum = 0;
 
                for (i = idx - 1; i >= 0; i--) {
                        struct teo_bin *bin = &cpu_data->state_bins[i];
 
                        intercept_sum += bin->intercepts;
+                       hit_sum += bin->hits;
 
Quoted 10 lines

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 409

Quoted 5 lines
drivers/cpuidle/governors/teo.c +1 -1
-                       if (2 * intercept_sum > idx_intercept_sum) {
+                       if (2 * intercept_sum > cpu_data->total || 2 * hit_sum > cpu_data->total) {
                                /*
                                 * Use the current state unless it is too
                                 * shallow or disabled, in which case take the

This will only matter after the deepest state has been rejected already and on the system in question this means selecting state 0 no matter what.

Ah, right!

Quoted 11 lines

The pre-6.12 behavior can be explained if tick wakeups are taken into account.

Namely, when state 0 is chosen (because of the check mentioned above), the tick is not stopped and the sleep length is KTIME_MAX. If the subsequent wakeup is a tick one, it will be counted as a hit on the deepest state (and it will contribute to the total sum in the check mentioned above). Then, at one point, cpu_data->total will be large enough and the deepest state will become the candidate one. If tick_nohz_get_sleep_length() returns a large value at that point, the tick will be stopped and the deepest state will be entered. Nirvana ensues.

Quoted 6 lines

So fundamentally we will have to count tick-wakeups as a) nothing, which doesn't allow us to ever break out of the intercept logic that caused us to leave the tick on b) intercepts, which is bonkers and doesn't allow us to ever break out and c) hits == sleep_length would've been accurate. Of course counting a tick wakeup as a hit for sleep_length negates the intercept logic.

Quoted 8 lines

Not quite. The intercept logic is there for wakeups other than tick wakeups and timer wakeups.

I actually think that tick wakeups can be counted as hits on the deepest available state - maybe only when tick wakeups dominate the wakeup pattern - but generally this is not unreasonable: When the wakeup pattern is dominated by tick wakeups, this by itself is a good enough reason to stop the tick.

Quoted 6 lines

(assuming HZ=1000 below but it doesn't matter)
That will exclude any 'intercept' logic from having much effect if the avg idle duration is >TICK_NSEC/2, which is potentially still quite a bit off from state1 residency, like in Reka's case here.
That's why I thought it would cause unreasonable regressions here. I'll give it a go as well though!

Thanks!

Note that I'd prefer to add a check if tick wakeups dominate the wakeup pattern before setting sleep_length_ns to KTIME_MAX though. I'd first like to know how the Reka's system reacts to the more drastic variant of this change.

Quoted 8 lines
Quoted 5 lines

Below are my usual tests, it's definitely visible but the impact is limited on this platform anyway. I think if we gate the KTIME_MAX setting behind the "tick wakeup dominate" it should be acceptable!
Let's see what Reka reports.

Forgot to post the full results, anyway as expected with mtdblock (a very slow / low frequent wakeup scenario) the impact becomes clearly visible. Still hopeful that the more conservative approach will be acceptable!

Speaking of which, the patch to test is appended below, but it doesn't apply directly on top of the mainline. It is based on some other patches that have been posted recently, so here's a git branch with all of the requisite material:

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git cpuidle-teo-testing

Reka, please try this one and let us know how it goes.

---
From: Rafael J. Wysocki <[email protected]>
Subject: [PATCH v1] cpuidle: governors: teo: Rework the handling of tick wakeups

Quoted 5 lines

If the wakeup pattern is clearly dominated by tick wakeups, count those wakeups as hits on the deepest available idle state to increase the likelihood of stopping the tick, especially on systems where there are only 2 usable idle states and the tick can only be stopped when the deeper state is selected.

Maybe a sentence on the consequence that without this we may be ever-stuck in the intercept logic.

Quoted 4 lines

This change is expected to reduce power on some systems where state 0 is selected relatively often even though they are almost idle.

Should be a fixes tag, but I think it's a lot earlier than just 4b20b07ce72f ("cpuidle: teo: Don't count non-existent intercepts")

Quoted 51 lines
---
 drivers/cpuidle/governors/teo.c |   39 ++++++++++++++++++++++++---------------
 1 file changed, 24 insertions(+), 15 deletions(-)
drivers/cpuidle/governors/teo.c +12 -4
@@ -133,17 +133,19 @@ struct teo_bin {
  * @sleep_length_ns: Time till the closest timer event (at the selection time).
  * @state_bins: Idle state data bins for this CPU.
  * @total: Grand total of the "intercepts" and "hits" metrics for all bins.
+ * @total_tick: Wakeups by the scheduler tick.
  * @tick_intercepts: "Intercepts" before TICK_NSEC.
  * @short_idles: Wakeups after short idle periods.
- * @artificial_wakeup: Set if the wakeup has been triggered by a safety net.
+ * @tick_wakeup: Set if the last wakeup was by the scheduler tick.
  */
 struct teo_cpu {
 	s64 sleep_length_ns;
 	struct teo_bin state_bins[CPUIDLE_STATE_MAX];
 	unsigned int total;
+	unsigned int total_tick;
 	unsigned int tick_intercepts;
 	unsigned int short_idles;
-	bool artificial_wakeup;
+	bool tick_wakeup;
 };
 
 static DEFINE_PER_CPU(struct teo_cpu, teo_cpus);
@@ -172,9 +174,10 @@ static void teo_update(struct cpuidle_dr
 
 	teo_decay(&cpu_data->short_idles);
 
-	if (cpu_data->artificial_wakeup) {
+	if (dev->poll_time_limit) {
+		dev->poll_time_limit = false;
 		/*
-		 * If one of the safety nets has triggered, assume that this
+		 * Polling state timeout has triggered, so assume that this
 		 * might have been a long sleep.
 		 */
 		measured_ns = S64_MAX;
@@ -223,6 +226,21 @@ static void teo_update(struct cpuidle_dr
 	cpu_data->total = total + PULSE;
 
 	teo_decay(&cpu_data->tick_intercepts);
+
+	teo_decay(&cpu_data->total_tick);
+	if (cpu_data->tick_wakeup) {
+		cpu_data->total_tick += PULSE;
+		/*

drivers/cpuidle/governors/teo.c static void teo_update(struct cpuidle_dr · line 243

Quoted 10 lines
drivers/cpuidle/governors/teo.c +10 -0
+		 * If tick wakeups dominate the wakeup pattern, count this one
+		 * as a hit on the deepest available idle state to increase the
+		 * likelihood of stopping the tick.
+		 */
+		if (3 * cpu_data->total_tick > 2 * cpu_data->total) {
+			cpu_data->state_bins[drv->state_count-1].hits += PULSE;
+			return;
+		}
+	}
+

What if this state happens to be disabled?
If we're walking through the states anyway to find the deepest non-disabled one, I think the first non-disabled above TICK_NSEC might be an even better choice?

Quoted 12 lines
drivers/cpuidle/governors/teo.c +2 -2
 	/*
 	 * If the measured idle duration falls into the same bin as the sleep
 	 * length, this is a "hit", so update the "hits" metric for that bin.
@@ -512,18 +530,9 @@ static void teo_reflect(struct cpuidle_d
 {
 	struct teo_cpu *cpu_data = per_cpu_ptr(&teo_cpus, dev->cpu);
 
+	cpu_data->tick_wakeup = tick_nohz_idle_got_tick();
+
 	dev->last_state_idx = state;
-	if (dev->poll_time_limit ||
-	    (tick_nohz_idle_got_tick() && cpu_data->sleep_length_ns > TICK_NSEC)) {

drivers/cpuidle/governors/teo.c static void teo_reflect(struct cpuidle_d · line 536

Quoted 10 lines
drivers/cpuidle/governors/teo.c +0 -9
-		/*
-		 * The wakeup was not "genuine", but triggered by one of the
-		 * safety nets.
-		 */
-		dev->poll_time_limit = false;
-		cpu_data->artificial_wakeup = true;
-	} else {
-		cpu_data->artificial_wakeup = false;
-	}
 }

The result is definitely still visible, especially looking at the belows, but I'd say this is in a reasonable range.

device     gov        iter     iops      idles  idle_miss      ratio     belows     aboves
mmcblk1    teo-m      0      2354     648224        134      0.000        107         27
mmcblk1    teo-m      1      2334     644228         65      0.000         45         20
mmcblk1    teo-m      2      2331     640746         45      0.000         40          5
mmcblk1    teo-tickw  0      2352     596914        676      0.001        669          7
mmcblk1    teo-tickw  1      2331     617500       1553      0.003       1540         13
mmcblk1    teo-tickw  2      2330     613358       1733      0.003       1683         50
mmcblk2    teo-m      0      5702     854292        348      0.000        322         26
mmcblk2    teo-m      1      5657     640504        133      0.000         72         61
mmcblk2    teo-m      2      5651     704356        772      0.001        687         85
mmcblk2    teo-tickw  0      5704     871038       1744      0.002       1712         32
mmcblk2    teo-tickw  1      5617     476288       1791      0.004       1744         47
mmcblk2    teo-tickw  2      5640     632406       3225      0.005       3216          9
nvme0n1    teo-m      0     11446     832564         89      0.000         51         38
nvme0n1    teo-m      1     10568     780452        149      0.000         72         77
nvme0n1    teo-m      2     10505     777496        148      0.000         75         73
nvme0n1    teo-tickw  0     10614     756866       1531      0.002       1482         49
nvme0n1    teo-tickw  1     10583     750434       1427      0.002       1334         93
nvme0n1    teo-tickw  2     11229     796942       1658      0.002       1586         72
sda        teo-m      0      1271     869172        318      0.000        315          3
sda        teo-m      1      1271     798090       1209      0.002       1037        172
sda        teo-m      2      1270     807612         45      0.000         34         11
sda        teo-tickw  0      1269     786656        163      0.000        136         27
sda        teo-tickw  1      1270     779824       1515      0.002       1499         16
sda        teo-tickw  2      1271     600052       1610      0.003       1572         38
nullb0     teo-m      0    103325     105674        156      0.001         96         60
nullb0     teo-m      1    103421     111596         32      0.000         26          6
nullb0     teo-m      2    102145     112404        493      0.004        309        184
nullb0     teo-tickw  0    102055      77872       1672      0.021       1620         52
nullb0     teo-tickw  1    103397      77576       1636      0.021       1599         37
nullb0     teo-tickw  2    103637      87288       1733      0.020       1596        137
mtdblock3  teo-m      0       258     748824       1613      0.002       1600         13
mtdblock3  teo-m      1       258     765398        447      0.001        431         16
mtdblock3  teo-m      2       255     917614       3061      0.003       3044         17
mtdblock3  teo-tickw  0       261     289448       2035      0.007       2031          4
mtdblock3  teo-tickw  1       257     830352       2020      0.002       1986         34
mtdblock3  teo-tickw  2       260     392622       2868      0.007       2854         14
test       gov        i     score  %change    idles  idle_miss  miss_rt   belows   aboves
schbench   teo-m      0       194    0      27068         54      0.002         48          6
schbench   teo-m      1       213   10      27380          6      0.000          5          1
schbench   teo-m      2       195    0      24892          2      0.000          2          0
schbench   teo-m      3       194   -0      25356         20      0.001         17          3
schbench   teo-m      4       195    0      24966          7      0.000          7          0
schbench   teo-tickw  0       195    0      24226         48      0.002         47          1
schbench   teo-tickw  1       192   -1      25324         42      0.002         39          3
schbench   teo-tickw  2       192   -1      25214         43      0.002         42          1
schbench   teo-tickw  3       198    2      24658         59      0.002         57          2
schbench   teo-tickw  4       192   -1      25293         48      0.002         45          3
ebizzy     teo-m      0     10686    0       1120         12      0.011         10          2
ebizzy     teo-m      1     10720    0       1282         14      0.011         14          0
ebizzy     teo-m      2     10691    0       1078         11      0.010         11          0
ebizzy     teo-m      3     10666   -0       1306         15      0.011         12          3
ebizzy     teo-m      4     10699    0       1328          9      0.007          8          1
ebizzy     teo-tickw  0     10684   -0        902         11      0.012         11          0
ebizzy     teo-tickw  1     10704    0       1032         20      0.019         20          0
ebizzy     teo-tickw  2     10684   -0        914         22      0.024         18          4
ebizzy     teo-tickw  3     10681   -0       1208         46      0.038         43          3
ebizzy     teo-tickw  4     10702    0       1014         20      0.020         19          1
adrestia   teo-m      0        12    0     103750         19      0.000         16          3
adrestia   teo-m      1        12    0     104082         20      0.000         19          1
adrestia   teo-m      2        12    0     103830         22      0.000         12         10
adrestia   teo-m      3        12    0     104088         26      0.000         18          8
adrestia   teo-m      4        12    0     103740         24      0.000         18          6
adrestia   teo-tickw  0        12    0     102792         17      0.000         17          0
adrestia   teo-tickw  1        12    0     103020         39      0.000         38          1
adrestia   teo-tickw  2        12    0     102870         28      0.000         27          1
adrestia   teo-tickw  3        12    0     102746         32      0.000         30          2
adrestia   teo-tickw  4        12    0     102926         34      0.000         23         11
#42 lore raw

Re: [PATCH v1] cpuidle: governors: teo: Rework the handling of tick wakeups

Quoted 163 lines · Christian Loehle
Quoted 161 lines · Rafael J. Wysocki
Quoted 138 lines · CET Christian Loehle
Quoted 137 lines · Christian Loehle
Quoted 135 lines · Rafael J. Wysocki
Quoted 120 lines · Christian Loehle
Quoted 109 lines · Rafael J. Wysocki
Quoted 6 lines · Christian Loehle
Quoted 4 lines · Rafael J. Wysocki
Quoted 2 lines · Christian Loehle

On 11/11/25 10:00, Christian Loehle wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

I see two issues:
1) Because of DECAY_SHIFT 3 values < 8 cannot decay (I guess this wouldn't really be an issue without 2))

This shouldn't be a problem.

Agreed, it should be a non-issue. Nonetheless if this wasn't the case $subject would've likely never been an issue.

Well, I think that the leftovers can be cleared when they become less than 8.

Quoted 81 lines
Quoted 55 lines
Quoted 4 lines
Quoted 4 lines

2) if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) isn't an appropriate check, it will exclude the state if it its idx_hit_sum make up the vast majority of cpu_data->total (i.e. it would have been a really good candidate actually).

Well, it would exclude the state if the sum of hits for the states below it is large enough. This is questionable (because why would hits matter here), but I attempted to make the change below and somebody reported a regression IIRC.

This check is related to the problem at hand though (see below).

Quoted 43 lines
Quoted 13 lines

I lightly tested the below, it seems to be at least comparable to mainline teo. (the documentation/comments would need adapting too, of course)

-----8<-----

drivers/cpuidle/governors/teo.c +0 -0
index bfa55c1eab5b..f8f76e3b8364 100644

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 361

Quoted 8 lines
drivers/cpuidle/governors/teo.c +1 -1
@@ -355,7 +355,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
         * all of the deeper states, a shallower idle state is likely to be a
         * better choice.
         */
-       if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {
+       if (2 * idx_intercept_sum > idx_hit_sum) {
                int first_suitable_idx = idx;
 
                /*

... nevermind the patch, idx_hit_sum is of course the sum of 0...idx-1. Maybe something like this, again lightly tested:

-----8<-----

drivers/cpuidle/governors/teo.c +2 -0
index 173ddcac540a..6bfb9cedb75e 100644
@@ -383,13 +395,15 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
                 * has been stopped already into account.
                 */
                intercept_sum = 0;
+               hit_sum = 0;
 
                for (i = idx - 1; i >= 0; i--) {
                        struct teo_bin *bin = &cpu_data->state_bins[i];
 
                        intercept_sum += bin->intercepts;
+                       hit_sum += bin->hits;
 
Quoted 10 lines

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 409

Quoted 5 lines
drivers/cpuidle/governors/teo.c +1 -1
-                       if (2 * intercept_sum > idx_intercept_sum) {
+                       if (2 * intercept_sum > cpu_data->total || 2 * hit_sum > cpu_data->total) {
                                /*
                                 * Use the current state unless it is too
                                 * shallow or disabled, in which case take the

This will only matter after the deepest state has been rejected already and on the system in question this means selecting state 0 no matter what.

Ah, right!

Quoted 11 lines

The pre-6.12 behavior can be explained if tick wakeups are taken into account.

Namely, when state 0 is chosen (because of the check mentioned above), the tick is not stopped and the sleep length is KTIME_MAX. If the subsequent wakeup is a tick one, it will be counted as a hit on the deepest state (and it will contribute to the total sum in the check mentioned above). Then, at one point, cpu_data->total will be large enough and the deepest state will become the candidate one. If tick_nohz_get_sleep_length() returns a large value at that point, the tick will be stopped and the deepest state will be entered. Nirvana ensues.

Quoted 6 lines

So fundamentally we will have to count tick-wakeups as a) nothing, which doesn't allow us to ever break out of the intercept logic that caused us to leave the tick on b) intercepts, which is bonkers and doesn't allow us to ever break out and c) hits == sleep_length would've been accurate. Of course counting a tick wakeup as a hit for sleep_length negates the intercept logic.

Quoted 8 lines

Not quite. The intercept logic is there for wakeups other than tick wakeups and timer wakeups.

I actually think that tick wakeups can be counted as hits on the deepest available state - maybe only when tick wakeups dominate the wakeup pattern - but generally this is not unreasonable: When the wakeup pattern is dominated by tick wakeups, this by itself is a good enough reason to stop the tick.

Quoted 6 lines

(assuming HZ=1000 below but it doesn't matter)
That will exclude any 'intercept' logic from having much effect if the avg idle duration is >TICK_NSEC/2, which is potentially still quite a bit off from state1 residency, like in Reka's case here.
That's why I thought it would cause unreasonable regressions here. I'll give it a go as well though!

Thanks!

Note that I'd prefer to add a check if tick wakeups dominate the wakeup pattern before setting sleep_length_ns to KTIME_MAX though. I'd first like to know how the Reka's system reacts to the more drastic variant of this change.

Quoted 8 lines
Quoted 5 lines

Below are my usual tests, it's definitely visible but the impact is limited on this platform anyway. I think if we gate the KTIME_MAX setting behind the "tick wakeup dominate" it should be acceptable!
Let's see what Reka reports.

Forgot to post the full results, anyway as expected with mtdblock (a very slow / low frequent wakeup scenario) the impact becomes clearly visible. Still hopeful that the more conservative approach will be acceptable!

Speaking of which, the patch to test is appended below, but it doesn't apply directly on top of the mainline. It is based on some other patches that have been posted recently, so here's a git branch with all of the requisite material:

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git cpuidle-teo-testing

Reka, please try this one and let us know how it goes.

---
From: Rafael J. Wysocki <[email protected]>
Subject: [PATCH v1] cpuidle: governors: teo: Rework the handling of tick wakeups

Quoted 8 lines
Quoted 5 lines

If the wakeup pattern is clearly dominated by tick wakeups, count those wakeups as hits on the deepest available idle state to increase the likelihood of stopping the tick, especially on systems where there are only 2 usable idle states and the tick can only be stopped when the deeper state is selected.

Maybe a sentence on the consequence that without this we may be ever-stuck in the intercept logic.

Good point, I'll add one.

Quoted 7 lines
Quoted 4 lines

This change is expected to reduce power on some systems where state 0 is selected relatively often even though they are almost idle.

Should be a fixes tag, but I think it's a lot earlier than just 4b20b07ce72f ("cpuidle: teo: Don't count non-existent intercepts")

I'll add the Fixes: tag pointing to this because it has exposed the issue, but I agree that it was there earlier.

Quoted 57 lines
Quoted 57 lines
---
 drivers/cpuidle/governors/teo.c |   39 ++++++++++++++++++++++++---------------
 1 file changed, 24 insertions(+), 15 deletions(-)
drivers/cpuidle/governors/teo.c +18 -4
@@ -133,17 +133,19 @@ struct teo_bin {
  * @sleep_length_ns: Time till the closest timer event (at the selection time).
  * @state_bins: Idle state data bins for this CPU.
  * @total: Grand total of the "intercepts" and "hits" metrics for all bins.
+ * @total_tick: Wakeups by the scheduler tick.
  * @tick_intercepts: "Intercepts" before TICK_NSEC.
  * @short_idles: Wakeups after short idle periods.
- * @artificial_wakeup: Set if the wakeup has been triggered by a safety net.
+ * @tick_wakeup: Set if the last wakeup was by the scheduler tick.
  */
 struct teo_cpu {
      s64 sleep_length_ns;
      struct teo_bin state_bins[CPUIDLE_STATE_MAX];
      unsigned int total;
+     unsigned int total_tick;
      unsigned int tick_intercepts;
      unsigned int short_idles;
-     bool artificial_wakeup;
+     bool tick_wakeup;
 };
 
 static DEFINE_PER_CPU(struct teo_cpu, teo_cpus);
@@ -172,9 +174,10 @@ static void teo_update(struct cpuidle_dr
 
      teo_decay(&cpu_data->short_idles);
 
-     if (cpu_data->artificial_wakeup) {
+     if (dev->poll_time_limit) {
+             dev->poll_time_limit = false;
              /*
-              * If one of the safety nets has triggered, assume that this
+              * Polling state timeout has triggered, so assume that this
               * might have been a long sleep.
               */
              measured_ns = S64_MAX;
@@ -223,6 +226,21 @@ static void teo_update(struct cpuidle_dr
      cpu_data->total = total + PULSE;
 
      teo_decay(&cpu_data->tick_intercepts);
+
+     teo_decay(&cpu_data->total_tick);
+     if (cpu_data->tick_wakeup) {
+             cpu_data->total_tick += PULSE;
+             /*
+              * If tick wakeups dominate the wakeup pattern, count this one
+              * as a hit on the deepest available idle state to increase the
+              * likelihood of stopping the tick.
+              */
+             if (3 * cpu_data->total_tick > 2 * cpu_data->total) {
+                     cpu_data->state_bins[drv->state_count-1].hits += PULSE;
Quoted 8 lines

drivers/cpuidle/governors/teo.c static void teo_update(struct cpuidle_dr · line 243

Quoted 4 lines
drivers/cpuidle/governors/teo.c +4 -0
+                     return;
+             }
+     }
+

What if this state happens to be disabled?
If we're walking through the states anyway to find the deepest non-disabled one, I think the first non-disabled above TICK_NSEC might be an even better choice?

It actually doesn't matter AFAICS because those hits only come to play in the

    if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {

check in teo_select() and they are included in cpu_data->total in either case.

Quoted 25 lines
Quoted 12 lines
drivers/cpuidle/governors/teo.c +2 -2
      /*
       * If the measured idle duration falls into the same bin as the sleep
       * length, this is a "hit", so update the "hits" metric for that bin.
@@ -512,18 +530,9 @@ static void teo_reflect(struct cpuidle_d
 {
      struct teo_cpu *cpu_data = per_cpu_ptr(&teo_cpus, dev->cpu);
 
+     cpu_data->tick_wakeup = tick_nohz_idle_got_tick();
+
      dev->last_state_idx = state;
-     if (dev->poll_time_limit ||
-         (tick_nohz_idle_got_tick() && cpu_data->sleep_length_ns > TICK_NSEC)) {

drivers/cpuidle/governors/teo.c static void teo_reflect(struct cpuidle_d · line 536

Quoted 10 lines
drivers/cpuidle/governors/teo.c +0 -9
-             /*
-              * The wakeup was not "genuine", but triggered by one of the
-              * safety nets.
-              */
-             dev->poll_time_limit = false;
-             cpu_data->artificial_wakeup = true;
-     } else {
-             cpu_data->artificial_wakeup = false;
-     }
 }

The result is definitely still visible, especially looking at the belows, but I'd say this is in a reasonable range.

Quoted 1 line

Thanks!

#43 lore raw

Re: [PATCH v1] cpuidle: governors: teo: Rework the handling of tick wakeups

Quoted 253 lines · Rafael J. Wysocki
Quoted 163 lines · Christian Loehle
Quoted 161 lines · Rafael J. Wysocki
Quoted 138 lines · CET Christian Loehle
Quoted 137 lines · Christian Loehle
Quoted 135 lines · Rafael J. Wysocki
Quoted 120 lines · Christian Loehle
Quoted 109 lines · Rafael J. Wysocki
Quoted 6 lines · Christian Loehle
Quoted 4 lines · Rafael J. Wysocki
Quoted 2 lines · Christian Loehle

On 11/11/25 10:00, Christian Loehle wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

I see two issues:
1) Because of DECAY_SHIFT 3 values < 8 cannot decay (I guess this wouldn't really be an issue without 2))

This shouldn't be a problem.

Agreed, it should be a non-issue. Nonetheless if this wasn't the case $subject would've likely never been an issue.

Well, I think that the leftovers can be cleared when they become less than 8.

Quoted 81 lines
Quoted 55 lines
Quoted 4 lines
Quoted 4 lines

2) if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) isn't an appropriate check, it will exclude the state if it its idx_hit_sum make up the vast majority of cpu_data->total (i.e. it would have been a really good candidate actually).

Well, it would exclude the state if the sum of hits for the states below it is large enough. This is questionable (because why would hits matter here), but I attempted to make the change below and somebody reported a regression IIRC.

This check is related to the problem at hand though (see below).

Quoted 43 lines
Quoted 13 lines

I lightly tested the below, it seems to be at least comparable to mainline teo. (the documentation/comments would need adapting too, of course)

-----8<-----

drivers/cpuidle/governors/teo.c +0 -0
index bfa55c1eab5b..f8f76e3b8364 100644

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 361

Quoted 8 lines
drivers/cpuidle/governors/teo.c +1 -1
@@ -355,7 +355,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
         * all of the deeper states, a shallower idle state is likely to be a
         * better choice.
         */
-       if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {
+       if (2 * idx_intercept_sum > idx_hit_sum) {
                int first_suitable_idx = idx;
 
                /*

... nevermind the patch, idx_hit_sum is of course the sum of 0...idx-1. Maybe something like this, again lightly tested:

-----8<-----

drivers/cpuidle/governors/teo.c +2 -0
index 173ddcac540a..6bfb9cedb75e 100644
@@ -383,13 +395,15 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
                 * has been stopped already into account.
                 */
                intercept_sum = 0;
+               hit_sum = 0;
 
                for (i = idx - 1; i >= 0; i--) {
                        struct teo_bin *bin = &cpu_data->state_bins[i];
 
                        intercept_sum += bin->intercepts;
+                       hit_sum += bin->hits;
 
Quoted 10 lines

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 409

Quoted 5 lines
drivers/cpuidle/governors/teo.c +1 -1
-                       if (2 * intercept_sum > idx_intercept_sum) {
+                       if (2 * intercept_sum > cpu_data->total || 2 * hit_sum > cpu_data->total) {
                                /*
                                 * Use the current state unless it is too
                                 * shallow or disabled, in which case take the

This will only matter after the deepest state has been rejected already and on the system in question this means selecting state 0 no matter what.

Ah, right!

Quoted 11 lines

The pre-6.12 behavior can be explained if tick wakeups are taken into account.

Namely, when state 0 is chosen (because of the check mentioned above), the tick is not stopped and the sleep length is KTIME_MAX. If the subsequent wakeup is a tick one, it will be counted as a hit on the deepest state (and it will contribute to the total sum in the check mentioned above). Then, at one point, cpu_data->total will be large enough and the deepest state will become the candidate one. If tick_nohz_get_sleep_length() returns a large value at that point, the tick will be stopped and the deepest state will be entered. Nirvana ensues.

Quoted 6 lines

So fundamentally we will have to count tick-wakeups as a) nothing, which doesn't allow us to ever break out of the intercept logic that caused us to leave the tick on b) intercepts, which is bonkers and doesn't allow us to ever break out and c) hits == sleep_length would've been accurate. Of course counting a tick wakeup as a hit for sleep_length negates the intercept logic.

Quoted 8 lines

Not quite. The intercept logic is there for wakeups other than tick wakeups and timer wakeups.

I actually think that tick wakeups can be counted as hits on the deepest available state - maybe only when tick wakeups dominate the wakeup pattern - but generally this is not unreasonable: When the wakeup pattern is dominated by tick wakeups, this by itself is a good enough reason to stop the tick.

Quoted 6 lines

(assuming HZ=1000 below but it doesn't matter)
That will exclude any 'intercept' logic from having much effect if the avg idle duration is >TICK_NSEC/2, which is potentially still quite a bit off from state1 residency, like in Reka's case here.
That's why I thought it would cause unreasonable regressions here. I'll give it a go as well though!

Thanks!

Note that I'd prefer to add a check if tick wakeups dominate the wakeup pattern before setting sleep_length_ns to KTIME_MAX though. I'd first like to know how the Reka's system reacts to the more drastic variant of this change.

Quoted 8 lines
Quoted 5 lines

Below are my usual tests, it's definitely visible but the impact is limited on this platform anyway. I think if we gate the KTIME_MAX setting behind the "tick wakeup dominate" it should be acceptable!
Let's see what Reka reports.

Forgot to post the full results, anyway as expected with mtdblock (a very slow / low frequent wakeup scenario) the impact becomes clearly visible. Still hopeful that the more conservative approach will be acceptable!

Speaking of which, the patch to test is appended below, but it doesn't apply directly on top of the mainline. It is based on some other patches that have been posted recently, so here's a git branch with all of the requisite material:

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git cpuidle-teo-testing

Reka, please try this one and let us know how it goes.

---
From: Rafael J. Wysocki <[email protected]>
Subject: [PATCH v1] cpuidle: governors: teo: Rework the handling of tick wakeups

Quoted 8 lines
Quoted 5 lines

If the wakeup pattern is clearly dominated by tick wakeups, count those wakeups as hits on the deepest available idle state to increase the likelihood of stopping the tick, especially on systems where there are only 2 usable idle states and the tick can only be stopped when the deeper state is selected.

Maybe a sentence on the consequence that without this we may be ever-stuck in the intercept logic.

Good point, I'll add one.

Quoted 7 lines
Quoted 4 lines

This change is expected to reduce power on some systems where state 0 is selected relatively often even though they are almost idle.

Should be a fixes tag, but I think it's a lot earlier than just 4b20b07ce72f ("cpuidle: teo: Don't count non-existent intercepts")

I'll add the Fixes: tag pointing to this because it has exposed the issue, but I agree that it was there earlier.

Quoted 57 lines
Quoted 57 lines
---
 drivers/cpuidle/governors/teo.c |   39 ++++++++++++++++++++++++---------------
 1 file changed, 24 insertions(+), 15 deletions(-)
drivers/cpuidle/governors/teo.c +18 -4
@@ -133,17 +133,19 @@ struct teo_bin {
  * @sleep_length_ns: Time till the closest timer event (at the selection time).
  * @state_bins: Idle state data bins for this CPU.
  * @total: Grand total of the "intercepts" and "hits" metrics for all bins.
+ * @total_tick: Wakeups by the scheduler tick.
  * @tick_intercepts: "Intercepts" before TICK_NSEC.
  * @short_idles: Wakeups after short idle periods.
- * @artificial_wakeup: Set if the wakeup has been triggered by a safety net.
+ * @tick_wakeup: Set if the last wakeup was by the scheduler tick.
  */
 struct teo_cpu {
      s64 sleep_length_ns;
      struct teo_bin state_bins[CPUIDLE_STATE_MAX];
      unsigned int total;
+     unsigned int total_tick;
      unsigned int tick_intercepts;
      unsigned int short_idles;
-     bool artificial_wakeup;
+     bool tick_wakeup;
 };
 
 static DEFINE_PER_CPU(struct teo_cpu, teo_cpus);
@@ -172,9 +174,10 @@ static void teo_update(struct cpuidle_dr
 
      teo_decay(&cpu_data->short_idles);
 
-     if (cpu_data->artificial_wakeup) {
+     if (dev->poll_time_limit) {
+             dev->poll_time_limit = false;
              /*
-              * If one of the safety nets has triggered, assume that this
+              * Polling state timeout has triggered, so assume that this
               * might have been a long sleep.
               */
              measured_ns = S64_MAX;
@@ -223,6 +226,21 @@ static void teo_update(struct cpuidle_dr
      cpu_data->total = total + PULSE;
 
      teo_decay(&cpu_data->tick_intercepts);
+
+     teo_decay(&cpu_data->total_tick);
+     if (cpu_data->tick_wakeup) {
+             cpu_data->total_tick += PULSE;
+             /*
+              * If tick wakeups dominate the wakeup pattern, count this one
+              * as a hit on the deepest available idle state to increase the
+              * likelihood of stopping the tick.
+              */
+             if (3 * cpu_data->total_tick > 2 * cpu_data->total) {
+                     cpu_data->state_bins[drv->state_count-1].hits += PULSE;
Quoted 8 lines

drivers/cpuidle/governors/teo.c static void teo_update(struct cpuidle_dr · line 243

Quoted 4 lines
drivers/cpuidle/governors/teo.c +4 -0
+                     return;
+             }
+     }
+

What if this state happens to be disabled?
If we're walking through the states anyway to find the deepest non-disabled one, I think the first non-disabled above TICK_NSEC might be an even better choice?

Quoted 5 lines

It actually doesn't matter AFAICS because those hits only come to play in the

    if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {

check in teo_select() and they are included in cpu_data->total in either case.

Ah right, they will be part of total, not part of idx_hit_sum which is what we want. Sorry for the noise.

Quoted 1 line

[snip]

#44 lore raw
In reply to Christian Loehle

Hi Christian,

This email is about testing as opposed to about the subject and patches. Specifically, the " adrestia" test.

On 2025.11.13 07:43 Christian wrote:
...

Quoted 3 lines

Forgot to post the full results, anyway as expected with mtdblock (a very slow / low frequent wakeup scenario) the impact becomes clearly visible. Still hopeful that the more conservative approach will be acceptable!

...

Quoted 1 line

test gov i score %change idles idle_miss miss_rt belows aboves

...

Quoted 11 lines
adrestia   teo-m      0         8    0     103680         21      0.000         19          2   <<<<
adrestia   teo-m      1        12   50     104026         31      0.000         16         15
adrestia   teo-m      2        12   50     104063         32      0.000         24          8
adrestia   teo-m      3        12   50     104768         44      0.000         22         22
adrestia   teo-m      4        12   50     104388         18      0.000         16          2
adrestia   teo-patch  0        12   50     103096         67      0.001         65          2
adrestia   teo-patch  1        12   50     103128         57      0.001         49          8
adrestia   teo-patch  2         8    0     102812         78      0.001         72          6    <<<<
adrestia   teo-patch  3        12   50     102990         60      0.001         55          5
adrestia   teo-patch  4        12   50     103168         24      0.000         24          0

...

I am curious about the significant variations between iterations for your adrestia test. And what does "score" mean for this test?

I don't know if we are running the exact same test [1], but my "score" means wakeup cost (periodic, 20us), and for the 6.18-rc4 kernel is around 2.7 uSec, independent of the various patches or teo verses menu governors. My results are very repeatable.
With kernel 6.13 I was getting 3.3 uSec, but I suspect the differences have more to do with other kernel changes than any idle governor changes.

My typical testing command line is:

./adrestia -a 20 -l 2000000 -t 500 wakeup-periodic

Where:

-a      arrival time (microseconds) << Only used for periodic test, sleep time. Actually arrival rate.
-l      number of loops
-L      list tests  << wakeup-periodic and wakeup-single
-s      service time (microseconds) << This has not been implemented.
-t      thread count

Those run parameters give a reasonable amount of idle time using both idle states 0 and 1.

[1] It is likely we are not running the exact same test, since I converted the source code I use from uSec to nSec. Notes to myself from a couple of years ago suggest that I am using the version from [2] and that the version from [3] does not compile (at least for me).

[2] https://github.com/notcarbide/adrestia
[3] https://github.com/mfleming/adrestia

... Doug

#45 lore raw
In reply to Rafael J. Wysocki
Quoted 119 lines · Rafael J. Wysocki
Quoted 6 lines · Christian Loehle
Quoted 4 lines · Rafael J. Wysocki
Quoted 2 lines · Christian Loehle

On 11/11/25 10:00, Christian Loehle wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

I see two issues:
1) Because of DECAY_SHIFT 3 values < 8 cannot decay (I guess this wouldn't really be an issue without 2))

This shouldn't be a problem.

Agreed, it should be a non-issue. Nonetheless if this wasn't the case $subject would've likely never been an issue.

Well, I think that the leftovers can be cleared when they become less than 8.

Quoted 81 lines
Quoted 55 lines
Quoted 4 lines
Quoted 4 lines

2) if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) isn't an appropriate check, it will exclude the state if it its idx_hit_sum make up the vast majority of cpu_data->total (i.e. it would have been a really good candidate actually).

Well, it would exclude the state if the sum of hits for the states below it is large enough. This is questionable (because why would hits matter here), but I attempted to make the change below and somebody reported a regression IIRC.

This check is related to the problem at hand though (see below).

Quoted 43 lines
Quoted 13 lines

I lightly tested the below, it seems to be at least comparable to mainline teo. (the documentation/comments would need adapting too, of course)

-----8<-----

drivers/cpuidle/governors/teo.c +0 -0
index bfa55c1eab5b..f8f76e3b8364 100644

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 361

Quoted 8 lines
drivers/cpuidle/governors/teo.c +1 -1
@@ -355,7 +355,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
         * all of the deeper states, a shallower idle state is likely to be a
         * better choice.
         */
-       if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {
+       if (2 * idx_intercept_sum > idx_hit_sum) {
                int first_suitable_idx = idx;
 
                /*

... nevermind the patch, idx_hit_sum is of course the sum of 0...idx-1. Maybe something like this, again lightly tested:

-----8<-----

drivers/cpuidle/governors/teo.c +2 -0
index 173ddcac540a..6bfb9cedb75e 100644
@@ -383,13 +395,15 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
                 * has been stopped already into account.
                 */
                intercept_sum = 0;
+               hit_sum = 0;
 
                for (i = idx - 1; i >= 0; i--) {
                        struct teo_bin *bin = &cpu_data->state_bins[i];
 
                        intercept_sum += bin->intercepts;
+                       hit_sum += bin->hits;
 
Quoted 10 lines

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 409

Quoted 5 lines
drivers/cpuidle/governors/teo.c +1 -1
-                       if (2 * intercept_sum > idx_intercept_sum) {
+                       if (2 * intercept_sum > cpu_data->total || 2 * hit_sum > cpu_data->total) {
                                /*
                                 * Use the current state unless it is too
                                 * shallow or disabled, in which case take the

This will only matter after the deepest state has been rejected already and on the system in question this means selecting state 0 no matter what.

Ah, right!

Quoted 11 lines

The pre-6.12 behavior can be explained if tick wakeups are taken into account.

Namely, when state 0 is chosen (because of the check mentioned above), the tick is not stopped and the sleep length is KTIME_MAX. If the subsequent wakeup is a tick one, it will be counted as a hit on the deepest state (and it will contribute to the total sum in the check mentioned above). Then, at one point, cpu_data->total will be large enough and the deepest state will become the candidate one. If tick_nohz_get_sleep_length() returns a large value at that point, the tick will be stopped and the deepest state will be entered. Nirvana ensues.

Quoted 6 lines

So fundamentally we will have to count tick-wakeups as a) nothing, which doesn't allow us to ever break out of the intercept logic that caused us to leave the tick on b) intercepts, which is bonkers and doesn't allow us to ever break out and c) hits == sleep_length would've been accurate. Of course counting a tick wakeup as a hit for sleep_length negates the intercept logic.

Not quite. The intercept logic is there for wakeups other than tick wakeups and timer wakeups.

I actually think that tick wakeups can be counted as hits on the deepest available state - maybe only when tick wakeups dominate the wakeup pattern - but generally this is not unreasonable: When the wakeup pattern is dominated by tick wakeups, this by itself is a good enough reason to stop the tick.

Quoted 3 lines

The attached patch tests the theory above, let's see how far it gets us. Reka, can you please test this one on top of the mainline and see if it gets you more deep idle state residency?

Yes, that definitely makes a difference! Results attached. They're pretty comparable to 6.6 - about 2% WFI on average across CPUs.

/sys/devices/system/cpu/cpu0/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu0/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu0/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu0/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu0/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu0/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu0/cpuidle/state0/time:8504080 /sys/devices/system/cpu/cpu0/cpuidle/state0/usage:29719 /sys/devices/system/cpu/cpu0/cpuidle/state1/above:4467 /sys/devices/system/cpu/cpu0/cpuidle/state1/below:3581 /sys/devices/system/cpu/cpu0/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu0/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu0/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu0/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/rejected:95 /sys/devices/system/cpu/cpu0/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu0/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/time:73244853 /sys/devices/system/cpu/cpu0/cpuidle/state1/usage:8131 /sys/devices/system/cpu/cpu0/cpuidle/state2/above:3705 /sys/devices/system/cpu/cpu0/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu0/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu0/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu0/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/rejected:2269863 /sys/devices/system/cpu/cpu0/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu0/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/time:127072690 /sys/devices/system/cpu/cpu0/cpuidle/state2/usage:9093 /sys/devices/system/cpu/cpu0/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu0/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu0/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu0/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/rejected:22142 /sys/devices/system/cpu/cpu0/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu0/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu1/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu1/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu1/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu1/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu1/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu1/cpuidle/state0/time:10496908 /sys/devices/system/cpu/cpu1/cpuidle/state0/usage:39811 /sys/devices/system/cpu/cpu1/cpuidle/state1/above:70 /sys/devices/system/cpu/cpu1/cpuidle/state1/below:60 /sys/devices/system/cpu/cpu1/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu1/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu1/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu1/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/rejected:4 /sys/devices/system/cpu/cpu1/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu1/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/time:3001247 /sys/devices/system/cpu/cpu1/cpuidle/state1/usage:131 /sys/devices/system/cpu/cpu1/cpuidle/state2/above:1930 /sys/devices/system/cpu/cpu1/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu1/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu1/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu1/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/rejected:2003690 /sys/devices/system/cpu/cpu1/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu1/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/time:200280664 /sys/devices/system/cpu/cpu1/cpuidle/state2/usage:5485 /sys/devices/system/cpu/cpu1/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu1/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu1/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu1/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/rejected:4450 /sys/devices/system/cpu/cpu1/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu1/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu2/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu2/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu2/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu2/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu2/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu2/cpuidle/state0/time:7674147 /sys/devices/system/cpu/cpu2/cpuidle/state0/usage:36757 /sys/devices/system/cpu/cpu2/cpuidle/state1/above:58 /sys/devices/system/cpu/cpu2/cpuidle/state1/below:21 /sys/devices/system/cpu/cpu2/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu2/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu2/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu2/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/rejected:13 /sys/devices/system/cpu/cpu2/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu2/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/time:1834373 /sys/devices/system/cpu/cpu2/cpuidle/state1/usage:79 /sys/devices/system/cpu/cpu2/cpuidle/state2/above:1672 /sys/devices/system/cpu/cpu2/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu2/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu2/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu2/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/rejected:2113726 /sys/devices/system/cpu/cpu2/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu2/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/time:203492449 /sys/devices/system/cpu/cpu2/cpuidle/state2/usage:3679 /sys/devices/system/cpu/cpu2/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu2/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu2/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu2/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/rejected:1933 /sys/devices/system/cpu/cpu2/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu2/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu3/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu3/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu3/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu3/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu3/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu3/cpuidle/state0/time:9649249 /sys/devices/system/cpu/cpu3/cpuidle/state0/usage:36879 /sys/devices/system/cpu/cpu3/cpuidle/state1/above:52 /sys/devices/system/cpu/cpu3/cpuidle/state1/below:20 /sys/devices/system/cpu/cpu3/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu3/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu3/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu3/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/rejected:2 /sys/devices/system/cpu/cpu3/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu3/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/time:857596 /sys/devices/system/cpu/cpu3/cpuidle/state1/usage:72 /sys/devices/system/cpu/cpu3/cpuidle/state2/above:2135 /sys/devices/system/cpu/cpu3/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu3/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu3/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu3/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/rejected:2259285 /sys/devices/system/cpu/cpu3/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu3/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/time:201590639 /sys/devices/system/cpu/cpu3/cpuidle/state2/usage:4833 /sys/devices/system/cpu/cpu3/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu3/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu3/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu3/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/rejected:1877 /sys/devices/system/cpu/cpu3/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu3/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu4/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu4/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu4/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu4/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu4/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu4/cpuidle/state0/time:3214897 /sys/devices/system/cpu/cpu4/cpuidle/state0/usage:25705 /sys/devices/system/cpu/cpu4/cpuidle/state1/above:37 /sys/devices/system/cpu/cpu4/cpuidle/state1/below:8 /sys/devices/system/cpu/cpu4/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state1/desc:cpuoff-m /sys/devices/system/cpu/cpu4/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/latency:196 /sys/devices/system/cpu/cpu4/cpuidle/state1/name:cpuoff-m /sys/devices/system/cpu/cpu4/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/rejected:5 /sys/devices/system/cpu/cpu4/cpuidle/state1/residency:2120 /sys/devices/system/cpu/cpu4/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/time:1042370 /sys/devices/system/cpu/cpu4/cpuidle/state1/usage:45 /sys/devices/system/cpu/cpu4/cpuidle/state2/above:614 /sys/devices/system/cpu/cpu4/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state2/desc:clusteroff-m /sys/devices/system/cpu/cpu4/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/latency:247 /sys/devices/system/cpu/cpu4/cpuidle/state2/name:clusteroff-m /sys/devices/system/cpu/cpu4/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/rejected:3227265 /sys/devices/system/cpu/cpu4/cpuidle/state2/residency:2120 /sys/devices/system/cpu/cpu4/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/time:206927973 /sys/devices/system/cpu/cpu4/cpuidle/state2/usage:1499 /sys/devices/system/cpu/cpu4/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu4/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu4/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu4/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/rejected:1185 /sys/devices/system/cpu/cpu4/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu4/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu5/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu5/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu5/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu5/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu5/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu5/cpuidle/state0/time:3005263 /sys/devices/system/cpu/cpu5/cpuidle/state0/usage:21980 /sys/devices/system/cpu/cpu5/cpuidle/state1/above:33 /sys/devices/system/cpu/cpu5/cpuidle/state1/below:7 /sys/devices/system/cpu/cpu5/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state1/desc:cpuoff-m /sys/devices/system/cpu/cpu5/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/latency:196 /sys/devices/system/cpu/cpu5/cpuidle/state1/name:cpuoff-m /sys/devices/system/cpu/cpu5/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/rejected:8 /sys/devices/system/cpu/cpu5/cpuidle/state1/residency:2120 /sys/devices/system/cpu/cpu5/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/time:309980 /sys/devices/system/cpu/cpu5/cpuidle/state1/usage:40 /sys/devices/system/cpu/cpu5/cpuidle/state2/above:601 /sys/devices/system/cpu/cpu5/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state2/desc:clusteroff-m /sys/devices/system/cpu/cpu5/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/latency:247 /sys/devices/system/cpu/cpu5/cpuidle/state2/name:clusteroff-m /sys/devices/system/cpu/cpu5/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/rejected:3299448 /sys/devices/system/cpu/cpu5/cpuidle/state2/residency:2120 /sys/devices/system/cpu/cpu5/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/time:207630334 /sys/devices/system/cpu/cpu5/cpuidle/state2/usage:1463 /sys/devices/system/cpu/cpu5/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu5/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu5/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu5/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/rejected:2554 /sys/devices/system/cpu/cpu5/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu5/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu6/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu6/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu6/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu6/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu6/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu6/cpuidle/state0/time:3311636 /sys/devices/system/cpu/cpu6/cpuidle/state0/usage:24768 /sys/devices/system/cpu/cpu6/cpuidle/state1/above:41 /sys/devices/system/cpu/cpu6/cpuidle/state1/below:15 /sys/devices/system/cpu/cpu6/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state1/desc:cpuoff-m /sys/devices/system/cpu/cpu6/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/latency:196 /sys/devices/system/cpu/cpu6/cpuidle/state1/name:cpuoff-m /sys/devices/system/cpu/cpu6/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/rejected:12 /sys/devices/system/cpu/cpu6/cpuidle/state1/residency:2120 /sys/devices/system/cpu/cpu6/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/time:1201836 /sys/devices/system/cpu/cpu6/cpuidle/state1/usage:56 /sys/devices/system/cpu/cpu6/cpuidle/state2/above:686 /sys/devices/system/cpu/cpu6/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state2/desc:clusteroff-m /sys/devices/system/cpu/cpu6/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/latency:247 /sys/devices/system/cpu/cpu6/cpuidle/state2/name:clusteroff-m /sys/devices/system/cpu/cpu6/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/rejected:3201551 /sys/devices/system/cpu/cpu6/cpuidle/state2/residency:2120 /sys/devices/system/cpu/cpu6/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/time:206774060 /sys/devices/system/cpu/cpu6/cpuidle/state2/usage:1646 /sys/devices/system/cpu/cpu6/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu6/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu6/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu6/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/rejected:3063 /sys/devices/system/cpu/cpu6/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu6/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu7/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu7/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu7/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu7/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu7/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu7/cpuidle/state0/time:3284214 /sys/devices/system/cpu/cpu7/cpuidle/state0/usage:20104 /sys/devices/system/cpu/cpu7/cpuidle/state1/above:43 /sys/devices/system/cpu/cpu7/cpuidle/state1/below:14 /sys/devices/system/cpu/cpu7/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state1/desc:cpuoff-b /sys/devices/system/cpu/cpu7/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/latency:147 /sys/devices/system/cpu/cpu7/cpuidle/state1/name:cpuoff-b /sys/devices/system/cpu/cpu7/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/rejected:14 /sys/devices/system/cpu/cpu7/cpuidle/state1/residency:2580 /sys/devices/system/cpu/cpu7/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/time:1225646 /sys/devices/system/cpu/cpu7/cpuidle/state1/usage:57 /sys/devices/system/cpu/cpu7/cpuidle/state2/above:900 /sys/devices/system/cpu/cpu7/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state2/desc:clusteroff-b /sys/devices/system/cpu/cpu7/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/latency:181 /sys/devices/system/cpu/cpu7/cpuidle/state2/name:clusteroff-b /sys/devices/system/cpu/cpu7/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/rejected:2944647 /sys/devices/system/cpu/cpu7/cpuidle/state2/residency:2580 /sys/devices/system/cpu/cpu7/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/time:205647056 /sys/devices/system/cpu/cpu7/cpuidle/state2/usage:2797 /sys/devices/system/cpu/cpu7/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu7/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu7/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu7/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/rejected:1516 /sys/devices/system/cpu/cpu7/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu7/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/usage:0

/sys/devices/system/cpu/cpu0/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu0/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu0/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu0/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu0/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu0/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu0/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu0/cpuidle/state0/time:7760518 /sys/devices/system/cpu/cpu0/cpuidle/state0/usage:28062 /sys/devices/system/cpu/cpu0/cpuidle/state1/above:4122 /sys/devices/system/cpu/cpu0/cpuidle/state1/below:3174 /sys/devices/system/cpu/cpu0/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu0/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu0/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu0/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/rejected:86 /sys/devices/system/cpu/cpu0/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu0/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu0/cpuidle/state1/time:63894744 /sys/devices/system/cpu/cpu0/cpuidle/state1/usage:7375 /sys/devices/system/cpu/cpu0/cpuidle/state2/above:3179 /sys/devices/system/cpu/cpu0/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu0/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu0/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu0/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/rejected:2269829 /sys/devices/system/cpu/cpu0/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu0/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu0/cpuidle/state2/time:105485857 /sys/devices/system/cpu/cpu0/cpuidle/state2/usage:7725 /sys/devices/system/cpu/cpu0/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu0/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu0/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu0/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu0/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/rejected:22142 /sys/devices/system/cpu/cpu0/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu0/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu0/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu1/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu1/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu1/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu1/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu1/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu1/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu1/cpuidle/state0/time:9600720 /sys/devices/system/cpu/cpu1/cpuidle/state0/usage:37564 /sys/devices/system/cpu/cpu1/cpuidle/state1/above:51 /sys/devices/system/cpu/cpu1/cpuidle/state1/below:57 /sys/devices/system/cpu/cpu1/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu1/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu1/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu1/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/rejected:4 /sys/devices/system/cpu/cpu1/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu1/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/state1/time:2812667 /sys/devices/system/cpu/cpu1/cpuidle/state1/usage:109 /sys/devices/system/cpu/cpu1/cpuidle/state2/above:1481 /sys/devices/system/cpu/cpu1/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu1/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu1/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu1/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/rejected:2003674 /sys/devices/system/cpu/cpu1/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu1/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/state2/time:169650575 /sys/devices/system/cpu/cpu1/cpuidle/state2/usage:4478 /sys/devices/system/cpu/cpu1/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu1/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu1/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu1/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu1/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/rejected:4450 /sys/devices/system/cpu/cpu1/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu1/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu1/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu2/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu2/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu2/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu2/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu2/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu2/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu2/cpuidle/state0/time:7105058 /sys/devices/system/cpu/cpu2/cpuidle/state0/usage:34663 /sys/devices/system/cpu/cpu2/cpuidle/state1/above:52 /sys/devices/system/cpu/cpu2/cpuidle/state1/below:20 /sys/devices/system/cpu/cpu2/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu2/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu2/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu2/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/rejected:7 /sys/devices/system/cpu/cpu2/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu2/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/state1/time:1809664 /sys/devices/system/cpu/cpu2/cpuidle/state1/usage:72 /sys/devices/system/cpu/cpu2/cpuidle/state2/above:1341 /sys/devices/system/cpu/cpu2/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu2/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu2/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu2/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/rejected:2113717 /sys/devices/system/cpu/cpu2/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu2/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/state2/time:172300159 /sys/devices/system/cpu/cpu2/cpuidle/state2/usage:3141 /sys/devices/system/cpu/cpu2/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu2/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu2/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu2/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu2/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/rejected:1933 /sys/devices/system/cpu/cpu2/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu2/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu2/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu3/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu3/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu3/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu3/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu3/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu3/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu3/cpuidle/state0/time:8249899 /sys/devices/system/cpu/cpu3/cpuidle/state0/usage:34806 /sys/devices/system/cpu/cpu3/cpuidle/state1/above:40 /sys/devices/system/cpu/cpu3/cpuidle/state1/below:20 /sys/devices/system/cpu/cpu3/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state1/desc:cpuoff-l /sys/devices/system/cpu/cpu3/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/latency:349 /sys/devices/system/cpu/cpu3/cpuidle/state1/name:cpuoff-l /sys/devices/system/cpu/cpu3/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/rejected:2 /sys/devices/system/cpu/cpu3/cpuidle/state1/residency:6710 /sys/devices/system/cpu/cpu3/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/state1/time:853896 /sys/devices/system/cpu/cpu3/cpuidle/state1/usage:60 /sys/devices/system/cpu/cpu3/cpuidle/state2/above:1640 /sys/devices/system/cpu/cpu3/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state2/desc:clusteroff-l /sys/devices/system/cpu/cpu3/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/latency:434 /sys/devices/system/cpu/cpu3/cpuidle/state2/name:clusteroff-l /sys/devices/system/cpu/cpu3/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/rejected:2259248 /sys/devices/system/cpu/cpu3/cpuidle/state2/residency:6710 /sys/devices/system/cpu/cpu3/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/state2/time:171077747 /sys/devices/system/cpu/cpu3/cpuidle/state2/usage:3988 /sys/devices/system/cpu/cpu3/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu3/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu3/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu3/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu3/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/rejected:1877 /sys/devices/system/cpu/cpu3/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu3/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu3/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu4/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu4/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu4/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu4/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu4/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu4/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu4/cpuidle/state0/time:2986799 /sys/devices/system/cpu/cpu4/cpuidle/state0/usage:24529 /sys/devices/system/cpu/cpu4/cpuidle/state1/above:18 /sys/devices/system/cpu/cpu4/cpuidle/state1/below:7 /sys/devices/system/cpu/cpu4/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state1/desc:cpuoff-m /sys/devices/system/cpu/cpu4/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/latency:196 /sys/devices/system/cpu/cpu4/cpuidle/state1/name:cpuoff-m /sys/devices/system/cpu/cpu4/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/rejected:1 /sys/devices/system/cpu/cpu4/cpuidle/state1/residency:2120 /sys/devices/system/cpu/cpu4/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/state1/time:1009892 /sys/devices/system/cpu/cpu4/cpuidle/state1/usage:25 /sys/devices/system/cpu/cpu4/cpuidle/state2/above:537 /sys/devices/system/cpu/cpu4/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state2/desc:clusteroff-m /sys/devices/system/cpu/cpu4/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/latency:247 /sys/devices/system/cpu/cpu4/cpuidle/state2/name:clusteroff-m /sys/devices/system/cpu/cpu4/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/rejected:3227265 /sys/devices/system/cpu/cpu4/cpuidle/state2/residency:2120 /sys/devices/system/cpu/cpu4/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/state2/time:175134209 /sys/devices/system/cpu/cpu4/cpuidle/state2/usage:1317 /sys/devices/system/cpu/cpu4/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu4/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu4/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu4/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu4/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/rejected:1185 /sys/devices/system/cpu/cpu4/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu4/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu4/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu5/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu5/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu5/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu5/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu5/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu5/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu5/cpuidle/state0/time:2784045 /sys/devices/system/cpu/cpu5/cpuidle/state0/usage:20822 /sys/devices/system/cpu/cpu5/cpuidle/state1/above:22 /sys/devices/system/cpu/cpu5/cpuidle/state1/below:7 /sys/devices/system/cpu/cpu5/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state1/desc:cpuoff-m /sys/devices/system/cpu/cpu5/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/latency:196 /sys/devices/system/cpu/cpu5/cpuidle/state1/name:cpuoff-m /sys/devices/system/cpu/cpu5/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/rejected:8 /sys/devices/system/cpu/cpu5/cpuidle/state1/residency:2120 /sys/devices/system/cpu/cpu5/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/state1/time:306244 /sys/devices/system/cpu/cpu5/cpuidle/state1/usage:29 /sys/devices/system/cpu/cpu5/cpuidle/state2/above:527 /sys/devices/system/cpu/cpu5/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state2/desc:clusteroff-m /sys/devices/system/cpu/cpu5/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/latency:247 /sys/devices/system/cpu/cpu5/cpuidle/state2/name:clusteroff-m /sys/devices/system/cpu/cpu5/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/rejected:3299448 /sys/devices/system/cpu/cpu5/cpuidle/state2/residency:2120 /sys/devices/system/cpu/cpu5/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/state2/time:175901897 /sys/devices/system/cpu/cpu5/cpuidle/state2/usage:1295 /sys/devices/system/cpu/cpu5/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu5/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu5/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu5/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu5/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/rejected:2554 /sys/devices/system/cpu/cpu5/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu5/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu5/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu6/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu6/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu6/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu6/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu6/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu6/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu6/cpuidle/state0/time:3085111 /sys/devices/system/cpu/cpu6/cpuidle/state0/usage:23585 /sys/devices/system/cpu/cpu6/cpuidle/state1/above:22 /sys/devices/system/cpu/cpu6/cpuidle/state1/below:13 /sys/devices/system/cpu/cpu6/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state1/desc:cpuoff-m /sys/devices/system/cpu/cpu6/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/latency:196 /sys/devices/system/cpu/cpu6/cpuidle/state1/name:cpuoff-m /sys/devices/system/cpu/cpu6/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/rejected:7 /sys/devices/system/cpu/cpu6/cpuidle/state1/residency:2120 /sys/devices/system/cpu/cpu6/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/state1/time:1033947 /sys/devices/system/cpu/cpu6/cpuidle/state1/usage:35 /sys/devices/system/cpu/cpu6/cpuidle/state2/above:597 /sys/devices/system/cpu/cpu6/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state2/desc:clusteroff-m /sys/devices/system/cpu/cpu6/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/latency:247 /sys/devices/system/cpu/cpu6/cpuidle/state2/name:clusteroff-m /sys/devices/system/cpu/cpu6/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/rejected:3201550 /sys/devices/system/cpu/cpu6/cpuidle/state2/residency:2120 /sys/devices/system/cpu/cpu6/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/state2/time:175191755 /sys/devices/system/cpu/cpu6/cpuidle/state2/usage:1454 /sys/devices/system/cpu/cpu6/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu6/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu6/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu6/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu6/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/rejected:3063 /sys/devices/system/cpu/cpu6/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu6/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu6/cpuidle/state3/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/driver/name:psci_idle /sys/devices/system/cpu/cpu7/cpuidle/state0/above:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/below:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state0/desc:ARM WFI /sys/devices/system/cpu/cpu7/cpuidle/state0/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/latency:1 /sys/devices/system/cpu/cpu7/cpuidle/state0/name:WFI /sys/devices/system/cpu/cpu7/cpuidle/state0/power:4294967295 /sys/devices/system/cpu/cpu7/cpuidle/state0/rejected:0 /sys/devices/system/cpu/cpu7/cpuidle/state0/residency:1 /sys/devices/system/cpu/cpu7/cpuidle/state0/time:3021702 /sys/devices/system/cpu/cpu7/cpuidle/state0/usage:18858 /sys/devices/system/cpu/cpu7/cpuidle/state1/above:27 /sys/devices/system/cpu/cpu7/cpuidle/state1/below:12 /sys/devices/system/cpu/cpu7/cpuidle/state1/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state1/desc:cpuoff-b /sys/devices/system/cpu/cpu7/cpuidle/state1/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/latency:147 /sys/devices/system/cpu/cpu7/cpuidle/state1/name:cpuoff-b /sys/devices/system/cpu/cpu7/cpuidle/state1/power:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/rejected:8 /sys/devices/system/cpu/cpu7/cpuidle/state1/residency:2580 /sys/devices/system/cpu/cpu7/cpuidle/state1/s2idle/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/s2idle/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/state1/time:1204622 /sys/devices/system/cpu/cpu7/cpuidle/state1/usage:39 /sys/devices/system/cpu/cpu7/cpuidle/state2/above:803 /sys/devices/system/cpu/cpu7/cpuidle/state2/below:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state2/desc:clusteroff-b /sys/devices/system/cpu/cpu7/cpuidle/state2/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/latency:181 /sys/devices/system/cpu/cpu7/cpuidle/state2/name:clusteroff-b /sys/devices/system/cpu/cpu7/cpuidle/state2/power:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/rejected:2944638 /sys/devices/system/cpu/cpu7/cpuidle/state2/residency:2580 /sys/devices/system/cpu/cpu7/cpuidle/state2/s2idle/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/s2idle/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/state2/time:173895494 /sys/devices/system/cpu/cpu7/cpuidle/state2/usage:2485 /sys/devices/system/cpu/cpu7/cpuidle/state3/above:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/below:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/default_status:enabled /sys/devices/system/cpu/cpu7/cpuidle/state3/desc:s2idle /sys/devices/system/cpu/cpu7/cpuidle/state3/disable:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/latency:20000 /sys/devices/system/cpu/cpu7/cpuidle/state3/name:s2idle /sys/devices/system/cpu/cpu7/cpuidle/state3/power:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/rejected:1516 /sys/devices/system/cpu/cpu7/cpuidle/state3/residency:4294967295 /sys/devices/system/cpu/cpu7/cpuidle/state3/s2idle/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/s2idle/usage:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/time:0 /sys/devices/system/cpu/cpu7/cpuidle/state3/usage:0

#46 lore raw
Quoted 121 lines · Reka Norman
Quoted 119 lines · Rafael J. Wysocki
Quoted 6 lines · Christian Loehle
Quoted 4 lines · Rafael J. Wysocki
Quoted 2 lines · Christian Loehle

On 11/11/25 10:00, Christian Loehle wrote:

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

I see two issues:
1) Because of DECAY_SHIFT 3 values < 8 cannot decay (I guess this wouldn't really be an issue without 2))

This shouldn't be a problem.

Agreed, it should be a non-issue. Nonetheless if this wasn't the case $subject would've likely never been an issue.

Well, I think that the leftovers can be cleared when they become less than 8.

Quoted 81 lines
Quoted 55 lines
Quoted 4 lines
Quoted 4 lines

2) if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) isn't an appropriate check, it will exclude the state if it its idx_hit_sum make up the vast majority of cpu_data->total (i.e. it would have been a really good candidate actually).

Well, it would exclude the state if the sum of hits for the states below it is large enough. This is questionable (because why would hits matter here), but I attempted to make the change below and somebody reported a regression IIRC.

This check is related to the problem at hand though (see below).

Quoted 43 lines
Quoted 13 lines

I lightly tested the below, it seems to be at least comparable to mainline teo. (the documentation/comments would need adapting too, of course)

-----8<-----

drivers/cpuidle/governors/teo.c +0 -0
index bfa55c1eab5b..f8f76e3b8364 100644

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 361

Quoted 8 lines
drivers/cpuidle/governors/teo.c +1 -1
@@ -355,7 +355,7 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
         * all of the deeper states, a shallower idle state is likely to be a
         * better choice.
         */
-       if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) {
+       if (2 * idx_intercept_sum > idx_hit_sum) {
                int first_suitable_idx = idx;
 
                /*

... nevermind the patch, idx_hit_sum is of course the sum of 0...idx-1. Maybe something like this, again lightly tested:

-----8<-----

drivers/cpuidle/governors/teo.c +2 -0
index 173ddcac540a..6bfb9cedb75e 100644
@@ -383,13 +395,15 @@ static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
                 * has been stopped already into account.
                 */
                intercept_sum = 0;
+               hit_sum = 0;
 
                for (i = idx - 1; i >= 0; i--) {
                        struct teo_bin *bin = &cpu_data->state_bins[i];
 
                        intercept_sum += bin->intercepts;
+                       hit_sum += bin->hits;
 
Quoted 10 lines

drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, · line 409

Quoted 5 lines
drivers/cpuidle/governors/teo.c +1 -1
-                       if (2 * intercept_sum > idx_intercept_sum) {
+                       if (2 * intercept_sum > cpu_data->total || 2 * hit_sum > cpu_data->total) {
                                /*
                                 * Use the current state unless it is too
                                 * shallow or disabled, in which case take the

This will only matter after the deepest state has been rejected already and on the system in question this means selecting state 0 no matter what.

Ah, right!

Quoted 11 lines

The pre-6.12 behavior can be explained if tick wakeups are taken into account.

Namely, when state 0 is chosen (because of the check mentioned above), the tick is not stopped and the sleep length is KTIME_MAX. If the subsequent wakeup is a tick one, it will be counted as a hit on the deepest state (and it will contribute to the total sum in the check mentioned above). Then, at one point, cpu_data->total will be large enough and the deepest state will become the candidate one. If tick_nohz_get_sleep_length() returns a large value at that point, the tick will be stopped and the deepest state will be entered. Nirvana ensues.

Quoted 6 lines

So fundamentally we will have to count tick-wakeups as a) nothing, which doesn't allow us to ever break out of the intercept logic that caused us to leave the tick on b) intercepts, which is bonkers and doesn't allow us to ever break out and c) hits == sleep_length would've been accurate. Of course counting a tick wakeup as a hit for sleep_length negates the intercept logic.

Not quite. The intercept logic is there for wakeups other than tick wakeups and timer wakeups.

I actually think that tick wakeups can be counted as hits on the deepest available state - maybe only when tick wakeups dominate the wakeup pattern - but generally this is not unreasonable: When the wakeup pattern is dominated by tick wakeups, this by itself is a good enough reason to stop the tick.

Quoted 6 lines
Quoted 3 lines

The attached patch tests the theory above, let's see how far it gets us. Reka, can you please test this one on top of the mainline and see if it gets you more deep idle state residency?

Yes, that definitely makes a difference! Results attached. They're pretty comparable to 6.6 - about 2% WFI on average across CPUs.

Cool, thanks!

We seem to be on the right track.

This version of the patch is overly aggressive and I'm going to send an adulterated version of it later today.

#47 lore raw
In reply to Reka Norman
Quoted 150 lines · Reka Norman
Quoted 147 lines · Christian Loehle
Quoted 145 lines · Rafael J. Wysocki
Quoted 131 lines · Reka Norman
Quoted 129 lines · Rafael J. Wysocki
Quoted 105 lines · Christian Loehle
Quoted 83 lines · Rafael J. Wysocki
Quoted 68 lines · Christian Loehle
Quoted 58 lines · Christian Loehle
Quoted 28 lines · Reka Norman

Hi,

I’m seeing a regression in the TEO governor between 6.6 and 6.12. At 6.12, when the system is idle it’s spending almost 100% of time in WFI, compared to about 6% at 6.6. At mainline it has improved compared to 6.12 but is still a lot worse than 6.6, spending about 50% in WFI.

The system is a ChromeOS device with Mediatek MT8196.

Bisecting showed the specific commit which caused the regression is:
4b20b07ce72f ("cpuidle: teo: Don't count non-existent intercepts")

I’ve attached sysfs dumps showing the issue. All were taken a couple of minutes after boot, with the device having been idle since boot. The cases tested are:
cpuidle_6_6.txt = 6.6 kernel
cpuidle_6_12.txt = 6.6 kernel with teo commits up to 6.12
cpuidle_mainline.txt = 6.6 kernel with teo commits up to mainline

Summary of the percentage time spent in each state (averaged across CPUs):

|            |   6.6 |  6.12 | mainline |
|------------|------:|------:|---------:|
| WFI        |  6.02 | 99.94 |    56.84 |
| cpuoff     | 11.02 |     0 |     0.65 |
| clusteroff | 82.96 |  0.05 |    42.51 |
| s2idle     |     0 |     0 |        0 |
Quoted 3 lines

Any help would be much appreciated. Let me know if there's any other debugging information I should provide.

That's not good.
If the system is mostly idle (only boot activity but dumps are taken after ~3mins?), what is causing the wakeups? Even in 6.6 There are definitely more than I would've expected?
I noticed that clusteroff and cpuoff have equal residency, which is obviously a bit awkward for cpuidle, but shouldn't be relevant to your issue.

I'm a bit puzzled by your bisect results.
4b20b07ce72f ("cpuidle: teo: Don't count non-existent intercepts") made the intercept logic *less* prone to count (false) intercepts, yet it seems to count more of them? (resulting in more WFI).
I'll think about it some more, for now of course a trace would be very helpful. (cpuidle events, ipi_raise, irqs?)
Are there ever any latency constraints set?

FWIW the mainline results look the most reasonable, from a 30000 feet view anyway:

Cluster       State           above   below   usage   above%  below%
LITTLE        cpuoff-l        ~75     ~65     ~140    23%     20%
LITTLE        clusteroff-l    ~800    0       ~100    89%     0%
MID   cpuoff-m        ~3–4    ~15     ~20     15%     55%
MID   clusteroff-m    ~1300   0       ~4000   24%     0%
BIG   cpuoff-b        0       1       1       —       —
BIG   clusteroff-b    ~800    0       ~1900   30%     0%
Quoted 7 lines

(WFI seems mostly the correct choice for little CPUs, that's fine, the energy savings compared to cpuoff should be marginal anyway.)

Do you mind trying:
13ed5c4a6d9c cpuidle: teo: Skip getting the sleep length if wakeups are very frequent on 6.12?

Quoted 8 lines

So just thinking out loud, the only case I can actually thing of to explain your bisect to 4b20b07ce72f ("cpuidle: teo: Don't count non-existent intercepts") is that the workload essentially changed dramatically because of our calls to tick_nohz_get_sleep_length() now.
I'm not sure how likely I think that is, but I'm lacking imagination for another cause. That's why results with
13ed5c4a6d9c ("cpuidle: teo: Skip getting the sleep length if wakeups are very frequent") would be interesting.

My current theory is that this issue is related to the tick_nohz_get_sleep_length() overhead and the way "intercepts" are distinguished from "hits" in teo.

Quoted 10 lines

Namely, teo assumes that its own overhead is negligible and so it counts a given event as an "intercept" if the measured time spent in the idle state (with the exit latency roughly taken into account) falls into a different "state bin" than the sleep length (the expected time till the next timer). However, the sleep length is computed as a difference between the upcoming timer wakeup event time and ts->idle_entrytime, so it actually includes the time taken by tick_nohz_next_event(). If the latter is significant, it may contribute to the difference seen by teo_update() and cause extra "intercepts" to appear.

Right, additionally with psci pc-mode and the exposed clusteroff states we end up vastly exaggerating the wakeup latency (i.e. underestimating the actual idle time) for three reasons:
- wakeup latency = entry+exit latency (worst case: pay full latencies on both even though for most cases we don't incur the entry latency)
- Wakeup latency is a worst-case and often is more like 2x-3x of the average.
- We use the (higher) clusteroff values even though the clusteroff state couldn't possibly have been entered as not the entire cluster is idle.

Quoted 3 lines

Nonetheless these are all just a "intercept counting is significantly more likely" while the results show not a single state >0 entered => the intercept logic probably triggers every cpuidle entry.

It has to for this to happen, if timers are not frequent enough.

Quoted 1 line

Feels like there should be an issue in the feedback loop.

I'm wondering what the issue could be though. The change in commit 4b20b07ce72f only affects the cases when idle state 0 is about to be selected and it only really changes the sleep length value from KTIME_MAX to something more realistic (but it still may be KTIME_MAX).

It may turn an "intercept" into a "hit", but only if the CPU is not woken up by the tick because those cases had been already counted as "hits" before commit 4b20b07ce72f.

Now, if the majority of wakeups in the workload are tick wakeups, the only real difference appears to be the presence of tick_nohz_get_sleep_length() in that code path.

Quoted 6 lines
Quoted 3 lines

Frankly, I would try to remove the update of cpu_data->sleep_length_ns right before the "goto out_tick" statement (in 6.12 that should be line 426) and see what happens.

Just tried this quickly. Results attached. It goes back to behaving the same as 6.6 - about 2% WFI.

Thanks for checking this! It means that the tick_nohz_get_sleep_length() overhead doesn't matter here that much.

Instead of making the change above, can you please try the 6.12 equivalent of the attached patch?

Quoted 6 lines
Quoted 2 lines
Quoted 2 lines

Or alternatively, apply this one to the mainline and see if it changes the idle states selection proportions?

It doesn't seem to have an effect. Results are attached for both 6.12 (6_12_teo_reflect) and mainline (mainline_teo_reflect). 6.12 is still 100% WFI and mainline is about 20% WFI on average, the same as before.

This means that the issue is there regardless of how tick wakeups are counted.

Quoted 7 lines
Quoted 7 lines

I don't quite follow this.
While I don't really believe that the tick_nohz_get_sleep_length() overhead plays a role here, how does removing that assignment prove it isn't?

The below (if that's what you meant) might lead to the overhead being optimized out? [1]

It might, but I only wanted to say that the overhead of tick_nohz_get_sleep_length() in the idx == 0 path is most likely irrelevant to the problem at hand. Sorry for the confusion.

Quoted 20 lines

Oh true. I tried the diff below instead (which I think should avoid that?). This also behaves the same as 6.6. Results attached as 6_12_sleep_length2.

drivers/cpuidle/governors/teo.c +1 -2
index 173ddcac540a..3c9595bc6c80 100644
@@ -427,8 +427,7 @@ static int teo_select(struct cpuidle_driver *drv,
 struct cpuidle_device *dev,
                 * We have to query the sleep length here otherwise we don't
                 * know after wakeup if our guess was correct.
                 */
-               duration_ns = tick_nohz_get_sleep_length(&delta_tick);
-               cpu_data->sleep_length_ns = duration_ns;
+               volatile s64 __maybe_unused duration_volatile_ns =
 tick_nohz_get_sleep_length(&delta_tick);
                goto out_tick;
        }
Quoted 4 lines
Quoted 2 lines

I'd be curious if [2] behaves like 6.12. So far I haven't been able to reproduce the issue Reka is seeing.

Results with [2] attached as 6_12_sleep_length3. Yes, it behaves like 6.12.

If the tick period is 10 ms, TICK_NSEC / 2 is well above the target residency of the deepest idle state, so the only thing that can be affected by [2] is the check in teo_reflect() and we have just established that removing that check altogether doesn't make a difference.

So this appears to be consistent with the observation that the check in teo_reflect() is not related directly to the issue at hand.

Quoted 3 lines
Quoted 3 lines

There's one oddity that immediately came to mind: state1 and state2 having the same residency (slightly different latency though), but when I set these as such teo works fine. So I don't think it is an issue here.

I agree.

With the tick period of 10 ms, the only case in which the tick can be stopped is when the deepest idle state is selected, but that can only happen if the pattern of wakeups is not dominated by intercepts. That's why removing intercepts from the picture causes it to look "better".

Evidently, intercepts are there both in 6.12 and in the mainline and while we may be wondering whether or not they are real intercepts, I'm not sure if this actually matters.

To me, the primary question is what had caused these intercepts to not be there before 6.12 and quite frankly I'm not sure what it was ATM.