Re: [PATCH v2] cpuidle: psci: Allow domain idle states in s2idle for all CPU idle states

From: Kevin Hilman

Date: Tue Dec 01 2026 - 21:12:48 EST


"Kochidanadu, Scaria" <s-kochidanadu@xxxxxx> writes:

[...]

> The cpuidle and genpd governor select a domain state considering the
> next timer event and predicted idle duration.
> This does not necessarily guarantee that the composite cluster state
> selected is compatible with the CPU idle state
> requested by the participating CPUs. Should'nt the firmware act as the
> final arbitrator, rejecting composite states
> that are inconsistent with the overall system state?
>
> Thus I believe domain-aware callbacks could also be enabled for shallow
> CPU state in the regular idle path.

Possibly, but I intentionally left the regular idle path out of v2
because it's a lot more complicated, and I don't want it to be a
dependency on the s2idle part working.

While I agree that the firmware *should* act as the final arbitrator and
reject states that are inconsistent, I have very large doubts that
firmware does this today, and how we could be sure it does, so it's not
something that is safe to assume.

Kevin