4c421e8157
Some mlx5 adapter firmware allows the driver to reset the firmware in the event of an error. When a software reset is issued on any physical function all PFs enter reset state. This is a recoverable condition. The existing recovery flow was designed to allow the recovery of a VF after a PF driver reload. This patch expands the scope of that flow to recover PFs or VFs after a SW reset has been issued. When a software reset is issued the following occurs: 1. The NIC interface mode is set to SW_RESET (7) while the reset is in progress. 2. Once the reset completes the NIC interface mode is set to NIC disabled (1). After the reset has been issued (added in a subsequent patch) the health poll for other functions will detect that the NIC interface state has been set to disabled. This will cause it to enter the existing recovery flow. If the PCI is still working (meaning it doesn't return 0xff on all reads) it means recovery can proceed immediately instead of waiting 60 seconds. The error detetion has also been refactored to avoid incorrect or misleading log messages. Submitted by: slavash@ MFC after: 1 week Sponsored by: Mellanox Technologies |
||
---|---|---|
.. | ||
mlx5_core | ||
mlx5_en | ||
mlx5_ib | ||
cmd.h | ||
cq.h | ||
device.h | ||
diagnostics.h | ||
doorbell.h | ||
driver.h | ||
fs.h | ||
mlx5_ifc.h | ||
mlx5_rdma_if.h | ||
mlx5io.h | ||
port.h | ||
qp.h | ||
srq.h | ||
vport.h |