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
Junchao-Mellanox 5c80d3804b [Mellanox] wait reset cause ready ()
Why I did it
SONiC service determine-reboot-cause might run before driver creating reset cause files. In that case, the reset cause will be "Unknown". This PR introduces a wait mechanism to wait for reset cause sysfs files ready.

How I did it
/run/hw-management/config/reset_attr_ready is the file to indicate all reset cause files are ready. In chassis.get_reboot_cause function, it waits /run/hw-management/config/reset_attr_ready for up to 45 seconds.

How to verify it
Manual test on master/202211/202205
2023-10-04 14:34:27 +08:00
..
__init__.py [Mellanox] Add NVIDIA Copyright header to "mellanox" files () 2021-10-17 19:03:02 +03:00
chassis.py [Mellanox] wait reset cause ready () 2023-10-04 14:34:27 +08:00
component.py [Mellanox] Enhance Platform API to support SN2201 - RJ45 ports and new components mgmt. () 2022-07-28 20:24:49 +00:00
cpu_thermal_control.py [Mellanox] Add CPU thermal control for Nvidia platforms () 2022-03-21 09:54:52 -07:00
device_data.py [Mellanox] [202205] Add sodimm sensor () 2023-03-01 12:14:53 +02:00
eeprom.py [Mellanox] Check system eeprom existence in a retry manner () () 2023-02-22 13:43:03 +08:00
fan_drawer.py [Mellanox] Refactor Mellanox platform API to support dynamic port configuration () 2021-10-25 07:59:06 +03:00
fan.py [Mellanox] Update NVIDIA License header for files changed since 1.1.2022 () 2022-03-23 13:19:25 +02:00
led.py [Mellanox] Allow user to set LED to orange () 2021-12-08 13:05:10 -08:00
module.py [Mellanox] Refactor Mellanox platform API to support dynamic port configuration () 2021-10-25 07:59:06 +03:00
pcie.py [Mellanox] Add NVIDIA Copyright header to "mellanox" files () 2021-10-17 19:03:02 +03:00
platform.py [Mellanox] Refactor Mellanox platform API to support dynamic port configuration () 2021-10-25 07:59:06 +03:00
psu.py [Mellanox] Adjust PSU voltage WA () 2022-04-22 11:02:30 +03:00
sfp_event.py [Mellanox] Fix issue: cannot find label port for logical port when logical port number is larger than 64 () () 2023-02-21 18:15:06 -08:00
sfp.py [202205] [Mellanox] Fix issue: user must set admin down before toggling LPM () 2023-03-24 11:05:49 -07:00
thermal_actions.py [Mellanox] Update NVIDIA License header for files changed since 1.1.2022 () 2022-03-23 13:19:25 +02:00
thermal_conditions.py [Mellanox] Update NVIDIA License header for files changed since 1.1.2022 () 2022-03-23 13:19:25 +02:00
thermal_infos.py [Mellanox] Fan speed should not be 100% when PSU is powered off () 2021-11-24 14:56:00 +02:00
thermal_manager.py [Mellanox] Add CPU thermal control for Nvidia platforms () 2022-03-21 09:54:52 -07:00
thermal.py [Mellanox] [202205] Add sodimm sensor () 2023-03-01 12:14:53 +02:00
utils.py [Mellanox] Check system eeprom existence in a retry manner () () 2023-02-22 13:43:03 +08:00
vpd_parser.py [Mellanox] Auto correct PSU voltage threshold (WA) () 2022-04-14 08:14:40 +03:00
watchdog.py [Mellanox] Fix issue: watchdogutil command does not work () () 2023-08-25 17:01:37 -07:00