Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Oct 2018 14:12:48 +0000 (UTC)
From:      Slava Shwartsman <slavash@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r339713 - in stable/10/sys/dev/mlx5: . mlx5_core
Message-ID:  <201810251412.w9PECmBj037171@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: slavash
Date: Thu Oct 25 14:12:48 2018
New Revision: 339713
URL: https://svnweb.freebsd.org/changeset/base/339713

Log:
  MFC r339584:
  mlx5: Notify user that the ConnectX-6 shutdown its port due to power limitation
  
  If power exceed the slot limit, or slot limit is unknown the ConnectX-6
  firmware will shutdown its port.
  Inform the user via debug message.
  
  Approved by:    hselasky (mentor), kib (mentor)
  Sponsored by:   Mellanox Technologies

Modified:
  stable/10/sys/dev/mlx5/device.h
  stable/10/sys/dev/mlx5/mlx5_core/mlx5_eq.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/mlx5/device.h
==============================================================================
--- stable/10/sys/dev/mlx5/device.h	Thu Oct 25 14:10:28 2018	(r339712)
+++ stable/10/sys/dev/mlx5/device.h	Thu Oct 25 14:12:48 2018	(r339713)
@@ -475,6 +475,7 @@ enum {
 	MLX5_MODULE_EVENT_ERROR_UNKNOWN_IDENTIFIER                    = 0x5,
 	MLX5_MODULE_EVENT_ERROR_HIGH_TEMPERATURE                      = 0x6,
 	MLX5_MODULE_EVENT_ERROR_CABLE_IS_SHORTED                      = 0x7,
+	MLX5_MODULE_EVENT_ERROR_PCIE_SYSTEM_POWER_SLOT_EXCEEDED       = 0xc,
 };
 
 struct mlx5_eqe_port_module_event {

Modified: stable/10/sys/dev/mlx5/mlx5_core/mlx5_eq.c
==============================================================================
--- stable/10/sys/dev/mlx5/mlx5_core/mlx5_eq.c	Thu Oct 25 14:10:28 2018	(r339712)
+++ stable/10/sys/dev/mlx5/mlx5_core/mlx5_eq.c	Thu Oct 25 14:12:48 2018	(r339713)
@@ -618,6 +618,12 @@ static const char *mlx5_port_module_event_error_type_t
 		return "High Temperature";
 	case MLX5_MODULE_EVENT_ERROR_CABLE_IS_SHORTED:
 		return "Cable is shorted";
+	case MLX5_MODULE_EVENT_ERROR_PCIE_SYSTEM_POWER_SLOT_EXCEEDED:
+		return "One or more network ports have been powered "
+			"down due to insufficient/unadvertised power on "
+			"the PCIe slot. Please refer to the card's user "
+			"manual for power specifications or contact "
+			"Mellanox support.";
 
 	default:
 		return "Unknown error type";



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810251412.w9PECmBj037171>