From: Moshe Shemesh Date: Wed, 26 Feb 2025 12:25:41 +0000 (+0200) Subject: net/mlx5: Log health buffer data on any syndrome X-Git-Tag: v6.15-rc1~160^2~199^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6bdce277a32632045648abaf3386bb5229670e68;p=thirdparty%2Fkernel%2Flinux.git net/mlx5: Log health buffer data on any syndrome 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 Reviewed-by: Shahar Shitrit Signed-off-by: Tariq Toukan Reviewed-by: Kalesh AP Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/mellanox/mlx5/core/health.c b/drivers/net/ethernet/mellanox/mlx5/core/health.c index 52c8035547be5..665cbce891757 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/health.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/health.c @@ -806,8 +806,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));