sonic-buildimage/platform/mellanox/mlnx-platform-api/tests
Junchao-Mellanox 8e924b9a70
[Mellanox] Optimize thermal policies (#9665)
- 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:55 +02:00
..
__init__.py Add thermal control support for SONiC (#3949) 2020-03-09 10:41:10 -07:00
duplicate_action.json [Mellanox] Fix thermal control bugs (#4298) 2020-03-25 10:54:07 -07:00
duplicate_condition.json [Mellanox] Fix thermal control bugs (#4298) 2020-03-25 10:54:07 -07:00
empty_action.json [Mellanox] Fix thermal control bugs (#4298) 2020-03-25 10:54:07 -07:00
empty_condition.json [Mellanox] Fix thermal control bugs (#4298) 2020-03-25 10:54:07 -07:00
mock_platform.py [Mellanox] clear fan from chassis._fan_list (#7682) 2021-05-31 04:32:40 +00:00
policy_with_same_conditions.json [Mellanox] Optimize thermal policies (#9665) 2022-01-19 11:42:55 +02:00
test_fan_api.py [Mellanox] Implement new platform API for SONiC physical entity mib extension (#5645) 2020-11-16 18:56:03 -08:00
test_thermal_policy.py [Mellanox] Optimize thermal policies (#9665) 2022-01-19 11:42:55 +02:00
thermal_policy.json [Mellanox] Optimize thermal policies (#9665) 2022-01-19 11:42:55 +02:00