On 20.12.2024 3:04 PM, Sudeep Holla wrote: > On Fri, Dec 20, 2024 at 02:57:34PM +0100, Konrad Dybcio wrote: >> On 20.12.2024 2:55 PM, Sudeep Holla wrote: >>> >>> Please take a look at the preconditions for both the calls. They are >>> different. >> >> Which is *precisely* why I want to tell the OS that it's a S2RAM state, >> so that different actions can be taken in peripheral device drivers. > > Yes we do that for SYSTEM_SUSPEND. And CPU_SUSPEND is not SYSTEM_SUSPEND > hence 2 different APIs. My NACK still stands. I'll just paste it here one more time to reassure you they are indeed the same under the hood https://github.com/ARM-software/arm-trusted-firmware/blob/master/lib/psci/psci_main.c#L179-L221 Konrad