svn commit: r361414 - in stable/11/sys/dev/mlx5: . mlx5_core
Konstantin Belousov
kib at FreeBSD.org
Sat May 23 12:00:47 UTC 2020
Author: kib
Date: Sat May 23 12:00:46 2020
New Revision: 361414
URL: https://svnweb.freebsd.org/changeset/base/361414
Log:
MFC r361277:
mlx5_core: add more port module event types to decode.
Sponsored by: Mellanox Technologies
Modified:
stable/11/sys/dev/mlx5/device.h
stable/11/sys/dev/mlx5/mlx5_core/mlx5_eq.c
stable/11/sys/dev/mlx5/mlx5_core/mlx5_main.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/mlx5/device.h
==============================================================================
--- stable/11/sys/dev/mlx5/device.h Sat May 23 11:59:36 2020 (r361413)
+++ stable/11/sys/dev/mlx5/device.h Sat May 23 12:00:46 2020 (r361414)
@@ -552,6 +552,12 @@ enum {
MLX5_MODULE_EVENT_ERROR_HIGH_TEMPERATURE = 0x6,
MLX5_MODULE_EVENT_ERROR_CABLE_IS_SHORTED = 0x7,
MLX5_MODULE_EVENT_ERROR_PMD_TYPE_NOT_ENABLED = 0x8,
+ MLX5_MODULE_EVENT_ERROR_LASTER_TEC_FAILURE = 0x9,
+ MLX5_MODULE_EVENT_ERROR_HIGH_CURRENT = 0xa,
+ MLX5_MODULE_EVENT_ERROR_HIGH_VOLTAGE = 0xb,
+ MLX5_MODULE_EVENT_ERROR_PCIE_SYS_POWER_SLOT_EXCEEDED = 0xc,
+ MLX5_MODULE_EVENT_ERROR_HIGH_POWER = 0xd,
+ MLX5_MODULE_EVENT_ERROR_MODULE_STATE_MACHINE_FAULT = 0xe,
MLX5_MODULE_EVENT_ERROR_NUM ,
};
Modified: stable/11/sys/dev/mlx5/mlx5_core/mlx5_eq.c
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_core/mlx5_eq.c Sat May 23 11:59:36 2020 (r361413)
+++ stable/11/sys/dev/mlx5/mlx5_core/mlx5_eq.c Sat May 23 12:00:46 2020 (r361414)
@@ -661,6 +661,18 @@ static const char *mlx5_port_module_event_error_type_t
return "Bad or shorted cable/module";
case MLX5_MODULE_EVENT_ERROR_PMD_TYPE_NOT_ENABLED:
return "PMD type is not enabled";
+ case MLX5_MODULE_EVENT_ERROR_LASTER_TEC_FAILURE:
+ return "Laster_TEC_failure";
+ case MLX5_MODULE_EVENT_ERROR_HIGH_CURRENT:
+ return "High_current";
+ case MLX5_MODULE_EVENT_ERROR_HIGH_VOLTAGE:
+ return "High_voltage";
+ case MLX5_MODULE_EVENT_ERROR_PCIE_SYS_POWER_SLOT_EXCEEDED:
+ return "pcie_system_power_slot_Exceeded";
+ case MLX5_MODULE_EVENT_ERROR_HIGH_POWER:
+ return "High_power";
+ case MLX5_MODULE_EVENT_ERROR_MODULE_STATE_MACHINE_FAULT:
+ return "Module_state_machine_fault";
default:
return "Unknown error type";
}
Modified: stable/11/sys/dev/mlx5/mlx5_core/mlx5_main.c
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_core/mlx5_main.c Sat May 23 11:59:36 2020 (r361413)
+++ stable/11/sys/dev/mlx5/mlx5_core/mlx5_main.c Sat May 23 12:00:46 2020 (r361414)
@@ -1285,7 +1285,13 @@ m(+1, u64, enforce_part_number, "enforce_part_number",
m(+1, u64, unknown_id, "unknown_id", "Module Unknown identifier") \
m(+1, u64, high_temp, "high_temp", "Module High Temperature") \
m(+1, u64, cable_shorted, "cable_shorted", "Module Cable is shorted") \
-m(+1, u64, pmd_type_not_enabled, "pmd_type_not_enabled", "PMD type is not enabled")
+m(+1, u64, pmd_type_not_enabled, "pmd_type_not_enabled", "PMD type is not enabled") \
+m(+1, u64, laster_tec_failure, "laster_tec_failure", "Laster TEC failure") \
+m(+1, u64, high_current, "high_current", "High current") \
+m(+1, u64, high_voltage, "high_voltage", "High voltage") \
+m(+1, u64, pcie_sys_power_slot_exceeded, "pcie_sys_power_slot_exceeded", "PCIe system power slot Exceeded") \
+m(+1, u64, high_power, "high_power", "High power") \
+m(+1, u64, module_state_machine_fault, "module_state_machine_fault", "Module State Machine fault")
static const char *mlx5_pme_err_desc[] = {
MLX5_PORT_MODULE_ERROR_STATS(MLX5_STATS_DESC)
More information about the svn-src-all
mailing list