[Skiboot] [PATCH v3] powercap: occ: Fix the powercapping range allowed for user

Shilpasri G Bhat shilpa.bhat at linux.vnet.ibm.com
Tue Feb 26 17:29:03 AEDT 2019

On 02/26/2019 11:33 AM, Stewart Smith wrote:
> Shilpasri G Bhat <shilpa.bhat at linux.vnet.ibm.com> writes:
>> 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 at linux.vnet.ibm.com>
>> ---
>> Changes from V2:
>> - As per Vaidy's suggestion change powercap-min to point to
>>   soft-powercap min limit instead of hard-powercap as min and max
>>   should point to the absolute possible range.
>>  doc/device-tree/ibm,opal/power-mgt/powercap.rst |  9 +++++++-
>>  hw/occ.c                                        | 30 ++++++++++++++++++-------
>>  2 files changed, 30 insertions(+), 9 deletions(-)
> Thansk for this.
> Merged to master as of a96739c6c1cdf02521cab703733cef8cb54debbf.
> Since we have a Fixes for a commit that's from way back in 5.8 days, we
> should probably also have this go to stable?

Yes this should go to stable. Sorry for not adding Cc: stable

More information about the Skiboot mailing list