net/mlx5: Print more info on pci error handlers
authorSaeed Mahameed <saeedm@nvidia.com>
Tue, 5 Oct 2021 01:39:51 +0000 (18:39 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Nov 2022 14:59:19 +0000 (23:59 +0900)
commit9e6523d06a09befee756e4a0ebb55727ebc46278
tree735f5f21dd870eaf1c5574576114fca098f3c4f3
parentab3de780c176bb91995c6166a576b370d9726e17
net/mlx5: Print more info on pci error handlers

[ Upstream commit fad1783a6d669ac82b6ea4f2f32b4ba2b5484920 ]

In case mlx5_pci_err_detected was called with state equals to
pci_channel_io_perm_failure, the driver will never come back up.

It is nice to know why the driver went to zombie land, so print some
useful information on pci err handlers.

Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Stable-dep-of: 416ef7136319 ("net/mlx5: Update fw fatal reporter state on PCI handlers successful recover")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/main.c