Re: [PATCH v2 5/5] mailbox: convert RISC-V SBI MPXY to direct transmit
From: Rahul Pathak
Date: Sun Nov 29 2026 - 04:59:53 EST
On Mon, Nov 16, 2026 at 9:59 AM Anup Patel <anup.patel@xxxxxxxxxxxxxxxx> wrote:
>
> From: Jassi Brar <jassisinghbrar@xxxxxxxxx>
>
> The MPXY controller completes RPMI requests synchronously in
> the caller's context, and the RPMI clients currently use the
> tx_block=false plus knows_txdone retrofit. That retrofit is
> tied to the single active_req slot and reports the wrong result
> when two CPUs send on the same channel.
>
> Advertise MBOX_CHAN_CAP_SYNC_ATOMIC for RPMI MPXY channels,
> implement send_data_sync() returning msg->error. Switch
> rpmi_mbox_send_message() to mbox_send_message_sync() and
> drop the mbox_client_txdone() side channel and the obsolete
> client flags.
>
> Co-developed-by: Anup Patel <anup.patel@xxxxxxxxxxxxxxxx>
> Signed-off-by: Anup Patel <anup.patel@xxxxxxxxxxxxxxxx>
> Signed-off-by: Jassi Brar <jassisinghbrar@xxxxxxxxx>
> ---
> drivers/clk/clk-rpmi.c | 3 --
> drivers/irqchip/irq-riscv-rpmi-sysmsi.c | 3 --
> drivers/mailbox/riscv-sbi-mpxy-mbox.c | 29 +++++++++++++++++--
> .../pmdomain/riscv/riscv-rpmi-device-power.c | 3 --
> include/linux/mailbox/riscv-rpmi-message.h | 17 ++++-------
> 5 files changed, 33 insertions(+), 22 deletions(-)
>
LGTM
Reviewed-by: Rahul Pathak <rahul.pathak@xxxxxxxxxxxxxxxx>