Matthew Barth | f0f213c | 2021-10-19 13:32:31 -0500 | [diff] [blame] | 1 | [ |
| 2 | { |
| 3 | // Hold fans at the given target when a number of fans are missing. |
| 4 | "name": "fan(s) missing", |
| 5 | "groups": [ |
| 6 | { |
| 7 | "name": "fan inventory", |
| 8 | "interface": "xyz.openbmc_project.Inventory.Item", |
| 9 | "property": { "name": "Present" } |
| 10 | } |
| 11 | ], |
| 12 | "triggers": [ |
| 13 | { |
| 14 | "class": "init", |
| 15 | "method": "get_properties" |
| 16 | }, |
| 17 | { |
| 18 | "class": "signal", |
| 19 | "signal": "properties_changed" |
| 20 | } |
| 21 | ], |
| 22 | "actions": [ |
| 23 | { |
| 24 | "name": "count_state_before_target", |
| 25 | "count": 1, |
| 26 | "state": false, |
Matthew Barth | c219ae0 | 2021-12-15 12:19:31 -0600 | [diff] [blame] | 27 | "target": 17250 |
Matthew Barth | f0f213c | 2021-10-19 13:32:31 -0500 | [diff] [blame] | 28 | } |
| 29 | ] |
Matthew Barth | 991020b | 2021-10-19 13:34:33 -0500 | [diff] [blame] | 30 | }, |
| 31 | { |
| 32 | // Hold fans at the given target when a number of rotors are nonfunctional. |
| 33 | "name": "fan rotor(s) faulted", |
| 34 | "groups": [ |
| 35 | { |
| 36 | "name": "fan0 rotor inventory", |
| 37 | "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| 38 | "property": { "name": "Functional" } |
| 39 | }, |
| 40 | { |
| 41 | "name": "fan1 rotor inventory", |
| 42 | "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| 43 | "property": { "name": "Functional" } |
| 44 | }, |
| 45 | { |
| 46 | "name": "fan2 rotor inventory", |
| 47 | "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| 48 | "property": { "name": "Functional" } |
| 49 | }, |
| 50 | { |
| 51 | "name": "fan3 rotor inventory", |
| 52 | "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| 53 | "property": { "name": "Functional" } |
| 54 | }, |
| 55 | { |
| 56 | "name": "fan4 rotor inventory", |
| 57 | "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| 58 | "property": { "name": "Functional" } |
| 59 | }, |
| 60 | { |
| 61 | "name": "fan5 rotor inventory", |
| 62 | "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| 63 | "property": { "name": "Functional" } |
| 64 | } |
| 65 | ], |
| 66 | "triggers": [ |
| 67 | { |
| 68 | "class": "init", |
| 69 | "method": "get_properties" |
| 70 | }, |
| 71 | { |
| 72 | "class": "signal", |
| 73 | "signal": "properties_changed" |
| 74 | } |
| 75 | ], |
| 76 | "actions": [ |
| 77 | { |
| 78 | "name": "count_state_before_target", |
| 79 | "count": 1, |
| 80 | "state": false, |
Matthew Barth | c219ae0 | 2021-12-15 12:19:31 -0600 | [diff] [blame] | 81 | "target": 17250 |
Matthew Barth | 991020b | 2021-10-19 13:34:33 -0500 | [diff] [blame] | 82 | } |
| 83 | ] |
Matthew Barth | 09b09e5 | 2021-10-28 15:29:13 -0500 | [diff] [blame] | 84 | }, |
| 85 | { |
| 86 | // Hold fans at the given target when any critical service |
| 87 | // is not running for 5 seconds. |
| 88 | "name": "service(s) missing", |
| 89 | "groups": [ |
| 90 | { |
Matthew Barth | f3a6d45 | 2021-11-23 14:41:43 -0600 | [diff] [blame] | 91 | "name": "fan inventory", |
| 92 | "interface": "xyz.openbmc_project.Inventory.Item", |
| 93 | "property": { "name": "Present" } |
| 94 | }, |
| 95 | { |
Matthew Barth | 09b09e5 | 2021-10-28 15:29:13 -0500 | [diff] [blame] | 96 | "name": "occ objects", |
| 97 | "interface": "org.open_power.OCC.Status", |
| 98 | "property": { "name": "OccActive" } |
| 99 | } |
| 100 | ], |
| 101 | "triggers": [ |
| 102 | { |
| 103 | "class": "init", |
| 104 | "method": "name_has_owner" |
| 105 | }, |
| 106 | { |
| 107 | "class": "signal", |
| 108 | "signal": "name_owner_changed" |
| 109 | } |
| 110 | ], |
| 111 | "actions": [ |
| 112 | { |
| 113 | "name": "call_actions_based_on_timer", |
| 114 | "timer": { |
| 115 | "interval": 5000000, |
| 116 | "type": "oneshot" |
| 117 | }, |
| 118 | "actions": [ |
| 119 | { |
| 120 | "name": "set_target_on_missing_owner", |
| 121 | "groups": [ |
| 122 | { |
| 123 | "name": "fan inventory", |
| 124 | "interface": "xyz.openbmc_project.Inventory.Item", |
| 125 | "property": { "name": "Present" } |
| 126 | }, |
| 127 | { |
| 128 | "name": "occ objects", |
| 129 | "interface": "org.open_power.OCC.Status", |
| 130 | "property": { "name": "OccActive" } |
| 131 | } |
| 132 | ], |
Matthew Barth | c219ae0 | 2021-12-15 12:19:31 -0600 | [diff] [blame] | 133 | "target": 17250 |
Matthew Barth | 09b09e5 | 2021-10-28 15:29:13 -0500 | [diff] [blame] | 134 | } |
| 135 | ] |
| 136 | } |
| 137 | ] |
Matt Spinler | 5934f09 | 2021-11-03 14:30:28 -0500 | [diff] [blame] | 138 | }, |
| 139 | { |
| 140 | // Set a fan floor if an OCC isn't active |
| 141 | "name": "Non-active OCCs", |
| 142 | "groups": [ |
| 143 | { |
| 144 | "name": "occ objects", |
| 145 | "interface": "org.open_power.OCC.Status", |
| 146 | "property": { |
| 147 | "name": "OccActive" |
| 148 | } |
| 149 | } |
| 150 | ], |
| 151 | "triggers": [ |
| 152 | { |
| 153 | "class": "signal", |
| 154 | "signal": "properties_changed" |
| 155 | }, |
| 156 | { |
| 157 | "class": "signal", |
| 158 | "signal": "interfaces_added" |
| 159 | }, |
| 160 | { |
| 161 | "class": "init", |
| 162 | "method": "get_properties" |
| 163 | } |
| 164 | ], |
| 165 | "actions": [ |
| 166 | { |
| 167 | "name": "count_state_floor", |
| 168 | "count": 1, |
| 169 | "state": false, |
Matthew Barth | c219ae0 | 2021-12-15 12:19:31 -0600 | [diff] [blame] | 170 | "floor": 17250 |
Matt Spinler | 5934f09 | 2021-11-03 14:30:28 -0500 | [diff] [blame] | 171 | } |
| 172 | ] |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 173 | }, |
| 174 | { |
| 175 | "name": "Set Proc 0 Core DVFS parameter", |
| 176 | "groups": [ |
| 177 | { |
| 178 | "name": "proc 0 core dvfs temp", |
| 179 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 180 | "property": { "name": "Value" } |
| 181 | } |
| 182 | ], |
| 183 | "triggers": [ |
| 184 | { |
| 185 | "class": "init", |
| 186 | "method": "get_properties" |
| 187 | }, |
| 188 | { |
| 189 | "class": "signal", |
| 190 | "signal": "interfaces_added" |
| 191 | }, |
| 192 | { |
| 193 | "class": "signal", |
| 194 | "signal": "properties_changed" |
| 195 | } |
| 196 | ], |
| 197 | "actions": [ |
| 198 | { |
| 199 | "name": "set_parameter_from_group_max", |
Matthew Barth | a0a72b1 | 2021-12-01 21:18:13 -0600 | [diff] [blame] | 200 | "parameter_name": "proc_0_core_dvfs_increase_temp", |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 201 | "modifier": { |
| 202 | "operator": "minus", |
Matthew Barth | a0a72b1 | 2021-12-01 21:18:13 -0600 | [diff] [blame] | 203 | "value": 10 |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 204 | } |
Matthew Barth | dcf3973 | 2021-12-01 21:58:59 -0600 | [diff] [blame] | 205 | }, |
| 206 | { |
| 207 | "name": "set_parameter_from_group_max", |
| 208 | "parameter_name": "proc_0_core_dvfs_decrease_temp", |
| 209 | "modifier": { |
| 210 | "operator": "minus", |
| 211 | "value": 13 |
| 212 | } |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 213 | } |
| 214 | ] |
| 215 | }, |
| 216 | { |
| 217 | "name": "Set Proc 1 Core DVFS parameter", |
| 218 | "groups": [ |
| 219 | { |
| 220 | "name": "proc 1 core dvfs temp", |
| 221 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 222 | "property": { "name": "Value" } |
| 223 | } |
| 224 | ], |
| 225 | "triggers": [ |
| 226 | { |
| 227 | "class": "init", |
| 228 | "method": "get_properties" |
| 229 | }, |
| 230 | { |
| 231 | "class": "signal", |
| 232 | "signal": "interfaces_added" |
| 233 | }, |
| 234 | { |
| 235 | "class": "signal", |
| 236 | "signal": "properties_changed" |
| 237 | } |
| 238 | ], |
| 239 | "actions": [ |
| 240 | { |
| 241 | "name": "set_parameter_from_group_max", |
Matthew Barth | a0a72b1 | 2021-12-01 21:18:13 -0600 | [diff] [blame] | 242 | "parameter_name": "proc_1_core_dvfs_increase_temp", |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 243 | "modifier": { |
| 244 | "operator": "minus", |
Matthew Barth | a0a72b1 | 2021-12-01 21:18:13 -0600 | [diff] [blame] | 245 | "value": 10 |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 246 | } |
Matthew Barth | dcf3973 | 2021-12-01 21:58:59 -0600 | [diff] [blame] | 247 | }, |
| 248 | { |
| 249 | "name": "set_parameter_from_group_max", |
| 250 | "parameter_name": "proc_1_core_dvfs_decrease_temp", |
| 251 | "modifier": { |
| 252 | "operator": "minus", |
| 253 | "value": 13 |
| 254 | } |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 255 | } |
| 256 | ] |
| 257 | }, |
| 258 | { |
| 259 | "name": "Set Proc 2 Core DVFS parameter", |
| 260 | "groups": [ |
| 261 | { |
| 262 | "name": "proc 2 core dvfs temp", |
| 263 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 264 | "property": { "name": "Value" } |
| 265 | } |
| 266 | ], |
| 267 | "triggers": [ |
| 268 | { |
| 269 | "class": "init", |
| 270 | "method": "get_properties" |
| 271 | }, |
| 272 | { |
| 273 | "class": "signal", |
| 274 | "signal": "interfaces_added" |
| 275 | }, |
| 276 | { |
| 277 | "class": "signal", |
| 278 | "signal": "properties_changed" |
| 279 | } |
| 280 | ], |
| 281 | "actions": [ |
| 282 | { |
| 283 | "name": "set_parameter_from_group_max", |
Matthew Barth | a0a72b1 | 2021-12-01 21:18:13 -0600 | [diff] [blame] | 284 | "parameter_name": "proc_2_core_dvfs_increase_temp", |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 285 | "modifier": { |
| 286 | "operator": "minus", |
Matthew Barth | a0a72b1 | 2021-12-01 21:18:13 -0600 | [diff] [blame] | 287 | "value": 10 |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 288 | } |
Matthew Barth | dcf3973 | 2021-12-01 21:58:59 -0600 | [diff] [blame] | 289 | }, |
| 290 | { |
| 291 | "name": "set_parameter_from_group_max", |
| 292 | "parameter_name": "proc_2_core_dvfs_decrease_temp", |
| 293 | "modifier": { |
| 294 | "operator": "minus", |
| 295 | "value": 13 |
| 296 | } |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 297 | } |
| 298 | ] |
| 299 | }, |
| 300 | { |
| 301 | "name": "Set Proc 3 Core DVFS parameter", |
| 302 | "groups": [ |
| 303 | { |
| 304 | "name": "proc 3 core dvfs temp", |
| 305 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 306 | "property": { "name": "Value" } |
| 307 | } |
| 308 | ], |
| 309 | "triggers": [ |
| 310 | { |
| 311 | "class": "init", |
| 312 | "method": "get_properties" |
| 313 | }, |
| 314 | { |
| 315 | "class": "signal", |
| 316 | "signal": "interfaces_added" |
| 317 | }, |
| 318 | { |
| 319 | "class": "signal", |
| 320 | "signal": "properties_changed" |
| 321 | } |
| 322 | ], |
| 323 | "actions": [ |
| 324 | { |
| 325 | "name": "set_parameter_from_group_max", |
Matthew Barth | a0a72b1 | 2021-12-01 21:18:13 -0600 | [diff] [blame] | 326 | "parameter_name": "proc_3_core_dvfs_increase_temp", |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 327 | "modifier": { |
| 328 | "operator": "minus", |
Matthew Barth | a0a72b1 | 2021-12-01 21:18:13 -0600 | [diff] [blame] | 329 | "value": 10 |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 330 | } |
Matthew Barth | dcf3973 | 2021-12-01 21:58:59 -0600 | [diff] [blame] | 331 | }, |
| 332 | { |
| 333 | "name": "set_parameter_from_group_max", |
| 334 | "parameter_name": "proc_3_core_dvfs_decrease_temp", |
| 335 | "modifier": { |
| 336 | "operator": "minus", |
| 337 | "value": 13 |
| 338 | } |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 339 | } |
| 340 | ] |
| 341 | }, |
| 342 | { |
| 343 | "name": "Set Proc 0 IO Ring DVFS parameter", |
| 344 | "groups": [ |
| 345 | { |
| 346 | "name": "proc 0 ioring dvfs temp", |
| 347 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 348 | "property": { "name": "Value" } |
| 349 | } |
| 350 | ], |
| 351 | "triggers": [ |
| 352 | { |
| 353 | "class": "init", |
| 354 | "method": "get_properties" |
| 355 | }, |
| 356 | { |
| 357 | "class": "signal", |
| 358 | "signal": "interfaces_added" |
| 359 | }, |
| 360 | { |
| 361 | "class": "signal", |
| 362 | "signal": "properties_changed" |
| 363 | } |
| 364 | ], |
| 365 | "actions": [ |
| 366 | { |
| 367 | "name": "set_parameter_from_group_max", |
Matthew Barth | a0a72b1 | 2021-12-01 21:18:13 -0600 | [diff] [blame] | 368 | "parameter_name": "proc_0_ioring_dvfs_increase_temp", |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 369 | "modifier": { |
| 370 | "operator": "minus", |
Matthew Barth | a0a72b1 | 2021-12-01 21:18:13 -0600 | [diff] [blame] | 371 | "value": 10 |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 372 | } |
Matthew Barth | dcf3973 | 2021-12-01 21:58:59 -0600 | [diff] [blame] | 373 | }, |
| 374 | { |
| 375 | "name": "set_parameter_from_group_max", |
| 376 | "parameter_name": "proc_0_ioring_dvfs_decrease_temp", |
| 377 | "modifier": { |
| 378 | "operator": "minus", |
| 379 | "value": 13 |
| 380 | } |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 381 | } |
| 382 | ] |
| 383 | }, |
| 384 | { |
| 385 | "name": "Set Proc 1 IO Ring DVFS parameter", |
| 386 | "groups": [ |
| 387 | { |
| 388 | "name": "proc 1 ioring dvfs temp", |
| 389 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 390 | "property": { "name": "Value" } |
| 391 | } |
| 392 | ], |
| 393 | "triggers": [ |
| 394 | { |
| 395 | "class": "init", |
| 396 | "method": "get_properties" |
| 397 | }, |
| 398 | { |
| 399 | "class": "signal", |
| 400 | "signal": "interfaces_added" |
| 401 | }, |
| 402 | { |
| 403 | "class": "signal", |
| 404 | "signal": "properties_changed" |
| 405 | } |
| 406 | ], |
| 407 | "actions": [ |
| 408 | { |
| 409 | "name": "set_parameter_from_group_max", |
Matthew Barth | a0a72b1 | 2021-12-01 21:18:13 -0600 | [diff] [blame] | 410 | "parameter_name": "proc_1_ioring_dvfs_increase_temp", |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 411 | "modifier": { |
| 412 | "operator": "minus", |
Matthew Barth | a0a72b1 | 2021-12-01 21:18:13 -0600 | [diff] [blame] | 413 | "value": 10 |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 414 | } |
Matthew Barth | dcf3973 | 2021-12-01 21:58:59 -0600 | [diff] [blame] | 415 | }, |
| 416 | { |
| 417 | "name": "set_parameter_from_group_max", |
| 418 | "parameter_name": "proc_1_ioring_dvfs_decrease_temp", |
| 419 | "modifier": { |
| 420 | "operator": "minus", |
| 421 | "value": 13 |
| 422 | } |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 423 | } |
| 424 | ] |
| 425 | }, |
| 426 | { |
| 427 | "name": "Set Proc 2 IO Ring DVFS parameter", |
| 428 | "groups": [ |
| 429 | { |
| 430 | "name": "proc 2 ioring dvfs temp", |
| 431 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 432 | "property": { "name": "Value" } |
| 433 | } |
| 434 | ], |
| 435 | "triggers": [ |
| 436 | { |
| 437 | "class": "init", |
| 438 | "method": "get_properties" |
| 439 | }, |
| 440 | { |
| 441 | "class": "signal", |
| 442 | "signal": "interfaces_added" |
| 443 | }, |
| 444 | { |
| 445 | "class": "signal", |
| 446 | "signal": "properties_changed" |
| 447 | } |
| 448 | ], |
| 449 | "actions": [ |
| 450 | { |
| 451 | "name": "set_parameter_from_group_max", |
Matthew Barth | a0a72b1 | 2021-12-01 21:18:13 -0600 | [diff] [blame] | 452 | "parameter_name": "proc_2_ioring_dvfs_increase_temp", |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 453 | "modifier": { |
| 454 | "operator": "minus", |
Matthew Barth | a0a72b1 | 2021-12-01 21:18:13 -0600 | [diff] [blame] | 455 | "value": 10 |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 456 | } |
Matthew Barth | dcf3973 | 2021-12-01 21:58:59 -0600 | [diff] [blame] | 457 | }, |
| 458 | { |
| 459 | "name": "set_parameter_from_group_max", |
| 460 | "parameter_name": "proc_2_ioring_dvfs_decrease_temp", |
| 461 | "modifier": { |
| 462 | "operator": "minus", |
| 463 | "value": 13 |
| 464 | } |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 465 | } |
| 466 | ] |
| 467 | }, |
| 468 | { |
| 469 | "name": "Set Proc 3 IO Ring DVFS parameter", |
| 470 | "groups": [ |
| 471 | { |
| 472 | "name": "proc 3 ioring dvfs temp", |
| 473 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 474 | "property": { "name": "Value" } |
| 475 | } |
| 476 | ], |
| 477 | "triggers": [ |
| 478 | { |
| 479 | "class": "init", |
| 480 | "method": "get_properties" |
| 481 | }, |
| 482 | { |
| 483 | "class": "signal", |
| 484 | "signal": "properties_changed" |
| 485 | }, |
| 486 | { |
| 487 | "class": "signal", |
| 488 | "signal": "interfaces_added" |
| 489 | } |
| 490 | ], |
| 491 | "actions": [ |
| 492 | { |
| 493 | "name": "set_parameter_from_group_max", |
Matthew Barth | a0a72b1 | 2021-12-01 21:18:13 -0600 | [diff] [blame] | 494 | "parameter_name": "proc_3_ioring_dvfs_increase_temp", |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 495 | "modifier": { |
| 496 | "operator": "minus", |
Matthew Barth | a0a72b1 | 2021-12-01 21:18:13 -0600 | [diff] [blame] | 497 | "value": 10 |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 498 | } |
Matthew Barth | dcf3973 | 2021-12-01 21:58:59 -0600 | [diff] [blame] | 499 | }, |
| 500 | { |
| 501 | "name": "set_parameter_from_group_max", |
| 502 | "parameter_name": "proc_3_ioring_dvfs_decrease_temp", |
| 503 | "modifier": { |
| 504 | "operator": "minus", |
| 505 | "value": 13 |
| 506 | } |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 507 | } |
| 508 | ] |
Matthew Barth | b6f1035 | 2021-12-02 17:42:49 -0600 | [diff] [blame] | 509 | }, |
| 510 | { |
| 511 | // Collect group temperatures each iteration the repeating timer expires |
| 512 | "name": "Fan control timer loop", |
| 513 | "groups": [ |
| 514 | { |
| 515 | "name": "proc0 core temps", |
| 516 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 517 | "property": { "name": "Value" } |
| 518 | }, |
| 519 | { |
| 520 | "name": "proc1 core temps", |
| 521 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 522 | "property": { "name": "Value" } |
| 523 | }, |
| 524 | { |
| 525 | "name": "proc2 core temps", |
| 526 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 527 | "property": { "name": "Value" } |
| 528 | }, |
| 529 | { |
| 530 | "name": "proc3 core temps", |
| 531 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 532 | "property": { "name": "Value" } |
| 533 | }, |
| 534 | { |
| 535 | "name": "proc0 ioring temp", |
| 536 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 537 | "property": { "name": "Value" } |
| 538 | }, |
| 539 | { |
| 540 | "name": "proc1 ioring temp", |
| 541 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 542 | "property": { "name": "Value" } |
| 543 | }, |
| 544 | { |
| 545 | "name": "proc2 ioring temp", |
| 546 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 547 | "property": { "name": "Value" } |
| 548 | }, |
| 549 | { |
| 550 | "name": "proc3 ioring temp", |
| 551 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 552 | "property": { "name": "Value" } |
| 553 | }, |
| 554 | { |
| 555 | "name": "dram temps", |
| 556 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 557 | "property": { "name": "Value" } |
| 558 | }, |
| 559 | { |
| 560 | "name": "pmic temps", |
| 561 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 562 | "property": { "name": "Value" } |
| 563 | }, |
| 564 | { |
| 565 | "name": "internal memory buffer temps", |
| 566 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 567 | "property": { "name": "Value" } |
| 568 | }, |
| 569 | { |
| 570 | "name": "dram and external memory buffer temps", |
| 571 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 572 | "property": { "name": "Value" } |
| 573 | }, |
| 574 | { |
| 575 | "name": "external memory buffer temps", |
| 576 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 577 | "property": { "name": "Value" } |
| 578 | }, |
| 579 | { |
| 580 | "name": "vdd vrm temps", |
| 581 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 582 | "property": { "name": "Value" } |
Matthew Barth | 23a7b2b | 2022-01-11 15:22:55 -0600 | [diff] [blame^] | 583 | }, |
| 584 | { |
| 585 | "name": "nvme temps", |
| 586 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 587 | "property": { "name": "Value" } |
| 588 | }, |
| 589 | { |
| 590 | "name": "planar temps", |
| 591 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 592 | "property": { "name": "Value" } |
Matthew Barth | b6f1035 | 2021-12-02 17:42:49 -0600 | [diff] [blame] | 593 | } |
| 594 | ], |
| 595 | "triggers": [ |
| 596 | { |
| 597 | "class": "timer", |
| 598 | "type": "repeating", |
| 599 | "interval": 2000000, |
| 600 | "preload_groups": true |
| 601 | } |
Matthew Barth | 6f63b2f | 2021-12-06 21:08:13 -0600 | [diff] [blame] | 602 | ], |
| 603 | "actions": [ |
| 604 | { |
| 605 | "name": "set_net_increase_target", |
| 606 | "groups": [ |
| 607 | { |
| 608 | "name": "proc0 core temps", |
| 609 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 610 | "property": { "name": "Value" } |
| 611 | } |
| 612 | ], |
| 613 | "state_parameter_name": "proc_0_core_dvfs_increase_temp", |
| 614 | "delta": 300 |
| 615 | }, |
| 616 | { |
| 617 | "name": "set_net_increase_target", |
| 618 | "groups": [ |
| 619 | { |
| 620 | "name": "proc1 core temps", |
| 621 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 622 | "property": { "name": "Value" } |
| 623 | } |
| 624 | ], |
| 625 | "state_parameter_name": "proc_1_core_dvfs_increase_temp", |
| 626 | "delta": 300 |
| 627 | }, |
| 628 | { |
| 629 | "name": "set_net_increase_target", |
| 630 | "groups": [ |
| 631 | { |
| 632 | "name": "proc2 core temps", |
| 633 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 634 | "property": { "name": "Value" } |
| 635 | } |
| 636 | ], |
| 637 | "state_parameter_name": "proc_2_core_dvfs_increase_temp", |
| 638 | "delta": 300 |
| 639 | }, |
| 640 | { |
| 641 | "name": "set_net_increase_target", |
| 642 | "groups": [ |
| 643 | { |
| 644 | "name": "proc3 core temps", |
| 645 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 646 | "property": { "name": "Value" } |
| 647 | } |
| 648 | ], |
| 649 | "state_parameter_name": "proc_3_core_dvfs_increase_temp", |
| 650 | "delta": 300 |
| 651 | }, |
| 652 | { |
| 653 | "name": "set_net_increase_target", |
| 654 | "groups": [ |
| 655 | { |
| 656 | "name": "proc0 ioring temp", |
| 657 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 658 | "property": { "name": "Value" } |
| 659 | } |
| 660 | ], |
| 661 | "state_parameter_name": "proc_0_ioring_dvfs_increase_temp", |
| 662 | "delta": 300 |
| 663 | }, |
| 664 | { |
| 665 | "name": "set_net_increase_target", |
| 666 | "groups": [ |
| 667 | { |
| 668 | "name": "proc1 ioring temp", |
| 669 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 670 | "property": { "name": "Value" } |
| 671 | } |
| 672 | ], |
| 673 | "state_parameter_name": "proc_1_ioring_dvfs_increase_temp", |
| 674 | "delta": 300 |
| 675 | }, |
| 676 | { |
| 677 | "name": "set_net_increase_target", |
| 678 | "groups": [ |
| 679 | { |
| 680 | "name": "proc2 ioring temp", |
| 681 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 682 | "property": { "name": "Value" } |
| 683 | } |
| 684 | ], |
| 685 | "state_parameter_name": "proc_2_ioring_dvfs_increase_temp", |
| 686 | "delta": 300 |
| 687 | }, |
| 688 | { |
| 689 | "name": "set_net_increase_target", |
| 690 | "groups": [ |
| 691 | { |
| 692 | "name": "proc3 ioring temp", |
| 693 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 694 | "property": { "name": "Value" } |
| 695 | } |
| 696 | ], |
| 697 | "state_parameter_name": "proc_3_ioring_dvfs_increase_temp", |
| 698 | "delta": 300 |
| 699 | }, |
| 700 | { |
| 701 | "name": "set_net_increase_target", |
| 702 | "groups": [ |
| 703 | { |
| 704 | "name": "dram temps", |
| 705 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 706 | "property": { "name": "Value" } |
| 707 | } |
| 708 | ], |
| 709 | "state": 66.0, |
| 710 | "delta": 200 |
| 711 | }, |
| 712 | { |
| 713 | "name": "set_net_increase_target", |
| 714 | "groups": [ |
| 715 | { |
| 716 | "name": "pmic temps", |
| 717 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 718 | "property": { "name": "Value" } |
| 719 | } |
| 720 | ], |
| 721 | "state": 62.0, |
| 722 | "delta": 200 |
| 723 | }, |
| 724 | { |
| 725 | "name": "set_net_increase_target", |
| 726 | "groups": [ |
| 727 | { |
| 728 | "name": "internal memory buffer temps", |
| 729 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 730 | "property": { "name": "Value" } |
| 731 | } |
| 732 | ], |
| 733 | "state": 72.0, |
| 734 | "delta": 200 |
| 735 | }, |
| 736 | { |
| 737 | "name": "set_net_increase_target", |
| 738 | "groups": [ |
| 739 | { |
| 740 | "name": "dram and external memory buffer temps", |
| 741 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 742 | "property": { "name": "Value" } |
| 743 | } |
| 744 | ], |
| 745 | "state": 55.0, |
| 746 | "delta": 200 |
| 747 | }, |
| 748 | { |
| 749 | "name": "set_net_increase_target", |
| 750 | "groups": [ |
| 751 | { |
| 752 | "name": "external memory buffer temps", |
| 753 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 754 | "property": { "name": "Value" } |
| 755 | } |
| 756 | ], |
| 757 | "state": 55.0, |
| 758 | "delta": 200 |
| 759 | }, |
| 760 | { |
| 761 | "name": "set_net_increase_target", |
| 762 | "groups": [ |
| 763 | { |
| 764 | "name": "vdd vrm temps", |
| 765 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 766 | "property": { "name": "Value" } |
| 767 | } |
| 768 | ], |
| 769 | "state": 82.0, |
| 770 | "delta": 300 |
Matthew Barth | b253cbd | 2021-12-06 21:47:50 -0600 | [diff] [blame] | 771 | }, |
| 772 | { |
Matthew Barth | b28663e | 2021-12-08 21:52:00 -0600 | [diff] [blame] | 773 | "name": "set_net_increase_target", |
| 774 | "groups": [ |
| 775 | { |
| 776 | "name": "nvme temps", |
| 777 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 778 | "property": { "name": "Value" } |
| 779 | } |
| 780 | ], |
| 781 | "state": 58.0, |
| 782 | "delta": 200 |
| 783 | }, |
| 784 | { |
Matthew Barth | 075fcd8 | 2021-12-13 20:56:49 -0600 | [diff] [blame] | 785 | "name": "set_net_increase_target", |
| 786 | "groups": [ |
| 787 | { |
| 788 | "name": "planar temps", |
| 789 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 790 | "property": { "name": "Value" } |
| 791 | } |
| 792 | ], |
| 793 | "state": 65.0, |
| 794 | "delta": 255 |
| 795 | }, |
| 796 | { |
Matt Spinler | 1006fe3 | 2022-01-10 14:06:22 -0600 | [diff] [blame] | 797 | "name": "set_net_increase_target", |
| 798 | "groups": [ |
| 799 | { |
| 800 | "name": "flett temps", |
| 801 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 802 | "property": { "name": "Value" } |
| 803 | } |
| 804 | ], |
| 805 | "state": 70.0, |
| 806 | "delta": 255 |
| 807 | }, |
| 808 | { |
| 809 | "name": "set_net_increase_target", |
| 810 | "groups": [ |
| 811 | { |
| 812 | "name": "bear river temps", |
| 813 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 814 | "property": { "name": "Value" } |
| 815 | } |
| 816 | ], |
| 817 | "state": 70.0, |
| 818 | "delta": 255 |
| 819 | }, |
| 820 | { |
Matthew Barth | b253cbd | 2021-12-06 21:47:50 -0600 | [diff] [blame] | 821 | "name": "set_net_decrease_target", |
| 822 | "groups": [ |
| 823 | { |
| 824 | "name": "proc0 core temps", |
| 825 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 826 | "property": { "name": "Value" } |
| 827 | } |
| 828 | ], |
| 829 | "state_parameter_name": "proc_0_core_dvfs_decrease_temp", |
| 830 | "delta": 30 |
| 831 | }, |
| 832 | { |
| 833 | "name": "set_net_decrease_target", |
| 834 | "groups": [ |
| 835 | { |
| 836 | "name": "proc1 core temps", |
| 837 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 838 | "property": { "name": "Value" } |
| 839 | } |
| 840 | ], |
| 841 | "state_parameter_name": "proc_1_core_dvfs_decrease_temp", |
| 842 | "delta": 30 |
| 843 | }, |
| 844 | { |
| 845 | "name": "set_net_decrease_target", |
| 846 | "groups": [ |
| 847 | { |
| 848 | "name": "proc2 core temps", |
| 849 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 850 | "property": { "name": "Value" } |
| 851 | } |
| 852 | ], |
| 853 | "state_parameter_name": "proc_2_core_dvfs_decrease_temp", |
| 854 | "delta": 30 |
| 855 | }, |
| 856 | { |
| 857 | "name": "set_net_decrease_target", |
| 858 | "groups": [ |
| 859 | { |
| 860 | "name": "proc3 core temps", |
| 861 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 862 | "property": { "name": "Value" } |
| 863 | } |
| 864 | ], |
| 865 | "state_parameter_name": "proc_3_core_dvfs_decrease_temp", |
| 866 | "delta": 30 |
| 867 | }, |
| 868 | { |
| 869 | "name": "set_net_decrease_target", |
| 870 | "groups": [ |
| 871 | { |
| 872 | "name": "proc0 ioring temp", |
| 873 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 874 | "property": { "name": "Value" } |
| 875 | } |
| 876 | ], |
| 877 | "state_parameter_name": "proc_0_ioring_dvfs_decrease_temp", |
| 878 | "delta": 30 |
| 879 | }, |
| 880 | { |
| 881 | "name": "set_net_decrease_target", |
| 882 | "groups": [ |
| 883 | { |
| 884 | "name": "proc1 ioring temp", |
| 885 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 886 | "property": { "name": "Value" } |
| 887 | } |
| 888 | ], |
| 889 | "state_parameter_name": "proc_1_ioring_dvfs_decrease_temp", |
| 890 | "delta": 30 |
| 891 | }, |
| 892 | { |
| 893 | "name": "set_net_decrease_target", |
| 894 | "groups": [ |
| 895 | { |
| 896 | "name": "proc2 ioring temp", |
| 897 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 898 | "property": { "name": "Value" } |
| 899 | } |
| 900 | ], |
| 901 | "state_parameter_name": "proc_2_ioring_dvfs_decrease_temp", |
| 902 | "delta": 30 |
| 903 | }, |
| 904 | { |
| 905 | "name": "set_net_decrease_target", |
| 906 | "groups": [ |
| 907 | { |
| 908 | "name": "proc3 ioring temp", |
| 909 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 910 | "property": { "name": "Value" } |
| 911 | } |
| 912 | ], |
| 913 | "state_parameter_name": "proc_3_ioring_dvfs_decrease_temp", |
| 914 | "delta": 30 |
| 915 | }, |
| 916 | { |
| 917 | "name": "set_net_decrease_target", |
| 918 | "groups": [ |
| 919 | { |
| 920 | "name": "dram temps", |
| 921 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 922 | "property": { "name": "Value" } |
| 923 | } |
| 924 | ], |
| 925 | "state": 63.0, |
| 926 | "delta": 40 |
| 927 | }, |
| 928 | { |
| 929 | "name": "set_net_decrease_target", |
| 930 | "groups": [ |
| 931 | { |
| 932 | "name": "pmic temps", |
| 933 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 934 | "property": { "name": "Value" } |
| 935 | } |
| 936 | ], |
| 937 | "state": 59.0, |
| 938 | "delta": 40 |
| 939 | }, |
| 940 | { |
| 941 | "name": "set_net_decrease_target", |
| 942 | "groups": [ |
| 943 | { |
| 944 | "name": "internal memory buffer temps", |
| 945 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 946 | "property": { "name": "Value" } |
| 947 | } |
| 948 | ], |
| 949 | "state": 69.0, |
| 950 | "delta": 40 |
| 951 | }, |
| 952 | { |
| 953 | "name": "set_net_decrease_target", |
| 954 | "groups": [ |
| 955 | { |
| 956 | "name": "dram and external memory buffer temps", |
| 957 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 958 | "property": { "name": "Value" } |
| 959 | } |
| 960 | ], |
| 961 | "state": 52.0, |
| 962 | "delta": 40 |
| 963 | }, |
| 964 | { |
| 965 | "name": "set_net_decrease_target", |
| 966 | "groups": [ |
| 967 | { |
| 968 | "name": "external memory buffer temps", |
| 969 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 970 | "property": { "name": "Value" } |
| 971 | } |
| 972 | ], |
| 973 | "state": 52.0, |
| 974 | "delta": 40 |
| 975 | }, |
| 976 | { |
| 977 | "name": "set_net_decrease_target", |
| 978 | "groups": [ |
| 979 | { |
| 980 | "name": "vdd vrm temps", |
| 981 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 982 | "property": { "name": "Value" } |
| 983 | } |
| 984 | ], |
| 985 | "state": 79.0, |
| 986 | "delta": 30 |
Matthew Barth | 8508098 | 2021-12-08 22:27:29 -0600 | [diff] [blame] | 987 | }, |
| 988 | { |
| 989 | "name": "set_net_decrease_target", |
| 990 | "groups": [ |
| 991 | { |
| 992 | "name": "nvme temps", |
| 993 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 994 | "property": { "name": "Value" } |
| 995 | } |
| 996 | ], |
| 997 | "state": 55.0, |
| 998 | "delta": 40 |
Matthew Barth | 075fcd8 | 2021-12-13 20:56:49 -0600 | [diff] [blame] | 999 | }, |
| 1000 | { |
| 1001 | "name": "set_net_decrease_target", |
| 1002 | "groups": [ |
| 1003 | { |
| 1004 | "name": "planar temps", |
| 1005 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 1006 | "property": { "name": "Value" } |
| 1007 | } |
| 1008 | ], |
| 1009 | "state": 60.0, |
| 1010 | "delta": 80 |
Matt Spinler | 1006fe3 | 2022-01-10 14:06:22 -0600 | [diff] [blame] | 1011 | }, |
| 1012 | { |
| 1013 | "name": "set_net_decrease_target", |
| 1014 | "groups": [ |
| 1015 | { |
| 1016 | "name": "flett temps", |
| 1017 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 1018 | "property": { "name": "Value" } |
| 1019 | } |
| 1020 | ], |
| 1021 | "state": 65.0, |
| 1022 | "delta": 80 |
| 1023 | }, |
| 1024 | { |
| 1025 | "name": "set_net_decrease_target", |
| 1026 | "groups": [ |
| 1027 | { |
| 1028 | "name": "bear river temps", |
| 1029 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 1030 | "property": { "name": "Value" } |
| 1031 | } |
| 1032 | ], |
| 1033 | "state": 65.0, |
| 1034 | "delta": 80 |
Matthew Barth | 6f63b2f | 2021-12-06 21:08:13 -0600 | [diff] [blame] | 1035 | } |
Matthew Barth | b6f1035 | 2021-12-02 17:42:49 -0600 | [diff] [blame] | 1036 | ] |
Matthew Barth | cf34be2 | 2021-12-08 22:53:48 -0600 | [diff] [blame] | 1037 | }, |
| 1038 | { |
| 1039 | // Remove NVMe temperature objects from cache when they are removed from |
| 1040 | // dbus. There's no need to react to their removal. |
| 1041 | "name": "remove nvme objects", |
| 1042 | "groups": [ |
| 1043 | { |
| 1044 | "name": "nvme temps", |
| 1045 | "interface": "xyz.openbmc_project.Sensor.Value", |
| 1046 | "property": { "name": "Value" } |
| 1047 | } |
| 1048 | ], |
| 1049 | "triggers": [ |
| 1050 | { |
| 1051 | "class": "signal", |
| 1052 | "signal": "interfaces_removed" |
| 1053 | } |
| 1054 | ] |
Matt Spinler | 323694a | 2021-11-11 16:03:18 -0600 | [diff] [blame] | 1055 | } |
Matthew Barth | f0f213c | 2021-10-19 13:32:31 -0500 | [diff] [blame] | 1056 | ] |