Article View: linux.kernel.netdev
Article #23718Re: [PATCH net v2 3/3] net: wwan: iosm: always send the host sleep message on suspend
From: "David Westen"
Date: Fri, 27 Nov 2026 19:07
Date: Fri, 27 Nov 2026 19:07
77 lines
14254 bytes
14254 bytes
> [Severity: Medium] > > The reported case is a BIOS with no WWAN _DSM, where acpi_evaluate_dsm() > returns NULL. [...] > Could the change be limited to the case where the _DSM is missing? The driver only ever acted on the value 3 (D3L2). No value means "D0L1.2 requested", so anything else, including a missing _DSM, fell through to the doorbell default, and that default is what this patch replaces. Platforms whose _DSM returns 3 already use the handshake and see no change. The reports I know of from platforms on the doorbell path are all failures. On this ThinkPad the modem doesn't survive the doorbells even when it is kept in D0, a similar report on another laptop was fixed by the same change, and f4dd5174e273 tried to fix spurious wakeups on that path and was reverted. If a platform turns up that does need the doorbells, a DMI quirk list could bring them back for it. The v1 thread has more on this: https://lore.kernel.org/r/20261122050039.861287-1-davidlwesten@gmail.com > The replacement path doesn't reliably wait either. ipc_protocol_msg_send() > returns 0 when the completion times out: It waits up to the message timeout for the reply, which the doorbells don't do. That an unacknowledged ENTER_SLEEP still counts as success is true, but it predates this series and is the same on D3L2 platforms. > The Fixes: tag points at the driver entry point. That means stable would > pick up this platform-wide change based on testing on one machine. There is no Cc: stable. If the series is backported, it should be all three patches or none, since 3/3 sends every platform through the handshake that 1/3 and 2/3 fix. > [Severity: Medium] > > Without the FORCE_SLEEP doorbell, the host sleep handshake is now the only > way the modem learns about system suspend. Is its result checked anywhere? [...] > Should the callback fall back to the doorbell, or return an error to abort > suspend, when the handshake fails? Neither, I think. Falling back to the doorbell is what leaves the modem in CD_READY here. Returning an error would keep the whole system from suspending whenever the modem doesn't answer, for example after it has crashed. D3L2 platforms have always continued the suspend after a failed handshake, and with 1/3 the driver at least no longer gets stuck afterwards. > [Severity: Medium] > > Both callbacks now always send ENTER_SLEEP / EXIT_SLEEP over the IPC > message ring. None of ipc_imem_pm_suspend(), ipc_imem_pm_resume(), > ipc_protocol_suspend(), ipc_protocol_resume() or ipc_protocol_msg_send() > checks ipc_imem->phase or the exec stage. [...] > After about 63 such cycles (IPC_MEM_MSG_ENTRIES is 128), could > ipc_protocol_free_msg_get() start failing with "message ring is full"? Yes, but D3L2 platforms already behave this way today. In CRASH and CD_READY the modem is unusable whatever the driver does, and only a reset recovers it, which probes the driver again and allocates a new ring. In the boot stages the cost is the timeouts. Skipping the handshake when the phase isn't IPC_P_RUN would avoid all of this, though it wouldn't catch a crash the driver hasn't noticed yet, where the phase still reads RUN. I can send that as a follow-up, or add it to this series if that's preferred. Thanks, David
Technical Details
Message-ID:
<DN689A6BNJ7W.1R8QXBRJO3TXA@gmail.com>Path:
mbox-mo1.pugleaf.net!news-can.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372923-linux-kernel-netdev=dewy.ruReferences:
<20261124172627.41847-4-davidlwesten@gmail.com> <179575732446.3135.7320223889201656739@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372923-linux-kernel-netdev=dewy.ru
From: davidlwesten@gmail.com ("David Westen")
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2 3/3] net: wwan: iosm: always send the host sleep
message on suspend
Date: Fri, 27 Nov 2026 11:07:30 -0800
Organization: Usenet Network
Message-ID: <DN689A6BNJ7W.1R8QXBRJO3TXA@gmail.com>
References: <20261124172627.41847-4-davidlwesten@gmail.com>
<179575732446.3135.7320223889201656739@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="796977"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:0ZHc07h62bEkvXGTi0jVr25V168= sha256:jYa3JpafgSDfGlVyn61IYoHR+5tF+Hm9idEUUkXQ6PI=
sha1:/Mt+VR8oKJepRgnLINmkvEOmFWY= sha256:rX9FrtqTvFbpWuVU1K7ba0ZSXbhPunq/14mxFGmRtzs=
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 D618A125F63; Fri, 27 Nov 2026 22:07:49 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, 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 qEaxQQtYk4P7;
Fri, 27 Nov 2026 22:07:46 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-372923-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 2A3EB125F5E; Fri, 27 Nov 2026 22:07:35 +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 DF57E2D8C0; Fri, 27 Nov 2026 19:07:33 +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=1795806453;
b=rcauICBuw7EnB2DYujL6F7u8/tki6LT2T2RrPa/j6cyhX/RKBbvNg5XC34IFBZtMIN9l
BBZ6+Iz6FAAKA5kma/1rVi6JXfgp/xfiQN4gLQEB28XRsHpx2pKXig1X8fsGNZ83RQ8Nb
ddL4MtWfhghJ1eZ+mPi7b63UMVDBJH9v5Rex87sNYO7sYQMDyD0Qfdvyi0rAsOqQvzW8d
zdnob0bEHxIJPz0HMe2REZVx2rSqmySu9oXbDu2TrK8qD6Hr18DjWZSOSPUSxSd2uYoSc
rfbwPWNDOKrQQAv3Xz/UXroJQBZNSfQ3mWjwz9c32Wn+CUQ8gjZbgjmLkKM+j5dCIcA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795806453;
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:Subject:From:
To:Cc:X-Mailer:References:In-Reply-To;
bh=2DnA9FyioBX1izGwnKZE2FTp6qN+nSrZYIJ+DgRwFAE=;
b=XgaoAq8QZc6ZUwub42KkLXR72WqKeNRlcs4sWoAbiZoB620qTwksKi//hMICw3G7zoaz
b5SaLrc1UHwuTOXq8MMYXP17btPpnv0CVJGGIq6lmy0nfBG+QU4hZVMK1yf8flUGyHUTB
2KSGipabtUxvj7wDLPJqDeca5jrU/5GrCoQtw/EdYdV+FNxa+gTKfwPtGthbonJs3d412
4/P+ovRcfwxPZ/YO77IOLYZTZiDvr8mhUPV2hIyT2UPhfjHRjC8nxoLeIp8uVTg3pe4i3
bGHU0Ct8F0c6pFot8aJjIRxIQRo8tAkcNfa5fAhaR9EDOTH280dwRZ3pKENpiRSGU5A==
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=gXJVV+Q3;
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 B42A5606A31F;
Fri, 27 Nov 2026 19:07:33 +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=gXJVV+Q3
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.180
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795806452;
b=Oa9jbkuDkAfDrrUGik9b1Foz0ifT8m85EBwYTVU5VxJICXJbO1zOSOO3oh+QRIUtkk5y
3OjVoQXYoP9o8dJNypdsP7GSavnXFA329nsOw2MCkPvQjlJrN+hiBoj9JJFnJDOh5Mbnu
5CVHZVZZQFyJx6UxL5y8b2J2ew1eJf7+jAlU+8uTXHm9yopdIRGsZOqZNj2DifXgnTgTF
PbBeNspOXI7C4HdSuNx6kILBsBPZ5gMcS+lRljUQBbMJW1SiRHYjOc3+A9Z8o0rbQ1VTs
BLLVrV3PCV7eZk2Tex8pMTc8bchxP1SGAhkmZlwK7531bR5cdueb7zluUEjKmacopWA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795806452;
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:Subject:From:
To:Cc:X-Mailer:References:In-Reply-To;
bh=2DnA9FyioBX1izGwnKZE2FTp6qN+nSrZYIJ+DgRwFAE=;
b=qj4QG0VmhwS4+yGjSph9eaoJixGzHd7yMlR4kuLa5kqbXrulBcjdx9cUoxh8ydSj6z4g
DDUP5ziLwACZCVWiCnH6/6hV/M7QrWKuIGra5uAM9ZLQQTQpLZ0YFiI+NoUGS5wr2eX49
GAN4xBREp7cWvJSStb0F0cN5XJIUIHnkVNDnpLy9jBxknuDtGjB+Hh1cL8iOgov5p4ido
l5COesz4Au9g7bTqZs1o2XDZcpSbXJiPQuhUK95N0VdJjr4helPeNacLrBr+OniAMUzic
KZgB8PrLgKiP9bOTW/yzbYnQCFcWR8apccDb8m2ru9ElDa4raGJGOcDMFvI3Wsbo2YQ==
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=gXJVV+Q3;
arc=none smtp.remote-ip=209.85.215.180
X-Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180])
(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 8D2F6606A31E
for <netdev@vger.kernel.org>; Fri, 27 Nov 2026 19:07:32 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8D2F6606A31E
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-pg1-f180.google.com with SMTP id 41be03b00d2f7-cdba1bbde0bso3293098a12.2
for <netdev@vger.kernel.org>; Fri, 27 Nov 2026 11:07:32 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795806452; x=1796411252; darn=vger.kernel.org;
h=in-reply-to:references:cc:to:from:subject:message-id:date
:content-type:content-transfer-encoding:mime-version:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=2DnA9FyioBX1izGwnKZE2FTp6qN+nSrZYIJ+DgRwFAE=;
b=gXJVV+Q3PQJaOF4dULReR2P68Cx28RzPYNXaVaJsIQYGyQ228xA6UEXOBaPEIkF+BA
iBRhS4FjYcpC3oLFLOrUxsnfKvzN07SjTcq/HCHVXE+dCjhycftd7cj0gmOs9f8TWSuV
eGZ5ctV7lnpDpsVcdpRZqR8TD1KOfykUAjVPmgTa1BdleiZLrQOuW3c5uTSPPrvmHsqN
znDtAQZVBwJmZcYJ8hV2EpwE63sIcHztNRXl9hfvk1c2D10NQ0KlrpFMyz7JhHQf28PD
1V2esWPg01UwXRKFGmuG6FxjBr+DDWG5k3TdcWsZdODnkBNXzxcV64LybvSkmT4QdNsN
KmOA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795806452; x=1796411252;
h=in-reply-to:references:cc:to:from:subject: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=2DnA9FyioBX1izGwnKZE2FTp6qN+nSrZYIJ+DgRwFAE=;
b=2GsJMlAhAjGtiT4lDqF6dN6eGXxThQSnIBKU3XqJvja+e0hEafBuqzWfH5a0ixPk4M
pn+wCNWEL3omshNrGEkpyc/f7AN23SDztbXMzITZCQcF41GeoRlTzog5O2U689Bd3Rky
wvekChIWUUqZ61ZTgyle3u4ZN4d3AJ+XUoPzzJmBFA6WxwjC4FgTgnd1IGG7TXgAxXt0
kfadzio4Yz5HBZykylX5A2G33g7fVTaDoCwMdZIDgHHF/9UQ/a6SGl8RoNcZw0HEj/5+
d12xke8db1GowYxB4KmsE3lBhMXlF8URu7ZixKzSO9lgZy/jTPCADKMFF3trjGydpihm
atSg==
X-Gm-Message-State: APuU4Z9D25UzYjWexdX59ETqzrb43YkY+HyOK53jjZEoZ9rCF51Qz/My
KSPeV6b+Bpp+GyNpuve+Qonl8Q/AXBsgebOjbGWmNIKWsiMTLU/gqSl4
X-Gm-Gg: AZFdTZdn4rGxtbWvRvolQ2asc/oTLFXgFiaCqcb/fnv9CuhYG2EXzV8vJLUS4kVZIhZ
ZzCNuybULy3+YO2zwfiNg+C5kTMXsaNrRw6bhR5cicBb7IhKs066QX5av7Rry74Ac1xUN6d3n/l
SaDiHRuEVmCdwNwaeyzEMQb55Dpx+F0374gMo/yq3msO5mBuO5E1OdHr+BR94Sl+wmolNF+NoqM
D0zBdetCfM2KMivav0hTgRl7qeGHqcUvzrxEg1+MPZUwc2q2n5ch3dKYV+eBwiWBu+zizK4+wsL
ZbYSG2gXwNZp1VtVifoEcG7/21kckmJc26oJzIp7mTwiQJDS3hTzdYbSwUfs2AC2G8ztD4c9sWJ
L1LuP3najLSOJrXcGJgGkRCR79nqv1Po0aPavZkF5WX+kZleWa2cLHs6OhklhDrHN2bCdTKYlCj
BGd6mrhhHpEVRg4ybLs/K15AVHru1/lZI+sZZfFvk2hp1oxQrL78DwUp/RchWrs/EPbzqNKlGiY
RV6GpPxnkdi68LwUqRh1eX5IkkJArz/TijksmUS2Q8klG3LGCFM6g8zALiQ7R4r822b1R3B1ut+
ILQrTeOBHuwggg==
X-Received: by 2002:a17:90b:2f8f:b0:3b3:b915:2c03 with SMTP id 98e67ed59e1d1-3b41c92ce36mr25174271a91.31.1795806451738;
Fri, 27 Nov 2026 11:07:31 -0800 (PST)
X-Received: from localhost ([2601:600:a482:7d70::5e59])
by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b44b7a8c64sm17802538a91.3.2026.11.27.11.07.30
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Fri, 27 Nov 2026 11:07:31 -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: <179575732446.3135.7320223889201656739@kernel.org>