This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/platform/mellanox/mlnx-platform-api/sonic_platform
noaOrMlnx 86613b8dcc [Mellanox] Fix timing issue in lpmode change (#18223)
- Why I did it
Changing LPMODE timing is different between cables.
We want to add functionality to make sure LPMODE has changed.
For that, the wait_until utility is used and every 1 second (until timeout), it will check with lower-layers what is the current Lpmode.
Once it is the expected mode, set_lpmode() functino will return True.
If after seconds, Lpmode is still not in the expected mode, set_lpmode() function will return False.

- How I did it
Add use of wait_until function to make sure lpmode was changed.

- How to verify it
sfputil lpmode on
sfputil lpmode off
2024-03-06 07:00:47 +08:00
..
__init__.py [Mellanox] Add NVIDIA Copyright header to "mellanox" files (#8799) 2021-10-17 19:03:02 +03:00
chassis.py [Mellanox] Fix race condition while creating SFP (#17441) 2024-01-09 14:34:47 +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 [202311][Mellanox] implement platform wait in python code (#17398) (#17719) 2024-01-16 08:31:33 -08:00
eeprom.py [Mellanox] Extend the time to wait for EEPROM VPD file creation (#18146) 2024-03-05 07:00:49 +08:00
fan_drawer.py [Mellanox] add PSU fan direction support (#14508) 2023-05-15 21:34:54 +03:00
fan.py [202311][Mellanox] Integrate HW-MGMT Version 7.0030.2008 (#17659) 2024-01-16 08:33:50 -08: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] fix sysfs reading that gets garbage end of line using strip (#17830) 2024-02-17 12:34:31 +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 [202311][Mellanox] Integrate HW-MGMT Version 7.0030.2008 (#17659) 2024-01-16 08:33:50 -08:00
sfp_event.py [Mellanox] Fix uninitialized variable on module plug event (#17011) 2024-02-17 12:34:35 +08:00
sfp.py [Mellanox] Fix timing issue in lpmode change (#18223) 2024-03-06 07:00:47 +08:00
thermal_manager.py [Mellanox] Fix issues found for CMIS host management (#17637) 2024-01-20 06:32:58 +08:00
thermal_updater.py [Mellanox] Fix issues found for CMIS host management (#17637) 2024-01-20 06:32:58 +08:00
thermal.py Fix error log while creating PSU thermal object (#17789) 2024-02-01 09:34:05 +08:00
utils.py [Mellanox] implement sfp.reset for CMIS management (#16862) 2024-01-17 06:33:11 +08:00
vpd_parser.py [Mellanox] Auto correct PSU voltage threshold (WA) (#10394) 2022-04-14 08:14:40 +03:00
watchdog.py [Mellanox] wait until hw-management watchdog files ready (#17618) 2024-01-19 04:32:53 +08:00