Skip to content

Commit

Permalink
net/mlx5: Log health buffer data on any syndrome
Browse files Browse the repository at this point in the history
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@nvidia.com>
Reviewed-by: Shahar Shitrit <shshitrit@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Moshe Shemesh authored and David S. Miller committed Feb 28, 2025
1 parent b5d7b2f commit 6bdce27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/ethernet/mellanox/mlx5/core/health.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 6bdce27

Please sign in to comment.