Skip to content

Parallel message send using SBI MPXY

Anup Patel linux-clk linux-riscv lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 0 repliesNew
  2. v25 patches 7 repliesSuperseded
  3. v14 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- Rebase on Linux-7.4-rc5
- Added tx_len checks in sbi_mpxy_send_message_with_resp() and sbi_mpxy_send_message_without_resp() for PATCH1
- Dropped last paragraph in Documentation/driver-api/mailbox.rst added by PATCH4 since it was citing a non-existent source file.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5RISC-V: Move common MPXY helper routines to arch/riscvarch/riscv/include/asm/sbi.h arch/riscv/kernel/Makefile arch/riscv/kernel/sbi_mpxy.c +1 more+464 -3540 replies
2/5RISC-V: Prevent interrupt when accessing MPXY shared memoryarch/riscv/kernel/sbi_mpxy.c+57 -570 replies
3/5mailbox: add direct synchronous transmit APIdrivers/mailbox/mailbox.c include/linux/mailbox_client.h include/linux/mailbox_controller.h+184 -70 replies
4/5mailbox: document direct synchronous transmitDocumentation/driver-api/mailbox.rst+325 -210 replies
5/5mailbox: convert RISC-V SBI MPXY to direct transmitdrivers/clk/clk-rpmi.c drivers/irqchip/irq-riscv-rpmi-sysmsi.c drivers/mailbox/riscv-sbi-mpxy-mbox.c +2 more+33 -220 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchRahul Pathak
1/5R-b
2/5R-b
3/5
4/5
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/5] Parallel message send using SBI MPXY

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_v3 branch at:
https://github.com/avpatel/linux.git

Changes since v2:
- Rebase on Linux-7.4-rc5
- Added tx_len checks in sbi_mpxy_send_message_with_resp() and sbi_mpxy_send_message_without_resp() for PATCH1
- Dropped last paragraph in Documentation/driver-api/mailbox.rst added by PATCH4 since it was citing a non-existent source file.

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: 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          | 346 ++++++++++++++-
 arch/riscv/include/asm/sbi.h                  |  86 +++-
 arch/riscv/kernel/Makefile                    |   2 +-
 arch/riscv/kernel/sbi_mpxy.c                  | 344 +++++++++++++++
 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
Signature · 1 line
2.43.0