From a96739c6c1cdf02521cab703733cef8cb54debbf Mon Sep 17 00:00:00 2001 From: Shilpasri G Bhat Date: Tue, 5 Feb 2019 10:44:52 +0530 Subject: powercap: occ: Fix the powercapping range allowed for user OCC provides two limits for minimum powercap. One being hard powercap minimum which is guaranteed by OCC and the other one is a soft powercap minimum which is lesser than hard-min and may or may not be asserted due to various power-thermal reasons. So to allow the users to access the entire powercap range, this patch exports soft powercap minimum as the "powercap-min" DT property. And it also adds a new DT property called "powercap-hard-min" to export the hard-min powercap limit. Fixes: c6aabe3f2eb5("powercap: occ: Add a generic powercap framework") Signed-off-by: Shilpasri G Bhat Reviewed-by: Vaidyanathan Srinivasan Signed-off-by: Stewart Smith --- doc/device-tree/ibm,opal/power-mgt/powercap.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/device-tree/ibm,opal/power-mgt/powercap.rst b/doc/device-tree/ibm,opal/power-mgt/powercap.rst index 5a8d007..5d24ee1 100644 --- a/doc/device-tree/ibm,opal/power-mgt/powercap.rst +++ b/doc/device-tree/ibm,opal/power-mgt/powercap.rst @@ -20,11 +20,17 @@ Each child node has below properties: Handle to indicate the current powercap `powercap-min` - Minimum possible powercap + Absolute minimum possible powercap. This points to the soft powercap minimum + limit as exported by OCC. The powercap set in the soft powercap range may or + may not be maintained. `powercap-max` Maximum possible powercap +`powercap-hard-min` + This value points to the hard minimum powercap limit. The powercap set above + this limit is guaranteed unless there is a hardware failure + Powercap handle uses the following encoding: :: | Class | Reserved | Attribute | @@ -44,6 +50,7 @@ the future. powercap-current = <0x00000002>; powercap-min = <0x00000000>; powercap-max = <0x00000001>; + powercap-hard-min = <0x000000003>; }; }; }; -- cgit v1.1