diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_debugfs.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_debugfs.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/drivers/scsi/lpfc/lpfc_debugfs.c b/drivers/scsi/lpfc/lpfc_debugfs.c index 52be5644e07a..5dd66925f4ca 100644 --- a/drivers/scsi/lpfc/lpfc_debugfs.c +++ b/drivers/scsi/lpfc/lpfc_debugfs.c | |||
@@ -280,6 +280,8 @@ lpfc_debugfs_hbqinfo_data(struct lpfc_hba *phba, char *buf, int size) | |||
280 | struct lpfc_dmabuf *d_buf; | 280 | struct lpfc_dmabuf *d_buf; |
281 | struct hbq_dmabuf *hbq_buf; | 281 | struct hbq_dmabuf *hbq_buf; |
282 | 282 | ||
283 | if (phba->sli_rev != 3) | ||
284 | return 0; | ||
283 | cnt = LPFC_HBQINFO_SIZE; | 285 | cnt = LPFC_HBQINFO_SIZE; |
284 | spin_lock_irq(&phba->hbalock); | 286 | spin_lock_irq(&phba->hbalock); |
285 | 287 | ||
@@ -489,12 +491,15 @@ lpfc_debugfs_dumpHostSlim_data(struct lpfc_hba *phba, char *buf, int size) | |||
489 | pring->next_cmdidx, pring->local_getidx, | 491 | pring->next_cmdidx, pring->local_getidx, |
490 | pring->flag, pgpp->rspPutInx, pring->numRiocb); | 492 | pring->flag, pgpp->rspPutInx, pring->numRiocb); |
491 | } | 493 | } |
492 | word0 = readl(phba->HAregaddr); | 494 | |
493 | word1 = readl(phba->CAregaddr); | 495 | if (phba->sli_rev <= LPFC_SLI_REV3) { |
494 | word2 = readl(phba->HSregaddr); | 496 | word0 = readl(phba->HAregaddr); |
495 | word3 = readl(phba->HCregaddr); | 497 | word1 = readl(phba->CAregaddr); |
496 | len += snprintf(buf+len, size-len, "HA:%08x CA:%08x HS:%08x HC:%08x\n", | 498 | word2 = readl(phba->HSregaddr); |
497 | word0, word1, word2, word3); | 499 | word3 = readl(phba->HCregaddr); |
500 | len += snprintf(buf+len, size-len, "HA:%08x CA:%08x HS:%08x " | ||
501 | "HC:%08x\n", word0, word1, word2, word3); | ||
502 | } | ||
498 | spin_unlock_irq(&phba->hbalock); | 503 | spin_unlock_irq(&phba->hbalock); |
499 | return len; | 504 | return len; |
500 | } | 505 | } |