From: "David Westen" <davidlwesten@gmail.com>
To: <netdev-bot+sashiko@kernel.org>, <davidlwesten@gmail.com>
Cc: <netdev@vger.kernel.org>, <mail@maciej.szmigiero.name>,
<loic.poulain@oss.qualcomm.com>, <ryazanov.s.a@gmail.com>,
<johannes@sipsolutions.net>, <andrew+netdev@lunn.ch>,
<davem@davemloft.net>, <edumazet@kernel.org>, <kuba@kernel.org>,
<pabeni@redhat.com>, <nihaal@cse.iitm.ac.in>,
<m.chetan.kumar@intel.com>
Subject: Re: [PATCH net v2 3/3] net: wwan: iosm: always send the host sleep message on suspend
Date: Fri, 27 Nov 2026 11:07:30 -0800 [thread overview]
Message-ID: <DN689A6BNJ7W.1R8QXBRJO3TXA@gmail.com> (raw)
In-Reply-To: <179575732446.3135.7320223889201656739@kernel.org>
> [Severity: Medium]
>
> The reported case is a BIOS with no WWAN _DSM, where acpi_evaluate_dsm()
> returns NULL.
[...]
> Could the change be limited to the case where the _DSM is missing?
The driver only ever acted on the value 3 (D3L2). No value means
"D0L1.2 requested", so anything else, including a missing _DSM, fell
through to the doorbell default, and that default is what this patch
replaces. Platforms whose _DSM returns 3 already use the handshake and
see no change.
The reports I know of from platforms on the doorbell path are all
failures. On this ThinkPad the modem doesn't survive the doorbells even
when it is kept in D0, a similar report on another laptop was fixed by
the same change, and f4dd5174e273 tried to fix spurious wakeups on that
path and was reverted. If a platform turns up that does need the
doorbells, a DMI quirk list could bring them back for it. The v1 thread
has more on this:
https://lore.kernel.org/r/20261122050039.861287-1-davidlwesten@gmail.com
> The replacement path doesn't reliably wait either. ipc_protocol_msg_send()
> returns 0 when the completion times out:
It waits up to the message timeout for the reply, which the doorbells
don't do. That an unacknowledged ENTER_SLEEP still counts as success is
true, but it predates this series and is the same on D3L2 platforms.
> The Fixes: tag points at the driver entry point. That means stable would
> pick up this platform-wide change based on testing on one machine.
There is no Cc: stable. If the series is backported, it should be all
three patches or none, since 3/3 sends every platform through the
handshake that 1/3 and 2/3 fix.
> [Severity: Medium]
>
> Without the FORCE_SLEEP doorbell, the host sleep handshake is now the only
> way the modem learns about system suspend. Is its result checked anywhere?
[...]
> Should the callback fall back to the doorbell, or return an error to abort
> suspend, when the handshake fails?
Neither, I think. Falling back to the doorbell is what leaves the modem
in CD_READY here. Returning an error would keep the whole system from
suspending whenever the modem doesn't answer, for example after it has
crashed. D3L2 platforms have always continued the suspend after a failed
handshake, and with 1/3 the driver at least no longer gets stuck
afterwards.
> [Severity: Medium]
>
> Both callbacks now always send ENTER_SLEEP / EXIT_SLEEP over the IPC
> message ring. None of ipc_imem_pm_suspend(), ipc_imem_pm_resume(),
> ipc_protocol_suspend(), ipc_protocol_resume() or ipc_protocol_msg_send()
> checks ipc_imem->phase or the exec stage.
[...]
> After about 63 such cycles (IPC_MEM_MSG_ENTRIES is 128), could
> ipc_protocol_free_msg_get() start failing with "message ring is full"?
Yes, but D3L2 platforms already behave this way today. In CRASH and
CD_READY the modem is unusable whatever the driver does, and only a
reset recovers it, which probes the driver again and allocates a new
ring. In the boot stages the cost is the timeouts. Skipping the
handshake when the phase isn't IPC_P_RUN would avoid all of this,
though it wouldn't catch a crash the driver hasn't noticed yet, where
the phase still reads RUN. I can send that as a follow-up, or add it to
this series if that's preferred.
Thanks,
David
prev parent reply other threads:[~2026-11-27 19:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 17:26 [PATCH net v2 0/3] net: wwan: iosm: send the host sleep message on every suspend David Westen
2026-11-24 17:26 ` [PATCH net v2 1/3] net: wwan: iosm: reset the host PM state when the sleep handshake times out David Westen
2026-11-27 5:28 ` netdev-bot+sashiko
2026-11-27 18:56 ` David Westen
2026-11-24 17:26 ` [PATCH net v2 2/3] net: wwan: iosm: fix the wait for the modem in the host sleep handshake David Westen
2026-11-24 17:26 ` [PATCH net v2 3/3] net: wwan: iosm: always send the host sleep message on suspend David Westen
2026-11-27 5:28 ` netdev-bot+sashiko
2026-11-27 19:07 ` David Westen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DN689A6BNJ7W.1R8QXBRJO3TXA@gmail.com \
--to=davidlwesten@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=johannes@sipsolutions.net \
--cc=kuba@kernel.org \
--cc=loic.poulain@oss.qualcomm.com \
--cc=m.chetan.kumar@intel.com \
--cc=mail@maciej.szmigiero.name \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nihaal@cse.iitm.ac.in \
--cc=pabeni@redhat.com \
--cc=ryazanov.s.a@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox