]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Unload device upon firmware fatal error
authorAya Levin <ayal@nvidia.com>
Wed, 16 Jun 2021 16:11:03 +0000 (19:11 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 27 Jul 2021 23:10:05 +0000 (16:10 -0700)
commit45974ed2fa9000469223dccf0f5fe76e642d9f02
tree3aa789725a5c46de8873e4d78bb637067d01b78c
parent9c718e42706f95a9d8f006cadcee5ecfaaecfa5a
net/mlx5: Unload device upon firmware fatal error

When fw_fatal reporter reports an error, the firmware in not responding.
Unload the device to ensure that the driver closes all its resources,
even if recovery is not due (user disabled auto-recovery or reporter is
in grace period). On successful recovery the device is loaded back up.

Fixes: bfee58a2acc0 ("net/mlx5: Report devlink health on FW fatal issues")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/health.c