s390/idle: CPU idle driver
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected] change-id 20260609-idledriver-217e2b2712a3Versions newest first
- v3 Latest5 patches 9 repliesApplied
- v25 patches 7 repliesSuperseded inferred link
- v15 patches 12 repliesSuperseded
Changes in v3 from the cover letter
* Link to v2: https://lore.kernel.org/r/[email protected]
* Remove any mentions of idle governor since the driver is not tied to
any specific governor. TEO is just the default pick for s390
(Christian Loehle)
* Add a comment to reflect how the values for idle driver tuneables are picked (Christian Loehle)
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | s390/tick: Remove CIF_NOHZ_DELAY flagarch/ arch/ arch/ +1 more | +0 | 0 replies | |
| 2/5 | tick: Remove arch_needs_cpuinclude/ kernel/ | +3 | 0 replies | |
| 3/5 | s390: Enable TIF_POLLING_NRFLAGarch/ | +1 | 0 replies | |
| 4/5 | s390/idle: Introduce cpuidle for s390MAINTAINERS arch/ drivers/ +3 more | +148 | 4 replies | |
| 5/5 | s390/configs: Enable cpuidle driver on s390arch/ arch/ | +4 | 1 reply |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Heiko Carstens | Thomas Gleixner | Christian Borntraeger | Christian Loehle | Rafael J. Wysocki (Intel) |
|---|---|---|---|---|---|
| Series | A-b | ||||
| 1/5 | R-b | ||||
| 2/5 | R-b | R-b | |||
| 3/5 | R-b | ||||
| 4/5 | R-b | R-b | |||
| 5/5 | R-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [PATCH v3 0/5] s390/idle: CPU idle driver
v2 -> v3:
* Link to v2: https://lore.kernel.org/r/[email protected]
* Remove any mentions of idle governor since the driver is not tied to
any specific governor. TEO is just the default pick for s390
(Christian Loehle)
* Add a comment to reflect how the values for idle driver tuneables are picked (Christian Loehle)
v1 -> v2:
* Add idle driver enteries to MAINTAINERS file (Christian Loehle)
* Remove extra line break left in drivers/cpuidle/Kconfig.s390 (Christian Loehle)
This patch series introduces a CPU idle driver for s390 architecture that leverages the existing cpu idle infrastructure and idle governor to optimize idle state selection based on timer events and interrupt patterns.
- Implementation Overview
-----------------------------------------------------------------------
The driver implements two idle states;
**Polling Idle (shallow state)**
- Busy-loop implementation that prevents SIE-exit during short idle periods
- Zero exit latency, optimized for latency-sensitive workloads
- Maintains CPU with the guest, improving response times
**Enabled Wait (deep state)**
- Traditional EW state that signals hypervisor availability
- Higher exit latency but more efficient for longer idle periods
The idle governor dynamically selects between these states by monitoring next timer interrupts and system interrupt frequency, choosing the most appropriate idle state for each situation.
- Performance Benefits
-----------------------------------------------------------------------
Benchmark results across LPAR, KVM, and z/VM guests demonstrate significant improvements for latency-sensitive and scheduler-intensive workloads:
``` Benchmark | LPAR | z/VM | KVM | ----------------------------------------- cyclictest | +45% | +50% | +30% | hackbench | +5% | +12% | - | pgbench | +2% | +15% | +2% | uperf | +50%* | +-5% | +-5% | ```
*Single-threaded uperf scenarios show 50-70% improvements on LPAR. Multi-threaded results show slight improvements overall.
Additionally, fio and ioping tests show latency distribution shifts toward lower values with reduced minimum and average latencies.
- Configuration
-----------------------------------------------------------------------
Target residency and exit latency values are benchmark estimates. Due to s390's virtualized architecture, these values are non-deterministic. Idle state parameters are tuned per hypervisor type after benchmarks:
**LPAR:**
- EW: 5us target residency, 5us exit latency
**KVM/z/VM:**
- EW: 1us target residency, 1us exit latency
---
Mete Durlu (5):
s390/tick: Remove CIF_NOHZ_DELAY flag
tick: Remove arch_needs_cpu
s390: Enable TIF_POLLING_NRFLAG
s390/idle: Introduce cpuidle for s390
s390/configs: Enable cpuidle driver on s390
MAINTAINERS | 8 +++ arch/s390/Kconfig | 5 ++ arch/s390/configs/debug_defconfig | 2 + arch/s390/configs/defconfig | 2 + arch/s390/include/asm/processor.h | 4 -- arch/s390/include/asm/thread_info.h | 1 + arch/s390/kernel/idle.c | 1 - arch/s390/kernel/irq.c | 4 -- arch/s390/kernel/smp.c | 1 - drivers/cpuidle/Kconfig | 5 ++ drivers/cpuidle/Kconfig.s390 | 11 ++++ drivers/cpuidle/Makefile | 4 ++ drivers/cpuidle/cpuidle-s390.c | 115 ++++++++++++++++++++++++++++++++++++ include/linux/tick.h | 3 - kernel/time/tick-sched.c | 7 +-- 15 files changed, 156 insertions(+), 17 deletions(-)
---
base-commit: 2d3090a8aeb596a26935db0955d46c9a5db5c6ce
change-id: 20260609-idledriver-217e2b2712a3
Best regards,
Signature · 1 line
Mete Durlu <[email protected]>