svn commit: r331916 - stable/11/sys/dev/mlx5/mlx5_core
Hans Petter Selasky
hselasky at FreeBSD.org
Tue Apr 3 09:29:27 UTC 2018
Author: hselasky
Date: Tue Apr 3 09:29:26 2018
New Revision: 331916
URL: https://svnweb.freebsd.org/changeset/base/331916
Log:
MFC r331823:
Collect firmware dump when mlx5core is in device error state.
Firmware dump collecting should be triggered in case firmware syndrome
with request for reset bit is set.
Submitted by: slavash@
Sponsored by: Mellanox Technologies
Modified:
stable/11/sys/dev/mlx5/mlx5_core/mlx5_health.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/mlx5/mlx5_core/mlx5_health.c
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_core/mlx5_health.c Tue Apr 3 09:28:11 2018 (r331915)
+++ stable/11/sys/dev/mlx5/mlx5_core/mlx5_health.c Tue Apr 3 09:29:26 2018 (r331916)
@@ -221,10 +221,13 @@ void mlx5_enter_error_state(struct mlx5_core_dev *dev,
goto err_state_done;
if (fatal_error == MLX5_SENSOR_FW_SYND_RFR) {
+ /* Get cr-dump and reset FW semaphore */
if (mlx5_core_is_pf(dev))
lock = lock_sem_sw_reset(dev, LOCK);
+ /* Execute cr-dump and SW reset */
if (lock != -EBUSY) {
+ mlx5_fwdump(dev);
reset_fw_if_needed(dev);
delay_ms = MLX5_FW_RESET_WAIT_MS;
}
More information about the svn-src-stable
mailing list