Re: [PATCH 4/5] s390/idle: Introduce cpuidle for s390

From: Mete Durlu

Date: Tue Jun 09 2026 - 05:47:09 EST


On 6/9/26 10:12, Christian Loehle wrote:
On 6/9/26 08:52, Mete Durlu wrote:
Introduce generic cpuidle driver on s390. Use a two stage approach to
handle idle scenarios and use TEO governor for idle stage selection.
Two stages are, from shallow to deep, idle polling and enabled wait.

Suggested-by: Christian Borntraeger <borntraeger@xxxxxxxxxxxxx>
Suggested-by: Heiko Carstens <hca@xxxxxxxxxxxxx>
Signed-off-by: Mete Durlu <meted@xxxxxxxxxxxxx>
---
arch/s390/Kconfig | 5 ++
drivers/cpuidle/Kconfig | 5 ++
drivers/cpuidle/Kconfig.s390 | 12 ++++
drivers/cpuidle/Makefile | 4 ++
drivers/cpuidle/cpuidle-s390.c | 104 +++++++++++++++++++++++++++++++++
5 files changed, 130 insertions(+)
create mode 100644 drivers/cpuidle/Kconfig.s390
create mode 100644 drivers/cpuidle/cpuidle-s390.c

Since this will be hard for anybody without the hardware to maintain,
would you maintain it? Or the existing s390 maintainers?
If either then please also modify MAINTAINERS to reflect that.


Yes, I'll be maintaining the driver. I am not sure if it should be part
of the patch series but I'll add a new entry like below;

diff --git a/MAINTAINERS b/MAINTAINERS
index e035a3be797c..6b1eaa3abce7 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -6766,6 +6766,13 @@ L: linux-riscv@xxxxxxxxxxxxxxxxxxx
S: Maintained
F: drivers/cpuidle/cpuidle-riscv-sbi.c

+CPUIDLE DRIVER - S390
+M: Mete Durlu <meted@xxxxxxxxxxxxx>
+L: linux-pm@xxxxxxxxxxxxxxx
+L: linux-s390@xxxxxxxxxxxxxxx
+S: Maintained
+F: drivers/cpuidle/cpuidle-s390.c
+
CPUMASK API [RUST]
M: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
R: Yury Norov <yury.norov@xxxxxxxxx>
@@ -23499,6 +23506,7 @@ F: Documentation/arch/s390/
F: arch/s390/
F: drivers/s390/
F: drivers/watchdog/diag288_wdt.c
+F: drivers/cpuidle/cpuidle-s390.c

S390 COMMON I/O LAYER
M: Vineeth Vijayan <vneethv@xxxxxxxxxxxxx>