aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa_cmd.h
diff options
context:
space:
mode:
authorStephen M. Cameron <scameron@beardog.cce.hp.com>2014-02-18 14:55:43 -0500
committerJames Bottomley <JBottomley@Parallels.com>2014-03-15 13:19:04 -0400
commit76438d087f18fc0ce0431bf22e5195ec3db1656c (patch)
tree8144e1687995df13849d68648fb166eab9f8f83c /drivers/scsi/hpsa_cmd.h
parent250fb125ff94465a20429c4765f079aa142c9d80 (diff)
[SCSI] hpsa: poll controller to detect device change event
For shared SAS configurations, hosts need to poll Smart Arrays periodically in order to be able to detect configuration changes such as logical drives being added or removed from remote hosts. A register on the controller indicates when such events have occurred, and the driver polls the register via a workqueue and kicks off a rescan of devices if such an event is detected. Additionally, changes to logical drive raid offload eligibility are autodetected in this way. Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: Scott Teel <scott.teel@hp.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/hpsa_cmd.h')
-rw-r--r--drivers/scsi/hpsa_cmd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/hpsa_cmd.h b/drivers/scsi/hpsa_cmd.h
index c1ae8d2a6bf2..21f8a616e997 100644
--- a/drivers/scsi/hpsa_cmd.h
+++ b/drivers/scsi/hpsa_cmd.h
@@ -128,6 +128,7 @@
128#define CFGTBL_AccCmds 0x00000001l 128#define CFGTBL_AccCmds 0x00000001l
129#define DOORBELL_CTLR_RESET 0x00000004l 129#define DOORBELL_CTLR_RESET 0x00000004l
130#define DOORBELL_CTLR_RESET2 0x00000020l 130#define DOORBELL_CTLR_RESET2 0x00000020l
131#define DOORBELL_CLEAR_EVENTS 0x00000040l
131 132
132#define CFGTBL_Trans_Simple 0x00000002l 133#define CFGTBL_Trans_Simple 0x00000002l
133#define CFGTBL_Trans_Performant 0x00000004l 134#define CFGTBL_Trans_Performant 0x00000004l
@@ -495,6 +496,8 @@ struct CfgTable {
495 u32 io_accel_max_embedded_sg_count; 496 u32 io_accel_max_embedded_sg_count;
496 u32 io_accel_request_size_offset; 497 u32 io_accel_request_size_offset;
497 u32 event_notify; 498 u32 event_notify;
499#define HPSA_EVENT_NOTIFY_ACCEL_IO_PATH_STATE_CHANGE (1 << 30)
500#define HPSA_EVENT_NOTIFY_ACCEL_IO_PATH_CONFIG_CHANGE (1 << 31)
498 u32 clear_event_notify; 501 u32 clear_event_notify;
499}; 502};
500 503