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 1/3] net: wwan: iosm: reset the host PM state when the sleep handshake times out
Date: Fri, 27 Nov 2026 10:56:51 -0800 [thread overview]
Message-ID: <DN6814XXB0ZC.MN5JW6XHOMHU@gmail.com> (raw)
In-Reply-To: <179575732269.3135.16660281513861185989@kernel.org>
> [Severity: Medium]
> This is a pre-existing issue, but can an interrupted wait skip the new
> reset entirely?
Yes, and as you say, patch 2/3 fixes it by switching to
wait_for_completion_timeout().
> [Severity: Medium]
> Does restoring ACTIVE here let the next suspend consume a stale completion
> count?
Yes, between this patch and 2/3, which adds reinit_completion() before
each wait. If there is a v3, I'll put the wait fix first so that the
series has no such gap.
> [Severity: Medium]
> Is a doorbell parked during SLEEP_WAIT_D3 ever replayed after this
> rollback?
Not until the next doorbell to the modem. The existing rollback when
sending ENTER_SLEEP fails, which this patch copies, has the same gap,
and either path needs the handshake to fail first. Replaying the update
on rollback would have to go through the task queue, as the store isn't
serialized with the tasklet. I'd rather do that as a separate change
than grow this fix.
> [Severity: Medium]
> This isn't a bug introduced by this patch, but the new comment says "we
> are still active" while the suspend still goes ahead. Is the false return
> from ipc_protocol_suspend() meant to abort the suspend?
The comment is about the driver's host PM state: the modem wasn't told
to sleep, so the driver must not behave as if it was. Whether a failed
handshake should abort system suspend is a separate question, and the
driver has never done that. Aborting would keep the whole system from
suspending whenever the modem stops answering, for example after it
has crashed, which seems worse than suspending without it. This patch
only gets the driver out of the state where every later suspend and
resume is refused.
Thanks,
David
next prev parent reply other threads:[~2026-11-27 18:56 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 [this message]
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
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=DN6814XXB0ZC.MN5JW6XHOMHU@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