All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Westen <davidlwesten@gmail.com>
To: netdev@vger.kernel.org
Cc: mail@maciej.szmigiero.name,
	Loic Poulain <loic.poulain@oss.qualcomm.com>,
	Sergey Ryazanov <ryazanov.s.a@gmail.com>,
	Johannes Berg <johannes@sipsolutions.net>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Abdun Nihaal <nihaal@cse.iitm.ac.in>,
	M Chetan Kumar <m.chetan.kumar@intel.com>,
	David Westen <davidlwesten@gmail.com>
Subject: [PATCH net v2 0/3] net: wwan: iosm: send the host sleep message on every suspend
Date: Tue, 24 Nov 2026 09:26:24 -0800	[thread overview]
Message-ID: <20261124172627.41847-1-davidlwesten@gmail.com> (raw)

On platforms whose BIOS doesn't select D3L2, iosm tells the modem about
system suspend with the FORCE_SLEEP and FORCE_ACTIVE doorbells, which
the XMM7360 in a ThinkPad X1 Carbon 6th gen doesn't survive. Patch 3
always uses the ENTER_SLEEP/EXIT_SLEEP host sleep messages instead, as
discussed in the v1 review. Patches 1 and 2 fix two bugs in that
handshake that so far only D3L2 platforms could hit.

Changes in v2:
- New patches 1 and 2, for issues the AI review of v1 found.
- Patch 3: rewrite the commit message and remove the doorbell path with
  everything only it used (Loic).
- Patch 3: fix the Fixes: tag and the comment, and describe testing and
  hibernation in the commit message (AI review).

Tested on an XMM7360 with suspend-to-idle, including overnight. Not
tested on the XMM7560 or on a platform where the doorbells work.

v1: https://lore.kernel.org/r/20261122050039.861287-1-davidlwesten@gmail.com

The investigation and the patches were done with an AI coding assistant
(Claude Opus 5.5). We wrote the patches together, and I ran the tests.

David Westen (3):
  net: wwan: iosm: reset the host PM state when the sleep handshake
    times out
  net: wwan: iosm: fix the wait for the modem in the host sleep
    handshake
  net: wwan: iosm: always send the host sleep message on suspend

 drivers/net/wwan/iosm/iosm_ipc_imem.c     |  5 --
 drivers/net/wwan/iosm/iosm_ipc_imem.h     |  8 --
 drivers/net/wwan/iosm/iosm_ipc_irq.c      |  3 +-
 drivers/net/wwan/iosm/iosm_ipc_pcie.c     | 96 ++---------------------
 drivers/net/wwan/iosm/iosm_ipc_pcie.h     | 14 ----
 drivers/net/wwan/iosm/iosm_ipc_pm.c       | 43 +++++-----
 drivers/net/wwan/iosm/iosm_ipc_pm.h       |  7 --
 drivers/net/wwan/iosm/iosm_ipc_protocol.c |  7 +-
 drivers/net/wwan/iosm/iosm_ipc_protocol.h |  8 --
 9 files changed, 28 insertions(+), 163 deletions(-)


base-commit: af6737b9066832a2017c281159950ba92385ce00
-- 
2.56.0


             reply	other threads:[~2026-11-24 17:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 17:26 David Westen [this message]
2026-11-24 17:26 ` [PATCH net v2 1/3] net: wwan: iosm: reset the host PM state when the sleep handshake times out David Westen
2026-11-27  5:28   ` netdev-bot+sashiko
2026-11-27 18:56     ` David Westen
2026-11-24 17:26 ` [PATCH net v2 2/3] net: wwan: iosm: fix the wait for the modem in the host sleep handshake David Westen
2026-11-24 17:26 ` [PATCH net v2 3/3] net: wwan: iosm: always send the host sleep message on suspend David Westen
2026-11-27  5:28   ` netdev-bot+sashiko
2026-11-27 19:07     ` David Westen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261124172627.41847-1-davidlwesten@gmail.com \
    --to=davidlwesten@gmail.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=johannes@sipsolutions.net \
    --cc=kuba@kernel.org \
    --cc=loic.poulain@oss.qualcomm.com \
    --cc=m.chetan.kumar@intel.com \
    --cc=mail@maciej.szmigiero.name \
    --cc=netdev@vger.kernel.org \
    --cc=nihaal@cse.iitm.ac.in \
    --cc=pabeni@redhat.com \
    --cc=ryazanov.s.a@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.