diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2017-05-24 17:06:13 -0500 |
---|---|---|
committer | Matthew Barth <msbarth@us.ibm.com> | 2017-06-05 09:00:22 -0500 |
commit | 2bfd71d492e7d1c3e93c49470998fcb81417c895 (patch) | |
tree | 45834db2b8fd8e78fa9be782d02fb3c90d1e142b /meta-openbmc-machines | |
parent | 268dc0dab4fbca8609444ca30890e2247fcf804a (diff) | |
download | talos-openbmc-2bfd71d492e7d1c3e93c49470998fcb81417c895.tar.gz talos-openbmc-2bfd71d492e7d1c3e93c49470998fcb81417c895.zip |
Install events yaml for fan control
Updated the fan control recipe files to include the events config yaml
file. For witherspoon, an events yaml file was added initially
supporting the fan degraded events of missing or containing a
nonfunctional fan resulting in the fans running at full speed.
Resolves openbmc/openbmc#944
Change-Id: I5cbc69694d2a05ec2d5daab55f045e1e28764828
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'meta-openbmc-machines')
2 files changed, 54 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config-native.bbappend b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config-native.bbappend new file mode 100644 index 000000000..db65e0916 --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config-native.bbappend @@ -0,0 +1 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/phosphor-fan-control-events-config:" diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config/events.yaml b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config/events.yaml new file mode 100644 index 000000000..94e55bb88 --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config/events.yaml @@ -0,0 +1,53 @@ +groups: + - name: zone0_fans + description: Group of fan inventory objects for zone 0 + type: inventory + members: + - /system/chassis/motherboard/fan0 + - /system/chassis/motherboard/fan1 + - /system/chassis/motherboard/fan2 + - /system/chassis/motherboard/fan3 + +actions: + - name: count_state_before_speed + description: Set the speed when a number of properties at a state + parameters: + - count + - property + - speed + +events: + - name: missing_before_high_speed + zone_conditions: + - name: air_cooled_chassis + zones: + - 0 + group: zone0_fans + interface: xyz.openbmc_project.Inventory.Item + property: + name: Present + type: bool + action: + name: count_state_before_speed + count: 1 + property: false + speed: + value: 10500 + type: uint64_t + - name: fails_before_high_speed + zone_conditions: + - name: air_cooled_chassis + zones: + - 0 + group: zone0_fans + interface: xyz.openbmc_project.State.Decorator.OperationalStatus + property: + name: Functional + type: bool + action: + name: count_state_before_speed + count: 1 + property: false + speed: + value: 10500 + type: uint64_t |