From: Cristian Marussi <cristian.marussi@arm.com>
To: Douglas Anderson <dianders@chromium.org>
Cc: jassisinghbrar@gmail.com, arm-scmi@vger.kernel.org,
cristian.marussi@arm.com, krzk@kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, sudeep.holla@kernel.org
Subject: Re: [PATCH v2 03/15] firmware: arm_scmi: Use mbox_ring_doorbell() instead of NULL message
Date: Mon, 9 Feb 2026 16:45:35 +0000 [thread overview]
Message-ID: <aYoPLzOjPvJbu0Kb@pluto> (raw)
In-Reply-To: <20260207200128.v2.3.I4a01e1fa771c0b1ea7e35882784e4b7f8f33f65b@changeid>
On Sat, Feb 07, 2026 at 08:01:25PM -0800, Douglas Anderson wrote:
> As per the patch ("mailbox: Deprecate NULL mbox messages; Introduce
> mbox_ring_doorbell()"), we want to switch all users of NULL mailbox
> messages to use mbox_ring_doorbell().
Hi,
>
> The mbox_ring_doorbell() explicitly documents not to call
> mbox_client_txdone() for doorbells, so remove the call.
>
> NOTE: this mailbox client appears to send doorbells and regular
> messages on the same mailbox channel (smbox->chan), so it needs some
> extra attention. Specifically, the new API behaves differently if you
> ring a doorbell while a non-doorbell message is in progress. I don't
> believe that this is something we have to worry about with this
> mailbox client, though, because the code was calling
> mbox_client_txdone() after sending the NULL message. Had a non-mailbox
> message been in progress, that would have marked the in-progress
> message as done instead of marking the NULL message as done.
>
Yes indeed in the SCMI stack on Linux we use both regular non-doorbell
messaging for cmd/reply exchanges and 'pure' doorbell messaging, where
these latter usually are meant to to signal completion and they are
issued on a distinct channel where NO non-doorbell message is sent
ever: IOW doorbell and non-doorbell do NOT get mixed up in the same
channel...so it should safe...
...having said that, just in case, I tested this series on a JUNO
board using ARM MHU (bidirectional) mailboxes and I have NOT seen any
anomaly.
Tested-by: Cristian Marussi <cristian.marussi@arm.com>
Anyway...Sudeep, who was already in CC, has a couple of mailbox/pcc
related series in flight on the list, so he may want to chime in on
those.
Btw, Thanks for this cleanup !
Now the intent is certainly more explicit and less ambiguous than using
a dummy NULL message to trigger a doorbell.
Thanks,
Cristian
next prev parent reply other threads:[~2026-02-09 16:45 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-08 4:01 [PATCH v2 00/15] mailbox: Stop sending NULL mailbox messages Douglas Anderson
2026-02-08 4:01 ` [PATCH v2 01/15] mailbox: Deprecate NULL mbox messages; Introduce mbox_ring_doorbell() Douglas Anderson
2026-02-09 15:40 ` Bjorn Andersson
2026-02-10 0:38 ` Jassi Brar
2026-02-08 4:01 ` [PATCH v2 02/15] ACPI: PCC: Use mbox_ring_doorbell() instead of NULL message Douglas Anderson
2026-02-08 4:01 ` [PATCH v2 03/15] firmware: arm_scmi: " Douglas Anderson
2026-02-09 16:45 ` Cristian Marussi [this message]
2026-02-08 4:01 ` [PATCH v2 04/15] firmware: imx-dsp: " Douglas Anderson
2026-02-09 15:52 ` Daniel Baluta
2026-02-08 4:01 ` [PATCH v2 05/15] firmware: tegra: bpmp: " Douglas Anderson
2026-02-08 4:01 ` [PATCH v2 06/15] irqchip/qcom-mpm: " Douglas Anderson
2026-02-08 4:01 ` [PATCH v2 07/15] remoteproc: xlnx: " Douglas Anderson
2026-02-09 15:40 ` Bjorn Andersson
2026-02-08 4:01 ` [PATCH v2 08/15] rpmsg: qcom_glink_rpm: " Douglas Anderson
2026-02-09 15:40 ` Bjorn Andersson
2026-02-08 4:01 ` [PATCH v2 09/15] rpmsg: glink: smem: " Douglas Anderson
2026-02-09 15:41 ` Bjorn Andersson
2026-02-08 4:01 ` [PATCH v2 10/15] rpmsg: qcom_smd: " Douglas Anderson
2026-02-09 15:41 ` Bjorn Andersson
2026-02-08 4:01 ` [PATCH v2 11/15] soc: qcom: aoss: " Douglas Anderson
2026-02-08 4:01 ` [PATCH v2 12/15] soc: qcom: smp2p: " Douglas Anderson
2026-02-08 4:01 ` [PATCH v2 13/15] soc: qcom: smsm: " Douglas Anderson
2026-02-08 4:01 ` [PATCH v2 14/15] soc: ti: wkup_m3_ipc: " Douglas Anderson
2026-02-08 4:01 ` [PATCH v2 15/15] drivers: firmware: xilinx: " Douglas Anderson
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=aYoPLzOjPvJbu0Kb@pluto \
--to=cristian.marussi@arm.com \
--cc=arm-scmi@vger.kernel.org \
--cc=dianders@chromium.org \
--cc=jassisinghbrar@gmail.com \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sudeep.holla@kernel.org \
/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.