aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa.h
diff options
context:
space:
mode:
authorStephen M. Cameron <scameron@beardog.cce.hp.com>2011-05-03 15:59:51 -0400
committerJames Bottomley <jbottomley@parallels.com>2011-05-17 03:07:28 -0400
commit64670ac8702ec37a00ad6e479f3cacbde0fd4efa (patch)
tree6b116d86149c21b24386bf34537d672ba1550fb7 /drivers/scsi/hpsa.h
parentcf0b08d0cd87ada9d284925834d08fb8026da888 (diff)
[SCSI] hpsa: do soft reset if hard reset is broken
on driver load, if reset_devices is set, and the hard reset attempts fail, try to bring up the controller to the point that a command can be sent, and send it a soft reset command, then after the reset undo whatever driver initialization was done to get it to the point to take a command, and re-do it after the reset. This is to get kdump to work on all the "non-resettable" controllers (except 64xx controllers which can't be reset due to the potentially shared cache module.) Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: James Bottomley <jbottomley@parallels.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/hpsa.h')
-rw-r--r--drivers/scsi/hpsa.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/hpsa.h b/drivers/scsi/hpsa.h
index b1412a7f4514..6d8dcd4dd06b 100644
--- a/drivers/scsi/hpsa.h
+++ b/drivers/scsi/hpsa.h
@@ -127,8 +127,10 @@ struct ctlr_info {
127}; 127};
128#define HPSA_ABORT_MSG 0 128#define HPSA_ABORT_MSG 0
129#define HPSA_DEVICE_RESET_MSG 1 129#define HPSA_DEVICE_RESET_MSG 1
130#define HPSA_BUS_RESET_MSG 2 130#define HPSA_RESET_TYPE_CONTROLLER 0x00
131#define HPSA_HOST_RESET_MSG 3 131#define HPSA_RESET_TYPE_BUS 0x01
132#define HPSA_RESET_TYPE_TARGET 0x03
133#define HPSA_RESET_TYPE_LUN 0x04
132#define HPSA_MSG_SEND_RETRY_LIMIT 10 134#define HPSA_MSG_SEND_RETRY_LIMIT 10
133#define HPSA_MSG_SEND_RETRY_INTERVAL_MSECS (10000) 135#define HPSA_MSG_SEND_RETRY_INTERVAL_MSECS (10000)
134 136