sonic-buildimage/platform
Kebo Liu a569bfc9eb
skip hw reboot cause if warm/fast reboot found from the proc cmdline (#13378)
#### Why I did it
Backport https://github.com/sonic-net/sonic-buildimage/pull/13246 to 202012 branch.

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:
> 1. Perform a power loss
> 2. Perform a warm/fast reboot
> 3. check the reboot cause should be "warm-reboot" or "fast-reboot" instead of "power loss"

b. Run reboot cause related regression test.
2023-01-17 13:21:31 -08:00
..
barefoot [ BFN ] update SDE package for BFN platform (#10049) 2022-03-04 20:43:08 -08:00
broadcom [DellEMC] Master: S6100: SSD upgrade status: Moving from smartctl to iSMART (#12784) 2023-01-12 23:30:02 +00:00
cavium [202012][Monit] Deprecate the feature of monitoring the critical processes by Monit (#7823) 2021-06-09 09:04:22 -07:00
centec [202012][Monit] Deprecate the feature of monitoring the critical processes by Monit (#7823) 2021-06-09 09:04:22 -07:00
centec-arm64 [arm] support compile sonic arm image on arm server (#7285) 2021-05-02 08:11:56 -07:00
checkout [cisco]: Update cisco-8000.ini (#13182) 2023-01-01 11:58:59 -08:00
generic [dockers] Rename 'docker-snmp-sv2' to 'docker-snmp' (#4699) 2020-06-11 16:04:23 -07:00
innovium Innovium: update 202012 build files (#8524) 2021-09-14 19:17:01 -07:00
marvell [202012][Monit] Deprecate the feature of monitoring the critical processes by Monit (#7823) 2021-06-09 09:04:22 -07:00
marvell-arm64 [202012][Monit] Deprecate the feature of monitoring the critical processes by Monit (#7823) 2021-06-09 09:04:22 -07:00
marvell-armhf [armhf][sonic-installer] Fix issue of the sonic-installer install a image after sonic-installer clean (#12609) 2023-01-12 23:30:07 +00:00
mellanox skip hw reboot cause if warm/fast reboot found from the proc cmdline (#13378) 2023-01-17 13:21:31 -08:00
nephos [202012][Monit] Deprecate the feature of monitoring the critical processes by Monit (#7823) 2021-06-09 09:04:22 -07:00
p4 Add support to start fdbsyncd when orchagent docker starts (#5979) 2020-12-24 18:36:01 -08:00
pddf [PDDF] Build and install Python 3 package (#6286) 2021-02-23 23:56:01 +00:00
template Add gearbox phy device files and a new physyncd docker to support VS gearbox phy feature (#4851) 2020-09-25 08:32:44 -07:00
vs [SAI-PTF][202012]Fix sai ptf 202012 (#12724) 2022-11-16 20:32:24 -08:00