Re: [PATCH net] net: wwan: iosm: always send the host sleep message on suspend

From: David Westen

Date: Sun Nov 22 2026 - 22:05:51 EST


Hi Maciej,

Thanks for taking a look!

On 11/22/26 12:01 PM, Maciej S. Szmigiero wrote:
> On 22.11.2026 06:00, David Westen wrote:
>> This ignores the BIOS RTD3 setting for system suspend. The setting
>> only selects the sleep protocol; the PCI core chooses the power state
>> without it, and here chooses D3hot, which the doorbell protocol
>> doesn't survive. Honoring D0L12 literally would mean keeping the
>> device in D0, as commit f4dd5174e273 ("net: wwan: iosm: Keep device
>> at D0 for s2idle case") did. That was reverted, D3 being the expected
>> state.
>
> I have mixed feelings about this.
>
> Your platform specifies D0L1.2 as the target state so I presume that
> is the state that the platform expects the modem to be put into?

It turns out it doesn't specify anything: the WWAN _DSM function 3
returns no result here (BIOS 1.56 and the latest 1.68), so D0L12 is
only the driver's default.

> The reverted commit f4dd5174e273 on the other hand always put the modem
> into D0, which was incorrect in a different way - as, for example, my
> platform explicitly requests D3.

Agreed. How does yours request it, through the _DSM returning 3?

> Could you try the reverted commit to see if D0 actually works for your
> platform?

I tried f4dd5174e273 on 7.2.15. With it, the modem is no longer put
into D3hot, but it still crashes during suspend-to-idle: when the
resume callback runs, the modem already reports CD_READY, the same as
without the commit. So it seems it's the FORCE_SLEEP doorbell that the
modem doesn't survive, whether it stays in D0 or goes to D3hot.

David