[v3,0/3] Add SCMI v3.2 Powercap disable support

Message ID 20230531152039.2363181-1-cristian.marussi@arm.com
Headers
Series Add SCMI v3.2 Powercap disable support |

Message

Cristian Marussi May 31, 2023, 3:20 p.m. UTC
  Hi,

Upcoming SCMI v3.2 specification (publicly available as BETA at [1])
introduces support to disable powercapping as a whole on the desired
zones.

This small series at first add the needed support to the core SCMI Powercap
protocol, exposing a couple more enable/disable protocol operations, and
then wires such new ops in the related Powercap framework helpers.

Based on v6.4-rc4.

Thanks,
Cristian

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

---

v2 --> v3
- rebased on v6.4-rc4
- added tags

v1 -> v2
- rebased on v6.3-rc1
- simplified enable status check logic

Cristian Marussi (3):
  firmware: arm_scmi: Refactor powercap get/set helpers
  firmware: arm_scmi: Add Powercap protocol enable support
  powercap: arm_scmi: Add support for disabling powercaps on a zone

 drivers/firmware/arm_scmi/powercap.c | 173 +++++++++++++++++++++++----
 drivers/powercap/arm_scmi_powercap.c |  16 +++
 include/linux/scmi_protocol.h        |  18 +++
 3 files changed, 182 insertions(+), 25 deletions(-)
  

Comments

Sudeep Holla June 6, 2023, 1:07 p.m. UTC | #1
On Wed, 31 May 2023 16:20:36 +0100, Cristian Marussi wrote:
> Upcoming SCMI v3.2 specification (publicly available as BETA at [1])
> introduces support to disable powercapping as a whole on the desired
> zones.
> 
> This small series at first add the needed support to the core SCMI Powercap
> protocol, exposing a couple more enable/disable protocol operations, and
> then wires such new ops in the related Powercap framework helpers.
> 
> [...]

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

[1/3] firmware: arm_scmi: Refactor powercap get/set helpers
      https://git.kernel.org/sudeep.holla/c/4e1a53b4030e
[2/3] firmware: arm_scmi: Add Powercap protocol enable support
      https://git.kernel.org/sudeep.holla/c/758cd5fc13b2
[3/3] powercap: arm_scmi: Add support for disabling powercaps on a zone
      https://git.kernel.org/sudeep.holla/c/aaffb4cacd4c
--
Regards,
Sudeep