aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2012-06-12 13:54:20 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-07-20 03:58:27 -0400
commit3b3da6a974357887c73c5ee61988dbe3a8f62d88 (patch)
tree2f69140442da360665ec24a6b7b181eed15c9b19
parenta629852ab810015223eec7a2f31a6bd5f93c83cf (diff)
[SCSI] lpfc 8.3.32: Fix CQ and EQ dump failure for debugfs
Fixed debug helper routine failed to dump CQ and EQ entries in non-MSI-X mode Signed-off-by: Alex Iannicelli <alex.iannicelli@emulex.com> Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r--drivers/scsi/lpfc/lpfc_debugfs.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/drivers/scsi/lpfc/lpfc_debugfs.h b/drivers/scsi/lpfc/lpfc_debugfs.h
index 616c400dae14..afe368fd1b98 100644
--- a/drivers/scsi/lpfc/lpfc_debugfs.h
+++ b/drivers/scsi/lpfc/lpfc_debugfs.h
@@ -395,8 +395,13 @@ lpfc_debug_dump_fcp_cq(struct lpfc_hba *phba, int fcp_wqidx)
395 for (fcp_cqidx = 0; fcp_cqidx < phba->cfg_fcp_eq_count; fcp_cqidx++) 395 for (fcp_cqidx = 0; fcp_cqidx < phba->cfg_fcp_eq_count; fcp_cqidx++)
396 if (phba->sli4_hba.fcp_cq[fcp_cqidx]->queue_id == fcp_cqid) 396 if (phba->sli4_hba.fcp_cq[fcp_cqidx]->queue_id == fcp_cqid)
397 break; 397 break;
398 if (fcp_cqidx >= phba->cfg_fcp_eq_count) 398 if (phba->intr_type == MSIX) {
399 return; 399 if (fcp_cqidx >= phba->cfg_fcp_eq_count)
400 return;
401 } else {
402 if (fcp_cqidx > 0)
403 return;
404 }
400 405
401 printk(KERN_ERR "FCP CQ: WQ[Idx:%d|Qid%d]->CQ[Idx%d|Qid%d]:\n", 406 printk(KERN_ERR "FCP CQ: WQ[Idx:%d|Qid%d]->CQ[Idx%d|Qid%d]:\n",
402 fcp_wqidx, phba->sli4_hba.fcp_wq[fcp_wqidx]->queue_id, 407 fcp_wqidx, phba->sli4_hba.fcp_wq[fcp_wqidx]->queue_id,
@@ -426,8 +431,13 @@ lpfc_debug_dump_fcp_eq(struct lpfc_hba *phba, int fcp_wqidx)
426 for (fcp_cqidx = 0; fcp_cqidx < phba->cfg_fcp_eq_count; fcp_cqidx++) 431 for (fcp_cqidx = 0; fcp_cqidx < phba->cfg_fcp_eq_count; fcp_cqidx++)
427 if (phba->sli4_hba.fcp_cq[fcp_cqidx]->queue_id == fcp_cqid) 432 if (phba->sli4_hba.fcp_cq[fcp_cqidx]->queue_id == fcp_cqid)
428 break; 433 break;
429 if (fcp_cqidx >= phba->cfg_fcp_eq_count) 434 if (phba->intr_type == MSIX) {
430 return; 435 if (fcp_cqidx >= phba->cfg_fcp_eq_count)
436 return;
437 } else {
438 if (fcp_cqidx > 0)
439 return;
440 }
431 441
432 if (phba->cfg_fcp_eq_count == 0) { 442 if (phba->cfg_fcp_eq_count == 0) {
433 fcp_eqidx = -1; 443 fcp_eqidx = -1;