sonic-buildimage/platform/mellanox/mlnx-platform-api/sonic_platform
Junchao-Mellanox c0f0694236
[Mellanox] [202106] Optimize thermal policies (#9451)
- 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:43:55 +02:00
..
__init__.py Add thermal control support for SONiC (#3949) 2020-03-09 10:41:10 -07:00
chassis.py [Mellanox] [202106] Fix issue: SFP might not be re-initialized after cable plug in (#9387) 2021-12-14 16:27:26 +02:00
component.py [mellanox] Remove validation for fw filenames with no extension (#8956) 2021-10-20 18:14:13 -07:00
device_data.py [fan] Fixed dynamic minimum fan speed table for SN4410 (#8960) 2021-10-20 18:14:29 -07:00
eeprom.py [PMON] [Mellanox] fix syseepromd issue on simx (#8131) 2021-08-03 23:39:19 -07:00
fan_drawer.py [Mellanox] Enhance Python3 support for platform API (#7410) 2021-06-15 17:57:48 +03:00
fan.py [Mellanox] [202106] Optimize thermal policies (#9451) 2022-01-19 11:43:55 +02:00
led.py [Mellanox] Allow user to set LED to orange (#9259) (#9515) 2021-12-14 13:33:23 +02:00
pcie.py [Mellanox][Pcie] Fix issue on pcied with an id that contains only decimal digits was treated as a decimal number (#8309) 2021-08-06 20:53:41 -07:00
platform.py [PMON] [Mellanox] fix syseepromd issue on simx (#8131) 2021-08-03 23:39:19 -07:00
psu.py [Mellanox] Fix issue: PSU model/serial/revision info should be updated after replacing PSU (#9040) 2021-11-01 09:57:09 +05:30
sfp_event.py [Mellanox] Add bitmap support for SFP error event (#7605) 2021-06-25 10:56:47 -07:00
sfp.py [Mellanox] Add bitmap support for SFP error event (#7605) 2021-06-25 10:56:47 -07:00
thermal_actions.py [Mellanox] [202106] Optimize thermal policies (#9451) 2022-01-19 11:43:55 +02:00
thermal_conditions.py [Mellanox] [202106] Optimize thermal policies (#9451) 2022-01-19 11:43:55 +02:00
thermal_infos.py [Mellanox] Fan speed should not be 100% when PSU is powered off (#9258) 2021-12-01 09:47:26 -08:00
thermal_manager.py [Mellanox] [202106] Optimize thermal policies (#9451) 2022-01-19 11:43:55 +02:00
thermal.py [Mellanox] [202106] Optimize thermal policies (#9451) 2022-01-19 11:43:55 +02:00
utils.py [Mellanox] Fix issue: PSU model/serial/revision info should be updated after replacing PSU (#9040) 2021-11-01 09:57:09 +05:30
vpd_parser.py [Mellanox] Fix issue: PSU model/serial/revision info should be updated after replacing PSU (#9040) 2021-11-01 09:57:09 +05:30
watchdog.py [WARM-REBOOT] fix issue of watchdog on simx when executing warm-reboot command (#8132) 2021-08-03 23:38:37 -07:00