Skip to content

Commit

Permalink
[Mellanox] Add a new reset cause for SN2201 platform (#20363)
Browse files Browse the repository at this point in the history
Why I did it
Add a new reset cause "reset_aux_pwr_or_fu" which was added starting from kernel 5.19 for the SN2201 platform.

How I did it
Add a new reset cause "reset_aux_pwr_or_fu" in chassis.reboot_major_cause_dict.

How to verify it
Test the SN2201 platform by triggering a reboot through power-off and verify that the reboot cause is correctly recognized.

Signed-off-by: Kebo Liu <[email protected]>
  • Loading branch information
keboliu authored and mssonicbld committed Nov 15, 2024
1 parent 754445f commit 0811c4d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#
# Copyright (c) 2019-2024 NVIDIA CORPORATION & AFFILIATES.
# SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
# Copyright (c) 2019-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -955,6 +956,7 @@ def initialize_reboot_cause(self):
self.reboot_major_cause_dict = {
'reset_main_pwr_fail' : self.REBOOT_CAUSE_POWER_LOSS,
'reset_aux_pwr_or_ref' : self.REBOOT_CAUSE_POWER_LOSS,
'reset_aux_pwr_or_fu' : self.REBOOT_CAUSE_POWER_LOSS,
'reset_comex_pwr_fail' : self.REBOOT_CAUSE_POWER_LOSS,
'reset_asic_thermal' : self.REBOOT_CAUSE_THERMAL_OVERLOAD_ASIC,
'reset_comex_thermal' : self.REBOOT_CAUSE_THERMAL_OVERLOAD_CPU,
Expand Down

0 comments on commit 0811c4d

Please sign in to comment.