firmware: arm_scmi: Populate perf commands rate_limit
authorPierre Gondois <pierre.gondois@arm.com>
Thu, 22 Feb 2024 13:56:59 +0000 (14:56 +0100)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 6 Mar 2024 05:24:15 +0000 (10:54 +0530)
commitad86f7e959dc1814c3b2bcbeb08c3c02214110a7
tree30c13f6bad1ab943d694d399f7bca547bf23395c
parent3093fa33539b54db77171d2919352ad4f044a1c5
firmware: arm_scmi: Populate perf commands rate_limit

Arm SCMI spec. v3.2, s4.5.3.4 PERFORMANCE_DOMAIN_ATTRIBUTES
defines a per-domain rate_limit for performance requests:
"""
Rate Limit in microseconds, indicating the minimum time
required between successive requests. A value of 0
indicates that this field is not supported by the
platform. This field does not apply to FastChannels.
""""
The field is first defined in SCMI v1.0.

Add support to fetch this value and advertise it through
a rate_limit_get() callback.

Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/firmware/arm_scmi/perf.c
include/linux/scmi_protocol.h