Netdev List
 help / color / mirror / Atom feed
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: Sun, 29 Nov 2026 13:58:02 -0800	[thread overview]
Message-ID: <DN814YANYTFR.20HZHKEI38LSH@gmail.com> (raw)
In-Reply-To: <27177991-fd89-456b-a440-a56a616fdc02@maciej.szmigiero.name>

Hi Maciej,

On 29.11.2026 20:03, Maciej S. Szmigiero wrote:
> I meant going back to how your earlier patch titled "fix S3 resume by
> re-binding the driver around it" did it.

Sounds good, thanks for clarifying.

> So fixing the cleanup done on suspend with modem still live would still
> be the preferred option.

Agreed, and I think it has to come first. With the current cleanup,
unbinding while downlink traffic is in flight let the modem access the
freed MUX buffers in every run I measured with a strict IOMMU, DMA
writes included. A single keepalive arriving shortly before the unbind
was enough. The PM notifier runs before user space is frozen, so the
link is still live at that point, and an unbind before S3 would hit
this on any suspend with traffic. Without an IOMMU those writes land
in freed memory unnoticed.

So I'll leave the S3 fix aside for now and fix the teardown first.
Once that is in, I'll send the re-bind around S3 as you suggested.
Patch 1 doesn't depend on S3, so I'll send it on its own in the
meantime.

Thanks,
David

pw-bot: cr

  reply	other threads:[~2026-11-29 21:58 UTC|newest]

Thread overview: 11+ 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
2026-11-29 19:03           ` Maciej S. Szmigiero
2026-11-29 21:58             ` 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=DN814YANYTFR.20HZHKEI38LSH@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