powernv: powercap: Add hard minimum powercap
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.
Signed-off-by Shilpasri G Bhat <[email protected]>
---
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
@@ -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