[Arista] Use thermalctld instead of fancontrol (#6173)

**- Why I did it**
There is a preference to use thermalctld instead of fancontrol for 201911 release branch. The Arista platform submodule updates and thermal policies in the platforms will allow Arista devices to use thermalctld instead of fancontrol.

**- How I did it**
I cherry-picked the necessary commits from master branch for sonic-platform-modules-arista into 201911 branch. I've also added the file to skip fancontrol and added the thermal policies json.

**- How to verify it**
On Gardena, Upperlake, Clearlake, and Lodoga thermalctld is up and running with no errors. Fans show ~29%.

Co-authored-by: Zhi Yuan Carl Zhao <zyzhao@arista.com>
This commit is contained in:
zzhiyuan 2021-01-27 08:31:32 -08:00 committed by GitHub
parent 35d93ff8a3
commit 511541f7f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 88 additions and 13 deletions

View File

@ -1 +1 @@
../x86_64-arista_common/pmon_daemon_control_skip_thermalctld.json
../x86_64-arista_common/pmon_daemon_control.json

View File

@ -0,0 +1 @@
../x86_64-arista_common/thermal_policy.json

View File

@ -1 +1 @@
../x86_64-arista_common/pmon_daemon_control_skip_thermalctld.json
../x86_64-arista_common/pmon_daemon_control.json

View File

@ -0,0 +1 @@
../x86_64-arista_common/thermal_policy.json

View File

@ -1 +1 @@
../x86_64-arista_common/pmon_daemon_control_skip_thermalctld.json
../x86_64-arista_common/pmon_daemon_control.json

View File

@ -0,0 +1 @@
../x86_64-arista_common/thermal_policy.json

View File

@ -1 +1 @@
../x86_64-arista_common/pmon_daemon_control_skip_thermalctld.json
../x86_64-arista_common/pmon_daemon_control.json

View File

@ -0,0 +1 @@
../x86_64-arista_common/thermal_policy.json

View File

@ -1 +1 @@
../x86_64-arista_common/pmon_daemon_control_skip_thermalctld.json
../x86_64-arista_common/pmon_daemon_control.json

View File

@ -0,0 +1 @@
../x86_64-arista_common/thermal_policy.json

View File

@ -1 +1 @@
../x86_64-arista_common/pmon_daemon_control_skip_thermalctld.json
../x86_64-arista_common/pmon_daemon_control.json

View File

@ -0,0 +1 @@
../x86_64-arista_common/thermal_policy.json

View File

@ -1 +1 @@
../x86_64-arista_common/pmon_daemon_control_skip_thermalctld.json
../x86_64-arista_common/pmon_daemon_control.json

View File

@ -0,0 +1 @@
../x86_64-arista_common/thermal_policy.json

View File

@ -1 +1 @@
../x86_64-arista_common/pmon_daemon_control_skip_thermalctld.json
../x86_64-arista_common/pmon_daemon_control.json

View File

@ -0,0 +1 @@
../x86_64-arista_common/thermal_policy.json

View File

@ -1 +1 @@
../x86_64-arista_common/pmon_daemon_control_skip_thermalctld.json
../x86_64-arista_common/pmon_daemon_control.json

View File

@ -0,0 +1 @@
../x86_64-arista_common/thermal_policy.json

View File

@ -1 +1 @@
../x86_64-arista_common/pmon_daemon_control_skip_thermalctld.json
../x86_64-arista_common/pmon_daemon_control.json

View File

@ -0,0 +1 @@
../x86_64-arista_common/thermal_policy.json

View File

@ -1 +1 @@
../x86_64-arista_common/pmon_daemon_control_skip_thermalctld.json
../x86_64-arista_common/pmon_daemon_control.json

View File

@ -0,0 +1 @@
../x86_64-arista_common/thermal_policy.json

View File

@ -0,0 +1,4 @@
{
"skip_fancontrol": true
}

View File

@ -0,0 +1,60 @@
{
"thermal_control_algorithm": {
"run_at_boot_up": "true",
"fan_speed_when_suspend": "100"
},
"info_types": [
{
"type": "control_info"
},
{
"type": "fan_info"
},
{
"type": "thermal_info"
}
],
"policies": [
{
"name": "any thermal critical",
"conditions": [
{
"type": "thermal.any.critical"
}
],
"actions": [
{
"type": "fan.all.set_speed",
"speed": "100"
}
]
},
{
"name": "any thermal overheat",
"conditions": [
{
"type": "thermal.any.overheat"
}
],
"actions": [
{
"type": "fan.all.set_speed",
"speed": "100"
}
]
},
{
"name": "normal operations",
"conditions": [
{
"type": "normal"
}
],
"actions": [
{
"type": "thermal_control.control"
}
]
}
]
}

@ -1 +1 @@
Subproject commit 74684eea4b2b1af97685d926e6ad183450122668
Subproject commit 79b7d11b61c5eec2b4a38a6414417b7b4f064aab

@ -1 +1 @@
Subproject commit 74684eea4b2b1af97685d926e6ad183450122668
Subproject commit 79b7d11b61c5eec2b4a38a6414417b7b4f064aab