mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Anup Patel <anup.patel@oss.qualcomm.com>
To: Palmer Dabbelt <palmer@dabbelt.com>,
	Paul Walmsley <pjw@kernel.org>,
	Rahul Pathak <rahul@summations.net>,
	Stephen Boyd <sboyd@kernel.org>,
	Brian Masney <bmasney+clk@redhat.com>,
	Jerome Brunet <jbrunet+clk@baylibre.com>,
	Thomas Gleixner <tglx@kernel.org>, Radu Rendec <radu@rendec.net>,
	Jassi Brar <jassisinghbrar@gmail.com>
Cc: Sunil V L <sunilvl@oss.qualcomm.com>,
	Himanshu Chauhan <himanshu.chauhan@oss.qualcomm.com>,
	Atish Patra <atish.patra@linux.dev>,
	Anup Patel <anup@brainfault.org>,
	Amirreza Zarrabi <amirreza.zarrabi@oss.qualcomm.com>,
	linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org,
	linux-clk@vger.kernel.org,
	Anup Patel <anup.patel@oss.qualcomm.com>
Subject: [PATCH v2 0/5] Parallel message send using SBI MPXY
Date: Mon, 16 Nov 2026 09:30:44 +0530	[thread overview]
Message-ID: <20261116040049.1795610-1-anup.patel@oss.qualcomm.com> (raw)

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


             reply	other threads:[~2026-11-16  4:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-16  4:00 Anup Patel [this message]
2026-11-16  4:00 ` [PATCH v2 1/5] RISC-V: Move common MPXY helper routines to arch/riscv Anup Patel
2026-11-16  4:00 ` [PATCH v2 2/5] RISC-V: Use irqsave to prevent interrupt when accessing MPXY shared memory Anup Patel
2026-11-16  4:00 ` [PATCH v2 3/5] mailbox: add direct synchronous transmit API Anup Patel
2026-11-16  4:00 ` [PATCH v2 4/5] mailbox: document direct synchronous transmit Anup Patel
2026-11-16  4:00 ` [PATCH v2 5/5] mailbox: convert RISC-V SBI MPXY to direct transmit Anup Patel

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=20261116040049.1795610-1-anup.patel@oss.qualcomm.com \
    --to=anup.patel@oss.qualcomm.com \
    --cc=amirreza.zarrabi@oss.qualcomm.com \
    --cc=anup@brainfault.org \
    --cc=atish.patra@linux.dev \
    --cc=bmasney+clk@redhat.com \
    --cc=himanshu.chauhan@oss.qualcomm.com \
    --cc=jassisinghbrar@gmail.com \
    --cc=jbrunet+clk@baylibre.com \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=palmer@dabbelt.com \
    --cc=pjw@kernel.org \
    --cc=radu@rendec.net \
    --cc=rahul@summations.net \
    --cc=sboyd@kernel.org \
    --cc=sunilvl@oss.qualcomm.com \
    --cc=tglx@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 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®