OSDN Git Service

qed: Add infrastructure for error detection and recovery
authorTomer Tayar <tomer.tayar@cavium.com>
Sun, 20 Jan 2019 09:36:38 +0000 (11:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jan 2019 01:30:38 +0000 (17:30 -0800)
commitc75860e48a7634ff8dc050842211f79a0e4e6c46
tree3ef1c7a2f75dfea53eb8a94864ff07c6a815f991
parentcfdb1b63eefe918e5c8419c9a88188fef1b9cc5e
qed: Add infrastructure for error detection and recovery

This patch adds the detection and handling of a parity error ("process kill
event"), including the update of the protocol drivers, and the prevention
of any HW access that will lead to device access towards the host while
recovery is in progress.
It also provides the means for the protocol drivers to trigger a recovery
process on their decision.

Signed-off-by: Tomer Tayar <tomer.tayar@cavium.com>
Signed-off-by: Ariel Elior <ariel.elior@cavium.com>
Signed-off-by: Michal Kalderon <michal.kalderon@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed.h
drivers/net/ethernet/qlogic/qed/qed_dev.c
drivers/net/ethernet/qlogic/qed/qed_hsi.h
drivers/net/ethernet/qlogic/qed/qed_hw.c
drivers/net/ethernet/qlogic/qed/qed_main.c
drivers/net/ethernet/qlogic/qed/qed_mcp.c
drivers/net/ethernet/qlogic/qed/qed_mcp.h
drivers/net/ethernet/qlogic/qed/qed_reg_addr.h
drivers/net/ethernet/qlogic/qed/qed_spq.c
drivers/net/ethernet/qlogic/qed/qed_sriov.c
include/linux/qed/qed_if.h