[PATCH v9 5/7] docs: add OpenSBI domain bridge documentation
Anup Patel
anup at brainfault.org
Wed Nov 18 06:37:21 PST 2026
On Wed, Nov 18, 2026 at 12:18 AM Pawandeep Oza
<pawandeep.oza at oss.qualcomm.com> wrote:
>
> From: Oza Pawandeep <pawandeep.oza at oss.qualcomm.com>
>
> Document the MPXY-based inter-domain communication bridge, its device
> tree bindings, and an example configuration. Link the new documentation
> from docs/domain_support.md.
>
> Signed-off-by: Oza Pawandeep <pawandeep.oza at oss.qualcomm.com>
> ---
> docs/domain_bridge.md | 162 +++++++++++++++++++++++++++++++++++++++++
> docs/domain_support.md | 7 ++
> 2 files changed, 169 insertions(+)
> create mode 100644 docs/domain_bridge.md
>
> diff --git a/docs/domain_bridge.md b/docs/domain_bridge.md
> new file mode 100644
> index 00000000..71feace3
> --- /dev/null
> +++ b/docs/domain_bridge.md
> @@ -0,0 +1,162 @@
> +OpenSBI Domain Bridge Support
> +==============================
> +
> +OpenSBI domain bridge support enables inter-domain communication between
> +domains that share a physical HART. It builds on OpenSBI’s domain context
> +switching mechanism and the SBI MPXY (Message Proxy) extension to forward
> +messages between domains.
> +
> +This support introduces three capabilities:
> +
> + 1. A domain registration notifier mechanism
> + 2. Definitions for the RPMI REQUEST_FORWARD service group
> + 3. An FDT-configured MPXY bridge driver for inter-domain message passing
Document should only talk about the brigde and not what this patch series does.
> +
> +The bridge can have one destination and multiple sources. Source drivers
> +provide protocol-specific handling for messages forwarded through the bridge.
> +For example, separate drivers can support Management Mode (MM) or TEE-related
> +services.
> +
> +Motivation
> +----------
> +
> +A system may run multiple domains on the same physical HART—for example, a
> +trusted domain and an untrusted domain. OpenSBI’s domain context switching
> +provides a way to switch execution between these domains, but domains also need
> +a controlled way to exchange requests and responses.
> +
> +The MPXY bridge provides this communication path. It uses domain context
> +switching to transfer control between the source and destination domains, and
> +the RPMI REQUEST_FORWARD service group to represent forwarded requests.
> +
> +Bridge Model
> +------------
> +
> +A bridge consists of:
> +
> + - Destination
> + The domain that receives and handles forwarded requests. The bridge
> + registers a destination MPXY channel in this domain.
> +
> + - Sources
> + One or more protocol endpoints that submit requests to the destination.
> + Each source has its own domain and MPXY channel.
> +
> + - Source drivers
> + Protocol-specific drivers that translate requests and responses between
> + the source protocol and the bridge’s request-forwarding mechanism.
> +
> +The bridge’s destination and source channels are registered when their
> +associated domains become available. A domain registration notifier allows the
> +bridge driver to respond to domain registration and establish the relevant
> +channels at runtime.
> +
> +At a high level, communication proceeds as follows:
> +
> + 1. A source sends a message through its MPXY channel.
> + 2. The bridge and source driver prepare the request for forwarding.
> + 3. OpenSBI switches execution to the destination domain.
> + 4. The destination retrieves and handles the forwarded request.
> + 5. The response is completed and returned to the originating source.
> +
> +FDT Bindings
> +------------
> +
> +The bridge is described in the device tree. The bridge node identifies the
> +destination domain and its MPXY channel. Each child source node identifies a
> +source driver, source domain, and source MPXY channel.
> +
> +Bridge Node
> +-----------
> +
> +The bridge node has the following properties:
> +
> + - compatible (Mandatory)
> + The bridge compatible string:
> + "opensbi,rpmi-mpxy-reqfwd-bridge"
> +
> + - riscv,domain (Mandatory)
> + Phandle of the destination domain.
> +
> + - riscv,sbi-mpxy-channel-id (Mandatory)
> + MPXY channel ID registered for the destination.
> +
> +Source Node
> +-----------
> +
> +Each source is represented by a child node of the bridge node and has the
> +following properties:
> +
> + - compatible (Mandatory)
> + Identifies the source driver. The compatible string selects the
> + protocol-specific driver.
> +
> + - riscv,domain (Mandatory)
> + Phandle of the source domain.
> +
> + - riscv,sbi-mpxy-channel-id (Mandatory)
> + MPXY channel ID registered for the source.
> +
> +A bridge can contain multiple source nodes, each with its own compatible
> +string, domain, and channel ID.
> +
> +Example
> +-------
> +
> + bridge0: untrusted-to-trusted-bridge {
> + compatible = "opensbi,rpmi-mpxy-reqfwd-bridge";
> + riscv,domain = <&tdomain>;
> + riscv,sbi-mpxy-channel-id = <0x2>;
> +
> + source0 {
> + compatible = "opensbi,rpmi-mpxy-reqfwd-mm";
> + riscv,domain = <&udomain>;
> + riscv,sbi-mpxy-channel-id = <0x1>;
> + };
> +
> + source1 {
> + compatible = "opensbi,rpmi-mpxy-reqfwd-tee";
> + riscv,domain = <&udomain>;
> + riscv,sbi-mpxy-channel-id = <0x3>;
> + };
> + };
> +
> +In this example, the trusted domain is the bridge destination. The untrusted
> +domain provides two sources: one for MM requests and one for TEE requests.
> +
> +Source Drivers
> +--------------
> +
> +A source driver handles protocol-specific request and response processing for
> +a bridge source. Drivers are selected by matching their compatible string
> +against the source node in the FDT.
> +
> +A source driver is expected to provide the operations required by the bridge
> +for transferring a request and completing its response. This lets multiple
> +protocols use the same bridge infrastructure while keeping their service
> +metadata and message handling in separate drivers.
> +
> +For example, an MM source driver can register the MM service group and handle
> +its request and response formats, while a TEE source driver can provide
> +corresponding handling for TEE services.
> +
> +Domain Bridge Effects
> +---------------------
> +
> +Some noteworthy effects of using a domain bridge are:
> +
> + - A bridge provides an explicit message-passing path between configured
> + source and destination domains.
> +
> + - The destination handles forwarded work in its own domain context.
> +
> + - Multiple sources can use a single destination, with each source selected
> + and configured independently.
> +
> + - The bridge relies on OpenSBI domain context switching; it does not itself
> + change the memory permissions or isolation rules configured for the
> + domains.
> +
> + - The FDT configuration identifies the participating domains and MPXY
> + channels; source drivers define the protocol-specific behavior.
> +
> diff --git a/docs/domain_support.md b/docs/domain_support.md
> index 51737218..86a25f22 100644
> --- a/docs/domain_support.md
> +++ b/docs/domain_support.md
> @@ -217,6 +217,13 @@ At runtime, the assignment of a HART can change from one domain to
> another domain as long as the HART is listed in possible HARTs of
> both domains.
>
> +### Interdomain Communication
> +
> +* *[DOMAIN_BRIDGE]*: The OpenSBI domain bridge and its device tree bindings
> + are described in more detail in the file *domain_bridge.md*.
> +
> +[DOMAIN_BRIDGE]: domain_bridge.md
> +
> ### Domain Configuration Only Accessible to OpenSBI
>
> The software running inside a domain instance should only be aware of
> --
> 2.43.0
>
Otherwise, this looks good to me.
Reviewed-by: Anup Patel <anup at brainfault.org>
Thanks,
Anup
More information about the opensbi
mailing list