public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* s2idle breaks on machines without cpuidle support
@ 2023-02-04 15:27 Kazuki
  2023-02-06 10:12 ` Sudeep Holla
  0 siblings, 1 reply; 16+ messages in thread
From: Kazuki @ 2023-02-04 15:27 UTC (permalink / raw)
  To: linux-pm
  Cc: linux-kernel, linux-arm-kernel, Sudeep Holla, Rafael J. Wysocki,
	Daniel Lezcano, Lorenzo Pieralisi, Hector Martin, Sven Peter,
	Len Brown, Pavel Machek


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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-09-07 19:12 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-04 15:27 s2idle breaks on machines without cpuidle support Kazuki
2023-02-06 10:12 ` Sudeep Holla
2023-02-07 19:48   ` Kazuki
2023-02-08 10:35     ` Sudeep Holla
2023-02-08 11:20       ` Kazuki
2023-02-08 14:16         ` Sudeep Holla
2023-02-08 14:43           ` Kazuki
2023-02-08 15:03             ` Sudeep Holla
2023-02-08 15:19               ` Kazuki
2023-02-08 15:34                 ` Sudeep Holla
2023-02-08 15:42                   ` Kazuki
2023-02-08 14:52           ` Kazuki
2023-02-08 15:42       ` Hector Martin
2023-02-08 16:18         ` Sudeep Holla
2023-02-08 16:45           ` Hector Martin
2023-09-07 19:11             ` Florian Fainelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox