sonic-buildimage/platform/mellanox/mlnx-platform-api
Junchao-Mellanox 2ffc9d572f
[Mellanox] [201911] Optimize thermal policies (#9664)
- Why I did it
Optimize thermal control policies to simplify the logic and add more protection code in policies to make sure it works even if kernel algorithm does not work.

- How I did it
Reduce unused thermal policies
Add timely ASIC temperature check in thermal policy to make sure ASIC temperature and fan speed is coordinated
Minimum allowed fan speed now is calculated by max of the expected fan speed among all policies
Move some logic from fan.py to thermal.py to make it more readable

- How to verify it
1. Manual test
2. Regression
2022-01-19 11:42:09 +02:00
..
sonic_platform [Mellanox] [201911] Optimize thermal policies (#9664) 2022-01-19 11:42:09 +02:00
tests [Mellanox] [201911] Optimize thermal policies (#9664) 2022-01-19 11:42:09 +02:00
.gitignore [201911][thermal control] Backport feature from master branch (#4677) 2020-06-08 11:20:43 -07:00
pytest.ini [201911][thermal control] Backport feature from master branch (#4677) 2020-06-08 11:20:43 -07:00
setup.cfg [201911][thermal control] Backport feature from master branch (#4677) 2020-06-08 11:20:43 -07:00
setup.py [201911][thermal control] Backport feature from master branch (#4677) 2020-06-08 11:20:43 -07:00