Matthew Barth | bde6859 | 2017-05-24 17:06:13 -0500 | [diff] [blame] | 1 | groups: |
Matthew Barth | 2ca6b7b | 2017-06-30 11:07:51 -0500 | [diff] [blame] | 2 | - name: air_cooled_zone0_fans |
| 3 | description: Group of fan inventory objects for air cooled zone 0 |
Matthew Barth | bde6859 | 2017-05-24 17:06:13 -0500 | [diff] [blame] | 4 | type: inventory |
| 5 | members: |
| 6 | - /system/chassis/motherboard/fan0 |
| 7 | - /system/chassis/motherboard/fan1 |
| 8 | - /system/chassis/motherboard/fan2 |
| 9 | - /system/chassis/motherboard/fan3 |
Matthew Barth | 2ca6b7b | 2017-06-30 11:07:51 -0500 | [diff] [blame] | 10 | - name: water_and_air_cooled_zone0_fans |
| 11 | description: Group of fan inventory objects for water/air cooled zone 0 |
| 12 | type: inventory |
| 13 | members: |
| 14 | - /system/chassis/motherboard/fan0 |
| 15 | - /system/chassis/motherboard/fan2 |
| 16 | - /system/chassis/motherboard/fan3 |
Matthew Barth | 5cde5a6 | 2017-07-10 15:35:29 -0500 | [diff] [blame] | 17 | - name: zone0_ambient |
| 18 | description: Group of ambient temperature sensors for zone 0 |
| 19 | type: sensors |
| 20 | members: |
| 21 | - /temperature/ambient |
Matthew Barth | bde6859 | 2017-05-24 17:06:13 -0500 | [diff] [blame] | 22 | |
| 23 | actions: |
| 24 | - name: count_state_before_speed |
| 25 | description: Set the speed when a number of properties at a state |
| 26 | parameters: |
| 27 | - count |
| 28 | - property |
| 29 | - speed |
Matthew Barth | 5cde5a6 | 2017-07-10 15:35:29 -0500 | [diff] [blame] | 30 | - name: set_floor_from_average_sensor_value |
| 31 | description: Set floor speed from first entry with average less than key |
| 32 | parameters: |
| 33 | - map |
| 34 | - name: set_ceiling_from_average_sensor_value |
| 35 | description: Set ceiling speed based on key transition values with average |
| 36 | parameters: |
| 37 | - map |
Matthew Barth | bde6859 | 2017-05-24 17:06:13 -0500 | [diff] [blame] | 38 | |
| 39 | events: |
Matthew Barth | 2ca6b7b | 2017-06-30 11:07:51 -0500 | [diff] [blame] | 40 | - name: missing_before_high_speed_air |
Matthew Barth | bde6859 | 2017-05-24 17:06:13 -0500 | [diff] [blame] | 41 | zone_conditions: |
| 42 | - name: air_cooled_chassis |
| 43 | zones: |
| 44 | - 0 |
Matthew Barth | 2ca6b7b | 2017-06-30 11:07:51 -0500 | [diff] [blame] | 45 | group: air_cooled_zone0_fans |
Matthew Barth | bde6859 | 2017-05-24 17:06:13 -0500 | [diff] [blame] | 46 | interface: xyz.openbmc_project.Inventory.Item |
| 47 | property: |
| 48 | name: Present |
| 49 | type: bool |
| 50 | action: |
| 51 | name: count_state_before_speed |
| 52 | count: 1 |
| 53 | property: false |
| 54 | speed: |
| 55 | value: 10500 |
| 56 | type: uint64_t |
Matthew Barth | 2ca6b7b | 2017-06-30 11:07:51 -0500 | [diff] [blame] | 57 | - name: fails_before_high_speed_air |
Matthew Barth | bde6859 | 2017-05-24 17:06:13 -0500 | [diff] [blame] | 58 | zone_conditions: |
| 59 | - name: air_cooled_chassis |
| 60 | zones: |
| 61 | - 0 |
Matthew Barth | 2ca6b7b | 2017-06-30 11:07:51 -0500 | [diff] [blame] | 62 | group: air_cooled_zone0_fans |
Matthew Barth | bde6859 | 2017-05-24 17:06:13 -0500 | [diff] [blame] | 63 | interface: xyz.openbmc_project.State.Decorator.OperationalStatus |
| 64 | property: |
| 65 | name: Functional |
| 66 | type: bool |
| 67 | action: |
| 68 | name: count_state_before_speed |
| 69 | count: 1 |
| 70 | property: false |
| 71 | speed: |
| 72 | value: 10500 |
| 73 | type: uint64_t |
Matthew Barth | 2ca6b7b | 2017-06-30 11:07:51 -0500 | [diff] [blame] | 74 | - name: missing_before_high_speed_water_and_air |
| 75 | zone_conditions: |
| 76 | - name: water_and_air_cooled_chassis |
| 77 | zones: |
| 78 | - 0 |
| 79 | group: water_and_air_cooled_zone0_fans |
| 80 | interface: xyz.openbmc_project.Inventory.Item |
| 81 | property: |
| 82 | name: Present |
| 83 | type: bool |
| 84 | action: |
| 85 | name: count_state_before_speed |
| 86 | count: 1 |
| 87 | property: false |
| 88 | speed: |
| 89 | value: 10500 |
| 90 | type: uint64_t |
| 91 | - name: fails_before_high_speed_water_and_air |
| 92 | zone_conditions: |
| 93 | - name: water_and_air_cooled_chassis |
| 94 | zones: |
| 95 | - 0 |
| 96 | group: water_and_air_cooled_zone0_fans |
| 97 | interface: xyz.openbmc_project.State.Decorator.OperationalStatus |
| 98 | property: |
| 99 | name: Functional |
| 100 | type: bool |
| 101 | action: |
| 102 | name: count_state_before_speed |
| 103 | count: 1 |
| 104 | property: false |
| 105 | speed: |
| 106 | value: 10500 |
| 107 | type: uint64_t |
Matthew Barth | 5cde5a6 | 2017-07-10 15:35:29 -0500 | [diff] [blame] | 108 | - name: update_air_cooled_floor_speed_based_on_ambient |
| 109 | zone_conditions: |
| 110 | - name: air_cooled_chassis |
| 111 | zones: |
| 112 | - 0 |
| 113 | group: zone0_ambient |
| 114 | interface: xyz.openbmc_project.Sensor.Value |
| 115 | property: |
| 116 | name: Value |
| 117 | type: int64_t |
| 118 | action: |
| 119 | name: set_floor_from_average_sensor_value |
| 120 | map: |
| 121 | value: |
| 122 | - 27000: 3500 |
| 123 | - 32000: 4600 |
| 124 | - 37000: 5200 |
| 125 | - 40000: 5800 |
| 126 | type: std::map<int64_t, uint64_t> |
| 127 | - name: update_water_cooled_floor_speed_based_on_ambient |
| 128 | zone_conditions: |
| 129 | - name: water_and_air_cooled_chassis |
| 130 | zones: |
| 131 | - 0 |
| 132 | group: zone0_ambient |
| 133 | interface: xyz.openbmc_project.Sensor.Value |
| 134 | property: |
| 135 | name: Value |
| 136 | type: int64_t |
| 137 | action: |
| 138 | name: set_floor_from_average_sensor_value |
| 139 | map: |
| 140 | value: |
| 141 | - 27000: 3000 |
| 142 | - 32000: 4300 |
| 143 | - 37000: 5000 |
| 144 | - 40000: 5800 |
| 145 | type: std::map<int64_t, uint64_t> |
| 146 | - name: update_ceiling_speed_based_on_ambient |
| 147 | zone_conditions: |
| 148 | - name: air_cooled_chassis |
| 149 | zones: |
| 150 | - 0 |
| 151 | - name: water_and_air_cooled_chassis |
| 152 | zones: |
| 153 | - 0 |
| 154 | group: zone0_ambient |
| 155 | interface: xyz.openbmc_project.Sensor.Value |
| 156 | property: |
| 157 | name: Value |
| 158 | type: int64_t |
| 159 | action: |
| 160 | name: set_ceiling_from_average_sensor_value |
| 161 | map: |
| 162 | value: |
| 163 | - 25000: 7200 |
| 164 | - 27000: 10500 |
| 165 | type: std::map<int64_t, uint64_t> |