Skip to content

Commit

Permalink
[Mellanox] Never disable kernel thermal algorithm at real-time (sonic…
Browse files Browse the repository at this point in the history
  • Loading branch information
Junchao-Mellanox committed May 28, 2020
1 parent 1a94141 commit 0078acf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
15 changes: 1 addition & 14 deletions device/mellanox/x86_64-mlnx_msn2700-r0/thermal_policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
}
],
"actions": [
{
"type": "thermal_control.control",
"status": "false"
},
{
"type": "fan.all.set_speed",
"speed": "100"
Expand All @@ -41,10 +37,6 @@
}
],
"actions": [
{
"type": "thermal_control.control",
"status": "false"
},
{
"type": "fan.all.set_speed",
"speed": "100"
Expand All @@ -59,10 +51,6 @@
}
],
"actions": [
{
"type": "thermal_control.control",
"status": "false"
},
{
"type": "fan.all.set_speed",
"speed": "100"
Expand All @@ -84,8 +72,7 @@
],
"actions": [
{
"type": "thermal_control.control",
"status": "true"
"type": "thermal.recover"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ def execute(self, thermal_info_dict):
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):
Expand Down

0 comments on commit 0078acf

Please sign in to comment.