Skip to contentSkip to conversation

powernv: powercap: Add hard minimum powercap

PATCH New Shilpasri G Bhat 1 participant 1 message Mar 1, 2019 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 powernv: powercap: Add hard minimum powercap

In POWER9, OCC(On-Chip-Controller) provides for hard and soft system powercapping range. The hard powercap range is guaranteed while soft powercap may or may not be enforced by OCC due to various power-thermal reasons based on system configuration and workloads. This patch adds a sysfs file to export the hard minimum powercap limit to allow the user to set the appropriate powercap value that can be managed by the system.

---
Changes from V1:
- s/asserted/enforced by OCC

 .../ABI/testing/sysfs-firmware-opal-powercap       | 10 ++++
 arch/powerpc/platforms/powernv/opal-powercap.c     | 66 +++++++++-------------
 2 files changed, 37 insertions(+), 39 deletions(-)
Documentation/ABI/testing/sysfs-firmware-opal-powercap +10 -0
index c9b66ec..e37d43e 100644
@@ -29,3 +29,13 @@ Description:	System powercap directory and attributes applicable for
 		  creates a request for setting a new-powercap. The
 		  powercap requested must be between powercap-min
 		  and powercap-max.
+
+What:		/sys/firmware/opal/powercap/system-powercap/powercap-hard-min
+Date:		March 2019
+Contact:	Linux for PowerPC mailing list <[email protected]>
+Description:	Hard minimum powercap
+
+		This file provides the hard minimum powercap limit in Watts.
+		The powercap value above hard minimum limit is guaranteed to be
+		enforced by OCC and the powercap value below this limit may or
+		may not be guaranteed.
arch/powerpc/platforms/powernv/opal-powercap.c +27 -39

97 lines not on this page · raw message

Signature · 1 line
1.8.3.1