linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] SCMIv3.1 Powercap protocol and driver
@ 2022-05-04  9:36 Cristian Marussi
  2022-05-04  9:36 ` [PATCH 1/7] dt-bindings: firmware: arm,scmi: Add powercap protocol Cristian Marussi
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Cristian Marussi @ 2022-05-04  9:36 UTC (permalink / raw)
  To: linux-kernel, linux-arm-kernel
  Cc: sudeep.holla, james.quinlan, Jonathan.Cameron, f.fainelli,
	vincent.guittot, daniel.lezcano, tarek.el-sherbiny,
	adrian.slatineanu, souvik.chakravarty, Cristian Marussi

Hi all,

this short series introduces the last missing bit of SCMIv3.1, Powercap
protocol. Along the series, there is a small refactoring around the SCMI
FastChannels handling routines so as to reuse as much as possible the
pre-existent (and tested) FastChannel code from the Perf protocol.

As a last step in the series an ARM SCMI based powercap driver is added,
which takes care to expose via the Powercap framework all the SCMI Powercap
zones that have been discovered asking the SCMI platform firmware.

Basic testing has been performed against an emulated SCMI platform
supporting SCMIv3.1 Powercap protocol, with the exclusion of the FCs
bits whose generalization has been only tested for regression on a
JUNO platform sporting a regular SCP/SCMI v2.10 fw.

The series is based on sudeep/for-next/scmi [1] on top of:

commit c7f8852d4216 ("firmware: arm_scmi: Fix late checks on pointer dereference")

Thanks,
Cristian

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git/log/?h=for-next/scmi
----


Cristian Marussi (7):
  dt-bindings: firmware: arm,scmi: Add powercap protocol
  firmware: arm_scmi: Add SCMIv3.1 Powercap protocol basic support
  firmware: arm_scmi: Generalize FastChannel support
  firmware: arm_scmi: Add SCMIv3.1 Powercap FastChannels support
  firmware: arm_scmi: Make use of FastChannels configurable
  firmware: arm_scmi: Add scmi_driver optional setup/teardown callbacks
  powercap: arm_scmi: Add SCMI Powercap based driver

 .../bindings/firmware/arm,scmi.yaml           |  10 +
 drivers/firmware/arm_scmi/Kconfig             |  13 +
 drivers/firmware/arm_scmi/Makefile            |   2 +-
 drivers/firmware/arm_scmi/bus.c               |  15 +-
 drivers/firmware/arm_scmi/driver.c            | 167 ++++
 drivers/firmware/arm_scmi/perf.c              | 218 +----
 drivers/firmware/arm_scmi/powercap.c          | 809 ++++++++++++++++++
 drivers/firmware/arm_scmi/protocols.h         |  23 +
 drivers/powercap/Kconfig                      |  13 +
 drivers/powercap/Makefile                     |   1 +
 drivers/powercap/arm_scmi_powercap.c          | 537 ++++++++++++
 include/linux/scmi_protocol.h                 | 124 +++
 12 files changed, 1757 insertions(+), 175 deletions(-)
 create mode 100644 drivers/firmware/arm_scmi/powercap.c
 create mode 100644 drivers/powercap/arm_scmi_powercap.c

-- 
2.32.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-05-16 22:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-04  9:36 [PATCH 0/7] SCMIv3.1 Powercap protocol and driver Cristian Marussi
2022-05-04  9:36 ` [PATCH 1/7] dt-bindings: firmware: arm,scmi: Add powercap protocol Cristian Marussi
2022-05-16 22:55   ` Rob Herring
2022-05-04  9:36 ` [PATCH 2/7] firmware: arm_scmi: Add SCMIv3.1 Powercap protocol basic support Cristian Marussi
2022-05-04  9:36 ` [PATCH 3/7] firmware: arm_scmi: Generalize FastChannel support Cristian Marussi
2022-05-04  9:36 ` [PATCH 4/7] firmware: arm_scmi: Add SCMIv3.1 Powercap FastChannels support Cristian Marussi
2022-05-04  9:36 ` [PATCH 5/7] firmware: arm_scmi: Make use of FastChannels configurable Cristian Marussi
2022-05-04  9:36 ` [PATCH 6/7] firmware: arm_scmi: Add scmi_driver optional setup/teardown callbacks Cristian Marussi
2022-05-04  9:36 ` [PATCH 7/7] powercap: arm_scmi: Add SCMI Powercap based driver Cristian Marussi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).