cfda77b3de
- Removed the old function for detecting a faulty fan. - Removed the old function for detecting excess temperature. - Implement thermal_manager APIs based on ThermalManagerBase - Implement thermal_conditions APIs based on ThermalPolicyConditionBase - Implement thermal_actions APIs based on ThermalPolicyActionBase - Implement thermal_info APIs based on ThermalPolicyInfoBase - Add thermal_policy.json
93 lines
2.3 KiB
JSON
93 lines
2.3 KiB
JSON
{
|
|
"thermal_control_algorithm": {
|
|
"run_at_boot_up": "true"
|
|
},
|
|
"info_types": [
|
|
{
|
|
"type": "chassis_info"
|
|
},
|
|
{
|
|
"type": "fan_info"
|
|
},
|
|
{
|
|
"type": "thermal_info"
|
|
}
|
|
],
|
|
"policies": [
|
|
{
|
|
"name": "any fan absence",
|
|
"conditions": [
|
|
{
|
|
"type": "fan.any.absence"
|
|
}
|
|
],
|
|
"actions": [
|
|
{
|
|
"type": "thermal_control.control",
|
|
"status": "false"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "any fan broken",
|
|
"conditions": [
|
|
{
|
|
"type": "fan.any.fault"
|
|
}
|
|
],
|
|
"actions": [
|
|
{
|
|
"type": "thermal_control.control",
|
|
"status": "false"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "any thermal over threshold",
|
|
"conditions": [
|
|
{
|
|
"type": "thermal.over.high_threshold"
|
|
}
|
|
],
|
|
"actions": [
|
|
{
|
|
"type": "thermal_control.control",
|
|
"status": "false"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "temp over high critical threshold",
|
|
"conditions": [
|
|
{
|
|
"type": "thermal.over.high_critical_threshold"
|
|
}
|
|
],
|
|
"actions": [
|
|
{
|
|
"type": "switch.power_cycling"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "all fan presence / thermal no warning",
|
|
"conditions": [
|
|
{
|
|
"type": "fan.all.presence"
|
|
},
|
|
{
|
|
"type": "fan.all.good"
|
|
},
|
|
{
|
|
"type": "thermal.all.good"
|
|
}
|
|
],
|
|
"actions": [
|
|
{
|
|
"type": "thermal_control.control",
|
|
"status": "true"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |