[SRU][N:linux-bluefield][PATCH v1 2/4] net/mlx5: Log health buffer data on any syndrome
Stav Aviram
saviram at nvidia.com
Mon Oct 6 09:40:46 UTC 2025
From: Moshe Shemesh <moshe at nvidia.com>
BugLink: https://bugs.launchpad.net/bugs/2126876
Currently health buffer data is logged either when FW fatal error
detected or miss counter reached max misses threshold.
Log health buffer whenever new health syndrome is detected.
Signed-off-by: Moshe Shemesh <moshe at nvidia.com>
Reviewed-by: Shahar Shitrit <shshitrit at nvidia.com>
Signed-off-by: Tariq Toukan <tariqt at nvidia.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil at broadcom.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
(cherry picked from commit 6bdce277a32632045648abaf3386bb5229670e68)
Signed-off-by: Stav Aviram <saviram at nvidia.com>
---
drivers/net/ethernet/mellanox/mlx5/core/health.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/health.c b/drivers/net/ethernet/mellanox/mlx5/core/health.c
index 206011101614..2cdcafff6278 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/health.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/health.c
@@ -791,8 +791,10 @@ static void poll_health(struct timer_list *t)
prev_synd = health->synd;
health->synd = ioread8(&h->synd);
- if (health->synd && health->synd != prev_synd)
+ if (health->synd && health->synd != prev_synd) {
+ print_health_info(dev);
queue_work(health->wq, &health->report_work);
+ }
out:
mod_timer(&health->timer, get_next_poll_jiffies(dev));
--
2.38.1
More information about the kernel-team
mailing list