Patch "net/mlx5: Update fw fatal reporter state on PCI handlers successful recover" has been added to the 6.0-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net/mlx5: Update fw fatal reporter state on PCI handlers successful recover

to the 6.0-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-mlx5-update-fw-fatal-reporter-state-on-pci-handl.patch
and it can be found in the queue-6.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 1de38d26ab1590cb957e89e440eddea9d0fd560a
Author: Roy Novich <royno@xxxxxxxxxx>
Date:   Wed Oct 26 14:51:48 2022 +0100

    net/mlx5: Update fw fatal reporter state on PCI handlers successful recover
    
    [ Upstream commit 416ef713631937cf5452476a7f1041a3ae7b06c6 ]
    
    Update devlink health fw fatal reporter state to "healthy" is needed by
    strictly calling devlink_health_reporter_state_update() after recovery
    was done by PCI error handler. This is needed when fw_fatal reporter was
    triggered due to PCI error. Poll health is called and set reporter state
    to error. Health recovery failed (since EEH didn't re-enable the PCI).
    PCI handlers keep on recover flow and succeed later without devlink
    acknowledgment. Fix this by adding devlink state update at the end of
    the PCI handler recovery process.
    
    Fixes: 6181e5cb752e ("devlink: add support for reporter recovery completion")
    Signed-off-by: Roy Novich <royno@xxxxxxxxxx>
    Reviewed-by: Moshe Shemesh <moshe@xxxxxxxxxx>
    Reviewed-by: Aya Levin <ayal@xxxxxxxxxx>
    Signed-off-by: Saeed Mahameed <saeedm@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20221026135153.154807-11-saeed@xxxxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/drivers/net/ethernet/mellanox/mlx5/core/main.c
index 89b2d9cea33f..e5e32430b6af 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/main.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c
@@ -1833,6 +1833,10 @@ static void mlx5_pci_resume(struct pci_dev *pdev)
 
 	err = mlx5_load_one(dev, false);
 
+	if (!err)
+		devlink_health_reporter_state_update(dev->priv.health.fw_fatal_reporter,
+						     DEVLINK_HEALTH_REPORTER_STATE_HEALTHY);
+
 	mlx5_pci_trace(dev, "Done, err = %d, device %s\n", err,
 		       !err ? "recovered" : "Failed");
 }



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux