Matthew Barth | bde6859 | 2017-05-24 17:06:13 -0500 | [diff] [blame] | 1 | groups: |
Matthew Barth | dadf39c | 2019-09-20 09:49:29 -0500 | [diff] [blame] | 2 | - name: poweron_pgood |
| 3 | description: System poweron pgood state |
| 4 | type: /org/openbmc/control |
| 5 | members: |
| 6 | - /power0 |
Matthew Barth | ae93121 | 2019-01-29 16:10:44 -0600 | [diff] [blame] | 7 | - name: zone0_control_mode |
| 8 | description: Thermal control mode for zone 0 |
| 9 | service: xyz.openbmc_project.Control.Thermal |
| 10 | type: /xyz/openbmc_project/control/thermal |
| 11 | members: |
| 12 | - /0 |
Matthew Barth | 2ca6b7b | 2017-06-30 11:07:51 -0500 | [diff] [blame] | 13 | - name: air_cooled_zone0_fans |
| 14 | description: Group of fan inventory objects for air cooled zone 0 |
Matthew Barth | 46e3115 | 2017-08-08 16:08:59 -0500 | [diff] [blame] | 15 | type: /xyz/openbmc_project/inventory |
Matthew Barth | bde6859 | 2017-05-24 17:06:13 -0500 | [diff] [blame] | 16 | members: |
| 17 | - /system/chassis/motherboard/fan0 |
| 18 | - /system/chassis/motherboard/fan1 |
| 19 | - /system/chassis/motherboard/fan2 |
| 20 | - /system/chassis/motherboard/fan3 |
Matthew Barth | 2ca6b7b | 2017-06-30 11:07:51 -0500 | [diff] [blame] | 21 | - name: water_and_air_cooled_zone0_fans |
| 22 | description: Group of fan inventory objects for water/air cooled zone 0 |
Matthew Barth | 46e3115 | 2017-08-08 16:08:59 -0500 | [diff] [blame] | 23 | type: /xyz/openbmc_project/inventory |
Matthew Barth | 2ca6b7b | 2017-06-30 11:07:51 -0500 | [diff] [blame] | 24 | members: |
| 25 | - /system/chassis/motherboard/fan0 |
| 26 | - /system/chassis/motherboard/fan2 |
| 27 | - /system/chassis/motherboard/fan3 |
Matthew Barth | 5cde5a6 | 2017-07-10 15:35:29 -0500 | [diff] [blame] | 28 | - name: zone0_ambient |
| 29 | description: Group of ambient temperature sensors for zone 0 |
Matthew Barth | 46e3115 | 2017-08-08 16:08:59 -0500 | [diff] [blame] | 30 | type: /xyz/openbmc_project/sensors |
Matthew Barth | 5cde5a6 | 2017-07-10 15:35:29 -0500 | [diff] [blame] | 31 | members: |
| 32 | - /temperature/ambient |
Matthew Barth | 184a151 | 2017-08-16 10:42:54 -0500 | [diff] [blame] | 33 | - name: occ0_object |
| 34 | description: Dbus object containing OCC0 properties |
| 35 | type: /org/open_power/control |
| 36 | members: |
| 37 | - /occ0 |
| 38 | - name: occ1_object |
| 39 | description: Dbus object containing OCC1 properties |
| 40 | type: /org/open_power/control |
| 41 | members: |
| 42 | - /occ1 |
| 43 | - name: zone0_cores |
| 44 | description: Group of core temperature sensors for zone 0 |
| 45 | type: /xyz/openbmc_project/sensors |
| 46 | members: |
| 47 | - /temperature/p0_core0_temp |
| 48 | - /temperature/p0_core1_temp |
| 49 | - /temperature/p0_core2_temp |
| 50 | - /temperature/p0_core3_temp |
| 51 | - /temperature/p0_core4_temp |
| 52 | - /temperature/p0_core5_temp |
| 53 | - /temperature/p0_core6_temp |
| 54 | - /temperature/p0_core7_temp |
| 55 | - /temperature/p0_core8_temp |
| 56 | - /temperature/p0_core9_temp |
| 57 | - /temperature/p0_core10_temp |
| 58 | - /temperature/p0_core11_temp |
| 59 | - /temperature/p0_core12_temp |
| 60 | - /temperature/p0_core13_temp |
| 61 | - /temperature/p0_core14_temp |
| 62 | - /temperature/p0_core15_temp |
| 63 | - /temperature/p0_core16_temp |
| 64 | - /temperature/p0_core17_temp |
| 65 | - /temperature/p0_core18_temp |
| 66 | - /temperature/p0_core19_temp |
| 67 | - /temperature/p0_core20_temp |
| 68 | - /temperature/p0_core21_temp |
| 69 | - /temperature/p0_core22_temp |
| 70 | - /temperature/p0_core23_temp |
| 71 | - /temperature/p1_core0_temp |
| 72 | - /temperature/p1_core1_temp |
| 73 | - /temperature/p1_core2_temp |
| 74 | - /temperature/p1_core3_temp |
| 75 | - /temperature/p1_core4_temp |
| 76 | - /temperature/p1_core5_temp |
| 77 | - /temperature/p1_core6_temp |
| 78 | - /temperature/p1_core7_temp |
| 79 | - /temperature/p1_core8_temp |
| 80 | - /temperature/p1_core9_temp |
| 81 | - /temperature/p1_core10_temp |
| 82 | - /temperature/p1_core11_temp |
| 83 | - /temperature/p1_core12_temp |
| 84 | - /temperature/p1_core13_temp |
| 85 | - /temperature/p1_core14_temp |
| 86 | - /temperature/p1_core15_temp |
| 87 | - /temperature/p1_core16_temp |
| 88 | - /temperature/p1_core17_temp |
| 89 | - /temperature/p1_core18_temp |
| 90 | - /temperature/p1_core19_temp |
| 91 | - /temperature/p1_core20_temp |
| 92 | - /temperature/p1_core21_temp |
| 93 | - /temperature/p1_core22_temp |
| 94 | - /temperature/p1_core23_temp |
Matthew Barth | 7a51278 | 2017-08-16 12:43:07 -0500 | [diff] [blame] | 95 | - name: zone0_regulators |
| 96 | description: Group of regulator temperature sensors for zone 0 |
| 97 | type: /xyz/openbmc_project/sensors |
| 98 | members: |
| 99 | - /temperature/p0_vdd_temp |
| 100 | - /temperature/p1_vdd_temp |
Matthew Barth | 362d823 | 2017-08-18 10:39:03 -0500 | [diff] [blame] | 101 | - name: zone0_dimms |
| 102 | description: Group of dimm temperature sensors for zone 0 |
| 103 | type: /xyz/openbmc_project/sensors |
| 104 | members: |
| 105 | - /temperature/dimm0_temp |
| 106 | - /temperature/dimm1_temp |
| 107 | - /temperature/dimm2_temp |
| 108 | - /temperature/dimm3_temp |
| 109 | - /temperature/dimm4_temp |
| 110 | - /temperature/dimm5_temp |
| 111 | - /temperature/dimm6_temp |
| 112 | - /temperature/dimm7_temp |
| 113 | - /temperature/dimm8_temp |
| 114 | - /temperature/dimm9_temp |
| 115 | - /temperature/dimm10_temp |
| 116 | - /temperature/dimm11_temp |
| 117 | - /temperature/dimm12_temp |
| 118 | - /temperature/dimm13_temp |
| 119 | - /temperature/dimm14_temp |
| 120 | - /temperature/dimm15_temp |
Matthew Barth | 1f8bf1d | 2017-09-14 13:26:06 -0500 | [diff] [blame] | 121 | - name: zone0_gpu_cores |
| 122 | description: Group of gpu core temperature sensors for zone 0 |
| 123 | type: /xyz/openbmc_project/sensors |
| 124 | members: |
| 125 | - /temperature/gpu0_core_temp |
| 126 | - /temperature/gpu1_core_temp |
| 127 | - /temperature/gpu2_core_temp |
| 128 | - /temperature/gpu3_core_temp |
| 129 | - /temperature/gpu4_core_temp |
| 130 | - /temperature/gpu5_core_temp |
Matthew Barth | fe1823a | 2017-09-14 13:39:49 -0500 | [diff] [blame] | 131 | - name: zone0_gpu_memory |
| 132 | description: Group of gpu memory temperature sensors for zone 0 |
| 133 | type: /xyz/openbmc_project/sensors |
| 134 | members: |
| 135 | - /temperature/gpu0_mem_temp |
| 136 | - /temperature/gpu1_mem_temp |
| 137 | - /temperature/gpu2_mem_temp |
| 138 | - /temperature/gpu3_mem_temp |
| 139 | - /temperature/gpu4_mem_temp |
| 140 | - /temperature/gpu5_mem_temp |
Matthew Barth | 336e262 | 2017-10-13 14:45:27 -0500 | [diff] [blame] | 141 | - name: zone0_pcie |
| 142 | description: Group of pcie temperature sensors for zone 0 |
| 143 | type: /xyz/openbmc_project/sensors |
| 144 | members: |
| 145 | - /temperature/pcie |
Matthew Barth | 184a151 | 2017-08-16 10:42:54 -0500 | [diff] [blame] | 146 | |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 147 | matches: |
| 148 | - name: propertiesChanged |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 149 | parameters: |
| 150 | - object |
| 151 | - interface |
Matthew Barth | 1a43941 | 2018-10-25 15:33:52 -0500 | [diff] [blame] | 152 | - name: interfacesAdded |
| 153 | parameters: |
| 154 | - object |
| 155 | - name: interfacesRemoved |
| 156 | parameters: |
| 157 | - object |
| 158 | - name: nameOwnerChanged |
| 159 | parameters: |
| 160 | - object |
| 161 | - interface |
| 162 | |
| 163 | signals: |
| 164 | - name: propertiesChanged |
| 165 | description: > |
| 166 | A property changed match |
| 167 | parameters: |
| 168 | - type |
| 169 | - object |
| 170 | - interface |
| 171 | - property |
| 172 | match: propertiesChanged |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 173 | - name: interfacesAdded |
| 174 | description: > |
| 175 | An interfaces added match |
| 176 | parameters: |
Matthew Barth | 1a43941 | 2018-10-25 15:33:52 -0500 | [diff] [blame] | 177 | - type |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 178 | - object |
Matthew Barth | 1a43941 | 2018-10-25 15:33:52 -0500 | [diff] [blame] | 179 | - interface |
| 180 | - property |
| 181 | match: interfacesAdded |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 182 | - name: interfacesRemoved |
| 183 | description: > |
| 184 | An interfaces removed match |
| 185 | parameters: |
| 186 | - object |
Matthew Barth | 1a43941 | 2018-10-25 15:33:52 -0500 | [diff] [blame] | 187 | - interface |
| 188 | match: interfacesRemoved |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 189 | - name: nameOwnerChanged |
| 190 | description: > |
| 191 | A name owner changed match |
| 192 | parameters: |
Matthew Barth | 1a43941 | 2018-10-25 15:33:52 -0500 | [diff] [blame] | 193 | match: nameOwnerChanged |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 194 | |
Matthew Barth | 1a43941 | 2018-10-25 15:33:52 -0500 | [diff] [blame] | 195 | methods: |
| 196 | - name: getProperties |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 197 | description: > |
Matthew Barth | 1a43941 | 2018-10-25 15:33:52 -0500 | [diff] [blame] | 198 | Get the property values of the given group members |
| 199 | by performing a `GetProperty` method call on each |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 200 | parameters: |
| 201 | - type |
Matthew Barth | 1a43941 | 2018-10-25 15:33:52 -0500 | [diff] [blame] | 202 | - name: nameHasOwner |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 203 | description: > |
Matthew Barth | 1a43941 | 2018-10-25 15:33:52 -0500 | [diff] [blame] | 204 | A NameHasOwner method call to be performed on all event group members |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 205 | parameters: |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 206 | |
| 207 | handlers: |
| 208 | - name: setProperty |
| 209 | description: > |
| 210 | Sets a value for the given object/interface/property |
| 211 | parameters: |
| 212 | - type |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 213 | - name: setService |
| 214 | description: > |
Matthew Barth | 1a43941 | 2018-10-25 15:33:52 -0500 | [diff] [blame] | 215 | Sets the service name and ownership status for the given group |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 216 | parameters: |
| 217 | - group |
Matthew Barth | 0c1b017 | 2018-03-22 08:23:18 -0500 | [diff] [blame] | 218 | - name: removeInterface |
| 219 | description: > |
| 220 | Removes an interface(and all associated properties) on the |
Matthew Barth | 1a43941 | 2018-10-25 15:33:52 -0500 | [diff] [blame] | 221 | given object from use within all event actions |
Matthew Barth | 0c1b017 | 2018-03-22 08:23:18 -0500 | [diff] [blame] | 222 | parameters: |
| 223 | - object |
| 224 | - interface |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 225 | |
Matthew Barth | 184a151 | 2017-08-16 10:42:54 -0500 | [diff] [blame] | 226 | preconditions: |
| 227 | - name: property_states_match |
| 228 | description: > |
| 229 | All defined properties must match the values given to |
| 230 | enable a set speed event otherwise fan speeds are set to full |
| 231 | parameters: |
| 232 | - groups |
Matthew Barth | 1a43941 | 2018-10-25 15:33:52 -0500 | [diff] [blame] | 233 | - name: services_missing_owner |
| 234 | description: > |
| 235 | Any services missing an owner enable the events given otherwise |
| 236 | the events are removed/disabled |
| 237 | parameters: |
Matthew Barth | bde6859 | 2017-05-24 17:06:13 -0500 | [diff] [blame] | 238 | |
| 239 | actions: |
Matthew Barth | 4faed5e | 2017-12-11 15:02:32 -0600 | [diff] [blame] | 240 | - name: call_actions_based_on_timer |
| 241 | description: > |
| 242 | Sets up a list of actions to be invoked when the defined timer |
| 243 | expires (or for each expiration of a repeating timer) |
| 244 | parameters: |
| 245 | - timer |
| 246 | - actions |
| 247 | - name: default_floor_on_missing_owner |
| 248 | description: > |
| 249 | Set the fan floor to the default floor |
| 250 | - name: set_speed_on_missing_owner |
| 251 | description: > |
| 252 | Set fans to the given speed when any service within the group |
| 253 | no longer exists |
| 254 | parameters: |
| 255 | - speed |
Matthew Barth | 1181f28 | 2017-09-15 14:53:01 -0500 | [diff] [blame] | 256 | - name: set_request_speed_base_with_max |
| 257 | description: > |
| 258 | Set the base request speed of a zone to the max value of a group for |
| 259 | calculating a new target speed |
Matthew Barth | bde6859 | 2017-05-24 17:06:13 -0500 | [diff] [blame] | 260 | - name: count_state_before_speed |
| 261 | description: Set the speed when a number of properties at a state |
| 262 | parameters: |
| 263 | - count |
| 264 | - property |
| 265 | - speed |
Matthew Barth | 5cde5a6 | 2017-07-10 15:35:29 -0500 | [diff] [blame] | 266 | - name: set_floor_from_average_sensor_value |
| 267 | description: Set floor speed from first entry with average less than key |
| 268 | parameters: |
| 269 | - map |
| 270 | - name: set_ceiling_from_average_sensor_value |
| 271 | description: Set ceiling speed based on key transition values with average |
| 272 | parameters: |
| 273 | - map |
Matthew Barth | 184a151 | 2017-08-16 10:42:54 -0500 | [diff] [blame] | 274 | - name: set_net_increase_speed |
| 275 | description: > |
| 276 | Set the speed increase delta based on a factor applied to |
| 277 | the delta increase size times the given value and property's |
| 278 | value difference |
| 279 | parameters: |
| 280 | - property |
| 281 | - factor |
| 282 | - delta |
| 283 | - name: set_net_decrease_speed |
| 284 | description: > |
| 285 | Set the speed decrease delta based on a factor applied to |
| 286 | the delta decrease size times the given value and property's |
| 287 | value difference |
| 288 | parameters: |
| 289 | - property |
| 290 | - factor |
| 291 | - delta |
Matthew Barth | ae93121 | 2019-01-29 16:10:44 -0600 | [diff] [blame] | 292 | - name: use_alternate_events_on_state |
| 293 | description: > |
| 294 | Replaces a set of default events with an alternate set of events |
| 295 | when all the group properties are at a given state |
| 296 | parameters: |
| 297 | - property |
| 298 | - defevents |
| 299 | - altevents |
Matthew Barth | bde6859 | 2017-05-24 17:06:13 -0500 | [diff] [blame] | 300 | |
| 301 | events: |
Matthew Barth | 56d560a | 2017-10-30 14:49:35 -0500 | [diff] [blame] | 302 | - name: default_fan_floor_on_service_fail |
Matthew Barth | 1a43941 | 2018-10-25 15:33:52 -0500 | [diff] [blame] | 303 | precondition: |
| 304 | name: services_missing_owner |
| 305 | groups: |
| 306 | - name: zone0_ambient |
| 307 | interface: xyz.openbmc_project.Sensor.Value |
| 308 | property: |
| 309 | name: Value |
| 310 | type: int64_t |
| 311 | triggers: |
| 312 | - name: init |
| 313 | method: nameHasOwner |
| 314 | handler: setService |
| 315 | - name: signal |
| 316 | signal: nameOwnerChanged |
| 317 | handler: setService |
| 318 | events: |
| 319 | - name: default_fan_floor |
| 320 | groups: |
| 321 | - name: zone0_ambient |
| 322 | interface: xyz.openbmc_project.Sensor.Value |
| 323 | property: |
| 324 | name: Value |
| 325 | type: int64_t |
| 326 | triggers: |
| 327 | - name: timer |
| 328 | interval: 5000000 |
| 329 | type: oneshot |
| 330 | actions: |
| 331 | - name: default_floor_on_missing_owner |
| 332 | - name: high_speed_on_occ_service_fails |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 333 | groups: |
| 334 | - name: occ0_object |
| 335 | interface: org.open_power.OCC.Status |
| 336 | property: |
| 337 | name: OccActive |
| 338 | type: bool |
Matthew Barth | e4cf2b5 | 2018-01-11 13:12:32 -0600 | [diff] [blame] | 339 | - name: occ1_object |
| 340 | interface: org.open_power.OCC.Status |
| 341 | property: |
| 342 | name: OccActive |
| 343 | type: bool |
Matthew Barth | 1a43941 | 2018-10-25 15:33:52 -0500 | [diff] [blame] | 344 | triggers: |
| 345 | - name: init |
| 346 | method: nameHasOwner |
| 347 | handler: setService |
| 348 | - name: signal |
| 349 | signal: nameOwnerChanged |
| 350 | handler: setService |
Matthew Barth | 56d560a | 2017-10-30 14:49:35 -0500 | [diff] [blame] | 351 | actions: |
| 352 | - name: call_actions_based_on_timer |
| 353 | timer: |
Matthew Barth | 1a43941 | 2018-10-25 15:33:52 -0500 | [diff] [blame] | 354 | interval: 5000000 |
Matthew Barth | 56d560a | 2017-10-30 14:49:35 -0500 | [diff] [blame] | 355 | type: oneshot |
| 356 | actions: |
| 357 | - name: set_speed_on_missing_owner |
| 358 | speed: |
| 359 | value: 10500 |
| 360 | type: uint64_t |
Matthew Barth | dadf39c | 2019-09-20 09:49:29 -0500 | [diff] [blame] | 361 | - name: full_speed_at_power_on |
| 362 | precondition: |
| 363 | name: property_states_match |
| 364 | groups: |
| 365 | - name: poweron_pgood |
| 366 | interface: org.openbmc.control.Power |
| 367 | property: |
| 368 | name: pgood |
| 369 | type: int32_t |
| 370 | value: 1 |
| 371 | triggers: |
| 372 | - name: init |
| 373 | method: getProperties |
| 374 | handler: setProperty |
| 375 | - name: signal |
| 376 | signal: propertiesChanged |
| 377 | handler: setProperty |
| 378 | events: |
| 379 | - name: missing_or_fails_before_high_speed_air |
| 380 | groups: |
| 381 | - name: air_cooled_zone0_fans |
| 382 | zone_conditions: |
| 383 | - name: air_cooled_chassis |
| 384 | zones: |
| 385 | - 0 |
| 386 | interface: xyz.openbmc_project.Inventory.Item |
| 387 | property: |
| 388 | name: Present |
| 389 | type: bool |
| 390 | - name: air_cooled_zone0_fans |
| 391 | zone_conditions: |
| 392 | - name: air_cooled_chassis |
| 393 | zones: |
| 394 | - 0 |
| 395 | interface: xyz.openbmc_project.State.Decorator.OperationalStatus |
| 396 | property: |
| 397 | name: Functional |
| 398 | type: bool |
| 399 | triggers: |
| 400 | - name: init |
| 401 | method: getProperties |
| 402 | handler: setProperty |
| 403 | - name: signal |
| 404 | signal: propertiesChanged |
| 405 | handler: setProperty |
| 406 | actions: |
| 407 | - name: count_state_before_speed |
| 408 | count: 1 |
| 409 | property: |
| 410 | value: false |
| 411 | type: bool |
| 412 | speed: |
| 413 | value: 10500 |
| 414 | type: uint64_t |
| 415 | - name: missing_or_fails_before_high_speed_water_and_air |
| 416 | groups: |
| 417 | - name: water_and_air_cooled_zone0_fans |
| 418 | zone_conditions: |
| 419 | - name: water_and_air_cooled_chassis |
| 420 | zones: |
| 421 | - 0 |
| 422 | interface: xyz.openbmc_project.Inventory.Item |
| 423 | property: |
| 424 | name: Present |
| 425 | type: bool |
| 426 | - name: water_and_air_cooled_zone0_fans |
| 427 | zone_conditions: |
| 428 | - name: water_and_air_cooled_chassis |
| 429 | zones: |
| 430 | - 0 |
| 431 | interface: xyz.openbmc_project.State.Decorator.OperationalStatus |
| 432 | property: |
| 433 | name: Functional |
| 434 | type: bool |
| 435 | triggers: |
| 436 | - name: init |
| 437 | method: getProperties |
| 438 | handler: setProperty |
| 439 | - name: signal |
| 440 | signal: propertiesChanged |
| 441 | handler: setProperty |
| 442 | actions: |
| 443 | - name: count_state_before_speed |
| 444 | count: 1 |
| 445 | property: |
| 446 | value: false |
| 447 | type: bool |
| 448 | speed: |
| 449 | value: 10500 |
| 450 | type: uint64_t |
| 451 | - name: set_air_cooled_speed_boundaries_based_on_ambient |
| 452 | groups: |
| 453 | - name: zone0_control_mode |
| 454 | zone_conditions: |
| 455 | - name: air_cooled_chassis |
| 456 | zones: |
| 457 | - 0 |
| 458 | interface: xyz.openbmc_project.Control.ThermalMode |
| 459 | property: |
| 460 | name: Current |
| 461 | type: std::string |
| 462 | triggers: |
| 463 | - name: init |
| 464 | method: getProperties |
| 465 | handler: setProperty |
| 466 | - name: signal |
| 467 | signal: propertiesChanged |
| 468 | handler: setProperty |
| 469 | actions: |
| 470 | - name: use_alternate_events_on_state |
| 471 | property: |
| 472 | value: CUSTOM |
| 473 | type: std::string |
| 474 | defevents: |
| 475 | - name: default_floor_boundary |
| 476 | groups: |
| 477 | - name: zone0_ambient |
| 478 | zone_conditions: |
| 479 | - name: air_cooled_chassis |
| 480 | zones: |
| 481 | - 0 |
| 482 | interface: xyz.openbmc_project.Sensor.Value |
| 483 | property: |
| 484 | name: Value |
| 485 | type: int64_t |
| 486 | triggers: |
| 487 | - name: init |
| 488 | method: getProperties |
| 489 | handler: setProperty |
| 490 | - name: signal |
| 491 | signal: propertiesChanged |
| 492 | handler: setProperty |
| 493 | actions: |
| 494 | - name: set_floor_from_average_sensor_value |
| 495 | map: |
| 496 | value: |
| 497 | - 27000: 3500 |
| 498 | - 32000: 4600 |
| 499 | - 37000: 5200 |
| 500 | - 40000: 5800 |
| 501 | type: std::map<int64_t, uint64_t> |
| 502 | - name: set_ceiling_from_average_sensor_value |
| 503 | map: |
| 504 | value: |
| 505 | - 25000: 7200 |
| 506 | - 27000: 10500 |
| 507 | type: std::map<int64_t, uint64_t> |
| 508 | altevents: |
| 509 | - name: alternate_floor_boundary |
| 510 | groups: |
| 511 | - name: zone0_ambient |
| 512 | zone_conditions: |
| 513 | - name: air_cooled_chassis |
| 514 | zones: |
| 515 | - 0 |
| 516 | interface: xyz.openbmc_project.Sensor.Value |
| 517 | property: |
| 518 | name: Value |
| 519 | type: int64_t |
| 520 | triggers: |
| 521 | - name: init |
| 522 | method: getProperties |
| 523 | handler: setProperty |
| 524 | - name: signal |
| 525 | signal: propertiesChanged |
| 526 | handler: setProperty |
| 527 | actions: |
| 528 | - name: set_floor_from_average_sensor_value |
| 529 | map: |
| 530 | value: |
| 531 | - 27000: 4600 |
| 532 | - 32000: 5000 |
| 533 | - 37000: 5400 |
| 534 | - 40000: 5800 |
| 535 | type: std::map<int64_t, uint64_t> |
| 536 | - name: set_ceiling_from_average_sensor_value |
| 537 | map: |
| 538 | value: |
| 539 | - 25000: 7200 |
| 540 | - 27000: 10500 |
| 541 | type: std::map<int64_t, uint64_t> |
| 542 | - name: set_water_cooled_speed_boundaries_based_on_ambient |
| 543 | groups: |
| 544 | - name: zone0_ambient |
| 545 | zone_conditions: |
| 546 | - name: water_and_air_cooled_chassis |
| 547 | zones: |
| 548 | - 0 |
| 549 | interface: xyz.openbmc_project.Sensor.Value |
| 550 | property: |
| 551 | name: Value |
| 552 | type: int64_t |
| 553 | triggers: |
| 554 | - name: init |
| 555 | method: getProperties |
| 556 | handler: setProperty |
| 557 | - name: signal |
| 558 | signal: propertiesChanged |
| 559 | handler: setProperty |
| 560 | actions: |
| 561 | - name: set_floor_from_average_sensor_value |
| 562 | map: |
| 563 | value: |
| 564 | - 27000: 3000 |
| 565 | - 32000: 4300 |
| 566 | - 37000: 5000 |
| 567 | - 40000: 5800 |
| 568 | type: std::map<int64_t, uint64_t> |
| 569 | - name: set_ceiling_from_average_sensor_value |
| 570 | map: |
| 571 | value: |
| 572 | - 25000: 7200 |
| 573 | - 27000: 10500 |
| 574 | type: std::map<int64_t, uint64_t> |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 575 | - name: occ_active_speed_changes |
Matthew Barth | 362d823 | 2017-08-18 10:39:03 -0500 | [diff] [blame] | 576 | precondition: |
| 577 | name: property_states_match |
| 578 | groups: |
| 579 | - name: occ0_object |
| 580 | interface: org.open_power.OCC.Status |
| 581 | property: |
| 582 | name: OccActive |
| 583 | type: bool |
| 584 | value: true |
| 585 | - name: occ1_object |
| 586 | interface: org.open_power.OCC.Status |
| 587 | property: |
| 588 | name: OccActive |
| 589 | type: bool |
| 590 | value: true |
Matthew Barth | 1a43941 | 2018-10-25 15:33:52 -0500 | [diff] [blame] | 591 | triggers: |
| 592 | - name: init |
| 593 | method: getProperties |
| 594 | handler: setProperty |
| 595 | - name: signal |
| 596 | signal: interfacesAdded |
| 597 | handler: setProperty |
| 598 | - name: signal |
| 599 | signal: propertiesChanged |
| 600 | handler: setProperty |
Matthew Barth | 2e10496 | 2017-09-14 12:32:49 -0500 | [diff] [blame] | 601 | events: |
Matthew Barth | 1a43941 | 2018-10-25 15:33:52 -0500 | [diff] [blame] | 602 | - name: speed_control_sensors |
| 603 | groups: |
| 604 | - name: zone0_regulators |
| 605 | interface: xyz.openbmc_project.Sensor.Value |
| 606 | property: |
| 607 | name: Value |
| 608 | type: int64_t |
| 609 | - name: zone0_pcie |
| 610 | interface: xyz.openbmc_project.Sensor.Value |
| 611 | property: |
| 612 | name: Value |
| 613 | type: int64_t |
| 614 | - name: zone0_cores |
| 615 | zone_conditions: |
| 616 | - name: air_cooled_chassis |
| 617 | zones: |
| 618 | - 0 |
| 619 | interface: xyz.openbmc_project.Sensor.Value |
| 620 | property: |
| 621 | name: Value |
| 622 | type: int64_t |
| 623 | - name: zone0_dimms |
| 624 | interface: xyz.openbmc_project.Sensor.Value |
| 625 | property: |
| 626 | name: Value |
| 627 | type: int64_t |
| 628 | - name: zone0_gpu_cores |
| 629 | zone_conditions: |
| 630 | - name: air_cooled_chassis |
| 631 | zones: |
| 632 | - 0 |
| 633 | interface: xyz.openbmc_project.Sensor.Value |
| 634 | property: |
| 635 | name: Value |
| 636 | type: int64_t |
| 637 | - name: zone0_gpu_memory |
| 638 | zone_conditions: |
| 639 | - name: air_cooled_chassis |
| 640 | zones: |
| 641 | - 0 |
| 642 | interface: xyz.openbmc_project.Sensor.Value |
| 643 | property: |
| 644 | name: Value |
| 645 | type: int64_t |
| 646 | triggers: |
| 647 | - name: init |
| 648 | method: getProperties |
| 649 | handler: setProperty |
| 650 | - name: signal |
| 651 | signal: interfacesAdded |
| 652 | handler: setProperty |
| 653 | - name: signal |
| 654 | signal: propertiesChanged |
| 655 | handler: setProperty |
| 656 | - name: signal |
| 657 | signal: interfacesRemoved |
| 658 | handler: removeInterface |
| 659 | - name: fails_before_high_speed_air |
| 660 | groups: |
| 661 | - name: zone0_cores |
| 662 | zone_conditions: |
| 663 | - name: air_cooled_chassis |
| 664 | zones: |
| 665 | - 0 |
| 666 | interface: xyz.openbmc_project.State.Decorator.OperationalStatus |
| 667 | property: |
| 668 | name: Functional |
| 669 | type: bool |
| 670 | - name: zone0_dimms |
| 671 | interface: xyz.openbmc_project.State.Decorator.OperationalStatus |
| 672 | property: |
| 673 | name: Functional |
| 674 | type: bool |
| 675 | - name: zone0_gpu_cores |
| 676 | zone_conditions: |
| 677 | - name: air_cooled_chassis |
| 678 | zones: |
| 679 | - 0 |
| 680 | interface: xyz.openbmc_project.State.Decorator.OperationalStatus |
| 681 | property: |
| 682 | name: Functional |
| 683 | type: bool |
| 684 | - name: zone0_gpu_memory |
| 685 | zone_conditions: |
| 686 | - name: air_cooled_chassis |
| 687 | zones: |
| 688 | - 0 |
| 689 | interface: xyz.openbmc_project.State.Decorator.OperationalStatus |
| 690 | property: |
| 691 | name: Functional |
| 692 | type: bool |
| 693 | triggers: |
| 694 | - name: init |
| 695 | method: getProperties |
| 696 | handler: setProperty |
| 697 | - name: signal |
| 698 | signal: interfacesAdded |
| 699 | handler: setProperty |
| 700 | - name: signal |
| 701 | signal: propertiesChanged |
| 702 | handler: setProperty |
| 703 | actions: |
| 704 | - name: count_state_before_speed |
| 705 | count: 1 |
| 706 | property: |
| 707 | value: false |
| 708 | type: bool |
| 709 | speed: |
| 710 | value: 10500 |
| 711 | type: uint64_t |
| 712 | - name: 1sec_speed_change_request_sampling |
| 713 | triggers: |
| 714 | - name: timer |
| 715 | interval: 1000000 |
| 716 | type: repeating |
| 717 | actions: |
| 718 | # Speed changes based on regulator temps |
| 719 | - name: set_net_increase_speed |
| 720 | groups: |
| 721 | - name: zone0_regulators |
| 722 | interface: xyz.openbmc_project.Sensor.Value |
| 723 | property: |
| 724 | name: Value |
| 725 | type: int64_t |
| 726 | property: |
| 727 | value: 85000 |
| 728 | type: int64_t |
| 729 | factor: |
| 730 | value: 1000 |
| 731 | type: int64_t |
| 732 | delta: |
| 733 | value: 400 |
| 734 | type: uint64_t |
| 735 | - name: set_net_decrease_speed |
| 736 | groups: |
| 737 | - name: zone0_regulators |
| 738 | interface: xyz.openbmc_project.Sensor.Value |
| 739 | property: |
| 740 | name: Value |
| 741 | type: int64_t |
| 742 | property: |
| 743 | value: 82000 |
| 744 | type: int64_t |
| 745 | factor: |
| 746 | value: 1000 |
| 747 | type: int64_t |
| 748 | delta: |
| 749 | value: 40 |
| 750 | type: uint64_t |
| 751 | # Speed changes based on pcie temps |
| 752 | - name: set_net_increase_speed |
| 753 | groups: |
| 754 | - name: zone0_pcie |
| 755 | interface: xyz.openbmc_project.Sensor.Value |
| 756 | property: |
| 757 | name: Value |
| 758 | type: int64_t |
| 759 | property: |
| 760 | value: 55000 |
| 761 | type: int64_t |
| 762 | factor: |
| 763 | value: 1000 |
| 764 | type: int64_t |
| 765 | delta: |
| 766 | value: 400 |
| 767 | type: uint64_t |
| 768 | - name: set_net_decrease_speed |
| 769 | groups: |
| 770 | - name: zone0_pcie |
| 771 | interface: xyz.openbmc_project.Sensor.Value |
| 772 | property: |
| 773 | name: Value |
| 774 | type: int64_t |
| 775 | property: |
| 776 | value: 52000 |
| 777 | type: int64_t |
| 778 | factor: |
| 779 | value: 1000 |
| 780 | type: int64_t |
| 781 | delta: |
| 782 | value: 40 |
| 783 | type: uint64_t |
| 784 | # Speed changes based on core temps |
| 785 | - name: set_net_increase_speed |
| 786 | groups: |
| 787 | - name: zone0_cores |
| 788 | zone_conditions: |
| 789 | - name: air_cooled_chassis |
| 790 | zones: |
| 791 | - 0 |
| 792 | interface: xyz.openbmc_project.Sensor.Value |
| 793 | property: |
| 794 | name: Value |
| 795 | type: int64_t |
| 796 | property: |
| 797 | value: 73000 |
| 798 | type: int64_t |
| 799 | factor: |
| 800 | value: 1000 |
| 801 | type: int64_t |
| 802 | delta: |
| 803 | value: 400 |
| 804 | type: uint64_t |
| 805 | - name: set_net_decrease_speed |
| 806 | groups: |
| 807 | - name: zone0_cores |
| 808 | zone_conditions: |
| 809 | - name: air_cooled_chassis |
| 810 | zones: |
| 811 | - 0 |
| 812 | interface: xyz.openbmc_project.Sensor.Value |
| 813 | property: |
| 814 | name: Value |
| 815 | type: int64_t |
| 816 | property: |
| 817 | value: 70000 |
| 818 | type: int64_t |
| 819 | factor: |
| 820 | value: 1000 |
| 821 | type: int64_t |
| 822 | delta: |
| 823 | value: 40 |
| 824 | type: uint64_t |
| 825 | # Speed changes based on dimm temps |
| 826 | - name: set_net_increase_speed |
| 827 | groups: |
| 828 | - name: zone0_dimms |
| 829 | interface: xyz.openbmc_project.Sensor.Value |
| 830 | property: |
| 831 | name: Value |
| 832 | type: int64_t |
| 833 | property: |
| 834 | value: 64000 |
| 835 | type: int64_t |
| 836 | factor: |
| 837 | value: 1000 |
| 838 | type: int64_t |
| 839 | delta: |
| 840 | value: 200 |
| 841 | type: uint64_t |
| 842 | - name: set_net_decrease_speed |
| 843 | groups: |
| 844 | - name: zone0_dimms |
| 845 | interface: xyz.openbmc_project.Sensor.Value |
| 846 | property: |
| 847 | name: Value |
| 848 | type: int64_t |
| 849 | property: |
| 850 | value: 61000 |
| 851 | type: int64_t |
| 852 | factor: |
| 853 | value: 1000 |
| 854 | type: int64_t |
| 855 | delta: |
| 856 | value: 40 |
| 857 | type: uint64_t |
| 858 | # Speed changes based on gpu core temps |
| 859 | - name: set_net_increase_speed |
| 860 | groups: |
| 861 | - name: zone0_gpu_cores |
| 862 | zone_conditions: |
| 863 | - name: air_cooled_chassis |
| 864 | zones: |
| 865 | - 0 |
| 866 | interface: xyz.openbmc_project.Sensor.Value |
| 867 | property: |
| 868 | name: Value |
| 869 | type: int64_t |
| 870 | property: |
| 871 | value: 78000 |
| 872 | type: int64_t |
| 873 | factor: |
| 874 | value: 1000 |
| 875 | type: int64_t |
| 876 | delta: |
| 877 | value: 600 |
| 878 | type: uint64_t |
| 879 | - name: set_net_decrease_speed |
| 880 | groups: |
| 881 | - name: zone0_gpu_cores |
| 882 | zone_conditions: |
| 883 | - name: air_cooled_chassis |
| 884 | zones: |
| 885 | - 0 |
| 886 | interface: xyz.openbmc_project.Sensor.Value |
| 887 | property: |
| 888 | name: Value |
| 889 | type: int64_t |
| 890 | property: |
| 891 | value: 75000 |
| 892 | type: int64_t |
| 893 | factor: |
| 894 | value: 1000 |
| 895 | type: int64_t |
| 896 | delta: |
| 897 | value: 40 |
| 898 | type: uint64_t |
| 899 | # Speed changes based on gpu memory temps |
| 900 | - name: set_net_increase_speed |
| 901 | groups: |
| 902 | - name: zone0_gpu_memory |
| 903 | zone_conditions: |
| 904 | - name: air_cooled_chassis |
| 905 | zones: |
| 906 | - 0 |
| 907 | interface: xyz.openbmc_project.Sensor.Value |
| 908 | property: |
| 909 | name: Value |
| 910 | type: int64_t |
| 911 | property: |
| 912 | value: 80000 |
| 913 | type: int64_t |
| 914 | factor: |
| 915 | value: 1000 |
| 916 | type: int64_t |
| 917 | delta: |
| 918 | value: 600 |
| 919 | type: uint64_t |
| 920 | - name: set_net_decrease_speed |
| 921 | groups: |
| 922 | - name: zone0_gpu_memory |
| 923 | zone_conditions: |
| 924 | - name: air_cooled_chassis |
| 925 | zones: |
| 926 | - 0 |
| 927 | interface: xyz.openbmc_project.Sensor.Value |
| 928 | property: |
| 929 | name: Value |
| 930 | type: int64_t |
| 931 | property: |
| 932 | value: 77000 |
| 933 | type: int64_t |
| 934 | factor: |
| 935 | value: 1000 |
| 936 | type: int64_t |
| 937 | delta: |
| 938 | value: 40 |
| 939 | type: uint64_t |