diff options
author | bo yang <bo.yang@lsi.com> | 2007-11-09 04:40:16 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-11 19:22:44 -0500 |
commit | ad84db2e2e1817bb8a29e7c9108eb66bf023d99f (patch) | |
tree | 3dad9cd19c3bc2c9c6e98612c050a9e8343c3f65 /drivers/scsi/megaraid/megaraid_sas.h | |
parent | 7343eb6570ae3b299e7b5185b139d8335ef60e9b (diff) |
[SCSI] megaraid_sas: support for poll_mode_io (reduced interrupt)
Added module parameter "poll_mode_io" to support for "polling"
(reduced interrupt operation). In this mode, IO completion interrupts
are delayed. At the end of initiating IOs, the driver schedules for
cmd completion if there are pending cmds. A timer-based interrupt has
also been added to prevent IO completion from being delayed
indefinitely in the case that no new IOs are initiated. Some
formatting issues in resume, suspend comment block also corrected
Signed-off-by: Bo Yang <bo.yang@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/megaraid/megaraid_sas.h')
-rw-r--r-- | drivers/scsi/megaraid/megaraid_sas.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas.h b/drivers/scsi/megaraid/megaraid_sas.h index c3575a304c6a..dcc66fc9c2cb 100644 --- a/drivers/scsi/megaraid/megaraid_sas.h +++ b/drivers/scsi/megaraid/megaraid_sas.h | |||
@@ -572,6 +572,7 @@ struct megasas_ctrl_info { | |||
572 | 572 | ||
573 | #define MFI_OB_INTR_STATUS_MASK 0x00000002 | 573 | #define MFI_OB_INTR_STATUS_MASK 0x00000002 |
574 | #define MFI_POLL_TIMEOUT_SECS 60 | 574 | #define MFI_POLL_TIMEOUT_SECS 60 |
575 | #define MEGASAS_COMPLETION_TIMER_INTERVAL (HZ/10) | ||
575 | 576 | ||
576 | #define MFI_REPLY_1078_MESSAGE_INTERRUPT 0x80000000 | 577 | #define MFI_REPLY_1078_MESSAGE_INTERRUPT 0x80000000 |
577 | 578 | ||
@@ -1111,6 +1112,8 @@ struct megasas_instance { | |||
1111 | 1112 | ||
1112 | u8 flag; | 1113 | u8 flag; |
1113 | unsigned long last_time; | 1114 | unsigned long last_time; |
1115 | |||
1116 | struct timer_list io_completion_timer; | ||
1114 | }; | 1117 | }; |
1115 | 1118 | ||
1116 | #define MEGASAS_IS_LOGICAL(scp) \ | 1119 | #define MEGASAS_IS_LOGICAL(scp) \ |