Skip to contentSkip to conversation

ask fan fail behavior

phosphor-fan-presence Hank Liou (劉晉翰) 2 participants 2 messages May 2, 2019

lore
Share & tools
lore
#0 lore raw

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.

Sincerely,

Hank Liou

#1 lore raw
Quoted 5 lines · Hank Liou (劉晉翰)

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

Quoted 4 lines

Sincerely,

Hank Liou