| [ |
| { |
| // Hold fans at the given target when a number of fans are missing. |
| "name": "fan(s) missing", |
| "groups": [ |
| { |
| "name": "fan inventory", |
| "interface": "xyz.openbmc_project.Inventory.Item", |
| "property": { "name": "Present" } |
| } |
| ], |
| "triggers": [ |
| { |
| "class": "init", |
| "method": "get_properties" |
| }, |
| { |
| "class": "signal", |
| "signal": "properties_changed" |
| } |
| ], |
| "actions": [ |
| { |
| "name": "count_state_before_target", |
| "count": 1, |
| "state": false, |
| "target": 10400 |
| } |
| ] |
| }, |
| { |
| // Hold fans at the given target when a number of rotors are nonfunctional. |
| "name": "fan rotor(s) faulted", |
| "groups": [ |
| { |
| "name": "fan0 rotor inventory", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "fan1 rotor inventory", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "fan2 rotor inventory", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "fan4 rotor inventory", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| } |
| ], |
| "triggers": [ |
| { |
| "class": "init", |
| "method": "get_properties" |
| }, |
| { |
| "class": "signal", |
| "signal": "properties_changed" |
| } |
| ], |
| "actions": [ |
| { |
| "name": "count_state_before_target", |
| "count": 1, |
| "state": false, |
| "target": 10400 |
| } |
| ] |
| }, |
| { |
| // Hold fans at the given target when any critical service |
| // is not running for 5 seconds. |
| "name": "service(s) missing", |
| "groups": [ |
| { |
| "name": "fan inventory", |
| "interface": "xyz.openbmc_project.Inventory.Item", |
| "property": { "name": "Present" } |
| }, |
| { |
| "name": "occ objects", |
| "interface": "org.open_power.OCC.Status", |
| "property": { "name": "OccActive" } |
| }, |
| { |
| "name": "nvme temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "planar temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "flett temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "pcie cable card temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "ambient temp", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "triggers": [ |
| { |
| "class": "init", |
| "method": "name_has_owner" |
| }, |
| { |
| "class": "signal", |
| "signal": "name_owner_changed" |
| } |
| ], |
| "actions": [ |
| { |
| "name": "call_actions_based_on_timer", |
| "timer": { |
| "interval": 5000000, |
| "type": "oneshot" |
| }, |
| "actions": [ |
| { |
| "name": "set_target_on_missing_owner", |
| "groups": [ |
| { |
| "name": "fan inventory", |
| "interface": "xyz.openbmc_project.Inventory.Item", |
| "property": { "name": "Present" } |
| }, |
| { |
| "name": "occ objects", |
| "interface": "org.open_power.OCC.Status", |
| "property": { "name": "OccActive" } |
| }, |
| { |
| "name": "nvme temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "planar temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "flett temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "pcie cable card temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "ambient temp", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "target": 10400 |
| } |
| ] |
| } |
| ] |
| }, |
| { |
| // Set a fan floor if an OCC isn't active |
| "name": "Non-active OCC(s)", |
| "groups": [ |
| { |
| "name": "occ objects", |
| "interface": "org.open_power.OCC.Status", |
| "property": { |
| "name": "OccActive" |
| } |
| } |
| ], |
| "triggers": [ |
| { |
| "class": "signal", |
| "signal": "properties_changed" |
| }, |
| { |
| "class": "signal", |
| "signal": "interfaces_added" |
| }, |
| { |
| "class": "init", |
| "method": "get_properties" |
| } |
| ], |
| "actions": [ |
| { |
| "name": "count_state_floor", |
| "count": 1, |
| "state": false, |
| "floor": 10400 |
| } |
| ] |
| }, |
| { |
| // Set a raised fan floor when any temperature sensor is nonfunctional |
| "name": "Nonfunctional temperature sensors", |
| "groups": [ |
| { |
| "name": "proc0 core temps", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "proc1 core temps", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "proc0 ioring temp", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "proc1 ioring temp", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "dram temps", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "pmic temps", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "internal memory buffer temps", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "dram and external memory buffer temps", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "external memory buffer temps", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "vdd vrm temps", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "nvme temps", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "planar temps", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "flett temps", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "pcie cable card temps", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| }, |
| { |
| "name": "ambient temp", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| } |
| ], |
| "triggers": [ |
| { |
| "class": "signal", |
| "signal": "properties_changed" |
| }, |
| { |
| "class": "signal", |
| "signal": "interfaces_added" |
| }, |
| { |
| "class": "signal", |
| "signal": "interfaces_removed" |
| }, |
| { |
| "class": "init", |
| "method": "get_properties" |
| } |
| ], |
| "actions": [ |
| { |
| "name": "count_state_floor", |
| "count": 1, |
| "state": false, |
| "floor": 10400 |
| } |
| ] |
| }, |
| { |
| "name": "Set Proc 0 Core DVFS parameter", |
| "groups": [ |
| { |
| "name": "proc 0 core dvfs temp", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "triggers": [ |
| { |
| "class": "init", |
| "method": "get_properties" |
| }, |
| { |
| "class": "signal", |
| "signal": "interfaces_added" |
| }, |
| { |
| "class": "signal", |
| "signal": "properties_changed" |
| } |
| ], |
| "actions": [ |
| { |
| "name": "set_parameter_from_group_max", |
| "parameter_name": "proc_0_core_dvfs_increase_temp", |
| "modifier": { |
| "operator": "minus", |
| "value": 10 |
| } |
| }, |
| { |
| "name": "set_parameter_from_group_max", |
| "parameter_name": "proc_0_core_dvfs_decrease_temp", |
| "modifier": { |
| "operator": "minus", |
| "value": 13 |
| } |
| } |
| ] |
| }, |
| { |
| "name": "Set Proc 1 Core DVFS parameter", |
| "groups": [ |
| { |
| "name": "proc 1 core dvfs temp", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "triggers": [ |
| { |
| "class": "init", |
| "method": "get_properties" |
| }, |
| { |
| "class": "signal", |
| "signal": "interfaces_added" |
| }, |
| { |
| "class": "signal", |
| "signal": "properties_changed" |
| } |
| ], |
| "actions": [ |
| { |
| "name": "set_parameter_from_group_max", |
| "parameter_name": "proc_1_core_dvfs_increase_temp", |
| "modifier": { |
| "operator": "minus", |
| "value": 10 |
| } |
| }, |
| { |
| "name": "set_parameter_from_group_max", |
| "parameter_name": "proc_1_core_dvfs_decrease_temp", |
| "modifier": { |
| "operator": "minus", |
| "value": 13 |
| } |
| } |
| ] |
| }, |
| { |
| "name": "Set Proc 0 IO Ring DVFS parameter", |
| "groups": [ |
| { |
| "name": "proc 0 ioring dvfs temp", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "triggers": [ |
| { |
| "class": "init", |
| "method": "get_properties" |
| }, |
| { |
| "class": "signal", |
| "signal": "interfaces_added" |
| }, |
| { |
| "class": "signal", |
| "signal": "properties_changed" |
| } |
| ], |
| "actions": [ |
| { |
| "name": "set_parameter_from_group_max", |
| "parameter_name": "proc_0_ioring_dvfs_increase_temp", |
| "modifier": { |
| "operator": "minus", |
| "value": 10 |
| } |
| }, |
| { |
| "name": "set_parameter_from_group_max", |
| "parameter_name": "proc_0_ioring_dvfs_decrease_temp", |
| "modifier": { |
| "operator": "minus", |
| "value": 13 |
| } |
| } |
| ] |
| }, |
| { |
| "name": "Set Proc 1 IO Ring DVFS parameter", |
| "groups": [ |
| { |
| "name": "proc 1 ioring dvfs temp", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "triggers": [ |
| { |
| "class": "init", |
| "method": "get_properties" |
| }, |
| { |
| "class": "signal", |
| "signal": "interfaces_added" |
| }, |
| { |
| "class": "signal", |
| "signal": "properties_changed" |
| } |
| ], |
| "actions": [ |
| { |
| "name": "set_parameter_from_group_max", |
| "parameter_name": "proc_1_ioring_dvfs_increase_temp", |
| "modifier": { |
| "operator": "minus", |
| "value": 10 |
| } |
| }, |
| { |
| "name": "set_parameter_from_group_max", |
| "parameter_name": "proc_1_ioring_dvfs_decrease_temp", |
| "modifier": { |
| "operator": "minus", |
| "value": 13 |
| } |
| } |
| ] |
| }, |
| { |
| // Collect group temperatures each iteration the repeating timer expires |
| "name": "Fan control timer loop", |
| "groups": [ |
| { |
| "name": "proc0 core temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "proc1 core temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "proc0 ioring temp", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "proc1 ioring temp", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "dram temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "pmic temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "internal memory buffer temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "dram and external memory buffer temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "external memory buffer temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "vdd vrm temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "nvme temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "planar temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "flett temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "pcie cable card temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "triggers": [ |
| { |
| "class": "timer", |
| "type": "repeating", |
| "interval": 2000000, |
| "preload_groups": true |
| } |
| ], |
| "actions": [ |
| { |
| "name": "set_net_increase_target", |
| "groups": [ |
| { |
| "name": "proc0 core temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state_parameter_name": "proc_0_core_dvfs_increase_temp", |
| "delta": 300 |
| }, |
| { |
| "name": "set_net_increase_target", |
| "groups": [ |
| { |
| "name": "proc1 core temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state_parameter_name": "proc_1_core_dvfs_increase_temp", |
| "delta": 300 |
| }, |
| { |
| "name": "set_net_increase_target", |
| "groups": [ |
| { |
| "name": "proc0 ioring temp", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state_parameter_name": "proc_0_ioring_dvfs_increase_temp", |
| "delta": 300 |
| }, |
| { |
| "name": "set_net_increase_target", |
| "groups": [ |
| { |
| "name": "proc1 ioring temp", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state_parameter_name": "proc_1_ioring_dvfs_increase_temp", |
| "delta": 300 |
| }, |
| { |
| "name": "set_net_increase_target", |
| "groups": [ |
| { |
| "name": "dram temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state": 63.0, |
| "delta": 200 |
| }, |
| { |
| "name": "set_net_increase_target", |
| "groups": [ |
| { |
| "name": "pmic temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state": 65.0, |
| "delta": 200 |
| }, |
| { |
| "name": "set_net_increase_target", |
| "groups": [ |
| { |
| "name": "internal memory buffer temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state": 74.0, |
| "delta": 200 |
| }, |
| { |
| "name": "set_net_increase_target", |
| "groups": [ |
| { |
| "name": "dram and external memory buffer temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state": 66.0, |
| "delta": 200 |
| }, |
| { |
| "name": "set_net_increase_target", |
| "groups": [ |
| { |
| "name": "external memory buffer temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state": 60.0, |
| "delta": 200 |
| }, |
| { |
| "name": "set_net_increase_target", |
| "groups": [ |
| { |
| "name": "vdd vrm temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state": 82.0, |
| "delta": 300 |
| }, |
| { |
| "name": "set_net_increase_target", |
| "groups": [ |
| { |
| "name": "nvme temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state": 58.0, |
| "delta": 200 |
| }, |
| { |
| "name": "set_net_increase_target", |
| "groups": [ |
| { |
| "name": "planar temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state": 65.0, |
| "delta": 255 |
| }, |
| { |
| "name": "set_net_increase_target", |
| "groups": [ |
| { |
| "name": "flett temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state": 80.0, |
| "delta": 200 |
| }, |
| { |
| "name": "set_net_increase_target", |
| "groups": [ |
| { |
| "name": "pcie cable card temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state": 70.0, |
| "delta": 255 |
| }, |
| { |
| "name": "set_net_decrease_target", |
| "groups": [ |
| { |
| "name": "proc0 core temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state_parameter_name": "proc_0_core_dvfs_decrease_temp", |
| "delta": 50 |
| }, |
| { |
| "name": "set_net_decrease_target", |
| "groups": [ |
| { |
| "name": "proc1 core temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state_parameter_name": "proc_1_core_dvfs_decrease_temp", |
| "delta": 50 |
| }, |
| { |
| "name": "set_net_decrease_target", |
| "groups": [ |
| { |
| "name": "proc0 ioring temp", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state_parameter_name": "proc_0_ioring_dvfs_decrease_temp", |
| "delta": 50 |
| }, |
| { |
| "name": "set_net_decrease_target", |
| "groups": [ |
| { |
| "name": "proc1 ioring temp", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state_parameter_name": "proc_1_ioring_dvfs_decrease_temp", |
| "delta": 50 |
| }, |
| { |
| "name": "set_net_decrease_target", |
| "groups": [ |
| { |
| "name": "dram temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state": 60.0, |
| "delta": 50 |
| }, |
| { |
| "name": "set_net_decrease_target", |
| "groups": [ |
| { |
| "name": "pmic temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state": 62.0, |
| "delta": 50 |
| }, |
| { |
| "name": "set_net_decrease_target", |
| "groups": [ |
| { |
| "name": "internal memory buffer temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state": 71.0, |
| "delta": 50 |
| }, |
| { |
| "name": "set_net_decrease_target", |
| "groups": [ |
| { |
| "name": "dram and external memory buffer temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state": 63.0, |
| "delta": 50 |
| }, |
| { |
| "name": "set_net_decrease_target", |
| "groups": [ |
| { |
| "name": "external memory buffer temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state": 57.0, |
| "delta": 50 |
| }, |
| { |
| "name": "set_net_decrease_target", |
| "groups": [ |
| { |
| "name": "vdd vrm temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state": 79.0, |
| "delta": 50 |
| }, |
| { |
| "name": "set_net_decrease_target", |
| "groups": [ |
| { |
| "name": "nvme temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state": 55.0, |
| "delta": 50 |
| }, |
| { |
| "name": "set_net_decrease_target", |
| "groups": [ |
| { |
| "name": "planar temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state": 60.0, |
| "delta": 50 |
| }, |
| { |
| "name": "set_net_decrease_target", |
| "groups": [ |
| { |
| "name": "flett temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state": 75.0, |
| "delta": 40 |
| }, |
| { |
| "name": "set_net_decrease_target", |
| "groups": [ |
| { |
| "name": "pcie cable card temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "state": 65.0, |
| "delta": 50 |
| } |
| ] |
| }, |
| { |
| // Remove NVMe temperature objects from cache when they are removed from |
| // dbus. There's no need to react to their removal. |
| "name": "remove nvme objects", |
| "groups": [ |
| { |
| "name": "nvme temps", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "nvme temps", |
| "interface": "xyz.openbmc_project.State.Decorator.OperationalStatus", |
| "property": { "name": "Functional" } |
| } |
| ], |
| "triggers": [ |
| { |
| "class": "signal", |
| "signal": "interfaces_removed" |
| } |
| ] |
| }, |
| { |
| "name": "set pcie floor index", |
| "groups": [ |
| { |
| "name": "pcie slots", |
| "interface": "xyz.openbmc_project.State.Decorator.PowerState", |
| "property": { |
| "name": "PowerState" |
| } |
| }, |
| { |
| "name": "pcie cards", |
| "interface": "xyz.openbmc_project.Inventory.Item.PCIeDevice", |
| "property": { |
| "name": "Function0DeviceId" |
| } |
| }, |
| { |
| "name": "pcie cards", |
| "interface": "xyz.openbmc_project.Inventory.Item.PCIeDevice", |
| "property": { |
| "name": "Function0VendorId" |
| } |
| }, |
| { |
| "name": "pcie cards", |
| "interface": "xyz.openbmc_project.Inventory.Item.PCIeDevice", |
| "property": { |
| "name": "Function0SubsystemId" |
| } |
| }, |
| { |
| "name": "pcie cards", |
| "interface": "xyz.openbmc_project.Inventory.Item.PCIeDevice", |
| "property": { |
| "name": "Function0SubsystemVendorId" |
| } |
| } |
| ], |
| "triggers": [ |
| { |
| "class": "init", |
| "method": "get_properties" |
| }, |
| { |
| "class": "signal", |
| "signal": "properties_changed" |
| }, |
| { |
| "class": "signal", |
| "signal": "interfaces_added" |
| } |
| ], |
| "actions": [ |
| { |
| "name": "pcie_card_floors", |
| "use_config_specific_files": true, |
| "settle_time": 2 |
| } |
| ] |
| }, |
| { |
| "name": "Set altitude offset parameter", |
| "groups": [ |
| { |
| "name": "altitude", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| } |
| ], |
| "triggers": [ |
| { |
| "class": "init", |
| "method": "get_properties" |
| }, |
| { |
| "class": "signal", |
| "signal": "interfaces_added" |
| }, |
| { |
| // Refresh altitude every 24hrs |
| "class": "timer", |
| "type": "repeating", |
| "interval": 86400000000, |
| "preload_groups": true |
| } |
| ], |
| "actions": [ |
| { |
| "name": "set_parameter_from_group_max", |
| "parameter_name": "altitude_offset", |
| "modifier": { |
| "operator": "less_than", |
| "default_value": 3000, |
| "value": [ |
| { "arg_value": 1000, "parameter_value": 0 }, |
| { "arg_value": 1900, "parameter_value": 1000 }, |
| { "arg_value": 2800, "parameter_value": 2000 } |
| ] |
| } |
| } |
| ] |
| }, |
| { |
| "name": "Fan floors", |
| "groups": [ |
| { |
| "name": "ambient temp", |
| "interface": "xyz.openbmc_project.Sensor.Value", |
| "property": { "name": "Value" } |
| }, |
| { |
| "name": "power mode", |
| "interface": "xyz.openbmc_project.Control.Power.Mode", |
| "property": { "name": "PowerMode" } |
| } |
| ], |
| "triggers": [ |
| { |
| "class": "init", |
| "method": "get_properties" |
| }, |
| { |
| "class": "signal", |
| "signal": "properties_changed" |
| }, |
| { |
| "class": "signal", |
| "signal": "interfaces_added" |
| }, |
| { |
| "class": "parameter", |
| "parameter": "pcie_floor_index" |
| }, |
| { |
| "class": "parameter", |
| "parameter": "altitude_offset" |
| } |
| ], |
| "actions": [ |
| { |
| "name": "mapped_floor", |
| "key_group": "ambient temp", |
| "fan_floors": [ |
| { |
| // Entry valid for ambient temp < 27 |
| "key": 27, |
| "default_floor": 3700, |
| "floor_offset_parameter": "altitude_offset", |
| "floors": [ |
| { |
| "parameter": "pcie_floor_index", |
| "floors": [ |
| { "value": 1, "floor": 6000 }, |
| { "value": 2, "floor": 7000 }, |
| { "value": 3, "floor": 8000 } |
| ] |
| } |
| ] |
| }, |
| { |
| // Entry valid for ambient temp < 32 |
| "key": 32, |
| "default_floor": 5000, |
| "floor_offset_parameter": "altitude_offset", |
| "floors": [ |
| { |
| "parameter": "pcie_floor_index", |
| "floors": [ |
| { "value": 1, "floor": 7000 }, |
| { "value": 2, "floor": 9000 }, |
| { "value": 3, "floor": 9500 } |
| ] |
| } |
| ] |
| }, |
| { |
| // Entry valid for ambient temp < 37 |
| "key": 37, |
| "default_floor": 6000, |
| "floor_offset_parameter": "altitude_offset", |
| "floors": [ |
| { |
| "parameter": "pcie_floor_index", |
| "floors": [ |
| { "value": 1, "floor": 9000 }, |
| { "value": 2, "floor": 9500 }, |
| { "value": 3, "floor": 10400 } |
| ] |
| } |
| ] |
| }, |
| { |
| // Entry valid for ambient temp < 42 |
| "key": 42, |
| "default_floor": 8000, |
| "floor_offset_parameter": "altitude_offset", |
| "floors": [ |
| { |
| "parameter": "pcie_floor_index", |
| "floors": [ |
| { "value": 1, "floor": 9500 }, |
| { "value": 2, "floor": 10400 }, |
| { "value": 3, "floor": 10400 } |
| ] |
| } |
| ] |
| } |
| ] |
| } |
| ] |
| } |
| ] |