diff options
author | James Smart <James.Smart@Emulex.Com> | 2007-08-02 11:09:43 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-08-01 13:17:30 -0400 |
commit | a58cbd5212fff2d4bba0bf58e778f02069597294 (patch) | |
tree | a2f773026934e3c2dad7642089b96ea48ea00db3 /drivers/scsi/lpfc/lpfc_ct.c | |
parent | c000c43cf12090972fad0fbb621d78c2100d0373 (diff) |
[SCSI] lpfc 8.2.2 : Error messages and debugfs updates
Error messages and debugfs updates:
- Fix up GID_FT error messages
- Enhance debugfs with slow_ring_trace, dumpslim and nodelist information
- Add log type (and messages) for vport state changes
- Enhance log messages when retries ELS fail
Signed-off-by: James Smart <James.Smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_ct.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_ct.c | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/drivers/scsi/lpfc/lpfc_ct.c b/drivers/scsi/lpfc/lpfc_ct.c index ae9d6f385a6c..edbebffa26cf 100644 --- a/drivers/scsi/lpfc/lpfc_ct.c +++ b/drivers/scsi/lpfc/lpfc_ct.c | |||
@@ -607,7 +607,25 @@ lpfc_cmpl_ct_cmd_gid_ft(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb, | |||
607 | } else if (CTrsp->CommandResponse.bits.CmdRsp == | 607 | } else if (CTrsp->CommandResponse.bits.CmdRsp == |
608 | be16_to_cpu(SLI_CT_RESPONSE_FS_RJT)) { | 608 | be16_to_cpu(SLI_CT_RESPONSE_FS_RJT)) { |
609 | /* NameServer Rsp Error */ | 609 | /* NameServer Rsp Error */ |
610 | lpfc_printf_log(phba, KERN_INFO, LOG_DISCOVERY, | 610 | if ((CTrsp->ReasonCode == SLI_CT_UNABLE_TO_PERFORM_REQ) |
611 | && (CTrsp->Explanation == SLI_CT_NO_FC4_TYPES)) { | ||
612 | lpfc_printf_log(phba, KERN_INFO, LOG_DISCOVERY, | ||
613 | "%d (%d):0269 No NameServer Entries " | ||
614 | "Data: x%x x%x x%x x%x\n", | ||
615 | phba->brd_no, vport->vpi, | ||
616 | CTrsp->CommandResponse.bits.CmdRsp, | ||
617 | (uint32_t) CTrsp->ReasonCode, | ||
618 | (uint32_t) CTrsp->Explanation, | ||
619 | vport->fc_flag); | ||
620 | |||
621 | lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_CT, | ||
622 | "GID_FT no entry cmd:x%x rsn:x%x exp:x%x", | ||
623 | (uint32_t)CTrsp->CommandResponse.bits.CmdRsp, | ||
624 | (uint32_t) CTrsp->ReasonCode, | ||
625 | (uint32_t) CTrsp->Explanation); | ||
626 | } | ||
627 | else { | ||
628 | lpfc_printf_log(phba, KERN_INFO, LOG_DISCOVERY, | ||
611 | "%d (%d):0240 NameServer Rsp Error " | 629 | "%d (%d):0240 NameServer Rsp Error " |
612 | "Data: x%x x%x x%x x%x\n", | 630 | "Data: x%x x%x x%x x%x\n", |
613 | phba->brd_no, vport->vpi, | 631 | phba->brd_no, vport->vpi, |
@@ -616,11 +634,13 @@ lpfc_cmpl_ct_cmd_gid_ft(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb, | |||
616 | (uint32_t) CTrsp->Explanation, | 634 | (uint32_t) CTrsp->Explanation, |
617 | vport->fc_flag); | 635 | vport->fc_flag); |
618 | 636 | ||
619 | lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_CT, | 637 | lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_CT, |
620 | "GID_FT rsp err1 cmd:x%x rsn:x%x exp:x%x", | 638 | "GID_FT rsp err1 cmd:x%x rsn:x%x exp:x%x", |
621 | (uint32_t)CTrsp->CommandResponse.bits.CmdRsp, | 639 | (uint32_t)CTrsp->CommandResponse.bits.CmdRsp, |
622 | (uint32_t) CTrsp->ReasonCode, | 640 | (uint32_t) CTrsp->ReasonCode, |
623 | (uint32_t) CTrsp->Explanation); | 641 | (uint32_t) CTrsp->Explanation); |
642 | } | ||
643 | |||
624 | 644 | ||
625 | } else { | 645 | } else { |
626 | /* NameServer Rsp Error */ | 646 | /* NameServer Rsp Error */ |
@@ -696,7 +716,7 @@ lpfc_cmpl_ct_cmd_gff_id(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb, | |||
696 | if ((fbits & FC4_FEATURE_INIT) && | 716 | if ((fbits & FC4_FEATURE_INIT) && |
697 | !(fbits & FC4_FEATURE_TARGET)) { | 717 | !(fbits & FC4_FEATURE_TARGET)) { |
698 | lpfc_printf_log(phba, KERN_INFO, LOG_DISCOVERY, | 718 | lpfc_printf_log(phba, KERN_INFO, LOG_DISCOVERY, |
699 | "%d (%d):0245 Skip x%x GFF " | 719 | "%d (%d):0270 Skip x%x GFF " |
700 | "NameServer Rsp Data: (init) " | 720 | "NameServer Rsp Data: (init) " |
701 | "x%x x%x\n", phba->brd_no, | 721 | "x%x x%x\n", phba->brd_no, |
702 | vport->vpi, did, fbits, | 722 | vport->vpi, did, fbits, |