control:ibm,rainier-1s4u: Fan rotor nonfunctional event
Sets/holds the fans at a target of 10000rpm when 1 or more fan
rotors are deemed nonfunctional.
Change-Id: Iebfe3fa10ae5b45608f7df5f3795968912312bff
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/config_files/p10bmc/ibm,rainier-1s4u/events.json b/control/config_files/p10bmc/ibm,rainier-1s4u/events.json
index bf267ad..a297d8c 100644
--- a/control/config_files/p10bmc/ibm,rainier-1s4u/events.json
+++ b/control/config_files/p10bmc/ibm,rainier-1s4u/events.json
@@ -27,5 +27,49 @@
"target": 10000
}
]
+ },
+ {
+ // Hold fans at the given target when a number of rotors are nonfunctional.
+ "name": "fan rotor(s) faulted",
+ "groups": [
+ {
+ "name": "fan0 rotor inventory",
+ "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus",
+ "property": { "name": "Functional" }
+ },
+ {
+ "name": "fan1 rotor inventory",
+ "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus",
+ "property": { "name": "Functional" }
+ },
+ {
+ "name": "fan2 rotor inventory",
+ "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus",
+ "property": { "name": "Functional" }
+ },
+ {
+ "name": "fan4 rotor inventory",
+ "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus",
+ "property": { "name": "Functional" }
+ }
+ ],
+ "triggers": [
+ {
+ "class": "init",
+ "method": "get_properties"
+ },
+ {
+ "class": "signal",
+ "signal": "properties_changed"
+ }
+ ],
+ "actions": [
+ {
+ "name": "count_state_before_target",
+ "count": 1,
+ "state": false,
+ "target": 10000
+ }
+ ]
}
]
diff --git a/control/config_files/p10bmc/ibm,rainier-1s4u/groups.json b/control/config_files/p10bmc/ibm,rainier-1s4u/groups.json
index e829607..c6f795b 100644
--- a/control/config_files/p10bmc/ibm,rainier-1s4u/groups.json
+++ b/control/config_files/p10bmc/ibm,rainier-1s4u/groups.json
@@ -7,5 +7,29 @@
"/xyz/openbmc_project/inventory/system/chassis/motherboard/fan2",
"/xyz/openbmc_project/inventory/system/chassis/motherboard/fan4"
]
+ },
+ {
+ "name": "fan0 rotor inventory",
+ "members": [
+ "/xyz/openbmc_project/inventory/system/chassis/motherboard/fan0/fan0_0"
+ ]
+ },
+ {
+ "name": "fan1 rotor inventory",
+ "members": [
+ "/xyz/openbmc_project/inventory/system/chassis/motherboard/fan1/fan1_0"
+ ]
+ },
+ {
+ "name": "fan2 rotor inventory",
+ "members": [
+ "/xyz/openbmc_project/inventory/system/chassis/motherboard/fan2/fan2_0"
+ ]
+ },
+ {
+ "name": "fan4 rotor inventory",
+ "members": [
+ "/xyz/openbmc_project/inventory/system/chassis/motherboard/fan4/fan4_0"
+ ]
}
]