Skip to content

Commit

Permalink
wspoon: Handle faulted OCC temp sensors
Browse files Browse the repository at this point in the history
When a temp sensor provided by the OCC is faulted, set the fans to full
speed(10500 RPMs)

Tested:
    Set Functional property of an OCC provided sensor to `true` and
    fans are set to 10500.
    Fan speeds drop when the same Functional property is set to `false`

Resolves: #2222

Change-Id: Iddd9049fc9677ca587422a5bf4104c0d3787af1a
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
  • Loading branch information
msbarth authored and bradbishop committed May 3, 2018
1 parent d9eeb93 commit 84824f0
Showing 1 changed file with 47 additions and 0 deletions.
Expand Up @@ -368,7 +368,44 @@ events:
property:
name: Functional
type: bool
- name: zone0_cores
zone_conditions:
- name: air_cooled_chassis
zones:
- 0
interface: xyz.openbmc_project.State.Decorator.OperationalStatus
property:
name: Functional
type: bool
- name: zone0_dimms
zone_conditions:
- name: air_cooled_chassis
zones:
- 0
interface: xyz.openbmc_project.State.Decorator.OperationalStatus
property:
name: Functional
type: bool
- name: zone0_gpu_cores
zone_conditions:
- name: air_cooled_chassis
zones:
- 0
interface: xyz.openbmc_project.State.Decorator.OperationalStatus
property:
name: Functional
type: bool
- name: zone0_gpu_memory
zone_conditions:
- name: air_cooled_chassis
zones:
- 0
interface: xyz.openbmc_project.State.Decorator.OperationalStatus
property:
name: Functional
type: bool
matches:
- name: interfacesAdded
- name: propertiesChanged
actions:
- name: count_state_before_speed
Expand Down Expand Up @@ -412,7 +449,17 @@ events:
property:
name: Functional
type: bool
- name: zone0_dimms
zone_conditions:
- name: water_and_air_cooled_chassis
zones:
- 0
interface: xyz.openbmc_project.State.Decorator.OperationalStatus
property:
name: Functional
type: bool
matches:
- name: interfacesAdded
- name: propertiesChanged
actions:
- name: count_state_before_speed
Expand Down

0 comments on commit 84824f0

Please sign in to comment.