sonic-buildimage/platform/mellanox/mlnx-platform-api/sonic_platform
Junchao-Mellanox 7368df7839
[Mellanox] Enable CMIS host management (#16846) (#17684)
- Why I did it
Enable CMIS host management for Mellanox devices which are expected to support the feature

- How I did it
new thread in a new file and changing logic in platform code in chassis.py which is calling this thread from get_change_event()
this thread in the new file handles the state machine per port.
first the static detection takes place once the thread is up (during switch bootup sequence), until final decision if it's FW control or SW control module.
After it ends, the dynamic detection takes place, listening to changes in the sysfs fds, per port,
so it will be able to detect plug in or out events of a cable.

- How to verify it
Enhanced unit tests
run sonic mgmt on Nvidia SN4700 with CMIS host management enabled

Co-authored-by: dbarashinvd <105214075+dbarashinvd@users.noreply.github.com>
2024-01-05 12:07:30 -08:00
..
__init__.py [Mellanox] Add NVIDIA Copyright header to "mellanox" files (#8799) 2021-10-17 19:03:02 +03:00
chassis.py [Mellanox] Enable CMIS host management (#16846) (#17684) 2024-01-05 12:07:30 -08:00
component.py [Mellanox] Add more unit test coverage for platform API (#15842) 2023-08-03 13:54:31 +03:00
cpu_thermal_control.py [Mellanox] Add CPU thermal control for Nvidia platforms (#10202) 2022-03-21 09:54:52 -07:00
device_data.py [Mellanox] Enable CMIS host management (#16846) (#17684) 2024-01-05 12:07:30 -08:00
eeprom.py [Mellanox] Support running hw-management service on MSN4700 emulation platform (#16584) 2023-11-19 11:03:46 +02:00
fan_drawer.py [Mellanox] add PSU fan direction support (#14508) 2023-05-15 21:34:54 +03:00
fan.py [Mellanox] Update HW-MGMT package to new version V.7.0030.1011 (#16239) 2023-09-06 11:32:08 +03:00
led.py [Mellanox] Support UID LED in platform API (#11592) 2023-05-16 08:24:39 +03:00
module.py [Mellanox] Remove TODO comments which are no longer needed (#13023) 2022-12-14 09:57:48 +02:00
modules_mgmt.py [Mellanox] Enable CMIS host management (#16846) (#17684) 2024-01-05 12:07:30 -08:00
pcie.py [Mellanox] Add NVIDIA Copyright header to "mellanox" files (#8799) 2021-10-17 19:03:02 +03:00
platform.py [Mellanox] Refactor Mellanox platform API to support dynamic port configuration (#8422) 2021-10-25 07:59:06 +03:00
psu.py Revert "[Mellanox] Align PSU temperature sysfs node name with hw-management change (#16820)" (#16956) 2023-10-23 11:55:27 +03:00
sfp_event.py [Mellanox] Fix issue: cannot find label port for logical port when logical port number is larger than 64 (#13710) 2023-02-21 08:14:29 +02:00
sfp.py [Mellanox] Provide default implementation for sfp error description when CMIS host management is enabled (#17294) 2024-01-04 10:38:38 +08:00
thermal_manager.py [Mellanox] Update HW-MGMT package to new version V.7.0030.1011 (#16239) 2023-09-06 11:32:08 +03:00
thermal.py Revert "[Mellanox] Align PSU temperature sysfs node name with hw-management change (#16820)" (#16956) 2023-10-23 11:55:27 +03:00
utils.py [Mellanox] Provide default implementation for sfp error description when CMIS host management is enabled (#17294) 2024-01-04 10:38:38 +08:00
vpd_parser.py [Mellanox] Auto correct PSU voltage threshold (WA) (#10394) 2022-04-14 08:14:40 +03:00
watchdog.py [Mellanox] Fix issue: watchdogutil command does not work (#16091) 2023-08-23 09:30:58 +03:00