From: "David Westen" <davidlwesten@gmail.com>
To: "Maciej S. Szmigiero" <mail@maciej.szmigiero.name>,
"David Westen" <davidlwesten@gmail.com>
Cc: <netdev@vger.kernel.org>,
"Loic Poulain" <loic.poulain@oss.qualcomm.com>,
"Sergey Ryazanov" <ryazanov.s.a@gmail.com>,
"Johannes Berg" <johannes@sipsolutions.net>,
"Andrew Lunn" <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@kernel.org>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>
Subject: Re: [PATCH net v3 2/2] net: wwan: iosm: re-bind the driver when the modem rebooted during S3
Date: Sat, 28 Nov 2026 08:07:21 -0800 [thread overview]
Message-ID: <DN6Z1WC3K6J5.28NE37T8TYXAZ@gmail.com> (raw)
In-Reply-To: <26f19a1f-8f60-4402-afc8-96fe46611998@maciej.szmigiero.name>
On 28.11.2026 16:04, Maciej S. Szmigiero wrote:
> I think for the issue at hand (S3 suspend/resume) currently the cleanest
> and less intrusive solution is to unbind/rebind the driver as the
> hibernation path already does.
Thanks, that helps. Just to make sure I read it right: do you mean
unbinding before S3, as v2 did and as hibernation does, or v3's
re-bind after resume once the modem is detected as rebooted?
I'd prefer the latter. Unbinding before S3 runs the cleanup against a
modem that is still running, so every suspend with traffic hits the
cleanup bugs we discussed: with a strict IOMMU that's DMA faults, and
without one the modem writes into freed memory. Hibernation has the
same exposure, but it runs far less often than S3. After resume, the
modem has lost power and holds none of the driver's memory, so the
cleanup can't hit those bugs.
v4 would drop the checks from v3 and keep only the detection on resume
and the re-bind after it, plus one check that stops doorbells to the
rebooted modem until the re-bind. In my testing without it, a doorbell
from the old driver instance crashed the rebooted modem into CD_READY
again.
> However, these fixes should go in separate patches from the S3 fix,
> maybe even into separate patch series.
Agreed, the teardown fixes will be a separate series.
Patch 1 is the one exception: the re-bind hits that use-after-free on
every S3 with wwan0 up, so I'd keep it first in this series. If you'd
rather have it sent on its own, I can do that.
Thanks,
David
next prev parent reply other threads:[~2026-11-28 16:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 19:41 [PATCH net v3 0/2] net: wwan: iosm: fix S3 resume by re-binding the driver after it David Westen
2026-11-26 19:41 ` [PATCH net v3 1/2] net: wwan: iosm: free the MUX after the netdevs that use it David Westen
2026-11-27 19:50 ` netdev-bot+sashiko
2026-11-26 19:41 ` [PATCH net v3 2/2] net: wwan: iosm: re-bind the driver when the modem rebooted during S3 David Westen
2026-11-27 13:49 ` Maciej S. Szmigiero
2026-11-27 16:46 ` David Westen
2026-11-28 15:04 ` Maciej S. Szmigiero
2026-11-28 16:07 ` David Westen [this message]
2026-11-27 19:50 ` netdev-bot+sashiko
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=DN6Z1WC3K6J5.28NE37T8TYXAZ@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=mail@maciej.szmigiero.name \
--cc=netdev@vger.kernel.org \
--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