Skip to content

Commit 37a12aa

Browse files
Mikhael GoikhmanSaeed Mahameed
authored andcommitted
net/mlx5: Add support for PCIe power slot exceeded error in PME
Support a new hardware error type in port module events: - error_type=0xc (PCIe system power slot exceeded) Signed-off-by: Mikhael Goikhman <migo@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
1 parent c2fb3db commit 37a12aa

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/events.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ static const char *mlx5_pme_error_to_string(enum port_module_event_error_type er
190190
return "High Temperature";
191191
case MLX5_MODULE_EVENT_ERROR_BAD_CABLE:
192192
return "Bad or shorted cable/module";
193+
case MLX5_MODULE_EVENT_ERROR_PCIE_POWER_SLOT_EXCEEDED:
194+
return "One or more network ports have been powered down due to insufficient/unadvertised power on the PCIe slot";
193195
default:
194196
return "Unknown error";
195197
}

drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ enum port_module_event_error_type {
6363
MLX5_MODULE_EVENT_ERROR_UNKNOWN_IDENTIFIER = 0x5,
6464
MLX5_MODULE_EVENT_ERROR_HIGH_TEMPERATURE = 0x6,
6565
MLX5_MODULE_EVENT_ERROR_BAD_CABLE = 0x7,
66+
MLX5_MODULE_EVENT_ERROR_PCIE_POWER_SLOT_EXCEEDED = 0xc,
6667
MLX5_MODULE_EVENT_ERROR_NUM,
6768
};
6869

0 commit comments

Comments
 (0)