net: wwan: iosm: send the host sleep message on every suspend
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 2 repliesIn review
- v11 patch 6 repliesSuperseded
Changes in v2 from the cover letter
- 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).
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | net: wwan: iosm: reset the host PM state when the sleep handshake times outdrivers/ | +2 | 1 reply | |
| 2/3 | net: wwan: iosm: fix the wait for the modem in the host sleep handshakedrivers/ | +20 | 0 replies | |
| 3/3 | net: wwan: iosm: always send the host sleep message on suspenddrivers/ drivers/ drivers/ +6 more | +6 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH net v2 0/3] net: wwan: iosm: send the host sleep message on every suspend
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/[email protected]
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
Signature · 1 line
2.56.0