mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] soc: qcom: smsm: Don't log an error for hosts without a mailbox
@ 2026-12-03 10:56 Alexandre Rapaille via B4 Relay
  2026-12-03 10:57 ` [PATCH v2 1/2] mailbox: Add mbox_request_channel_optional() Alexandre Rapaille via B4 Relay
  2026-12-03 10:57 ` [PATCH v2 2/2] soc: qcom: smsm: Don't log an error for hosts without a mailbox Alexandre Rapaille via B4 Relay
  0 siblings, 2 replies; 5+ messages in thread
From: Alexandre Rapaille via B4 Relay @ 2026-12-03 10:56 UTC (permalink / raw)
  To: Jassi Brar, Bjorn Andersson, Konrad Dybcio, Abel Vesa, Luca Weiss
  Cc: linux-arm-msm, linux-kernel, Konrad Dybcio, Alexandre Rapaille

On msm8974, smsm logs a mailbox error twice at every boot, once for each
host that has no mailbox. Patch 1 adds mbox_request_channel_optional()
to the mailbox core, patch 2 uses it in smsm. Patch 2 depends on
patch 1.

Tested on a Fairphone 2 with next-20261127: without the series the line
is printed twice at boot, with it not at all. The modem recovered from
3 forced crashes on both kernels. A boot-time kprobe on
mbox_request_channel_optional() shows hosts 1-3 get a channel and hosts 0
and 4 get NULL.

---
Changes in v2:
- Add mbox_request_channel_optional() to the mailbox core and use it,
  instead of parsing "mboxes" in smsm (Konrad)
- Drop Fixes: from the smsm patch, it now depends on patch 1
- Link to v1: https://patch.msgid.link/20261126-smsm-null-mbox-v1-1-f6c6dcc2a3bf@atlr-engineering.com

---
Alexandre Rapaille (2):
      mailbox: Add mbox_request_channel_optional()
      soc: qcom: smsm: Don't log an error for hosts without a mailbox

 drivers/mailbox/mailbox.c      | 62 ++++++++++++++++++++++++++++++------------
 drivers/soc/qcom/smsm.c        |  4 ++-
 include/linux/mailbox_client.h |  1 +
 3 files changed, 48 insertions(+), 19 deletions(-)
---
base-commit: 20eef29b7c8465ac98d7dd6d6f2ac07a8d8056ca
change-id: 20261126-smsm-null-mbox-353ad3b8495e

Best regards,
--  
Alexandre Rapaille <arapaille@atlr-engineering.com>



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

end of thread, other threads:[~2026-12-03 11:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-03 10:56 [PATCH v2 0/2] soc: qcom: smsm: Don't log an error for hosts without a mailbox Alexandre Rapaille via B4 Relay
2026-12-03 10:57 ` [PATCH v2 1/2] mailbox: Add mbox_request_channel_optional() Alexandre Rapaille via B4 Relay
2026-12-03 11:37   ` Konrad Dybcio
2026-12-03 10:57 ` [PATCH v2 2/2] soc: qcom: smsm: Don't log an error for hosts without a mailbox Alexandre Rapaille via B4 Relay
2026-12-03 11:45   ` Konrad Dybcio

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

all inboxes | Powered by JetHome®