[phosphor-fan-presence] ask fan fail behavior

Matt Spinler mspinler at linux.ibm.com
Thu May 2 23:45:09 AEST 2019


On 5/2/2019 5:37 AM, Hank Liou (劉晉翰) wrote:
>
> Hi All,
>
> Is there a mechanism in phosphor-fan-presence that will set all fans' 
> speed except failed one as a fan fails? I have read 
> phosphor-fan-presence for a while, but I only 
> found set_speed_on_missing_owner, a function in control/actions.cpp. 
> Things get worse that I don't know how to trigger it not to say 
> to test it. Any comment is welcome.
>

Hi,


I don't think there's a way to set a new speed on all fans 'but' the 
failing one, but you can set a new speed when a fail is detected 
(detected by the fan state being set to not functional) with 
count_state_before_speed().


Here is some documentation on that: 
https://github.com/openbmc/phosphor-fan-presence/blob/master/control/example/events.yaml#L127. 
And here it is in use: 
https://github.com/openbmc/meta-ibm/blob/master/meta-witherspoon/recipes-phosphor/fans/witherspoon-phosphor-fan-control-events-config-native/events.yaml#L374




> Sincerely,
>
> Hank Liou
>



More information about the openbmc mailing list