sonic-buildimage/platform/mellanox
Kebo Liu ab54549d53 [Mellanox] Skip the leftover hardware reboot cause in case of last boot is warm/fast reboot (#13246)
- Why I did it
In case of warm/fast reboot, the hardware reboot cause will NOT be cleared because CPLD will not be touched in this flow. To not confuse the reboot cause determine logic, the leftover hardware reboot cause shall be skipped by the platform API, platform API will return the 'REBOOT_CAUSE_NON_HARDWARE' instead of the "hardware" reboot cause.

- How I did it
Check the proc cmdline to see whether the last reboot is a warm or fast reboot, if yes skip checking the leftover hardware reboot cause.

- How to verify it
a. Manual test:
    - Perform a power loss
    - Perform a warm/fast reboot
    - Check the reboot cause should be "warm-reboot" or "fast-reboot" instead of "power loss"
b. Run reboot cause related regression test.

Signed-off-by: Kebo Liu <kebol@nvidia.com>
2023-01-31 18:34:36 +08:00
..
docker-saiserver-mlnx [infra] Support syslog rate limit configuration (#12490) (#13535) 2023-01-30 20:11:44 +02:00
docker-syncd-mlnx [infra] Support syslog rate limit configuration (#12490) (#13535) 2023-01-30 20:11:44 +02:00
docker-syncd-mlnx-rpc Upgrade mellanox platform containers (syncd / saiserver / syncd-rpc) and pmon to bullseye (#10580) 2022-05-10 12:45:28 +03:00
hw-management [Mellanox] Update hw-mgmt package to V.7.0020.3006 (#11538) 2022-08-11 08:59:26 +03:00
issu-version Upgrade mellanox platform containers (syncd / saiserver / syncd-rpc) and pmon to bullseye (#10580) 2022-05-10 12:45:28 +03:00
mft [Mellanox] Add arm64 architecture support to mellanox platform (#11342) 2022-07-13 16:21:33 +03:00
mlnx-platform-api [Mellanox] Skip the leftover hardware reboot cause in case of last boot is warm/fast reboot (#13246) 2023-01-31 18:34:36 +08:00
mlnx-sai [submodule]Advance sairdis with sai 1.11 and add brcm and mlnx sai sdk (#12471) (#12820) 2022-11-24 23:30:54 +08:00
non-upstream-patches Added BUILD flags to provision for building the kernel with non-upstream patches (#12428) 2022-10-31 12:16:05 -07:00
sdk-src [Mellanox] Add SDK hash calculator debian and update SDK makefile to compile it (#12840) 2022-12-10 10:33:21 +08:00
.gitignore
asic_table.j2
docker-saiserver-mlnx.dep
docker-saiserver-mlnx.mk Upgrade mellanox platform containers (syncd / saiserver / syncd-rpc) and pmon to bullseye (#10580) 2022-05-10 12:45:28 +03:00
docker-syncd-mlnx-rpc.dep
docker-syncd-mlnx-rpc.mk Upgrade mellanox platform containers (syncd / saiserver / syncd-rpc) and pmon to bullseye (#10580) 2022-05-10 12:45:28 +03:00
docker-syncd-mlnx.dep [build][asan] make dpkg cache asan-aware (#10750) 2022-05-31 11:15:44 +03:00
docker-syncd-mlnx.mk [asan] add debug package for asan-enabled containers (#10953) 2022-05-31 09:24:18 +03:00
fw.dep [Mellanox] Add support to Mellanox Spectrum-4 ASIC Firmware compiling and upgrade (#12844) 2022-12-10 10:33:21 +08:00
fw.mk [202211][Mellanox] Add ASIC simulation version tag to fw.mk (#13473) 2023-01-23 13:28:19 +02:00
hw-management.dep
hw-management.mk [Mellanox] Update hw-mgmt package to V.7.0020.3006 (#11538) 2022-08-11 08:59:26 +03:00
install-pending-fw.dep
install-pending-fw.mk
install-pending-fw.py
issu-version.dep
issu-version.mk Upgrade mellanox platform containers (syncd / saiserver / syncd-rpc) and pmon to bullseye (#10580) 2022-05-10 12:45:28 +03:00
libsaithrift-dev.dep
libsaithrift-dev.mk [Mellanox] Add arm64 architecture support to mellanox platform (#11342) 2022-07-13 16:21:33 +03:00
mft.dep
mft.mk [Mellanox] Update MFT to v4.21.0-100 (#11758) 2022-09-30 09:48:40 +03:00
mlnx-ffb.dep
mlnx-ffb.mk
mlnx-ffb.sh
mlnx-fw-upgrade.j2 [Mellanox] Add support to Mellanox Spectrum-4 ASIC Firmware compiling and upgrade (#12844) 2022-12-10 10:33:21 +08:00
mlnx-onie-fw-update.dep
mlnx-onie-fw-update.mk
mlnx-onie-fw-update.sh
mlnx-platform-api.dep
mlnx-platform-api.mk [sonic-platform-common][sonic-platform-daemons] submodule update; Remove python2 sonic-platform-common wheel (#10994) 2022-06-04 07:41:15 -07:00
mlnx-sai.dep
mlnx-sai.mk [submodule]Advance sairdis with sai 1.11 and add brcm and mlnx sai sdk (#12471) (#12820) 2022-11-24 23:30:54 +08:00
mlnx-ssd-fw-update.dep
mlnx-ssd-fw-update.mk
mlnx-ssd-fw-update.sh [Mellanox] Enhance Platform API to support SN2201 - RJ45 ports and new components mgmt. (#10377) 2022-06-20 19:12:20 -07:00
one-image.dep
one-image.mk
peripheral_table.j2
platform.conf
rules.dep
rules.mk Added BUILD flags to provision for building the kernel with non-upstream patches (#12428) 2022-10-31 12:16:05 -07:00
sdk.dep [Mellanox] Add SDK hash calculator debian and update SDK makefile to compile it (#12840) 2022-12-10 10:33:21 +08:00
sdk.mk [Mellanox] Add SDK hash calculator debian and update SDK makefile to compile it (#12840) 2022-12-10 10:33:21 +08:00
zero_profiles.j2 [Mellanox] Add NVIDIA copyright header for NVIDIA added files (#12130) 2022-10-02 11:34:24 +03:00