From 75974e7cb1d5c8b1a4a7134356cb30422a250547 Mon Sep 17 00:00:00 2001 From: Oza Pawandeep Date: Wed, 18 Nov 2026 13:55:42 -0800 Subject: [PATCH] sbi_utils: mailbox: add RPMI REQUEST_FORWARD service group definitions 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. Reviewed-by: Anup Patel Signed-off-by: Oza Pawandeep Link: https://lore.kernel.org/r/20261118215549.2499040-2-pawandeep.oza@oss.qualcomm.com Signed-off-by: Anup Patel --- include/sbi_utils/mailbox/rpmi_msgprot.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/include/sbi_utils/mailbox/rpmi_msgprot.h b/include/sbi_utils/mailbox/rpmi_msgprot.h index df4ac349..987664c0 100644 --- a/include/sbi_utils/mailbox/rpmi_msgprot.h +++ b/include/sbi_utils/mailbox/rpmi_msgprot.h @@ -225,6 +225,7 @@ enum rpmi_servicegroup_id { RPMI_SRVGRP_DEVICE_POWER = 0x0009, RPMI_SRVGRP_PERFORMANCE = 0x0000A, RPMI_SRVGRP_MANAGEMENT_MODE = 0x000B, + RPMI_SRVGRP_REQFWD = 0x000D, RPMI_SRVGRP_LOGGING = 0x000E, RPMI_SRVGRP_ID_MAX_COUNT, @@ -1064,4 +1065,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__ */