[PATCH v2 0/5] Parallel message send using SBI MPXY

Anup Patel anup.patel at oss.qualcomm.com
Sun Nov 15 20:00:44 PST 2026


This series primarily extends mailbox framework and SBI MPXY mailbox
driver to allow sending messages in-parallel from multiple CPUs. It
also serves as perparatory series for the upcoming RISC-V ACPI EINJ
support and RISC-V TEE support.

These patches can also be found in the riscv_mpxy_imp_v2 branch at:
https://github.com/avpatel/linux.git

Changes since v1:
 - Rebase on Linux-7.4-rc2
 - Replace PATCH2 to factor-out per-hart MPXY shared-memory acquisition
   with a new patch to Use irqsave to prevent interrupt when accessing
   MPXY shared memory
 - Adopt Jassi's implementation of mbox_send_message_sync() from:
   https://git.kernel.org/pub/scm/linux/kernel/git/jassibrar/mailbox.git/log/?h=jsb/rfc-synch-xfer

Anup Patel (2):
  RISC-V: Move common MPXY helper routines to arch/riscv
  RISC-V: Use irqsave to prevent interrupt when accessing MPXY shared
    memory

Jassi Brar (3):
  mailbox: add direct synchronous transmit API
  mailbox: document direct synchronous transmit
  mailbox: convert RISC-V SBI MPXY to direct transmit

 Documentation/driver-api/mailbox.rst          | 350 ++++++++++++++-
 arch/riscv/include/asm/sbi.h                  |  86 +++-
 arch/riscv/kernel/Makefile                    |   2 +-
 arch/riscv/kernel/sbi_mpxy.c                  | 340 ++++++++++++++
 drivers/clk/clk-rpmi.c                        |   3 -
 drivers/irqchip/irq-riscv-rpmi-sysmsi.c       |   3 -
 drivers/mailbox/mailbox.c                     | 144 +++++-
 drivers/mailbox/riscv-sbi-mpxy-mbox.c         | 415 +++---------------
 .../pmdomain/riscv/riscv-rpmi-device-power.c  |   3 -
 include/linux/mailbox/riscv-rpmi-message.h    |  17 +-
 include/linux/mailbox_client.h                |   9 +-
 include/linux/mailbox_controller.h            |  38 ++
 12 files changed, 1006 insertions(+), 404 deletions(-)
 create mode 100644 arch/riscv/kernel/sbi_mpxy.c

-- 
2.43.0




More information about the linux-riscv mailing list