Article View: linux.kernel.netdev
Article #23711Re: [PATCH net v2 1/3] net: wwan: iosm: reset the host PM state when the sleep handshake times out
From: "David Westen"
Date: Fri, 27 Nov 2026 18:56
Date: Fri, 27 Nov 2026 18:56
44 lines
12666 bytes
12666 bytes
> [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
Technical Details
Message-ID:
<DN6814XXB0ZC.MN5JW6XHOMHU@gmail.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372915-linux-kernel-netdev=dewy.ruReferences:
<20261124172627.41847-2-davidlwesten@gmail.com> <179575732269.3135.16660281513861185989@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372915-linux-kernel-netdev=dewy.ru
From: davidlwesten@gmail.com ("David Westen")
Newsgroups: linux.kernel.netdev
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
Organization: Usenet Network
Message-ID: <DN6814XXB0ZC.MN5JW6XHOMHU@gmail.com>
References: <20261124172627.41847-2-davidlwesten@gmail.com>
<179575732269.3135.16660281513861185989@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="795124"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:t+3NwpLk+cfGv9luN/VF5dmd938= sha256:F3hkQ8Gtvu39l7zY6ICJP86J91LsGCNhsYpSygbONN0=
sha1:FRMMIu5Mvi0vYkXGluA1N9UygnU= sha256:nv46UHe0VKKoIUdEpcFzwcB0Drf/yY6ulfwA+7DeECQ=
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 0543A125F61; Fri, 27 Nov 2026 21:57:14 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.149
X-Spam-Status: No, score=-3.149 tagged_above=-9999 required=6.31
tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001,
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-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
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 LRmeWyEDFGzH;
Fri, 27 Nov 2026 21:57:10 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-372915-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 5446E125F5E; Fri, 27 Nov 2026 21:56:59 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id 50BB22D0ED; Fri, 27 Nov 2026 18:56:57 +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=1795805815;
b=nbJQl7942BX+6FbHQv+slivEM1wshE+dC44S9Isj5Dvgg90BJxFaaioz4tmi0pbw8zqf
AjJ6Ye5VOOjuV8yqZpSzQ3umu3OmffH4oYGphKgIGCTzkWzRQTw6e7LhnaSIkYtUgnqsC
lxJgjDr1I0QrYGszo0KpOI9SqPHk2SFh7Y1ywutMRmNLt+PlC5MKki0gYTqEkvqo4PiAd
X2eLr8ZZCe9cHxJ86tBwjIrMdZiTuX+mV/gRjJseFZOTHoZ0bRtFkYzwq9WLO48TxmbWj
DrwmWyQ0UmXUEJ09+1Ul3M+axjvp3L+DB4Ie8OglJB0sEaoM2Rk604WAi4smjqaoKCg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795805815;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:Mime-Version:
Content-Transfer-Encoding:Content-Type:Date:Message-Id:Cc:Subject:
From:To:X-Mailer:References:In-Reply-To;
bh=F5Nr3iW4BqVQetm5Pe4Fx7V1QuIWu+0bYDS3Y41KKMg=;
b=41JYuLOz5EqPZanQXI2+QQKwtL4Mvr5fjnqwuWErPSAebxpMWwMu6JcinKTsAZzfchLK
i/vA3hKuDUoGrm0GuO5UhS0lhcmlSXAeGC3v+LLHs84XSt2nUpqPkx/HZr0vvrJnG7kkf
CouU4IId5MZnDBMMWo8VQ6ifU28OlT6rvJU1m1+AuJ5sqt6hsj3a3YjdWcRstGLzEMZje
7wuVN73WQpHu3tOY3/oJdx446EOKTe69JWRXqQLZjDZDdjF/8vsJuN8LkNDfaS5yItu6U
FutKfbFjAcvC1ppYCOlvvebLXvd71fDhqIr2NasooUpnBKgNBx/oRDrX+KRTsKBwaZQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=aeqSMXMP;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
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 3E193606A329;
Fri, 27 Nov 2026 18:56:55 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=aeqSMXMP
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.43
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795805814;
b=kZbHwEUxFKwtC+HwD/k1qCgfvKInkcv0XKjnTXtOokQFMXeDGTrNmfFrNrSxc8fVbd8Q
uBQXIaPmPUy2PEAni+GSvX8UwDG0IrpHmreRzuzQYaIiLk3BwuYsOXFSIn3D7meBLEBHG
P5u5EXo7CSKxTG2S4TVRIdFIdzXJ9jlEOdQ8tua8yZvB/+YhxI8Wu517FPSSp/9ExLrI5
i6ntaYDRNulYcssEX3divxvySxctRnS6YE/r1wzyXOW2wKI6VAJToznj5jILvmopEGurO
+C7y/bdiGy0RKcF1nzUyoDKr/Cd/eQ17X5/xksA3Pk+sUAX1/VeC6PasGnZkcyuyWNA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795805814;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Mime-Version:
Content-Transfer-Encoding:Content-Type:Date:Message-Id:Cc:Subject:
From:To:X-Mailer:References:In-Reply-To;
bh=F5Nr3iW4BqVQetm5Pe4Fx7V1QuIWu+0bYDS3Y41KKMg=;
b=ij4eoY8y+Yg9Xrgj3Khoc5w5zxuid1LnAmiDAaZ4+uBH3If/iTAWP6LALf9Af46nA9w5
JpHnjcAZuzATQqzGUhG7T5j4/UzvnEW+ERYuuPvFX3Xp6ET6iUy1fALGELPTryYN3dP3U
rmDMvwtNqtS41kTapQm+6lKgxjdCg/b4pGHxQ1OBnkDE3/rsaaJB0puPKOH9BrNjS5WBK
UygTnBhGmVRwXqC3cB5kcB0Mom0hDhpR6Ull5MzynW4hhAvlakuwK9Ukm2s1JFxbGdoHz
61IqtHiNBjuV73XS1nujwA5nOn/aNiOFNYbzAnZRgtLpYREyhVjeqAx/EkGysFDrjgA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=aeqSMXMP;
arc=none smtp.remote-ip=209.85.216.43
X-Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D87D606A31C
for <netdev@vger.kernel.org>; Fri, 27 Nov 2026 18:56:53 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0D87D606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-3b49a6e8212so3568240a91.2
for <netdev@vger.kernel.org>; Fri, 27 Nov 2026 10:56:53 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795805813; x=1796410613; darn=vger.kernel.org;
h=in-reply-to:references:to:from:subject:cc:message-id:date
:content-type:content-transfer-encoding:mime-version:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=F5Nr3iW4BqVQetm5Pe4Fx7V1QuIWu+0bYDS3Y41KKMg=;
b=aeqSMXMPAYjCALUh7eZa/1ncFtf+1PfU7M8up8SCrZ39n2OmoAFN1Wen/orDjCzcv5
XmnSvpfR+Fc2mdwA21bY/TJTAJUJDC6e7JqgpXLZ5wnfDqcquPMjoRQP/uuAX54wUX3j
5zTiXtfnHdInzMhjOBZNLlWKJD7XG2yoV3Zc0eOWY8RmgFIdrOaQlEoSOqYdfpiMDxtD
6PAx/8IrOLzOsQBfD37CqTozXl8/Ajcezgh5EBiBih3OS0c4WWJux4tSAQ0ZJFRgPZMS
3Buur4yV9VjIpkShGucwbmJPyw3FDzpw3Zdv48rF6k+sBoOwXMw0GyIxya5g6dMO1a+U
eZtQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795805813; x=1796410613;
h=in-reply-to:references:to:from:subject:cc:message-id:date
:content-type:content-transfer-encoding:mime-version:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=F5Nr3iW4BqVQetm5Pe4Fx7V1QuIWu+0bYDS3Y41KKMg=;
b=UI51sr5DUVoMrkeWjTfw2RVj5bzLQkgLfUNrJ3QerXe8Tjz+OYqppAPWRKOk5gWaUo
3iU2U/38axMizTJH4sW7wB5bQUH7i/gwAZMVX7z1AT+KRZZ4WGQH0IAJGcOJX+gRrtgm
V8cotXpCqOTlyQbEV+6CAF4MWByca9viEhB78ej01tHHF7ldpWAswmBHGmnfD834Jx4O
XBwoV1bztHPlDrp5AdOPogBdBPRSoAIpNwhM+zYSP7qgYLi1FoTANarQjMrMH/IEDgXl
daeZmJRombUdFtt71Ewz4l+mWsa+dDZQGvudG5J1wizRBETyc1kP7xniE7YpZ/kDUGvg
WXGg==
X-Gm-Message-State: APuU4Z8FGUgOl97zHDFAnp8Na+tya/vqqQmlzA3NGKoM1e56ZKbF+DO3
0iqE6j5PHQcj3JVaZvakdiuBq1ctTznT+jw8PHdEclQdzPvfz4KeIPEA
X-Gm-Gg: AZFdTZcI8vGugiFI9jQlw/7RmuAY7z+ztAZ15rcIWOAcshL2boMGFVFrjHn3e50RyUJ
Z/lxE8YQjxBfloSZuBnKkwWEx63SswaABE46lx6a4ghRmbgW8RyNzJEWpgNme1NQYuBf8DTy8Xv
zVDaQx7DqmsKfqY6EGyFQcfTWS680z49hEBuOK5f5M/FycUyUSX+MQEDfM9OCKrScy+ADVxLkVQ
08zS2K+ZZWipgsP65BHrcsa8q5NLt5ZdNlGV55etwKv5vrFaNw9XL6ZCRXzjqS8bUYwJZ11BbvE
zHWBs8cjrZFgSRyt8z7cec/vC7p+0Dig5pf73rmJ6US0ODP8+FHLyNMCj5x3lBzO8gTw6uaXoSi
fJ67QlmvdRLk+zS7dbqlisjSxcj2WKdRRr1FlWqECC3VZU7sEy2Ax8shxjO0aUnclCJJwpad6k3
NhmrDvQi/sR+cZDCyHnlximOM+CmCYKvXD3h/pwIh06VNQARN2j3RdNcCxIDsqo530SoTtVFrzt
z/utUnVPGj0CvLon7D6qhfboHuFXRM74JQj70/GeYhltF8riGQ5f26NVhrg/kILblsh2svHtW11
eJBt/vZRSff7B/kdOK0rsHA0hbmu0WNmGmQ=
X-Received: by 2002:a17:90b:39a3:b0:3a0:9c9d:eb18 with SMTP id 98e67ed59e1d1-3b41cb20e66mr27984760a91.54.1795805813227;
Fri, 27 Nov 2026 10:56:53 -0800 (PST)
X-Received: from localhost ([2601:600:a482:7d70::5e59])
by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b53479b149sm5395556a91.6.2026.11.27.10.56.52
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Fri, 27 Nov 2026 10:56:52 -0800 (PST)
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-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>
X-Mailer: aerc 0.22.0-0-gc2f86b7abde3
X-In-Reply-To: <179575732269.3135.16660281513861185989@kernel.org>