[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230204152747.drte4uitljzngdt6@kazuki-mac>
Date: Sun, 5 Feb 2023 00:27:47 +0900
From: Kazuki <kazukih0205@...il.com>
To: linux-pm@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
Sudeep Holla <sudeep.holla@....com>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Daniel Lezcano <daniel.lezcano@...aro.org>,
Lorenzo Pieralisi <lpieralisi@...nel.org>,
Hector Martin <marcan@...can.st>,
Sven Peter <sven@...npeter.dev>,
Len Brown <len.brown@...el.com>, Pavel Machek <pavel@....cz>
Subject: s2idle breaks on machines without cpuidle support
Hi everyone,
s2idle is blocked on machines without proper cpuidle support here
in kernel/sched/idle.c:
> if (cpuidle_not_available(drv, dev)) {
> tick_nohz_idle_stop_tick();
> default_idle_call();
> goto exit_idle;
> }
> /*
> * Suspend-to-idle ("s2idle") is a system state in which all user space
> * has been frozen, all I/O devices have been suspended and the only
However, there are 2 problems with this approach:
1. The suspend framework does not expect this, and continues to suspend the
machine, which causes machines without proper cpuidle support to break when
suspending
2. Suspend actually works on ARM64 machines even without proper
cpuidle (PSCI cpuidle) since they support wfi, so the assumption here is wrong
on such machines
I'm not exactly sure how to figure this out, and my attempts have all led to an
unbootable kernel, so I've cc'ed the relevant people and hopefully we can find a
solution to this problem.
Thanks,
Kazuki
Powered by blists - more mailing lists