Patch "net/mlx5: Fix fw reporter diagnose output" has been added to the 6.7-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: Fix fw reporter diagnose output

to the 6.7-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-fix-fw-reporter-diagnose-output.patch
and it can be found in the queue-6.7 subdirectory.

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



commit 25804644171ec00b8f8759f4ea5125285bba5a2e
Author: Aya Levin <ayal@xxxxxxxxxx>
Date:   Tue Jan 16 20:13:34 2024 +0200

    net/mlx5: Fix fw reporter diagnose output
    
    [ Upstream commit ac8082a3c7a158640a2c493ec437dd9da881a6a7 ]
    
    Restore fw reporter diagnose to print the syndrome even if it is zero.
    Following the cited commit, in this case (syndrome == 0) command returns no
    output at all.
    
    This fix restores command output in case syndrome is cleared:
    $ devlink health diagnose pci/0000:82:00.0 reporter fw
        Syndrome: 0
    
    Fixes: d17f98bf7cc9 ("net/mlx5: devlink health: use retained error fmsg API")
    Signed-off-by: Aya Levin <ayal@xxxxxxxxxx>
    Reviewed-by: Moshe Shemesh <moshe@xxxxxxxxxx>
    Signed-off-by: Saeed Mahameed <saeedm@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/health.c b/drivers/net/ethernet/mellanox/mlx5/core/health.c
index 8ff6dc9bc8033..b5c709bba1553 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/health.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/health.c
@@ -452,10 +452,10 @@ mlx5_fw_reporter_diagnose(struct devlink_health_reporter *reporter,
 	struct health_buffer __iomem *h = health->health;
 	u8 synd = ioread8(&h->synd);
 
+	devlink_fmsg_u8_pair_put(fmsg, "Syndrome", synd);
 	if (!synd)
 		return 0;
 
-	devlink_fmsg_u8_pair_put(fmsg, "Syndrome", synd);
 	devlink_fmsg_string_pair_put(fmsg, "Description", hsynd_str(synd));
 
 	return 0;




[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