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 | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 177 | matches: |
| 178 | - name: propertiesChanged |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 179 | parameters: |
| 180 | - object |
| 181 | - interface |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 182 | - name: interfacesAdded |
| 183 | parameters: |
| 184 | - object |
| 185 | - name: interfacesRemoved |
| 186 | parameters: |
| 187 | - object |
| 188 | - name: nameOwnerChanged |
| 189 | parameters: |
| 190 | - object |
| 191 | - interface |
| 192 | |
| 193 | signals: |
| 194 | - name: propertiesChanged |
| 195 | description: > |
| 196 | A property changed match |
| 197 | parameters: |
| 198 | - type |
| 199 | - object |
| 200 | - interface |
| 201 | - property |
| 202 | match: propertiesChanged |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 203 | - name: interfacesAdded |
| 204 | description: > |
| 205 | An interfaces added match |
| 206 | parameters: |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 207 | - type |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 208 | - object |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 209 | - interface |
| 210 | - property |
| 211 | match: interfacesAdded |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 212 | - name: interfacesRemoved |
| 213 | description: > |
| 214 | An interfaces removed match |
| 215 | parameters: |
| 216 | - object |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 217 | - interface |
| 218 | match: interfacesRemoved |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 219 | - name: nameOwnerChanged |
| 220 | description: > |
| 221 | A name owner changed match |
| 222 | parameters: |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 223 | match: nameOwnerChanged |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 224 | |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 225 | methods: |
| 226 | - name: getProperties |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 227 | description: > |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 228 | Get the property values of the given group members |
| 229 | by performing a `GetProperty` method call on each |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 230 | parameters: |
| 231 | - type |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 232 | - name: nameHasOwner |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 233 | description: > |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 234 | A NameHasOwner method call to be performed on all event group members |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 235 | parameters: |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 236 | |
| 237 | handlers: |
| 238 | - name: setProperty |
| 239 | description: > |
| 240 | Sets a value for the given object/interface/property |
| 241 | parameters: |
| 242 | - type |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 243 | - name: setService |
| 244 | description: > |
| 245 | Sets the service name and ownership status for the given group |
| 246 | parameters: |
| 247 | - group |
| 248 | - name: removeInterface |
| 249 | description: > |
| 250 | Removes an interface(and all associated properties) on the |
| 251 | given object from use within all event actions |
| 252 | parameters: |
| 253 | - object |
| 254 | - interface |
| 255 | |
| 256 | preconditions: |
| 257 | - name: property_states_match |
| 258 | description: > |
| 259 | All defined properties must match the values given to |
| 260 | enable a set speed event otherwise fan speeds are set to full |
| 261 | parameters: |
| 262 | - groups |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 263 | - name: services_missing_owner |
| 264 | description: > |
| 265 | Any services missing an owner enable the events given otherwise |
| 266 | the events are removed/disabled |
| 267 | parameters: |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 268 | |
| 269 | actions: |
| 270 | - name: call_actions_based_on_timer |
| 271 | description: > |
| 272 | Sets up a list of actions to be invoked when the defined timer |
| 273 | expires (or for each expiration of a repeating timer) |
| 274 | parameters: |
| 275 | - timer |
| 276 | - actions |
| 277 | - name: default_floor_on_missing_owner |
| 278 | description: > |
| 279 | Set the fan floor to the default floor |
| 280 | - name: set_speed_on_missing_owner |
| 281 | description: > |
| 282 | Set fans to the given speed when any service within the group |
| 283 | no longer exists |
| 284 | parameters: |
| 285 | - speed |
| 286 | - name: set_request_speed_base_with_max |
| 287 | description: > |
| 288 | Set the base request speed of a zone to the max value of a group for |
| 289 | calculating a new target speed |
| 290 | - name: count_state_before_speed |
| 291 | description: Set the speed when a number of properties at a state |
| 292 | parameters: |
| 293 | - count |
| 294 | - property |
| 295 | - speed |
| 296 | - name: set_floor_from_average_sensor_value |
| 297 | description: Set floor speed from first entry with average less than key |
| 298 | parameters: |
| 299 | - map |
| 300 | - name: set_ceiling_from_average_sensor_value |
| 301 | description: Set ceiling speed based on key transition values with average |
| 302 | parameters: |
| 303 | - map |
| 304 | - name: set_net_increase_speed |
| 305 | description: > |
| 306 | Set the speed increase delta based on a factor applied to |
| 307 | the delta increase size times the given value and property's |
| 308 | value difference |
| 309 | parameters: |
| 310 | - property |
| 311 | - factor |
| 312 | - delta |
| 313 | - name: set_net_decrease_speed |
| 314 | description: > |
| 315 | Set the speed decrease delta based on a factor applied to |
| 316 | the delta decrease size times the given value and property's |
| 317 | value difference |
| 318 | parameters: |
| 319 | - property |
| 320 | - factor |
| 321 | - delta |
| 322 | - name: use_alternate_events_on_state |
| 323 | description: > |
| 324 | Replaces a set of default events with an alternate set of events |
| 325 | when all the group properties are at a given state |
| 326 | parameters: |
| 327 | - property |
| 328 | - defevents |
| 329 | - altevents |
| 330 | |
| 331 | events: |
Ben Pai | d0a123b | 2019-11-28 19:00:09 +0800 | [diff] [blame] | 332 | - name: default_fan_floor_on_service_fail |
| 333 | precondition: |
| 334 | name: services_missing_owner |
| 335 | groups: |
| 336 | - name: zone0_ambient |
| 337 | interface: xyz.openbmc_project.Sensor.Value |
| 338 | property: |
| 339 | name: Value |
| 340 | type: int64_t |
| 341 | triggers: |
| 342 | - name: init |
| 343 | method: nameHasOwner |
| 344 | handler: setService |
| 345 | - name: signal |
| 346 | signal: nameOwnerChanged |
| 347 | handler: setService |
| 348 | events: |
| 349 | - name: default_fan_floor |
| 350 | groups: |
| 351 | - name: zone0_ambient |
| 352 | interface: xyz.openbmc_project.Sensor.Value |
| 353 | property: |
| 354 | name: Value |
| 355 | type: int64_t |
| 356 | triggers: |
| 357 | - name: timer |
| 358 | interval: 5000000 |
| 359 | type: oneshot |
| 360 | actions: |
| 361 | - name: default_floor_on_missing_owner |
| 362 | - name: high_speed_on_occ_service_fails |
| 363 | groups: |
| 364 | - name: occ0_object |
| 365 | interface: org.open_power.OCC.Status |
| 366 | property: |
| 367 | name: OccActive |
| 368 | type: bool |
| 369 | - name: occ1_object |
| 370 | interface: org.open_power.OCC.Status |
| 371 | property: |
| 372 | name: OccActive |
| 373 | type: bool |
| 374 | triggers: |
| 375 | - name: init |
| 376 | method: nameHasOwner |
| 377 | handler: setService |
| 378 | - name: signal |
| 379 | signal: nameOwnerChanged |
| 380 | handler: setService |
| 381 | actions: |
| 382 | - name: call_actions_based_on_timer |
| 383 | timer: |
| 384 | interval: 5000000 |
| 385 | type: oneshot |
| 386 | actions: |
| 387 | - name: set_speed_on_missing_owner |
| 388 | speed: |
| 389 | value: 255 |
| 390 | type: uint64_t |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 391 | - name: missing_or_fails_before_high_speed_air |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 392 | groups: |
| 393 | - name: air_cooled_zone0_fans |
| 394 | zone_conditions: |
| 395 | - name: air_cooled_chassis |
| 396 | zones: |
| 397 | - 0 |
| 398 | interface: xyz.openbmc_project.Inventory.Item |
| 399 | property: |
| 400 | name: Present |
| 401 | type: bool |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 402 | - name: air_cooled_zone0_fans |
| 403 | zone_conditions: |
| 404 | - name: air_cooled_chassis |
| 405 | zones: |
| 406 | - 0 |
| 407 | interface: xyz.openbmc_project.State.Decorator.OperationalStatus |
| 408 | property: |
| 409 | name: Functional |
| 410 | type: bool |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 411 | triggers: |
| 412 | - name: init |
| 413 | method: getProperties |
| 414 | handler: setProperty |
| 415 | - name: signal |
| 416 | signal: propertiesChanged |
| 417 | handler: setProperty |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 418 | actions: |
| 419 | - name: count_state_before_speed |
| 420 | count: 1 |
| 421 | property: |
| 422 | value: false |
| 423 | type: bool |
| 424 | speed: |
| 425 | value: 255 |
| 426 | type: uint64_t |
| 427 | - name: set_air_cooled_speed_boundaries_based_on_ambient |
| 428 | groups: |
| 429 | - name: zone0_control_mode |
| 430 | zone_conditions: |
| 431 | - name: air_cooled_chassis |
| 432 | zones: |
| 433 | - 0 |
| 434 | interface: xyz.openbmc_project.Control.ThermalMode |
| 435 | property: |
| 436 | name: Current |
| 437 | type: std::string |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 438 | triggers: |
| 439 | - name: init |
| 440 | method: getProperties |
| 441 | handler: setProperty |
| 442 | - name: signal |
| 443 | signal: propertiesChanged |
| 444 | handler: setProperty |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 445 | actions: |
| 446 | - name: use_alternate_events_on_state |
| 447 | property: |
| 448 | value: CUSTOM |
| 449 | type: std::string |
| 450 | defevents: |
| 451 | - name: default_floor_boundary |
| 452 | groups: |
| 453 | - name: zone0_ambient |
| 454 | zone_conditions: |
| 455 | - name: air_cooled_chassis |
| 456 | zones: |
| 457 | - 0 |
| 458 | interface: xyz.openbmc_project.Sensor.Value |
| 459 | property: |
| 460 | name: Value |
| 461 | type: int64_t |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 462 | triggers: |
| 463 | - name: init |
| 464 | method: getProperties |
| 465 | handler: setProperty |
| 466 | - name: signal |
| 467 | signal: propertiesChanged |
| 468 | handler: setProperty |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 469 | actions: |
| 470 | - name: set_floor_from_average_sensor_value |
| 471 | map: |
| 472 | value: |
| 473 | - 25000: 85 |
| 474 | - 26000: 85 |
| 475 | - 28000: 97 |
| 476 | - 31000: 116 |
| 477 | - 33000: 128 |
| 478 | - 36000: 148 |
| 479 | - 38000: 160 |
| 480 | - 41000: 255 |
| 481 | type: std::map<int64_t, uint64_t> |
| 482 | - name: set_ceiling_from_average_sensor_value |
| 483 | map: |
| 484 | value: |
| 485 | - 25000: 255 |
| 486 | - 27000: 255 |
| 487 | type: std::map<int64_t, uint64_t> |
| 488 | altevents: |
| 489 | - name: alternate_floor_boundary |
| 490 | groups: |
| 491 | - name: zone0_ambient |
| 492 | zone_conditions: |
| 493 | - name: air_cooled_chassis |
| 494 | zones: |
| 495 | - 0 |
| 496 | interface: xyz.openbmc_project.Sensor.Value |
| 497 | property: |
| 498 | name: Value |
| 499 | type: int64_t |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 500 | triggers: |
| 501 | - name: init |
| 502 | method: getProperties |
| 503 | handler: setProperty |
| 504 | - name: signal |
| 505 | signal: propertiesChanged |
| 506 | handler: setProperty |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 507 | actions: |
| 508 | - name: set_floor_from_average_sensor_value |
| 509 | map: |
| 510 | value: |
| 511 | - 25000: 255 |
| 512 | - 26000: 255 |
| 513 | - 28000: 255 |
| 514 | - 31000: 255 |
| 515 | - 33000: 255 |
| 516 | - 36000: 255 |
| 517 | - 38000: 255 |
| 518 | - 41000: 255 |
| 519 | type: std::map<int64_t, uint64_t> |
| 520 | - name: set_ceiling_from_average_sensor_value |
| 521 | map: |
| 522 | value: |
| 523 | - 25000: 255 |
| 524 | - 27000: 255 |
| 525 | type: std::map<int64_t, uint64_t> |
| 526 | - name: occ_active_speed_changes |
| 527 | precondition: |
| 528 | name: property_states_match |
| 529 | groups: |
| 530 | - name: occ0_object |
| 531 | interface: org.open_power.OCC.Status |
| 532 | property: |
| 533 | name: OccActive |
| 534 | type: bool |
| 535 | value: true |
| 536 | - name: occ1_object |
| 537 | interface: org.open_power.OCC.Status |
| 538 | property: |
| 539 | name: OccActive |
| 540 | type: bool |
| 541 | value: true |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 542 | triggers: |
| 543 | - name: init |
| 544 | method: getProperties |
| 545 | handler: setProperty |
| 546 | - name: signal |
| 547 | signal: interfacesAdded |
| 548 | handler: setProperty |
| 549 | - name: signal |
| 550 | signal: propertiesChanged |
| 551 | handler: setProperty |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 552 | events: |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 553 | - name: speed_control_sensors |
| 554 | groups: |
| 555 | - name: zone0_onboard |
| 556 | interface: xyz.openbmc_project.Sensor.Value |
| 557 | property: |
| 558 | name: Value |
| 559 | type: int64_t |
| 560 | - name: zone0_vrd |
| 561 | interface: xyz.openbmc_project.Sensor.Value |
| 562 | property: |
| 563 | name: Value |
| 564 | type: int64_t |
| 565 | - name: zone0_cores |
| 566 | interface: xyz.openbmc_project.Sensor.Value |
| 567 | property: |
| 568 | name: Value |
| 569 | type: int64_t |
| 570 | - name: zone0_dimms |
| 571 | interface: xyz.openbmc_project.Sensor.Value |
| 572 | property: |
| 573 | name: Value |
| 574 | type: int64_t |
Ben_Pai | 2ecdfbd | 2019-09-27 10:08:18 +0800 | [diff] [blame] | 575 | - name: zone0_gpu |
| 576 | interface: xyz.openbmc_project.Sensor.Value |
| 577 | property: |
| 578 | name: Value |
| 579 | type: int64_t |
Ben Pai | 4dc75c9 | 2020-02-27 13:02:36 +0800 | [diff] [blame] | 580 | - name: zone0_nvme |
| 581 | interface: xyz.openbmc_project.Sensor.Value |
| 582 | property: |
| 583 | name: Value |
| 584 | type: int64_t |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 585 | triggers: |
| 586 | - name: init |
| 587 | method: getProperties |
| 588 | handler: setProperty |
| 589 | - name: signal |
| 590 | signal: interfacesAdded |
| 591 | handler: setProperty |
| 592 | - name: signal |
| 593 | signal: propertiesChanged |
| 594 | handler: setProperty |
| 595 | - name: signal |
| 596 | signal: interfacesRemoved |
| 597 | handler: removeInterface |
| 598 | - name: fails_before_high_speed_air |
| 599 | groups: |
| 600 | - name: zone0_cores |
| 601 | interface: xyz.openbmc_project.State.Decorator.OperationalStatus |
| 602 | property: |
| 603 | name: Functional |
| 604 | type: bool |
| 605 | - name: zone0_dimms |
| 606 | interface: xyz.openbmc_project.State.Decorator.OperationalStatus |
| 607 | property: |
| 608 | name: Functional |
| 609 | type: bool |
| 610 | triggers: |
| 611 | - name: init |
| 612 | method: getProperties |
| 613 | handler: setProperty |
| 614 | - name: signal |
| 615 | signal: interfacesAdded |
| 616 | handler: setProperty |
| 617 | - name: signal |
| 618 | signal: propertiesChanged |
| 619 | handler: setProperty |
| 620 | actions: |
| 621 | - name: count_state_before_speed |
| 622 | count: 1 |
| 623 | property: |
| 624 | value: false |
| 625 | type: bool |
| 626 | speed: |
| 627 | value: 255 |
| 628 | type: uint64_t |
| 629 | - name: 1sec_speed_change_request_sampling |
| 630 | triggers: |
| 631 | - name: timer |
| 632 | interval: 1000000 |
| 633 | type: repeating |
| 634 | actions: |
| 635 | # Speed changes based on onboard temps |
| 636 | - name: set_net_increase_speed |
| 637 | groups: |
| 638 | - name: zone0_onboard |
| 639 | interface: xyz.openbmc_project.Sensor.Value |
| 640 | property: |
| 641 | name: Value |
| 642 | type: int64_t |
| 643 | property: |
Ben_Pai | f242630 | 2019-11-15 10:49:32 +0800 | [diff] [blame] | 644 | value: 55000 |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 645 | type: int64_t |
| 646 | factor: |
| 647 | value: 1000 |
| 648 | type: int64_t |
| 649 | delta: |
| 650 | value: 8 |
| 651 | type: uint64_t |
| 652 | - name: set_net_decrease_speed |
| 653 | groups: |
| 654 | - name: zone0_onboard |
| 655 | interface: xyz.openbmc_project.Sensor.Value |
| 656 | property: |
| 657 | name: Value |
| 658 | type: int64_t |
| 659 | property: |
Ben_Pai | f242630 | 2019-11-15 10:49:32 +0800 | [diff] [blame] | 660 | value: 52000 |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 661 | type: int64_t |
| 662 | factor: |
Ben_Pai | f242630 | 2019-11-15 10:49:32 +0800 | [diff] [blame] | 663 | value: 1000 |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 664 | type: int64_t |
| 665 | delta: |
| 666 | value: 3 |
| 667 | type: uint64_t |
| 668 | # Speed changes based on vrd temps |
| 669 | - name: set_net_increase_speed |
| 670 | groups: |
| 671 | - name: zone0_vrd |
| 672 | interface: xyz.openbmc_project.Sensor.Value |
| 673 | property: |
| 674 | name: Value |
| 675 | type: int64_t |
| 676 | property: |
| 677 | value: 90000 |
| 678 | type: int64_t |
| 679 | factor: |
| 680 | value: 1000 |
| 681 | type: int64_t |
| 682 | delta: |
| 683 | value: 5 |
| 684 | type: uint64_t |
| 685 | - name: set_net_decrease_speed |
| 686 | groups: |
| 687 | - name: zone0_vrd |
| 688 | interface: xyz.openbmc_project.Sensor.Value |
| 689 | property: |
| 690 | name: Value |
| 691 | type: int64_t |
| 692 | property: |
| 693 | value: 85000 |
| 694 | type: int64_t |
| 695 | factor: |
| 696 | value: 3000 |
| 697 | type: int64_t |
| 698 | delta: |
| 699 | value: 3 |
| 700 | type: uint64_t |
| 701 | # Speed changes based on core temps |
| 702 | - name: set_net_increase_speed |
| 703 | groups: |
| 704 | - name: zone0_cores |
| 705 | zone_conditions: |
| 706 | - name: air_cooled_chassis |
| 707 | zones: |
| 708 | - 0 |
| 709 | interface: xyz.openbmc_project.Sensor.Value |
| 710 | property: |
| 711 | name: Value |
| 712 | type: int64_t |
| 713 | property: |
| 714 | value: 75000 |
| 715 | type: int64_t |
| 716 | factor: |
| 717 | value: 1000 |
| 718 | type: int64_t |
| 719 | delta: |
| 720 | value: 13 |
| 721 | type: uint64_t |
| 722 | - name: set_net_decrease_speed |
| 723 | groups: |
| 724 | - name: zone0_cores |
| 725 | zone_conditions: |
| 726 | - name: air_cooled_chassis |
| 727 | zones: |
| 728 | - 0 |
| 729 | interface: xyz.openbmc_project.Sensor.Value |
| 730 | property: |
| 731 | name: Value |
| 732 | type: int64_t |
| 733 | property: |
| 734 | value: 70000 |
| 735 | type: int64_t |
| 736 | factor: |
Ben_Pai | f242630 | 2019-11-15 10:49:32 +0800 | [diff] [blame] | 737 | value: 4000 |
Ben_Pai | 3e3ec10 | 2019-09-03 14:17:12 +0800 | [diff] [blame] | 738 | type: int64_t |
| 739 | delta: |
| 740 | value: 5 |
| 741 | type: uint64_t |
| 742 | # Speed changes based on dimm temps |
| 743 | - name: set_net_increase_speed |
| 744 | groups: |
| 745 | - name: zone0_dimms |
| 746 | interface: xyz.openbmc_project.Sensor.Value |
| 747 | property: |
| 748 | name: Value |
| 749 | type: int64_t |
| 750 | property: |
| 751 | value: 80000 |
| 752 | type: int64_t |
| 753 | factor: |
| 754 | value: 1000 |
| 755 | type: int64_t |
| 756 | delta: |
| 757 | value: 8 |
| 758 | type: uint64_t |
| 759 | - name: set_net_decrease_speed |
| 760 | groups: |
| 761 | - name: zone0_dimms |
| 762 | interface: xyz.openbmc_project.Sensor.Value |
| 763 | property: |
| 764 | name: Value |
| 765 | type: int64_t |
| 766 | property: |
| 767 | value: 75000 |
| 768 | type: int64_t |
| 769 | factor: |
| 770 | value: 3000 |
| 771 | type: int64_t |
| 772 | delta: |
| 773 | value: 3 |
| 774 | type: uint64_t |
Ben_Pai | 2ecdfbd | 2019-09-27 10:08:18 +0800 | [diff] [blame] | 775 | # Speed changes based on gpu temps |
| 776 | - name: set_net_increase_speed |
| 777 | groups: |
| 778 | - name: zone0_gpu |
| 779 | interface: xyz.openbmc_project.Sensor.Value |
| 780 | property: |
| 781 | name: Value |
| 782 | type: int64_t |
| 783 | property: |
Ben_Pai | f242630 | 2019-11-15 10:49:32 +0800 | [diff] [blame] | 784 | value: 80 |
Ben_Pai | 2ecdfbd | 2019-09-27 10:08:18 +0800 | [diff] [blame] | 785 | type: int64_t |
| 786 | factor: |
| 787 | value: 1 |
| 788 | type: int64_t |
| 789 | delta: |
| 790 | value: 13 |
| 791 | type: uint64_t |
| 792 | - name: set_net_decrease_speed |
| 793 | groups: |
| 794 | - name: zone0_gpu |
| 795 | interface: xyz.openbmc_project.Sensor.Value |
| 796 | property: |
| 797 | name: Value |
| 798 | type: int64_t |
| 799 | property: |
Ben_Pai | f242630 | 2019-11-15 10:49:32 +0800 | [diff] [blame] | 800 | value: 77 |
Ben_Pai | 2ecdfbd | 2019-09-27 10:08:18 +0800 | [diff] [blame] | 801 | type: int64_t |
| 802 | factor: |
| 803 | value: 4 |
| 804 | type: int64_t |
| 805 | delta: |
| 806 | value: 5 |
| 807 | type: uint64_t |
Ben Pai | 4dc75c9 | 2020-02-27 13:02:36 +0800 | [diff] [blame] | 808 | # Speed changes based on nvme temps |
| 809 | - name: set_net_increase_speed |
| 810 | groups: |
| 811 | - name: zone0_nvme |
| 812 | interface: xyz.openbmc_project.Sensor.Value |
| 813 | property: |
| 814 | name: Value |
| 815 | type: int64_t |
| 816 | property: |
| 817 | value: 55 |
| 818 | type: int64_t |
| 819 | factor: |
| 820 | value: 1 |
| 821 | type: int64_t |
| 822 | delta: |
| 823 | value: 13 |
| 824 | type: uint64_t |
| 825 | - name: set_net_decrease_speed |
| 826 | groups: |
| 827 | - name: zone0_nvme |
| 828 | interface: xyz.openbmc_project.Sensor.Value |
| 829 | property: |
| 830 | name: Value |
| 831 | type: int64_t |
| 832 | property: |
| 833 | value: 52 |
| 834 | type: int64_t |
| 835 | factor: |
| 836 | value: 3 |
| 837 | type: int64_t |
| 838 | delta: |
| 839 | value: 5 |
| 840 | type: uint64_t |