🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #21209

Re: [PATCH net] net: wwan: iosm: always send the host sleep message on suspend

#21209
From: "Maciej S. Szmigiero"
Date: Mon, 23 Nov 2026 18:07
59 lines
13082 bytes
On 23.11.2026 04:05, David Westen wrote:
> Hi Maciej,
> 
> Thanks for taking a look!
> 
> On 11/22/26 12:01 PM, Maciej S. Szmigiero wrote:
>> On 22.11.2026 06:00, David Westen wrote:
>>> This ignores the BIOS RTD3 setting for system suspend. The setting
>>> only selects the sleep protocol; the PCI core chooses the power state
>>> without it, and here chooses D3hot, which the doorbell protocol
>>> doesn't survive. Honoring D0L12 literally would mean keeping the
>>> device in D0, as commit f4dd5174e273 ("net: wwan: iosm: Keep device
>>> at D0 for s2idle case") did. That was reverted, D3 being the expected
>>> state.
>>
>> I have mixed feelings about this.
>>
>> Your platform specifies D0L1.2 as the target state so I presume that
>> is the state that the platform expects the modem to be put into?
> 
> It turns out it doesn't specify anything: the WWAN _DSM function 3
> returns no result here (BIOS 1.56 and the latest 1.68), so D0L12 is
> only the driver's default.

The driver code does only care for value 3, any other value or absence
of value is taken as D0.

Unfortunately, it's not known whether Lenovo intended this empty return
value to be implemented as D0 or they just neglected to put a value there.

>> The reverted commit f4dd5174e273 on the other hand always put the modem
>> into D0, which was incorrect in a different way - as, for example, my
>> platform explicitly requests D3.
> 
> Agreed. How does yours request it, through the _DSM returning 3?

Yes, the method explicitly returns 3 for that "WWAN" GUID on my (HP) platform.

>> Could you try the reverted commit to see if D0 actually works for your
>> platform?
> 
> I tried f4dd5174e273 on 7.2.15. With it, the modem is no longer put
> into D3hot, but it still crashes during suspend-to-idle: when the
> resume callback runs, the modem already reports CD_READY, the same as
> without the commit. So it seems it's the FORCE_SLEEP doorbell that the
> modem doesn't survive, whether it stays in D0 or goes to D3hot.

So I guess this test settles it - at least for your platform.

I would cautiously proceed with unconditionally using D3 (as this patch
does), however would be ready to revert it and use a DMI-based override
list instead if it turns out that there are platforms that actually
require D0.

> David

Thanks,
Maciej
Technical Details
Message-ID: <aca74a0e-2672-4b93-b94a-e80b8fee5c9b@maciej.szmigiero.name>
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-369654-linux-kernel-netdev=dewy.ru
References: <20261122050039.861287-1-davidlwesten@gmail.com> <925a4f3f-95bb-496e-be19-abf96af34d89@maciej.szmigiero.name> <813dc217-9753-4f9a-bf1d-1d8878dc9012@gmail.com>

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-369654-linux-kernel-netdev=dewy.ru
From: mail@maciej.szmigiero.name ("Maciej S. Szmigiero")
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: wwan: iosm: always send the host sleep message
 on suspend
Date: Mon, 23 Nov 2026 19:07:27 +0100
Organization: Usenet Network
Sender: mhej@vps-ovh.mhejs.net
Message-ID: <aca74a0e-2672-4b93-b94a-e80b8fee5c9b@maciej.szmigiero.name>
References: <20261122050039.861287-1-davidlwesten@gmail.com>
 <925a4f3f-95bb-496e-be19-abf96af34d89@maciej.szmigiero.name>
 <813dc217-9753-4f9a-bf1d-1d8878dc9012@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="3947967"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Kdzrl9Mwz845M/xXf6qMkWS+zwg= sha256:jUzEd8T6xJIVA9wY3bsAn4D9JOoKgKHQP0RURQCw/Uc=
	sha1:sEtzR08dVxHKFz0WWOMIV+zuxYM= sha256:yZZA6RNGju5+QipAFrh193Hhc28PmVLp0EE/nsE6e2Q=
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 5A33F125DC0; Mon, 23 Nov 2026 21:07:46 +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 yi-gaW8j9DeT;
	Mon, 23 Nov 2026 21:07:43 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-369654-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 D5011125DC2; Mon, 23 Nov 2026 21:07:39 +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 2DBEB31E4C; Mon, 23 Nov 2026 18:07:37 +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=1795457256;
	b=SDhtBkI03UsBgNWzsCjv7j6aSq4BNeeRU7+5AzcLiPTwbOfz9872qzigW7UDvyNX7rae
	 ajSaBmEYy8tmCdqqOE+oNsKCOTm19e7zc+rbM4pKeyiMlK1E9CqGX6ZQULHz1R6jeVQc7
	 lJRTnkYdJhAbDwK6TDEJZG8OY2x4k3WnakYNA0q+861hmTX/qcL51MMnYQrzsnkcir1tq
	 Dpi15DXwpdz9+K6h0JhdGHN5aTMDmjqsmszXsmcvTLnFVHKkS1yrGpHUexCMs7dVpG6cm
	 Dg9S7is5HGyOF63km6P6Gf33BT+66nKyNpzMYjaSfbeGjUpT2HAY8RcHWuP47c2V0uA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795457256;
	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=6b5/gSRFYVQxbGpZr4BwafOmkvBNL0mPfWWVRMwohUI=;
	b=wXeQSrPQ06bZlpMtS15zXSbBmVdgmYWT3WTqgtrwiToXVDCkwkgqkkcgzfBTyUlOablK
	 KUL40aVRo2OOYwyU7ISQ1EkuFEjUbHPz3nN45jkQD80ZcQx7jWUZ8b+xjMya1usiiEdu3
	 OmLCLMPkpC99/MjGqL9qUmqiuHBc+HbvfwqcsNjm+ByrHVW2CXS2SQ8uExEMaGdJAUyzv
	 oap3mG1oubiRlCgIHx6pqGKtFaFY3VGojbaN5xA7+ESOlS6vDFu2CZprEQgkgdAZQ/hVw
	 PJ5VeAgKK/i0UYJ2RFAioozotutbFJq4sceWX8cpYCUp5EvEORX9G7YI0PWKwNuOHvQ==
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 25DDD606A336;
	Mon, 23 Nov 2026 18:07:36 +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=1795457255;
	b=qPk750NkXnQWp5bmr5ebveecqYWUTb5LoUtCYhyFWbs7PmZ2OrHc93TNVVZWkx4f076e
	 +6UsP+5ZPWMlHVSR1xGPrYF0oXiz0XpESItw9gXQy9peIBlUbn8km0BDZq7wEmoWyhseH
	 5GSK9h3zf3XoLhEKcTZtSz8++YL9klwNzhnvCmixFWheSib5rytcGRpZVP7AY33U5w6e+
	 BKGfAPqfMlrFlf4R51ASDeoc8Oe4Wpy7Bw5N7fMk+yQBSRuGLRm+7mOd3lOZARL8f0ebK
	 TBLz+3oVNPmZbY1dIkFRWz01Ps+DWGy6t7fevMUXRwB8NvFNnrWHOehptWyZ49fpf1Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795457255;
	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=6b5/gSRFYVQxbGpZr4BwafOmkvBNL0mPfWWVRMwohUI=;
	b=AIAEj1yTM+z0tMhOYCawaNMxpbfAmKRpxxcl21hHAG/pBNCGS/AzrmqFkHtffNMdply8
	 /yj3iXmPLVKTF1BowX7+bX5ca61G4b6dSQ3/G38GSoRIsp9oRI6IaEsT5suOsr6Y52ZhY
	 2BBk4VL5NfVg2pndN4Zb70f+hyKExantaw0Qb5Tkb9F16ViDkWrPLZuniPLot5zQ53RbZ
	 lHPiT+YA5GaRQkkXO68Dihq39tnK3El6loxTw54f6gTeYpIl+JRfw/3WM33jWIcT7GiaD
	 9BN7vFztF4R6Pz3SM8kJGAVYXI2V8ZFNfV5Ydc/IzsAYFaFFUksasSxc4ye8z5BEFUw==
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))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3FE10606A31E;
	Mon, 23 Nov 2026 18:07:35 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3FE10606A31E
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 1xVYRw-000000016i8-1Pqr;
	Mon, 23 Nov 2026 19:07:32 +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: loic.poulain@oss.qualcomm.com, ryazanov.s.a@gmail.com,
 netdev@vger.kernel.org, johannes@sipsolutions.net, andrew+netdev@lunn.ch,
 davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
 pabeni@redhat.com, m.chetan.kumar@linux.intel.com,
 linux-kernel@vger.kernel.org, stable@vger.kernel.org
X-Autocrypt: addr=mail@maciej.szmigiero.name; keydata=
 xsFNBFpGusUBEADXUMM2t7y9sHhI79+2QUnDdpauIBjZDukPZArwD+sDlx5P+jxaZ13XjUQc
 6oJdk+jpvKiyzlbKqlDtw/Y2Ob24tg1g/zvkHn8AVUwX+ZWWewSZ0vcwp7u/LvA+w2nJbIL1
 N0/QUUdmxfkWTHhNqgkNX5hEmYqhwUPozFR0zblfD/6+XFR7VM9yT0fZPLqYLNOmGfqAXlxY
 m8nWmi+lxkd/PYqQQwOq6GQwxjRFEvSc09m/YPYo9hxh7a6s8hAP88YOf2PD8oBB1r5E7KGb
 Fv10Qss4CU/3zaiyRTExWwOJnTQdzSbtnM3S8/ZO/sL0FY/b4VLtlZzERAraxHdnPn8GgxYk
 oPtAqoyf52RkCabL9dsXPWYQjkwG8WEUPScHDy8Uoo6imQujshG23A99iPuXcWc/5ld9mIo/
 Ee7kN50MOXwS4vCJSv0cMkVhh77CmGUv5++E/rPcbXPLTPeRVy6SHgdDhIj7elmx2Lgo0cyh
 uyxyBKSuzPvb61nh5EKAGL7kPqflNw7LJkInzHqKHDNu57rVuCHEx4yxcKNB4pdE2SgyPxs9
 9W7Cz0q2Hd7Yu8GOXvMfQfrBiEV4q4PzidUtV6sLqVq0RMK7LEi0RiZpthwxz0IUFwRw2KS/
 9Kgs9LmOXYimodrV0pMxpVqcyTepmDSoWzyXNP2NL1+GuQtaTQARAQABzTBNYWNpZWogUy4g
 U3ptaWdpZXJvIDxtYWlsQG1hY2llai5zem1pZ2llcm8ubmFtZT7CwZQEEwEIAD4CGwMFCwkI
 BwIGFQoJCAsCBBYCAwECHgECF4AWIQRyeg1N257Z9gOb7O+Ef143kM4JdwUCaZD5QgUJESzD
 fQ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c9012@gmail.com>