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 | 46e3115 | 2017-08-08 16:08:59 -0500 | [diff] [blame] | 4 | type: /xyz/openbmc_project/inventory |
Matthew Barth | bde6859 | 2017-05-24 17:06:13 -0500 | [diff] [blame] | 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 |
Matthew Barth | 46e3115 | 2017-08-08 16:08:59 -0500 | [diff] [blame] | 12 | type: /xyz/openbmc_project/inventory |
Matthew Barth | 2ca6b7b | 2017-06-30 11:07:51 -0500 | [diff] [blame] | 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 |
Matthew Barth | 46e3115 | 2017-08-08 16:08:59 -0500 | [diff] [blame] | 19 | type: /xyz/openbmc_project/sensors |
Matthew Barth | 5cde5a6 | 2017-07-10 15:35:29 -0500 | [diff] [blame] | 20 | members: |
| 21 | - /temperature/ambient |
Matthew Barth | 184a151 | 2017-08-16 10:42:54 -0500 | [diff] [blame] | 22 | - name: occ0_object |
| 23 | description: Dbus object containing OCC0 properties |
| 24 | type: /org/open_power/control |
| 25 | members: |
| 26 | - /occ0 |
| 27 | - name: occ1_object |
| 28 | description: Dbus object containing OCC1 properties |
| 29 | type: /org/open_power/control |
| 30 | members: |
| 31 | - /occ1 |
| 32 | - name: zone0_cores |
| 33 | description: Group of core temperature sensors for zone 0 |
| 34 | type: /xyz/openbmc_project/sensors |
| 35 | members: |
| 36 | - /temperature/p0_core0_temp |
| 37 | - /temperature/p0_core1_temp |
| 38 | - /temperature/p0_core2_temp |
| 39 | - /temperature/p0_core3_temp |
| 40 | - /temperature/p0_core4_temp |
| 41 | - /temperature/p0_core5_temp |
| 42 | - /temperature/p0_core6_temp |
| 43 | - /temperature/p0_core7_temp |
| 44 | - /temperature/p0_core8_temp |
| 45 | - /temperature/p0_core9_temp |
| 46 | - /temperature/p0_core10_temp |
| 47 | - /temperature/p0_core11_temp |
| 48 | - /temperature/p0_core12_temp |
| 49 | - /temperature/p0_core13_temp |
| 50 | - /temperature/p0_core14_temp |
| 51 | - /temperature/p0_core15_temp |
| 52 | - /temperature/p0_core16_temp |
| 53 | - /temperature/p0_core17_temp |
| 54 | - /temperature/p0_core18_temp |
| 55 | - /temperature/p0_core19_temp |
| 56 | - /temperature/p0_core20_temp |
| 57 | - /temperature/p0_core21_temp |
| 58 | - /temperature/p0_core22_temp |
| 59 | - /temperature/p0_core23_temp |
| 60 | - /temperature/p1_core0_temp |
| 61 | - /temperature/p1_core1_temp |
| 62 | - /temperature/p1_core2_temp |
| 63 | - /temperature/p1_core3_temp |
| 64 | - /temperature/p1_core4_temp |
| 65 | - /temperature/p1_core5_temp |
| 66 | - /temperature/p1_core6_temp |
| 67 | - /temperature/p1_core7_temp |
| 68 | - /temperature/p1_core8_temp |
| 69 | - /temperature/p1_core9_temp |
| 70 | - /temperature/p1_core10_temp |
| 71 | - /temperature/p1_core11_temp |
| 72 | - /temperature/p1_core12_temp |
| 73 | - /temperature/p1_core13_temp |
| 74 | - /temperature/p1_core14_temp |
| 75 | - /temperature/p1_core15_temp |
| 76 | - /temperature/p1_core16_temp |
| 77 | - /temperature/p1_core17_temp |
| 78 | - /temperature/p1_core18_temp |
| 79 | - /temperature/p1_core19_temp |
| 80 | - /temperature/p1_core20_temp |
| 81 | - /temperature/p1_core21_temp |
| 82 | - /temperature/p1_core22_temp |
| 83 | - /temperature/p1_core23_temp |
Matthew Barth | 7a51278 | 2017-08-16 12:43:07 -0500 | [diff] [blame] | 84 | - name: zone0_regulators |
| 85 | description: Group of regulator temperature sensors for zone 0 |
| 86 | type: /xyz/openbmc_project/sensors |
| 87 | members: |
| 88 | - /temperature/p0_vdd_temp |
| 89 | - /temperature/p1_vdd_temp |
Matthew Barth | 362d823 | 2017-08-18 10:39:03 -0500 | [diff] [blame] | 90 | - name: zone0_dimms |
| 91 | description: Group of dimm temperature sensors for zone 0 |
| 92 | type: /xyz/openbmc_project/sensors |
| 93 | members: |
| 94 | - /temperature/dimm0_temp |
| 95 | - /temperature/dimm1_temp |
| 96 | - /temperature/dimm2_temp |
| 97 | - /temperature/dimm3_temp |
| 98 | - /temperature/dimm4_temp |
| 99 | - /temperature/dimm5_temp |
| 100 | - /temperature/dimm6_temp |
| 101 | - /temperature/dimm7_temp |
| 102 | - /temperature/dimm8_temp |
| 103 | - /temperature/dimm9_temp |
| 104 | - /temperature/dimm10_temp |
| 105 | - /temperature/dimm11_temp |
| 106 | - /temperature/dimm12_temp |
| 107 | - /temperature/dimm13_temp |
| 108 | - /temperature/dimm14_temp |
| 109 | - /temperature/dimm15_temp |
Matthew Barth | 1f8bf1d | 2017-09-14 13:26:06 -0500 | [diff] [blame] | 110 | - name: zone0_gpu_cores |
| 111 | description: Group of gpu core temperature sensors for zone 0 |
| 112 | type: /xyz/openbmc_project/sensors |
| 113 | members: |
| 114 | - /temperature/gpu0_core_temp |
| 115 | - /temperature/gpu1_core_temp |
| 116 | - /temperature/gpu2_core_temp |
| 117 | - /temperature/gpu3_core_temp |
| 118 | - /temperature/gpu4_core_temp |
| 119 | - /temperature/gpu5_core_temp |
Matthew Barth | fe1823a | 2017-09-14 13:39:49 -0500 | [diff] [blame] | 120 | - name: zone0_gpu_memory |
| 121 | description: Group of gpu memory temperature sensors for zone 0 |
| 122 | type: /xyz/openbmc_project/sensors |
| 123 | members: |
| 124 | - /temperature/gpu0_mem_temp |
| 125 | - /temperature/gpu1_mem_temp |
| 126 | - /temperature/gpu2_mem_temp |
| 127 | - /temperature/gpu3_mem_temp |
| 128 | - /temperature/gpu4_mem_temp |
| 129 | - /temperature/gpu5_mem_temp |
Matthew Barth | 336e262 | 2017-10-13 14:45:27 -0500 | [diff] [blame] | 130 | - name: zone0_pcie |
| 131 | description: Group of pcie temperature sensors for zone 0 |
| 132 | type: /xyz/openbmc_project/sensors |
| 133 | members: |
| 134 | - /temperature/pcie |
Matthew Barth | 184a151 | 2017-08-16 10:42:54 -0500 | [diff] [blame] | 135 | |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 136 | matches: |
| 137 | - name: propertiesChanged |
| 138 | description: > |
| 139 | A property changed match |
| 140 | parameters: |
| 141 | - object |
| 142 | - interface |
| 143 | signal: propertySignal |
| 144 | - name: interfacesAdded |
| 145 | description: > |
| 146 | An interfaces added match |
| 147 | parameters: |
| 148 | - object |
| 149 | signal: objectSignal |
| 150 | - name: interfacesRemoved |
| 151 | description: > |
| 152 | An interfaces removed match |
| 153 | parameters: |
| 154 | - object |
Matthew Barth | 0c1b017 | 2018-03-22 08:23:18 -0500 | [diff] [blame] | 155 | signal: |
| 156 | name: objectSignal |
| 157 | parameters: |
| 158 | - object |
| 159 | - interface |
| 160 | handler: removeInterface |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 161 | - name: nameOwnerChanged |
| 162 | description: > |
| 163 | A name owner changed match |
| 164 | parameters: |
| 165 | - object |
| 166 | - interface |
| 167 | signal: ownerSignal |
| 168 | |
| 169 | signals: |
| 170 | - name: propertySignal |
| 171 | description: > |
| 172 | Handle property signals |
| 173 | parameters: |
| 174 | - type |
| 175 | - object |
| 176 | - interface |
| 177 | - property |
| 178 | handler: setProperty |
| 179 | - name: objectSignal |
| 180 | description: > |
| 181 | Handle object signals |
| 182 | parameters: |
| 183 | - type |
| 184 | - object |
| 185 | - interface |
| 186 | - property |
| 187 | handler: setProperty |
| 188 | - name: ownerSignal |
| 189 | description: > |
| 190 | Handle owner signals |
| 191 | parameters: |
| 192 | - object |
| 193 | - interface |
| 194 | handler: setService |
| 195 | |
| 196 | handlers: |
| 197 | - name: setProperty |
| 198 | description: > |
| 199 | Sets a value for the given object/interface/property |
| 200 | parameters: |
| 201 | - type |
| 202 | - object |
| 203 | - interface |
| 204 | - property |
| 205 | - name: setService |
| 206 | description: > |
| 207 | Sets the service name(s) for the given group |
| 208 | parameters: |
| 209 | - group |
Matthew Barth | 0c1b017 | 2018-03-22 08:23:18 -0500 | [diff] [blame] | 210 | - name: removeInterface |
| 211 | description: > |
| 212 | Removes an interface(and all associated properties) on the |
| 213 | given object from use within actions |
| 214 | parameters: |
| 215 | - object |
| 216 | - interface |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 217 | |
Matthew Barth | 184a151 | 2017-08-16 10:42:54 -0500 | [diff] [blame] | 218 | preconditions: |
| 219 | - name: property_states_match |
| 220 | description: > |
| 221 | All defined properties must match the values given to |
| 222 | enable a set speed event otherwise fan speeds are set to full |
| 223 | parameters: |
| 224 | - groups |
Matthew Barth | bde6859 | 2017-05-24 17:06:13 -0500 | [diff] [blame] | 225 | |
| 226 | actions: |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 227 | - name: call_actions_based_on_timer |
| 228 | description: > |
| 229 | Sets up a list of actions to be invoked when the defined timer |
| 230 | expires (or for each expiration of a repeating timer) |
| 231 | parameters: |
| 232 | - timer |
| 233 | - actions |
| 234 | - name: default_floor_on_missing_owner |
| 235 | description: > |
| 236 | Set the fan floor to the default floor |
| 237 | - name: set_speed_on_missing_owner |
| 238 | description: > |
| 239 | Set fans to the given speed when any service within the group |
| 240 | no longer exists |
| 241 | parameters: |
| 242 | - speed |
Matthew Barth | 1181f28 | 2017-09-15 14:53:01 -0500 | [diff] [blame] | 243 | - name: set_request_speed_base_with_max |
| 244 | description: > |
| 245 | Set the base request speed of a zone to the max value of a group for |
| 246 | calculating a new target speed |
Matthew Barth | bde6859 | 2017-05-24 17:06:13 -0500 | [diff] [blame] | 247 | - name: count_state_before_speed |
| 248 | description: Set the speed when a number of properties at a state |
| 249 | parameters: |
| 250 | - count |
| 251 | - property |
| 252 | - speed |
Matthew Barth | 5cde5a6 | 2017-07-10 15:35:29 -0500 | [diff] [blame] | 253 | - name: set_floor_from_average_sensor_value |
| 254 | description: Set floor speed from first entry with average less than key |
| 255 | parameters: |
| 256 | - map |
| 257 | - name: set_ceiling_from_average_sensor_value |
| 258 | description: Set ceiling speed based on key transition values with average |
| 259 | parameters: |
| 260 | - map |
Matthew Barth | 184a151 | 2017-08-16 10:42:54 -0500 | [diff] [blame] | 261 | - name: set_net_increase_speed |
| 262 | description: > |
| 263 | Set the speed increase delta based on a factor applied to |
| 264 | the delta increase size times the given value and property's |
| 265 | value difference |
| 266 | parameters: |
| 267 | - property |
| 268 | - factor |
| 269 | - delta |
| 270 | - name: set_net_decrease_speed |
| 271 | description: > |
| 272 | Set the speed decrease delta based on a factor applied to |
| 273 | the delta decrease size times the given value and property's |
| 274 | value difference |
| 275 | parameters: |
| 276 | - property |
| 277 | - factor |
| 278 | - delta |
Matthew Barth | bde6859 | 2017-05-24 17:06:13 -0500 | [diff] [blame] | 279 | |
| 280 | events: |
Matthew Barth | 56d560a | 2017-10-30 14:49:35 -0500 | [diff] [blame] | 281 | - name: default_fan_floor_on_service_fail |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 282 | # No global zone conditions defined == all unless defined on group |
| 283 | groups: |
| 284 | - name: zone0_ambient |
| 285 | interface: xyz.openbmc_project.Sensor.Value |
| 286 | property: |
| 287 | name: Value |
| 288 | type: int64_t |
Matthew Barth | 56d560a | 2017-10-30 14:49:35 -0500 | [diff] [blame] | 289 | matches: |
| 290 | - name: nameOwnerChanged |
| 291 | actions: |
| 292 | - name: call_actions_based_on_timer |
| 293 | timer: |
| 294 | delay: 5 |
| 295 | type: oneshot |
| 296 | actions: |
| 297 | - name: default_floor_on_missing_owner |
| 298 | - name: high_speed_on_occ0_service_fail |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 299 | # No global zone conditions defined == all unless defined on group |
| 300 | groups: |
| 301 | - name: occ0_object |
| 302 | interface: org.open_power.OCC.Status |
| 303 | property: |
| 304 | name: OccActive |
| 305 | type: bool |
Matthew Barth | 56d560a | 2017-10-30 14:49:35 -0500 | [diff] [blame] | 306 | matches: |
| 307 | - name: nameOwnerChanged |
| 308 | actions: |
| 309 | - name: call_actions_based_on_timer |
| 310 | timer: |
| 311 | delay: 5 |
| 312 | type: oneshot |
| 313 | actions: |
| 314 | - name: set_speed_on_missing_owner |
| 315 | speed: |
| 316 | value: 10500 |
| 317 | type: uint64_t |
| 318 | - name: high_speed_on_occ1_service_fail |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 319 | # No global zone conditions defined == all unless defined on group |
| 320 | groups: |
| 321 | - name: occ1_object |
| 322 | interface: org.open_power.OCC.Status |
| 323 | property: |
| 324 | name: OccActive |
| 325 | type: bool |
Matthew Barth | 56d560a | 2017-10-30 14:49:35 -0500 | [diff] [blame] | 326 | matches: |
| 327 | - name: nameOwnerChanged |
| 328 | actions: |
| 329 | - name: call_actions_based_on_timer |
| 330 | timer: |
| 331 | delay: 5 |
| 332 | type: oneshot |
| 333 | actions: |
| 334 | - name: set_speed_on_missing_owner |
| 335 | speed: |
| 336 | value: 10500 |
| 337 | type: uint64_t |
Matthew Barth | 2ca6b7b | 2017-06-30 11:07:51 -0500 | [diff] [blame] | 338 | - name: missing_before_high_speed_air |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 339 | groups: |
| 340 | - name: air_cooled_zone0_fans |
| 341 | zone_conditions: |
| 342 | - name: air_cooled_chassis |
| 343 | zones: |
| 344 | - 0 |
| 345 | interface: xyz.openbmc_project.Inventory.Item |
| 346 | property: |
| 347 | name: Present |
| 348 | type: bool |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 349 | matches: |
| 350 | - name: propertiesChanged |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 351 | actions: |
| 352 | - name: count_state_before_speed |
| 353 | count: 1 |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 354 | property: |
| 355 | value: false |
| 356 | type: bool |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 357 | speed: |
| 358 | value: 10500 |
| 359 | type: uint64_t |
Matthew Barth | 2ca6b7b | 2017-06-30 11:07:51 -0500 | [diff] [blame] | 360 | - name: fails_before_high_speed_air |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 361 | groups: |
| 362 | - name: air_cooled_zone0_fans |
| 363 | zone_conditions: |
| 364 | - name: air_cooled_chassis |
| 365 | zones: |
| 366 | - 0 |
| 367 | interface: xyz.openbmc_project.State.Decorator.OperationalStatus |
| 368 | property: |
| 369 | name: Functional |
| 370 | type: bool |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 371 | matches: |
Matthew Barth | 7b7aa13 | 2018-04-26 16:15:42 -0500 | [diff] [blame] | 372 | - name: interfacesAdded |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 373 | - name: propertiesChanged |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 374 | actions: |
| 375 | - name: count_state_before_speed |
| 376 | count: 1 |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 377 | property: |
| 378 | value: false |
| 379 | type: bool |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 380 | speed: |
| 381 | value: 10500 |
| 382 | type: uint64_t |
Matthew Barth | 2ca6b7b | 2017-06-30 11:07:51 -0500 | [diff] [blame] | 383 | - name: missing_before_high_speed_water_and_air |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 384 | groups: |
| 385 | - name: water_and_air_cooled_zone0_fans |
| 386 | zone_conditions: |
| 387 | - name: water_and_air_cooled_chassis |
| 388 | zones: |
| 389 | - 0 |
| 390 | interface: xyz.openbmc_project.Inventory.Item |
| 391 | property: |
| 392 | name: Present |
| 393 | type: bool |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 394 | matches: |
| 395 | - name: propertiesChanged |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 396 | actions: |
| 397 | - name: count_state_before_speed |
| 398 | count: 1 |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 399 | property: |
| 400 | value: false |
| 401 | type: bool |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 402 | speed: |
| 403 | value: 10500 |
| 404 | type: uint64_t |
Matthew Barth | 2ca6b7b | 2017-06-30 11:07:51 -0500 | [diff] [blame] | 405 | - name: fails_before_high_speed_water_and_air |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 406 | groups: |
| 407 | - name: water_and_air_cooled_zone0_fans |
| 408 | zone_conditions: |
| 409 | - name: water_and_air_cooled_chassis |
| 410 | zones: |
| 411 | - 0 |
| 412 | interface: xyz.openbmc_project.State.Decorator.OperationalStatus |
| 413 | property: |
| 414 | name: Functional |
| 415 | type: bool |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 416 | matches: |
Matthew Barth | 7b7aa13 | 2018-04-26 16:15:42 -0500 | [diff] [blame] | 417 | - name: interfacesAdded |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 418 | - name: propertiesChanged |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 419 | actions: |
| 420 | - name: count_state_before_speed |
| 421 | count: 1 |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 422 | property: |
| 423 | value: false |
| 424 | type: bool |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 425 | speed: |
| 426 | value: 10500 |
| 427 | type: uint64_t |
| 428 | - name: set_air_cooled_speed_boundaries_based_on_ambient |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 429 | groups: |
| 430 | - name: zone0_ambient |
| 431 | zone_conditions: |
| 432 | - name: air_cooled_chassis |
| 433 | zones: |
| 434 | - 0 |
| 435 | interface: xyz.openbmc_project.Sensor.Value |
| 436 | property: |
| 437 | name: Value |
| 438 | type: int64_t |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 439 | matches: |
| 440 | - name: propertiesChanged |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 441 | actions: |
| 442 | - name: set_floor_from_average_sensor_value |
| 443 | map: |
| 444 | value: |
Matthew Barth | f826d77 | 2017-12-11 14:47:54 -0600 | [diff] [blame] | 445 | - 27000: 3500 |
| 446 | - 32000: 4600 |
| 447 | - 37000: 5200 |
| 448 | - 40000: 5800 |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 449 | type: std::map<int64_t, uint64_t> |
| 450 | - name: set_ceiling_from_average_sensor_value |
| 451 | map: |
| 452 | value: |
Matthew Barth | 0359dc9 | 2017-10-16 15:57:20 -0500 | [diff] [blame] | 453 | - 25000: 7200 |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 454 | - 27000: 10500 |
| 455 | type: std::map<int64_t, uint64_t> |
| 456 | - name: set_water_cooled_speed_boundaries_based_on_ambient |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 457 | groups: |
| 458 | - name: zone0_ambient |
| 459 | zone_conditions: |
| 460 | - name: water_and_air_cooled_chassis |
| 461 | zones: |
| 462 | - 0 |
| 463 | interface: xyz.openbmc_project.Sensor.Value |
| 464 | property: |
| 465 | name: Value |
| 466 | type: int64_t |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 467 | matches: |
| 468 | - name: propertiesChanged |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 469 | actions: |
| 470 | - name: set_floor_from_average_sensor_value |
| 471 | map: |
| 472 | value: |
Matthew Barth | 0692acb | 2017-11-02 13:03:11 -0500 | [diff] [blame] | 473 | - 27000: 3000 |
| 474 | - 32000: 4300 |
| 475 | - 37000: 5000 |
| 476 | - 40000: 5800 |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 477 | type: std::map<int64_t, uint64_t> |
| 478 | - name: set_ceiling_from_average_sensor_value |
| 479 | map: |
| 480 | value: |
Matthew Barth | 0359dc9 | 2017-10-16 15:57:20 -0500 | [diff] [blame] | 481 | - 25000: 7200 |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 482 | - 27000: 10500 |
| 483 | type: std::map<int64_t, uint64_t> |
| 484 | - name: speed_changes_based_on_regulator_temps |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 485 | # No global zone conditions defined == all unless defined on group |
| 486 | groups: |
| 487 | - name: zone0_regulators |
| 488 | interface: xyz.openbmc_project.Sensor.Value |
| 489 | property: |
| 490 | name: Value |
| 491 | type: int64_t |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 492 | matches: |
| 493 | - name: interfacesAdded |
| 494 | - name: propertiesChanged |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 495 | actions: |
| 496 | - name: set_net_increase_speed |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 497 | property: |
| 498 | value: 85000 |
| 499 | type: int64_t |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 500 | factor: |
| 501 | value: 1000 |
| 502 | type: int64_t |
| 503 | delta: |
| 504 | value: 400 |
| 505 | type: uint64_t |
| 506 | - name: set_net_decrease_speed |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 507 | property: |
| 508 | value: 82000 |
| 509 | type: int64_t |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 510 | factor: |
| 511 | value: 1000 |
| 512 | type: int64_t |
| 513 | delta: |
Matthew Barth | 23bb157 | 2017-09-14 13:09:39 -0500 | [diff] [blame] | 514 | value: 40 |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 515 | type: uint64_t |
Matthew Barth | 7a51278 | 2017-08-16 12:43:07 -0500 | [diff] [blame] | 516 | timer: |
Matthew Barth | 23bb157 | 2017-09-14 13:09:39 -0500 | [diff] [blame] | 517 | interval: 5 |
Matthew Barth | 336e262 | 2017-10-13 14:45:27 -0500 | [diff] [blame] | 518 | - name: speed_changes_based_on_pcie_temps |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 519 | # No global zone conditions defined == all unless defined on group |
| 520 | groups: |
| 521 | - name: zone0_pcie |
| 522 | interface: xyz.openbmc_project.Sensor.Value |
| 523 | property: |
| 524 | name: Value |
| 525 | type: int64_t |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 526 | matches: |
| 527 | - name: interfacesAdded |
| 528 | - name: propertiesChanged |
Matthew Barth | 336e262 | 2017-10-13 14:45:27 -0500 | [diff] [blame] | 529 | actions: |
| 530 | - name: set_net_increase_speed |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 531 | property: |
| 532 | value: 55000 |
| 533 | type: int64_t |
Matthew Barth | 336e262 | 2017-10-13 14:45:27 -0500 | [diff] [blame] | 534 | factor: |
| 535 | value: 1000 |
| 536 | type: int64_t |
| 537 | delta: |
| 538 | value: 400 |
| 539 | type: uint64_t |
| 540 | - name: set_net_decrease_speed |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 541 | property: |
| 542 | value: 52000 |
| 543 | type: int64_t |
Matthew Barth | 336e262 | 2017-10-13 14:45:27 -0500 | [diff] [blame] | 544 | factor: |
| 545 | value: 1000 |
| 546 | type: int64_t |
| 547 | delta: |
| 548 | value: 40 |
| 549 | type: uint64_t |
| 550 | timer: |
| 551 | interval: 5 |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 552 | - name: occ_active_speed_changes |
Matthew Barth | 362d823 | 2017-08-18 10:39:03 -0500 | [diff] [blame] | 553 | precondition: |
| 554 | name: property_states_match |
| 555 | groups: |
| 556 | - name: occ0_object |
| 557 | interface: org.open_power.OCC.Status |
| 558 | property: |
| 559 | name: OccActive |
| 560 | type: bool |
| 561 | value: true |
| 562 | - name: occ1_object |
| 563 | interface: org.open_power.OCC.Status |
| 564 | property: |
| 565 | name: OccActive |
| 566 | type: bool |
| 567 | value: true |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 568 | matches: |
| 569 | - name: interfacesAdded |
| 570 | - name: propertiesChanged |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 571 | events: |
Matthew Barth | d093a5b | 2018-05-08 13:27:39 -0500 | [diff] [blame] | 572 | - name: fails_before_high_speed_air |
| 573 | groups: |
| 574 | - name: zone0_cores |
| 575 | zone_conditions: |
| 576 | - name: air_cooled_chassis |
| 577 | zones: |
| 578 | - 0 |
| 579 | interface: xyz.openbmc_project.State.Decorator.OperationalStatus |
| 580 | property: |
| 581 | name: Functional |
| 582 | type: bool |
| 583 | - name: zone0_dimms |
| 584 | interface: xyz.openbmc_project.State.Decorator.OperationalStatus |
| 585 | property: |
| 586 | name: Functional |
| 587 | type: bool |
| 588 | - name: zone0_gpu_cores |
| 589 | zone_conditions: |
| 590 | - name: air_cooled_chassis |
| 591 | zones: |
| 592 | - 0 |
| 593 | interface: xyz.openbmc_project.State.Decorator.OperationalStatus |
| 594 | property: |
| 595 | name: Functional |
| 596 | type: bool |
| 597 | - name: zone0_gpu_memory |
| 598 | zone_conditions: |
| 599 | - name: air_cooled_chassis |
| 600 | zones: |
| 601 | - 0 |
| 602 | interface: xyz.openbmc_project.State.Decorator.OperationalStatus |
| 603 | property: |
| 604 | name: Functional |
| 605 | type: bool |
| 606 | matches: |
| 607 | - name: interfacesAdded |
| 608 | - name: propertiesChanged |
| 609 | actions: |
| 610 | - name: count_state_before_speed |
| 611 | count: 1 |
| 612 | property: |
| 613 | value: false |
| 614 | type: bool |
| 615 | speed: |
| 616 | value: 10500 |
| 617 | type: uint64_t |
Matthew Barth | 173cc48 | 2017-11-08 11:02:33 -0600 | [diff] [blame] | 618 | - name: speed_changes_based_on_core_temps |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 619 | groups: |
| 620 | - name: zone0_cores |
| 621 | zone_conditions: |
| 622 | - name: air_cooled_chassis |
| 623 | zones: |
| 624 | - 0 |
| 625 | interface: xyz.openbmc_project.Sensor.Value |
| 626 | property: |
| 627 | name: Value |
| 628 | type: int64_t |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 629 | matches: |
| 630 | - name: interfacesAdded |
| 631 | - name: propertiesChanged |
Matthew Barth | 0c1b017 | 2018-03-22 08:23:18 -0500 | [diff] [blame] | 632 | - name: interfacesRemoved |
Matthew Barth | 173cc48 | 2017-11-08 11:02:33 -0600 | [diff] [blame] | 633 | actions: |
| 634 | - name: set_net_increase_speed |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 635 | property: |
| 636 | value: 73000 |
| 637 | type: int64_t |
Matthew Barth | 173cc48 | 2017-11-08 11:02:33 -0600 | [diff] [blame] | 638 | factor: |
| 639 | value: 1000 |
| 640 | type: int64_t |
| 641 | delta: |
| 642 | value: 400 |
| 643 | type: uint64_t |
| 644 | - name: set_net_decrease_speed |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 645 | property: |
| 646 | value: 70000 |
| 647 | type: int64_t |
Matthew Barth | 173cc48 | 2017-11-08 11:02:33 -0600 | [diff] [blame] | 648 | factor: |
| 649 | value: 1000 |
| 650 | type: int64_t |
| 651 | delta: |
| 652 | value: 40 |
| 653 | type: uint64_t |
| 654 | timer: |
| 655 | interval: 5 |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 656 | - name: speed_changes_based_on_dimm_temps |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 657 | # No global zone conditions defined == all unless defined on group |
| 658 | groups: |
| 659 | - name: zone0_dimms |
| 660 | interface: xyz.openbmc_project.Sensor.Value |
| 661 | property: |
| 662 | name: Value |
| 663 | type: int64_t |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 664 | matches: |
| 665 | - name: interfacesAdded |
| 666 | - name: propertiesChanged |
Matthew Barth | 0c1b017 | 2018-03-22 08:23:18 -0500 | [diff] [blame] | 667 | - name: interfacesRemoved |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 668 | actions: |
| 669 | - name: set_net_increase_speed |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 670 | property: |
| 671 | value: 64000 |
| 672 | type: int64_t |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 673 | factor: |
| 674 | value: 1000 |
| 675 | type: int64_t |
| 676 | delta: |
| 677 | value: 200 |
| 678 | type: uint64_t |
| 679 | - name: set_net_decrease_speed |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 680 | property: |
| 681 | value: 61000 |
| 682 | type: int64_t |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 683 | factor: |
| 684 | value: 1000 |
| 685 | type: int64_t |
| 686 | delta: |
Matthew Barth | 23bb157 | 2017-09-14 13:09:39 -0500 | [diff] [blame] | 687 | value: 40 |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 688 | type: uint64_t |
| 689 | timer: |
Matthew Barth | 23bb157 | 2017-09-14 13:09:39 -0500 | [diff] [blame] | 690 | interval: 5 |
Matthew Barth | 173cc48 | 2017-11-08 11:02:33 -0600 | [diff] [blame] | 691 | - name: speed_changes_based_on_gpu_core_temps |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 692 | groups: |
| 693 | - name: zone0_gpu_cores |
| 694 | zone_conditions: |
| 695 | - name: air_cooled_chassis |
| 696 | zones: |
| 697 | - 0 |
| 698 | interface: xyz.openbmc_project.Sensor.Value |
| 699 | property: |
| 700 | name: Value |
| 701 | type: int64_t |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 702 | matches: |
| 703 | - name: interfacesAdded |
| 704 | - name: propertiesChanged |
Matthew Barth | 0c1b017 | 2018-03-22 08:23:18 -0500 | [diff] [blame] | 705 | - name: interfacesRemoved |
Matthew Barth | 173cc48 | 2017-11-08 11:02:33 -0600 | [diff] [blame] | 706 | actions: |
| 707 | - name: set_net_increase_speed |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 708 | property: |
| 709 | value: 78000 |
| 710 | type: int64_t |
Matthew Barth | 173cc48 | 2017-11-08 11:02:33 -0600 | [diff] [blame] | 711 | factor: |
| 712 | value: 1000 |
| 713 | type: int64_t |
| 714 | delta: |
| 715 | value: 600 |
| 716 | type: uint64_t |
| 717 | - name: set_net_decrease_speed |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 718 | property: |
| 719 | value: 75000 |
| 720 | type: int64_t |
Matthew Barth | 173cc48 | 2017-11-08 11:02:33 -0600 | [diff] [blame] | 721 | factor: |
| 722 | value: 1000 |
| 723 | type: int64_t |
| 724 | delta: |
| 725 | value: 40 |
| 726 | type: uint64_t |
| 727 | timer: |
| 728 | interval: 5 |
| 729 | - name: speed_changes_based_on_gpu_memory_temps |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 730 | groups: |
| 731 | - name: zone0_gpu_memory |
| 732 | zone_conditions: |
| 733 | - name: air_cooled_chassis |
| 734 | zones: |
| 735 | - 0 |
| 736 | interface: xyz.openbmc_project.Sensor.Value |
| 737 | property: |
| 738 | name: Value |
| 739 | type: int64_t |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 740 | matches: |
| 741 | - name: interfacesAdded |
| 742 | - name: propertiesChanged |
Matthew Barth | 0c1b017 | 2018-03-22 08:23:18 -0500 | [diff] [blame] | 743 | - name: interfacesRemoved |
Matthew Barth | 173cc48 | 2017-11-08 11:02:33 -0600 | [diff] [blame] | 744 | actions: |
| 745 | - name: set_net_increase_speed |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 746 | property: |
| 747 | value: 80000 |
| 748 | type: int64_t |
Matthew Barth | 173cc48 | 2017-11-08 11:02:33 -0600 | [diff] [blame] | 749 | factor: |
| 750 | value: 1000 |
| 751 | type: int64_t |
| 752 | delta: |
| 753 | value: 600 |
| 754 | type: uint64_t |
| 755 | - name: set_net_decrease_speed |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 756 | property: |
| 757 | value: 77000 |
| 758 | type: int64_t |
Matthew Barth | 173cc48 | 2017-11-08 11:02:33 -0600 | [diff] [blame] | 759 | factor: |
| 760 | value: 1000 |
| 761 | type: int64_t |
| 762 | delta: |
| 763 | value: 40 |
| 764 | type: uint64_t |
| 765 | timer: |
| 766 | interval: 5 |