[0/2] Introduce SCMI v3.2 PERF Indexing support

Message ID 20230717161246.1761777-1-cristian.marussi@arm.com
Headers
Series Introduce SCMI v3.2 PERF Indexing support |

Message

Cristian Marussi July 17, 2023, 4:12 p.m. UTC
  Hi all,

this small series adds support for the upcoming optional support for
Performance domains Level Indexing mode.

PERF Protocol Level Indexing mode was introduced in SCMI V3.2 [1] as an
optional way to describe Performance levels using a non-linear scale.

SCMI platform can now optionally declare a Performance domain as
supporting Level Indexing and report when queried a level-index and an
indicative frequency that do not need to fit into a linear-scale.

Platform will then expect such level-indexed domain to be accessed
strictly via such indexes.

The core SCMI PERF protocol has been modified to support such indexing
transparently so that the SCMI driver using the protocol (like cpufreq)
do not need to be changed, nor are aware of such mode.

Based on v6.5-rc2.

Any feedback, welcome.

Thanks,
Cristian

[1]: https://developer.arm.com/documentation/den0056/latest/

---
Cristian Marussi (2):
  firmware: arm_scmi: Harden PERF domain info access
  firmware: arm_scmi: Add v3.2 PERF Level Indexing mode support

 drivers/firmware/arm_scmi/perf.c | 430 +++++++++++++++++++++++++------
 1 file changed, 348 insertions(+), 82 deletions(-)
  

Comments

Sudeep Holla Aug. 4, 2023, 12:23 p.m. UTC | #1
On Mon, 17 Jul 2023 17:12:44 +0100, Cristian Marussi wrote:
> this small series adds support for the upcoming optional support for
> Performance domains Level Indexing mode.
> 
> PERF Protocol Level Indexing mode was introduced in SCMI V3.2 [1] as an
> optional way to describe Performance levels using a non-linear scale.
> 
> SCMI platform can now optionally declare a Performance domain as
> supporting Level Indexing and report when queried a level-index and an
> indicative frequency that do not need to fit into a linear-scale.
> 
> [...]

Applied to sudeep.holla/linux (for-next/scmi/updates), thanks!

[1/2] firmware: arm_scmi: Harden PERF domain info access
      https://git.kernel.org/sudeep.holla/c/ecbe7c54a822
[2/2] firmware: arm_scmi: Add v3.2 PERF Level Indexing mode support
      https://git.kernel.org/sudeep.holla/c/6e6d9a1ecb8a
--
Regards,
Sudeep