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