Article View: linux.kernel.netdev
Article #13463Re: [PATCH net] net: wwan: iosm: Re-bind the driver around system suspend too
From: "Maciej S. Szmigiero"
Date: Mon, 09 Nov 2026 22:33
Date: Mon, 09 Nov 2026 22:33
46 lines
12872 bytes
12872 bytes
On 5.11.2026 11:20, Zev Paneth wrote:
> On some platforms the modem loses power during suspend-to-idle even
> though the driver keeps the device in D0 and its s2idle resume path
> only sends a wake-up command. After a long enough s2idle cycle (about
> five minutes or more on the test platform) the device comes back in
> its boot ROM stage: resume logs "msg timeout", ModemManager then fails
> to open the ports ("PORT open refused, phase A-ROM", "Failed to find
> primary AT port"), and once userspace has touched the ports the modem
> stays dead until a full reboot. This is the same failure mode that
> commit 0b6f6593aa8c ("net: wwan: iosm: Fix hibernation by re-binding
> the driver around it") addressed for hibernation.
>
> Extend that approach to system suspend: unbind the driver on
> PM_SUSPEND_PREPARE and re-bind it on PM_POST_SUSPEND, so the device is
> re-initialized from scratch on resume, exactly as it is at boot.
>
> The cost is a full modem re-enumeration after every suspend (about
> 50 seconds until reconnected on the test platform), also on platforms
> where the modem does survive s2idle. If that is considered too heavy,
> this could instead be gated by a DMI quirk for the affected platforms.
>
> Tested on a Fibocom L860-GL-16 (Intel XMM7560, 8086:7560) in an
> HP ProBook 450 G10 (BIOS V72 01.13.01) with kernel 7.0: with this
> change the modem survives an 11-minute lid-closed s2idle and
> reconnects automatically; without it, any s2idle longer than roughly
> five minutes left the modem in A-ROM until reboot.
>
> Signed-off-by: Zev Paneth <zevpaneth@gmail.com>
> ---
> drivers/net/wwan/iosm/iosm_ipc_pcie.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
To be honest, I'm not sure such "big hammer" is indeed the right
solution.
Maybe the DMI quirk you describe would work as the last resort.
Could you instead try this iosm s2idle patch at [1]?
This already helped one user.
You should see "forced D3 sleep" at the modem device probe time.
[1]:
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/work_items/992#note_2938256
Thanks,
Maciej
Technical Details
Message-ID:
<e2684e1d-3f1a-499f-bb09-903e690981c5@maciej.szmigiero.name>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359646-linux-kernel-netdev=dewy.ruReferences:
<20261105102009.34534-1-zevpaneth@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359646-linux-kernel-netdev=dewy.ru
From: mail@maciej.szmigiero.name ("Maciej S. Szmigiero")
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: wwan: iosm: Re-bind the driver around system
suspend too
Date: Mon, 9 Nov 2026 23:33:30 +0100
Organization: Usenet Network
Sender: mhej@vps-ovh.mhejs.net
Message-ID: <e2684e1d-3f1a-499f-bb09-903e690981c5@maciej.szmigiero.name>
References: <20261105102009.34534-1-zevpaneth@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="467897"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Dxpx77W5y0w3rK69w8j0EmIMzjc= sha256:fb6rg08vtyt4hUDB1/lmlndoDS268F1JWOPzKb9XY2M=
sha1:6W458UQbKGRhNyUq+OV6zCdUSGc= sha256:wJnxKetWGcP9QWieUfFFniUXIa57o3eltLdtwMa4EgU=
Content-Language: en-US, pl-PL
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id F052F11395F; Tue, 10 Nov 2026 01:53:24 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.951
X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id AEgKNoE6ivmY;
Tue, 10 Nov 2026 01:53:21 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-359646-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=maciej.szmigiero.name
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 9849E11395A; Tue, 10 Nov 2026 01:53:16 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 3FF7FC1D61; Mon, 9 Nov 2026 22:33:53 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1794263632;
b=G+msypLe/8JO5NGslBMe7vFnBeVl+2DDnqsNW1pNDgsK0zsBPynxjK0D5H1ar7aJdUq4
uvm9YGDpMCXQr5Hf7u6J2ta1r+T178Gr+PtkDkWPlMeIJi+VncWKhqIef/1Bs3NQn/Bi4
whM7A0nuzFqtLxWhcFWbt4zLoHUbNKCF+O4oGaoqmqRyqQJUTfp4SxLGPB9m+k+eBth+9
xyQP9X+ovQqi6ANeP3Ukm3UQBEonqupaGWC1rNvXHhRfVcUWw/e5Am7ij2AsDbzkEQArS
w0K6XWM/mA3Wtj7XkFozVzUzaQYLJLIpgGOtqc06WE+uRRovu5qLj05vUBawDRO458A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794263632;
h=X-Original-To:Received:DMARC-Filter:Received:Message-ID:Date:
X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent:
Subject:To:Cc:References:From:Content-Language:Autocrypt:
Disposition-Notification-To:In-Reply-To:Content-Type:
Content-Transfer-Encoding:Sender;
bh=j6T4azhngLDHnYHxtK5abGg6pXWrKvEZEpN8JEf/eqk=;
b=Qjokq62i3AvybUcTlE59ADvdClkbtiKxE2IAn6Ow71iuAXno/dm8vp6dVT/f0Z34AN6g
MErBG4A4az5fXOgDtUi775TiB3642KtLH8XmruHBvtDheyIBqB+/VWUbqaHUoJ9+t71FW
OB1n6Ym58wd/H6oUyMZMZ3aox9d/WKerrwg3io2JfgyNsu88i8/NvOnVbxUNdElz92+fA
CYcmnJ0M2g3CY/MEz5unMJxKvbqfgyIFCimR03SWtyd2mIyFi/l2u8zgJJ/Kzm2SYGy0V
JbxbDl9FgnZaBMSJrHXMKNTbZB/jvn1AFkFY+oj7kNlA8VWeqAa3go6LTF8rnpiLVdg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dmarc=none header.from=maciej.szmigiero.name;
spf=pass smtp.mailfrom=vps-ovh.mhejs.net;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 47176606A331;
Mon, 9 Nov 2026 22:33:52 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=145.239.82.108
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794263631;
b=T1g9YrhLuG4QVBBbJQ42PJv8TUVT/MEHjopUOESkyUGPv8oSWY83hB0UeEJOSD4yKhEb
1O2SHdMbYv4dupRAaTQnCoQ2XlH//7Bp5enN43WmNhR9RsQwKRlIbpv9kr198BX22Qt0j
EsxjzCF/bDHWCX3NRZfroMcCAKw0PjxD+wf70J1ESJwNtx8AeGcc8AvidmYAJDATa0kcv
26ywhO+JUkZXoBqDnJJ25432UeeD1L6g7ztQEQNLv1F4tQfpzAudxuunzKna3ZCASSVj+
99rec40UBvnKKxgrRhZlzQoBteM2hDEgNRtOlxHMTVngV9i+l8TZiqcgpb4GiT3gxEw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794263631;
h=DMARC-Filter:Received:Message-ID:Date:MIME-Version:User-Agent:
Subject:To:Cc:References:From:Content-Language:Autocrypt:
Disposition-Notification-To:In-Reply-To:Content-Type:
Content-Transfer-Encoding:Sender;
bh=j6T4azhngLDHnYHxtK5abGg6pXWrKvEZEpN8JEf/eqk=;
b=PJ36BLBNSUXAxaWC7Nki+/SKtkDLNZVyx0CJxCgjOctCDMpPbAZgoIa7AmyCkO4eDAgt
girJZGi7t9x/ultvs5XRE8tHk2P2U8ReUqcQAhwaQtyTKmNma/pQbtjfEe9Oxii1lO9bg
5rsCSAzwE/MGHvyCQGVbqxCsZoFPM/xhTTZLdJloa5ZDn+GC++QyZaEQ07vugiCsU/Yyy
PMH1VyjrYI+BlMPRCrDfq2iwfOSlJp1ZDuaFWkwWVIVdgjHgMQJiIetqW65PmAppCIwK9
YdLAyuTpsyMErKy4lrHH49fbCFdMZC2iAmEW6jVTTkCqsq7DFQ52hW2pZjhf/FLvnkg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=none header.from=maciej.szmigiero.name;
spf=pass smtp.mailfrom=vps-ovh.mhejs.net;
arc=none smtp.remote-ip=145.239.82.108
X-Received: from vps-ovh.mhejs.net (vps-ovh.mhejs.net [145.239.82.108])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6883A606A31C
for <netdev@vger.kernel.org>; Mon, 9 Nov 2026 22:33:49 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6883A606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=maciej.szmigiero.name
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=vps-ovh.mhejs.net
X-Received: from MUA
by vps-ovh.mhejs.net with esmtpsa (TLS1.3) tls TLS_AES_128_GCM_SHA256
(Exim 4.100.1)
(envelope-from <mhej@vps-ovh.mhejs.net>)
id 1xQXvk-00000000W3m-1490;
Mon, 09 Nov 2026 23:33:36 +0100
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-User-Agent: Mozilla Thunderbird
X-Cc: Johannes Berg <johannes@sipsolutions.net>,
Sergey Ryazanov <ryazanov.s.a@gmail.com>,
Loic Poulain <loic.poulain@oss.qualcomm.com>,
"David S . Miller" <davem@davemloft.net>, Eric Dumazet
<edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>,
netdev@vger.kernel.org
X-Autocrypt: addr=mail@maciej.szmigiero.name; keydata=
xsFNBFpGusUBEADXUMM2t7y9sHhI79+2QUnDdpauIBjZDukPZArwD+sDlx5P+jxaZ13XjUQc
6oJdk+jpvKi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LxVKXGqinMD1nb/QPA0Rj35WluRdPIB2dcDcyTOtiyN
ErIQQMhr0W4sxZOd741a2nv89VZKjzBNjihOZgbEuHfG/0lhIZ5t6aF7k4gbMctzQT7utzmD
y5OoV+/VFHguLThwxRvCMkGEieE8Cb4muYdQgaq1s5ipV1IqF3cDYg2iGupnsYSgOfw7ZyvG
9c7Fxn7jiD/wI9eL3AesCkVFbF0r/9yLbuW6vh3kd/+bORO1GK4snSjrZLi04bnihnDfa33N
Pik3cmUZZANzo+HkADZjJ1pl3DZn1Qj8STk6YhaTtJhLKH4lteAlSS4xRIeoiw/2hbzbRr4j
hnu96hf6ukM7E7oC89SfWGXZHbUds77MFyKvBTCMJnkQq+PbmYp1vgTnOl3JO7ARZ3rNPkHE
IpOWDjHRyDiKVVxt2bKaELZrFGcYYTVXt9pUfY1xFt76G0piVr50+jTezgMmZYr7aZOrqlUi
WHQjcZZbROLql/+ngphSgdthGIhVWrIMHJu1UxnRiwKc/fzDFUZ9hFL+W4ZLm+52TzMatpta
oNdcP9rtsQjdYMNLuwysP4keDX8yBXADwJD7eQ+ryIIKh6X1lBMIWxeZG5W0DQ6/4BCUEbCe
1DqkYRtZyUEzgAbaHliaa5t3dfCtSMz5cAbGqxarXc7bKOjA6P8hCwgP0tEypA==
X-Disposition-Notification-To: "Maciej S. Szmigiero"
<mail@maciej.szmigiero.name>
X-In-Reply-To: <20261105102009.34534-1-zevpaneth@gmail.com>