sonic-buildimage/platform/mellanox/mlnx-platform-api/tests
Junchao-Mellanox 1b84f3daa5
[Mellanox] update asic and module temperature in a thread for CMIS management (#16955)
- Why I did it
When module is totally under software control, driver cannot get module temperature/temperature threshold from firmware. In this case, sonic needs to get temperature/temperature threshold from EEPROM. In this PR, a thread thermal updater is created to update module temperature/temperature threshold while software control is enabled.

- How I did it
Query ASIC temperature from SDK sysfs and update hw-management-tc periodically
Query Module temperature from EEPROM and update hw-management-tc periodically

- How to verify it
Manual test
New Unit tests
2023-12-13 14:19:44 +02:00
..
input_platform [Mellanox] Use sdk sysfs instead of ethtool (#12480) 2022-11-03 11:17:44 -07:00
__init__.py [Mellanox] Add NVIDIA Copyright header to "mellanox" files (#8799) 2021-10-17 19:03:02 +03:00
conftest.py [Mellanox] Upgrade HW-MGMT to 7.0030.2008 and update platform-api (#17134) 2023-11-21 18:53:15 -08:00
dmi_file [Mellanox] Add more unit test coverage for platform API (#15842) 2023-08-03 13:54:31 +03:00
mock_eeprom_data [Mellanox] Refactor Mellanox platform API to support dynamic port configuration (#8422) 2021-10-25 07:59:06 +03:00
mock_platform.py [Mellanox] Add NVIDIA Copyright header to "mellanox" files (#8799) 2021-10-17 19:03:02 +03:00
mock_psu_vpd [Mellanox] Refactor Mellanox platform API to support dynamic port configuration (#8422) 2021-10-25 07:59:06 +03:00
test_chassis.py [Mellanox] Enable CMIS host management (#16846) 2023-12-07 14:54:56 +02:00
test_component.py [Mellanox] Add more unit test coverage for platform API (#15842) 2023-08-03 13:54:31 +03:00
test_device_data.py [Mellanox] Provide default implementation for sfp error description when CMIS host management is enabled (#17294) 2023-12-05 20:27:29 +02:00
test_eeprom.py [Mellanox] Check system eeprom existence in a retry manner (#13884) 2023-02-21 19:40:16 +02:00
test_fan_api.py [Mellanox] Upgrade HW-MGMT to 7.0030.2008 and update platform-api (#17134) 2023-11-21 18:53:15 -08:00
test_firmware.py [Mellanox] Update NVIDIA License header for files changed since 1.1.2022 (#10289) 2022-03-23 13:19:25 +02:00
test_led.py [Mellanox] Add more unit test coverage for platform API (#15842) 2023-08-03 13:54:31 +03:00
test_module.py [Mellanox] Enhance Platform API to support SN2201 - RJ45 ports and new components mgmt. (#10377) 2022-06-20 19:12:20 -07:00
test_pcie.py [Mellanox] Add more unit test coverage for platform API (#15842) 2023-08-03 13:54:31 +03:00
test_psu.py [Mellanox] Add more unit test coverage for platform API (#15842) 2023-08-03 13:54:31 +03:00
test_sfp_event.py [Mellanox] Refactor Mellanox platform API to support dynamic port configuration (#8422) 2021-10-25 07:59:06 +03:00
test_sfp.py [Mellanox] update asic and module temperature in a thread for CMIS management (#16955) 2023-12-13 14:19:44 +02:00
test_thermal_updater.py [Mellanox] update asic and module temperature in a thread for CMIS management (#16955) 2023-12-13 14:19:44 +02:00
test_thermal.py [Mellanox] update asic and module temperature in a thread for CMIS management (#16955) 2023-12-13 14:19:44 +02:00
test_utils.py [Mellanox] update asic and module temperature in a thread for CMIS management (#16955) 2023-12-13 14:19:44 +02:00
test_watchdog.py [Mellanox] Fix issue: watchdogutil command does not work (#16091) 2023-08-23 09:30:58 +03:00