Re: [PATCH net] net: wwan: iosm: always send the host sleep message on suspend
From: Maciej S. Szmigiero
Date: Mon Nov 23 2026 - 13:07:39 EST
On 23.11.2026 04:05, David Westen wrote:
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 driver code does only care for value 3, any other value or absence
of value is taken as D0.
Unfortunately, it's not known whether Lenovo intended this empty return
value to be implemented as D0 or they just neglected to put a value there.
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?
Yes, the method explicitly returns 3 for that "WWAN" GUID on my (HP) platform.
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.
So I guess this test settles it - at least for your platform.
I would cautiously proceed with unconditionally using D3 (as this patch
does), however would be ready to revert it and use a DMI-based override
list instead if it turns out that there are platforms that actually
require D0.
David
Thanks,
Maciej