Netdev List
 help / color / mirror / Atom feed
* [PATCH net v2 0/3] net: wwan: iosm: send the host sleep message on every suspend
@ 2026-11-24 17:26 David Westen
  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
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: David Westen @ 2026-11-24 17:26 UTC (permalink / raw)
  To: netdev
  Cc: mail, Loic Poulain, Sergey Ryazanov, Johannes Berg, Andrew Lunn,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Abdun Nihaal, M Chetan Kumar, David Westen

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-24 17:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 17:26 [PATCH net v2 0/3] net: wwan: iosm: send the host sleep message on every suspend David Westen
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-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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox