Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/1] Add ARM SCMI Powercap driver
@ 2022-10-13 17:46 Cristian Marussi
  2022-10-13 17:46 ` [PATCH v3 1/1] powercap: arm_scmi: Add SCMI Powercap based driver Cristian Marussi
  0 siblings, 1 reply; 4+ messages in thread
From: Cristian Marussi @ 2022-10-13 17:46 UTC (permalink / raw)
  To: linux-kernel, linux-arm-kernel, linux-pm
  Cc: sudeep.holla, james.quinlan, Jonathan.Cameron, f.fainelli,
	etienne.carriere, vincent.guittot, daniel.lezcano,
	tarek.el-sherbiny, adrian.slatineanu, souvik.chakravarty,
	wleavitt, wbartczak, wzmuda, dan.carpenter, Cristian Marussi

Hi all,

this patch builts on top of recently introduced SCMI v3.1 Powercap protocol
to implement an ARM SCMI Powercap driver 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 using powercap-utils.

A couple of fixes spotted with Smatch by Dan have been squashed into this
patch in V3.

Based on v6.0.

Thanks,
Cristian

---
v2 --> v3
 - rebased on v6.0
 - added review tag
 - squashed Dan Carpenter fixes into this powercap patch:
    https://lore.kernel.org/linux-arm-kernel/20220906142337.1697569-3-cristian.marussi@arm.com/
    https://lore.kernel.org/linux-arm-kernel/20220906142337.1697569-4-cristian.marussi@arm.com/

v1 --> v2
  - using clamp_t() to simplify normalizations
  - cleanup style in block of var declarations
  - refactor scale conversions code
  - add MAINTAINER entry
  - refactored normalizations and added dev_dbg

Cristian Marussi (1):
  powercap: arm_scmi: Add SCMI Powercap based driver

 MAINTAINERS                          |   1 +
 drivers/powercap/Kconfig             |  13 +
 drivers/powercap/Makefile            |   1 +
 drivers/powercap/arm_scmi_powercap.c | 509 +++++++++++++++++++++++++++
 4 files changed, 524 insertions(+)
 create mode 100644 drivers/powercap/arm_scmi_powercap.c

-- 
2.34.1


_______________________________________________
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] 4+ messages in thread

end of thread, other threads:[~2022-10-25 16:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-13 17:46 [PATCH v3 0/1] Add ARM SCMI Powercap driver Cristian Marussi
2022-10-13 17:46 ` [PATCH v3 1/1] powercap: arm_scmi: Add SCMI Powercap based driver Cristian Marussi
2022-10-14 10:51   ` Sudeep Holla
2022-10-25 16:55     ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox