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 <anup@brainfault.org>
Signed-off-by: Oza Pawandeep <pawandeep.oza@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20261118215549.2499040-2-pawandeep.oza@oss.qualcomm.com
Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Oza Pawandeep authored and Anup Patel committed 2026-11-19 18:16:41 +05:30
1 parent ed70256dd2
commit 75974e7cb1
1 file changed
+21
+21
View File
@@ -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__ */