diff options
author | Ben Pai <Ben_Pai@wistron.com> | 2019-11-28 14:00:09 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-12-03 18:11:04 +0300 |
commit | b837eed54a0ee308d88bda9d81c1c7c8c185b4e4 (patch) | |
tree | 6f75ce61d5ad0f2009c53bfad3e0d7a333948952 /meta-ibm/meta-witherspoon/recipes-phosphor/fans | |
parent | 95dbbacea0332d5a8e5adebbed8de3a64d515118 (diff) | |
download | openbmc-b837eed54a0ee308d88bda9d81c1c7c8c185b4e4.tar.xz |
meta-ibm: Add a mechanism to monitor ambient and occ
Fan speed can be increased when occ or ambient is abnormal, so add the
monitor of the ambient and OCC control services.
(From meta-ibm rev: d0a123bdd618570e585a4020593bf9b13395398d)
Change-Id: I17eb679760c2e6f6002f5ea54f7d799f1c62680c
Signed-off-by: Ben Pai <Ben_Pai@wistron.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-ibm/meta-witherspoon/recipes-phosphor/fans')
-rw-r--r-- | meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config/mihawk/events.yaml | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config/mihawk/events.yaml b/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config/mihawk/events.yaml index ade4567ce..386f4b7c7 100644 --- a/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config/mihawk/events.yaml +++ b/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config/mihawk/events.yaml @@ -301,6 +301,65 @@ actions: - altevents events: + - name: default_fan_floor_on_service_fail + precondition: + name: services_missing_owner + groups: + - name: zone0_ambient + interface: xyz.openbmc_project.Sensor.Value + property: + name: Value + type: int64_t + triggers: + - name: init + method: nameHasOwner + handler: setService + - name: signal + signal: nameOwnerChanged + handler: setService + events: + - name: default_fan_floor + groups: + - name: zone0_ambient + interface: xyz.openbmc_project.Sensor.Value + property: + name: Value + type: int64_t + triggers: + - name: timer + interval: 5000000 + type: oneshot + actions: + - name: default_floor_on_missing_owner + - name: high_speed_on_occ_service_fails + groups: + - name: occ0_object + interface: org.open_power.OCC.Status + property: + name: OccActive + type: bool + - name: occ1_object + interface: org.open_power.OCC.Status + property: + name: OccActive + type: bool + triggers: + - name: init + method: nameHasOwner + handler: setService + - name: signal + signal: nameOwnerChanged + handler: setService + actions: + - name: call_actions_based_on_timer + timer: + interval: 5000000 + type: oneshot + actions: + - name: set_speed_on_missing_owner + speed: + value: 255 + type: uint64_t - name: missing_or_fails_before_high_speed_air groups: - name: air_cooled_zone0_fans |