Commit 3c66d3d
committed
intel_idle: Add C1 demotion on/off sysfs knob
JIRA: https://issues.redhat.com/browse/RHEL-110839
commit 6138f34
Author: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Date: Mon Mar 17 15:55:39 2025 +0200
intel_idle: Add C1 demotion on/off sysfs knob
Add a sysfs knob to enable/disable C1 demotion for the following Intel
platforms: Sapphire Rapids Xeon, Emerald Rapids Xeon, Granite Rapids Xeon,
Sierra Forest Xeon, and Grand Ridge SoC.
This sysfs file shows up as
"/sys/devices/system/cpu/cpuidle/intel_c1_demotion".
The C1 demotion feature involves the platform firmware demoting deep
C-state requests from the OS (e.g., C6 requests) to C1. The idea is
that firmware monitors CPU wake-up rate, and if it is higher than a
platform-specific threshold, the firmware demotes deep C-state
requests to C1. For example, Linux requests C6, but firmware noticed
too many wake-ups per second, and it keeps the CPU in C1. When the
CPU stays in C1 long enough, the platform promotes it back to C6.
The default value for C1 demotion is whatever is configured by BIOS.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Link: https://patch.msgid.link/20250317135541.1471754-2-dedekind1@gmail.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Steve Best <sbest@redhat.com>1 parent 87b9c8f commit 3c66d3d
1 file changed
+102
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| 97 | + | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
98 | 106 | | |
99 | 107 | | |
100 | 108 | | |
| |||
1542 | 1550 | | |
1543 | 1551 | | |
1544 | 1552 | | |
| 1553 | + | |
1545 | 1554 | | |
1546 | 1555 | | |
1547 | 1556 | | |
1548 | 1557 | | |
1549 | 1558 | | |
1550 | 1559 | | |
| 1560 | + | |
1551 | 1561 | | |
1552 | 1562 | | |
1553 | 1563 | | |
1554 | 1564 | | |
1555 | 1565 | | |
1556 | 1566 | | |
| 1567 | + | |
1557 | 1568 | | |
1558 | 1569 | | |
1559 | 1570 | | |
| |||
1592 | 1603 | | |
1593 | 1604 | | |
1594 | 1605 | | |
| 1606 | + | |
1595 | 1607 | | |
1596 | 1608 | | |
1597 | 1609 | | |
1598 | 1610 | | |
1599 | 1611 | | |
1600 | 1612 | | |
| 1613 | + | |
1601 | 1614 | | |
1602 | 1615 | | |
1603 | 1616 | | |
| |||
2295 | 2308 | | |
2296 | 2309 | | |
2297 | 2310 | | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
| 2376 | + | |
| 2377 | + | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
| 2392 | + | |
2298 | 2393 | | |
2299 | 2394 | | |
2300 | 2395 | | |
| |||
2344 | 2439 | | |
2345 | 2440 | | |
2346 | 2441 | | |
| 2442 | + | |
| 2443 | + | |
2347 | 2444 | | |
2348 | 2445 | | |
2349 | 2446 | | |
| |||
2357 | 2454 | | |
2358 | 2455 | | |
2359 | 2456 | | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
2360 | 2461 | | |
2361 | 2462 | | |
2362 | 2463 | | |
| |||
2381 | 2482 | | |
2382 | 2483 | | |
2383 | 2484 | | |
| 2485 | + | |
2384 | 2486 | | |
2385 | 2487 | | |
2386 | 2488 | | |
| |||
0 commit comments