History

net/mlx5: Handle SW reset of FW in error flow

New mlx5 adapters allow the driver to reset the FW in the event of an error, this action called "SW Reset". When an SW reset is issued on any PF all PFs enter reset state which is a recoverable condition. The existing recovery flow was designed to allow the recovery of a VF after a PF driver reload. This patch adds the sw reset to the NIC states as a preparation for sw reset handling. When a software reset is issued the following occurs: 1. The NIC interface mode is set to 7 while the reset is in progress. 2. Once the reset completes the NIC interface mode is set to 1.

Feras Daoud committed 8 years ago

Commit 63cbc551 parent 8b9d8ba5 files · +48 −65Browse files

Showing the changes to include/linux (1 of 5 files). Show all

Unified · Split

include/linux/mlx5/driver.h+1−1
@@ -435,6 +435,7 @@ struct mlx5_core_health { · 434 unmodified lines
435 u32 prev;435 u32 prev;
436 int miss_counter;436 int miss_counter;
437 bool sick;437 bool sick;
438 u32 fatal_error;
438 u32 crdump_size;439 u32 crdump_size;
439 /* wq spinlock to synchronize draining */440 /* wq spinlock to synchronize draining */
440 spinlock_t wq_lock;441 spinlock_t wq_lock;
@@ -906,7 +907,6 @@ void mlx5_start_health_poll(struct mlx5_core_dev *dev); · 465 unmodified lines
906void mlx5_stop_health_poll(struct mlx5_core_dev *dev, bool disable_health);907void mlx5_stop_health_poll(struct mlx5_core_dev *dev, bool disable_health);
907void mlx5_drain_health_wq(struct mlx5_core_dev *dev);908void mlx5_drain_health_wq(struct mlx5_core_dev *dev);
908void mlx5_trigger_health_work(struct mlx5_core_dev *dev);909void mlx5_trigger_health_work(struct mlx5_core_dev *dev);
909void mlx5_drain_health_recovery(struct mlx5_core_dev *dev);
910int mlx5_buf_alloc_node(struct mlx5_core_dev *dev, int size,910int mlx5_buf_alloc_node(struct mlx5_core_dev *dev, int size,
911 struct mlx5_frag_buf *buf, int node);911 struct mlx5_frag_buf *buf, int node);
912int mlx5_buf_alloc(struct mlx5_core_dev *dev,912int mlx5_buf_alloc(struct mlx5_core_dev *dev,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t