mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
firmware: arm_scmi: Support optional system wide atomic-threshold-us
An SCMI agent can be configured system-wide with a well-defined atomic threshold: only SCMI synchronous command whose latency has been advertised by the SCMI platform to be lower or equal to this configured threshold will be considered for atomic operations, when requested and if supported by the underlying transport at all. Link: https://lore.kernel.org/r/20220217131234.50328-6-cristian.marussi@arm.com Signed-off-by: Cristian Marussi <cristian.marussi@arm.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
This commit is contained in:
committed by
Sudeep Holla
parent
0539884ccc
commit
05976c5f3b
@@ -619,6 +619,8 @@ struct scmi_notify_ops {
|
||||
* be interested to know if they can assume SCMI
|
||||
* command transactions associated to this handle will
|
||||
* never sleep and act accordingly.
|
||||
* An optional atomic threshold value could be returned
|
||||
* where configured.
|
||||
* @notify_ops: pointer to set of notifications related operations
|
||||
*/
|
||||
struct scmi_handle {
|
||||
@@ -629,7 +631,8 @@ struct scmi_handle {
|
||||
(*devm_protocol_get)(struct scmi_device *sdev, u8 proto,
|
||||
struct scmi_protocol_handle **ph);
|
||||
void (*devm_protocol_put)(struct scmi_device *sdev, u8 proto);
|
||||
bool (*is_transport_atomic)(const struct scmi_handle *handle);
|
||||
bool (*is_transport_atomic)(const struct scmi_handle *handle,
|
||||
unsigned int *atomic_threshold);
|
||||
|
||||
const struct scmi_notify_ops *notify_ops;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user