HomeFreeBSD

scmi: Add scmi_token_reserve helper

Description

scmi: Add scmi_token_reserve helper

During normal operation, the SCMI stack, upon each transmission attempt,
takes care to automatically pick an appropriate, monotonically increasing,
sequence number to fill-in the token field in the egressing message.

This does not cope well with the alternative scenario in which, instead,
a complete and fully formed message is provided upfront: in such a case the
SCMI stack will have to use the already provided sequence number, embedded
in the message, to track such transaction.

Add a method to attempt to reserve a specific sequence number to be used
when a fully firmed (raw) message is handled.

Tested on: Arm Morello Board
Reported by: andrew
Sponsored by: Arm ltd
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>

Details

Provenance
cristian.marussi_arm.comAuthored on Jun 9 2025, 1:23 PM
andrewCommitted on Jun 4 2025, 1:32 AM
Parents
rGf700da1c20f1: scmi: Add helper to manipulate scmi_msg descriptors
Branches
Unknown
Tags
Unknown