IB/mthca: Recover from catastrophic errors
authorJack Morgenstein <jackm@mellanox.co.il>
Tue, 15 Aug 2006 18:11:18 +0000 (21:11 +0300)
committerRoland Dreier <rolandd@cisco.com>
Fri, 22 Sep 2006 22:22:54 +0000 (15:22 -0700)
commitb3b30f5e8a0c50db3d76b6f7c7cc50245aeb57fd
tree02e7b931be922a71e82da5c9baf273ac5d2312d9
parent07eeec0627e93a1a753c4df004a97a4d0a7b9ceb
IB/mthca: Recover from catastrophic errors

Trigger device remove and then add when a catastrophic error is
detected in hardware.  This, in turn, will cause a device reset, which
we hope will recover from the catastrophic condition.

Since this might interefere with debugging the root cause, add a
module option to suppress this behaviour.

Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_catas.c
drivers/infiniband/hw/mthca/mthca_dev.h
drivers/infiniband/hw/mthca/mthca_main.c