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