diff options
author | Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> | 2019-02-05 10:44:52 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-02-25 21:59:03 -0600 |
commit | a96739c6c1cdf02521cab703733cef8cb54debbf (patch) | |
tree | 098109515c234dfedadde3a67ec47b98aafdaa7b /doc/device-tree | |
parent | 3b8b7e8c4e7880f992092856ae25d4bd3d53126b (diff) | |
download | skiboot-a96739c6c1cdf02521cab703733cef8cb54debbf.zip skiboot-a96739c6c1cdf02521cab703733cef8cb54debbf.tar.gz skiboot-a96739c6c1cdf02521cab703733cef8cb54debbf.tar.bz2 |
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 <shilpa.bhat@linux.vnet.ibm.com>
Reviewed-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'doc/device-tree')
-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>; }; }; }; |