[Skiboot] [PATCH v2] occ: Poll OCC throttle status and queue OCC events to host
Preeti U Murthy
preeti at linux.vnet.ibm.com
Mon Apr 27 20:34:19 AEST 2015
On 04/27/2015 10:37 AM, Shilpasri G Bhat wrote:
> Add a new class of message definition OPAL_MSG_OCC to
> opal_message_type to notify the following OCC events to host:
> 1) OCC Reset
> 2) OCC Load
> 3) OCC Throttle Status Change
>
> Add an opal poller to periodically read throttle status updated by OCC
> for each chip and notify any change in throttle status to host. The
> throttle status indicates the reason why OCC may have limited the max
> Pstate of the chip.
>
> Signed-off-by: Shilpasri G Bhat <shilpa.bhat at linux.vnet.ibm.com>
> ---
> Changes from V1:
> - Initialize prev_throttle to 0 instead of 0xF
> - Add pr_log when opal_queue_msg() fails on OCC reset and load.
> - Do not update occ_reset and prev_throttle if opal_queue_msg fails in
> occ_throttle_poll()
> - Do not queue if throttle reason is greater than 5.
Looks good.
Reviewed-by: Preeti U. Murthy <preet at linux.vnet.ibm.com>
More information about the Skiboot
mailing list