diff options
author | Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> | 2019-02-05 10:44:52 +0530 |
---|---|---|
committer | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2019-03-05 10:07:43 +0530 |
commit | a3c88493956190b5079139f4b1aef0a3cbb2dd42 (patch) | |
tree | 827dc27494abe307ecd3faac84293dd389fb5f78 /doc | |
parent | f4554864bef3d97659e8c817590cbe1493ef68a1 (diff) | |
download | skiboot-a3c88493956190b5079139f4b1aef0a3cbb2dd42.zip skiboot-a3c88493956190b5079139f4b1aef0a3cbb2dd42.tar.gz skiboot-a3c88493956190b5079139f4b1aef0a3cbb2dd42.tar.bz2 |
powercap: occ: Fix the powercapping range allowed for user
[ Upstream commit a96739c6c1cdf02521cab703733cef8cb54debbf ]
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 <shilpa.bhat@linux.vnet.ibm.com>
Reviewed-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/device-tree/ibm,opal/power-mgt/powercap.rst | 9 |
1 files changed, 8 insertions, 1 deletions
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>; }; }; }; |