[Mellanox] Never disable kernel thermal algorithm at real-time (#4638)

This commit is contained in:
Junchao-Mellanox 2020-05-27 01:46:29 +08:00 committed by GitHub
parent f277d13cd6
commit e25c2d984f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 14 deletions

View File

@ -23,10 +23,6 @@
}
],
"actions": [
{
"type": "thermal_control.control",
"status": "false"
},
{
"type": "fan.all.set_speed",
"speed": "100"
@ -41,10 +37,6 @@
}
],
"actions": [
{
"type": "thermal_control.control",
"status": "false"
},
{
"type": "fan.all.set_speed",
"speed": "100"
@ -59,10 +51,6 @@
}
],
"actions": [
{
"type": "thermal_control.control",
"status": "false"
},
{
"type": "fan.all.set_speed",
"speed": "100"
@ -84,8 +72,7 @@
],
"actions": [
{
"type": "thermal_control.control",
"status": "true"
"type": "thermal.recover"
}
]
}

View File

@ -141,6 +141,12 @@ class ControlThermalAlgoAction(ThermalPolicyActionBase):
logger.log_info('Changed thermal algorithm status to {}'.format(self.status))
@thermal_json_object('thermal.recover')
class ThermalRecoverAction(ThermalPolicyActionBase):
def execute(self, thermal_info_dict):
UpdateCoolingLevelToMinAction.update_cooling_level_to_minimum(thermal_info_dict)
class ChangeMinCoolingLevelAction(ThermalPolicyActionBase):
UNKNOWN_SKU_COOLING_LEVEL = 6
def execute(self, thermal_info_dict):