diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-07-29 17:17:16 -0700 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-08-23 20:05:47 -0700 |
commit | 77cd72a53f6426f81b7f56a862402849ee903bda (patch) | |
tree | abadb6954c238f3810c073d12f55d01140a78790 | |
parent | 9b4be528999483d70a1ffc0accd102e477d5a503 (diff) | |
download | blackbird-op-linux-77cd72a53f6426f81b7f56a862402849ee903bda.tar.gz blackbird-op-linux-77cd72a53f6426f81b7f56a862402849ee903bda.zip |
[SCSI] isci: fix event-get pointer increment
Hardware only increments the put pointer on event types >= 4. Do not
increment the get pointer for event type 3.
Reported-by: Kapil Karkra <kapil.karkra@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r-- | drivers/scsi/isci/host.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/isci/host.c b/drivers/scsi/isci/host.c index 2328f98c7f1e..6981b773a88d 100644 --- a/drivers/scsi/isci/host.c +++ b/drivers/scsi/isci/host.c @@ -531,6 +531,9 @@ static void sci_controller_process_completions(struct isci_host *ihost) break; case SCU_COMPLETION_TYPE_EVENT: + sci_controller_event_completion(ihost, ent); + break; + case SCU_COMPLETION_TYPE_NOTIFY: { event_cycle ^= ((event_get+1) & SCU_MAX_EVENTS) << (SMU_COMPLETION_QUEUE_GET_EVENT_CYCLE_BIT_SHIFT - SCU_MAX_EVENTS_SHIFT); |