[PATCH v4 2/3] sbi_utils: mailbox: add RPMI REQUEST_FORWARD service group definitions
Anup Patel
anup at brainfault.org
Mon Sep 21 05:04:46 PDT 2026
On Fri, Sep 11, 2026 at 2:38 AM Pawandeep Oza
<pawandeep.oza at oss.qualcomm.com> wrote:
>
> From: Oza Pawandeep <pawandeep.oza at oss.qualcomm.com>
>
> Add message protocol definitions for the RPMI REQUEST_FORWARD service
> group (SERVICEGROUP_ID: 0x000D).
>
> The following are introduced:
>
> - enum rpmi_request_forward_service_id: service IDs for the
> REQUEST_FORWARD service group:
> - REQFWD_ENABLE_NOTIFICATION (0x01)
> - REQFWD_RETRIEVE_CURRENT_MESSAGE (0x02)
> - REQFWD_COMPLETE_CURRENT_MESSAGE (0x03)
>
> - struct rpmi_request_forward_resp: response structure for
> REQFWD_RETRIEVE_CURRENT_MESSAGE (SERVICE_ID 0x02) carrying
> status, remaining bytes, returned bytes and a flexible array
> member for the inline message data.
>
> - struct rpmi_request_complete_resp: response structure for
> REQFWD_COMPLETE_CURRENT_MESSAGE (SERVICE_ID 0x03) carrying
> status and the number of pending forwarded messages.
>
> These definitions are used by the MPXY bridge driver to implement
> the RPMI REQUEST_FORWARD protocol for inter-domain message passing
> over the SBI MPXY extension.
>
> Signed-off-by: Oza Pawandeep <pawandeep.oza at oss.qualcomm.com>
LGTM.
Reviewed-by: Anup Patel <anup at brainfault.org>
Regards,
Anup
> ---
> include/sbi_utils/mailbox/rpmi_msgprot.h | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
> diff --git a/include/sbi_utils/mailbox/rpmi_msgprot.h b/include/sbi_utils/mailbox/rpmi_msgprot.h
> index 7ae4abe0..c5d564ac 100644
> --- a/include/sbi_utils/mailbox/rpmi_msgprot.h
> +++ b/include/sbi_utils/mailbox/rpmi_msgprot.h
> @@ -1064,4 +1064,24 @@ struct rpmi_logging_log_data_resp {
> s32 status;
> };
>
> +/** RPMI REQUEST_FORWARD ServiceGroup Service IDs */
> +enum rpmi_request_forward_service_id {
> + REQFWD_ENABLE_NOTIFICATION = 0x01,
> + REQFWD_RETRIEVE_CURRENT_MESSAGE = 0x02,
> + REQFWD_COMPLETE_CURRENT_MESSAGE,
> +};
> +
> +struct rpmi_request_forward_resp {
> + u32 status;
> + u32 remaining;
> + u32 returned;
> + u8 data[];
> +};
> +
> +/** RPMI MM ServiceGroup Communicate response struct */
> +struct rpmi_request_complete_resp {
> + u32 status;
> + u32 num_of_messages;
> +};
> +
> #endif /* !__RPMI_MSGPROT_H__ */
> --
> 2.43.0
>
More information about the opensbi
mailing list