diff options
author | James Smart <James.Smart@Emulex.Com> | 2007-04-25 09:52:49 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-05-06 10:33:14 -0400 |
commit | 5b8bd0c9be706677327c01df28bf6b54de008f34 (patch) | |
tree | 5f5a3461af6821afc621c3368887658530372dd3 /drivers/scsi/lpfc/lpfc_els.c | |
parent | 82085718faa6955c8a78b2e6ac2ad95072ac875a (diff) |
[SCSI] lpfc 8.1.12 : Improve diagnostic messages and change local loopback message to KERN_INFO
Improve diagnostic messages and change local loopback message to KERN_INFO
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_els.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_els.c | 66 |
1 files changed, 32 insertions, 34 deletions
diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index 4d9e7f50c189..8f98c5b0bf8c 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c | |||
@@ -2046,10 +2046,9 @@ lpfc_els_rsp_reject(struct lpfc_hba * phba, uint32_t rejectError, | |||
2046 | 2046 | ||
2047 | /* Xmit ELS RJT <err> response tag <ulpIoTag> */ | 2047 | /* Xmit ELS RJT <err> response tag <ulpIoTag> */ |
2048 | lpfc_printf_log(phba, KERN_INFO, LOG_ELS, | 2048 | lpfc_printf_log(phba, KERN_INFO, LOG_ELS, |
2049 | "%d:0129 Xmit ELS RJT x%x response tag x%x " | 2049 | "%d:0129 Xmit ELS RJT x%x response tag x%x xri x%x, " |
2050 | "Data: x%x x%x x%x x%x x%x\n", | 2050 | "did x%x, nlp_flag x%x, nlp_state x%x, rpi x%x\n", |
2051 | phba->brd_no, | 2051 | phba->brd_no, rejectError, elsiocb->iotag, |
2052 | rejectError, elsiocb->iocb.ulpIoTag, | ||
2053 | elsiocb->iocb.ulpContext, ndlp->nlp_DID, | 2052 | elsiocb->iocb.ulpContext, ndlp->nlp_DID, |
2054 | ndlp->nlp_flag, ndlp->nlp_state, ndlp->nlp_rpi); | 2053 | ndlp->nlp_flag, ndlp->nlp_state, ndlp->nlp_rpi); |
2055 | 2054 | ||
@@ -2088,18 +2087,18 @@ lpfc_els_rsp_adisc_acc(struct lpfc_hba * phba, | |||
2088 | if (!elsiocb) | 2087 | if (!elsiocb) |
2089 | return 1; | 2088 | return 1; |
2090 | 2089 | ||
2090 | icmd = &elsiocb->iocb; | ||
2091 | oldcmd = &oldiocb->iocb; | ||
2092 | icmd->ulpContext = oldcmd->ulpContext; /* Xri */ | ||
2093 | |||
2091 | /* Xmit ADISC ACC response tag <ulpIoTag> */ | 2094 | /* Xmit ADISC ACC response tag <ulpIoTag> */ |
2092 | lpfc_printf_log(phba, KERN_INFO, LOG_ELS, | 2095 | lpfc_printf_log(phba, KERN_INFO, LOG_ELS, |
2093 | "%d:0130 Xmit ADISC ACC response tag x%x " | 2096 | "%d:0130 Xmit ADISC ACC response iotag x%x xri: " |
2094 | "Data: x%x x%x x%x x%x x%x\n", | 2097 | "x%x, did x%x, nlp_flag x%x, nlp_state x%x rpi x%x\n", |
2095 | phba->brd_no, | 2098 | phba->brd_no, elsiocb->iotag, |
2096 | elsiocb->iocb.ulpIoTag, | ||
2097 | elsiocb->iocb.ulpContext, ndlp->nlp_DID, | 2099 | elsiocb->iocb.ulpContext, ndlp->nlp_DID, |
2098 | ndlp->nlp_flag, ndlp->nlp_state, ndlp->nlp_rpi); | 2100 | ndlp->nlp_flag, ndlp->nlp_state, ndlp->nlp_rpi); |
2099 | 2101 | ||
2100 | icmd = &elsiocb->iocb; | ||
2101 | oldcmd = &oldiocb->iocb; | ||
2102 | icmd->ulpContext = oldcmd->ulpContext; /* Xri */ | ||
2103 | pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); | 2102 | pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); |
2104 | 2103 | ||
2105 | *((uint32_t *) (pcmd)) = ELS_CMD_ACC; | 2104 | *((uint32_t *) (pcmd)) = ELS_CMD_ACC; |
@@ -2124,8 +2123,8 @@ lpfc_els_rsp_adisc_acc(struct lpfc_hba * phba, | |||
2124 | } | 2123 | } |
2125 | 2124 | ||
2126 | int | 2125 | int |
2127 | lpfc_els_rsp_prli_acc(struct lpfc_hba * phba, | 2126 | lpfc_els_rsp_prli_acc(struct lpfc_hba *phba, struct lpfc_iocbq *oldiocb, |
2128 | struct lpfc_iocbq * oldiocb, struct lpfc_nodelist * ndlp) | 2127 | struct lpfc_nodelist *ndlp) |
2129 | { | 2128 | { |
2130 | PRLI *npr; | 2129 | PRLI *npr; |
2131 | lpfc_vpd_t *vpd; | 2130 | lpfc_vpd_t *vpd; |
@@ -2147,18 +2146,18 @@ lpfc_els_rsp_prli_acc(struct lpfc_hba * phba, | |||
2147 | if (!elsiocb) | 2146 | if (!elsiocb) |
2148 | return 1; | 2147 | return 1; |
2149 | 2148 | ||
2149 | icmd = &elsiocb->iocb; | ||
2150 | oldcmd = &oldiocb->iocb; | ||
2151 | icmd->ulpContext = oldcmd->ulpContext; /* Xri */ | ||
2152 | |||
2150 | /* Xmit PRLI ACC response tag <ulpIoTag> */ | 2153 | /* Xmit PRLI ACC response tag <ulpIoTag> */ |
2151 | lpfc_printf_log(phba, KERN_INFO, LOG_ELS, | 2154 | lpfc_printf_log(phba, KERN_INFO, LOG_ELS, |
2152 | "%d:0131 Xmit PRLI ACC response tag x%x " | 2155 | "%d:0131 Xmit PRLI ACC response tag x%x xri x%x, " |
2153 | "Data: x%x x%x x%x x%x x%x\n", | 2156 | "did x%x, nlp_flag x%x, nlp_state x%x, rpi x%x\n", |
2154 | phba->brd_no, | 2157 | phba->brd_no, elsiocb->iotag, |
2155 | elsiocb->iocb.ulpIoTag, | ||
2156 | elsiocb->iocb.ulpContext, ndlp->nlp_DID, | 2158 | elsiocb->iocb.ulpContext, ndlp->nlp_DID, |
2157 | ndlp->nlp_flag, ndlp->nlp_state, ndlp->nlp_rpi); | 2159 | ndlp->nlp_flag, ndlp->nlp_state, ndlp->nlp_rpi); |
2158 | 2160 | ||
2159 | icmd = &elsiocb->iocb; | ||
2160 | oldcmd = &oldiocb->iocb; | ||
2161 | icmd->ulpContext = oldcmd->ulpContext; /* Xri */ | ||
2162 | pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); | 2161 | pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); |
2163 | 2162 | ||
2164 | *((uint32_t *) (pcmd)) = (ELS_CMD_ACC | (ELS_CMD_PRLI & ~ELS_RSP_MASK)); | 2163 | *((uint32_t *) (pcmd)) = (ELS_CMD_ACC | (ELS_CMD_PRLI & ~ELS_RSP_MASK)); |
@@ -2228,17 +2227,17 @@ lpfc_els_rsp_rnid_acc(struct lpfc_hba * phba, | |||
2228 | if (!elsiocb) | 2227 | if (!elsiocb) |
2229 | return 1; | 2228 | return 1; |
2230 | 2229 | ||
2230 | icmd = &elsiocb->iocb; | ||
2231 | oldcmd = &oldiocb->iocb; | ||
2232 | icmd->ulpContext = oldcmd->ulpContext; /* Xri */ | ||
2233 | |||
2231 | /* Xmit RNID ACC response tag <ulpIoTag> */ | 2234 | /* Xmit RNID ACC response tag <ulpIoTag> */ |
2232 | lpfc_printf_log(phba, KERN_INFO, LOG_ELS, | 2235 | lpfc_printf_log(phba, KERN_INFO, LOG_ELS, |
2233 | "%d:0132 Xmit RNID ACC response tag x%x " | 2236 | "%d:0132 Xmit RNID ACC response tag x%x " |
2234 | "Data: x%x\n", | 2237 | "xri x%x\n", |
2235 | phba->brd_no, | 2238 | phba->brd_no, elsiocb->iotag, |
2236 | elsiocb->iocb.ulpIoTag, | ||
2237 | elsiocb->iocb.ulpContext); | 2239 | elsiocb->iocb.ulpContext); |
2238 | 2240 | ||
2239 | icmd = &elsiocb->iocb; | ||
2240 | oldcmd = &oldiocb->iocb; | ||
2241 | icmd->ulpContext = oldcmd->ulpContext; /* Xri */ | ||
2242 | pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); | 2241 | pcmd = (uint8_t *) (((struct lpfc_dmabuf *) elsiocb->context2)->virt); |
2243 | 2242 | ||
2244 | *((uint32_t *) (pcmd)) = ELS_CMD_ACC; | 2243 | *((uint32_t *) (pcmd)) = ELS_CMD_ACC; |
@@ -2701,6 +2700,7 @@ lpfc_els_rcv_flogi(struct lpfc_hba * phba, | |||
2701 | mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; | 2700 | mbox->mbox_cmpl = lpfc_sli_def_mbox_cmpl; |
2702 | rc = lpfc_sli_issue_mbox | 2701 | rc = lpfc_sli_issue_mbox |
2703 | (phba, mbox, (MBX_NOWAIT | MBX_STOP_IOCB)); | 2702 | (phba, mbox, (MBX_NOWAIT | MBX_STOP_IOCB)); |
2703 | lpfc_set_loopback_flag(phba); | ||
2704 | if (rc == MBX_NOT_FINISHED) { | 2704 | if (rc == MBX_NOT_FINISHED) { |
2705 | mempool_free( mbox, phba->mbox_mem_pool); | 2705 | mempool_free( mbox, phba->mbox_mem_pool); |
2706 | } | 2706 | } |
@@ -2842,10 +2842,9 @@ lpfc_els_rsp_rps_acc(struct lpfc_hba * phba, LPFC_MBOXQ_t * pmb) | |||
2842 | 2842 | ||
2843 | /* Xmit ELS RPS ACC response tag <ulpIoTag> */ | 2843 | /* Xmit ELS RPS ACC response tag <ulpIoTag> */ |
2844 | lpfc_printf_log(phba, KERN_INFO, LOG_ELS, | 2844 | lpfc_printf_log(phba, KERN_INFO, LOG_ELS, |
2845 | "%d:0118 Xmit ELS RPS ACC response tag x%x " | 2845 | "%d:0118 Xmit ELS RPS ACC response tag x%x xri x%x, " |
2846 | "Data: x%x x%x x%x x%x x%x\n", | 2846 | "did x%x, nlp_flag x%x, nlp_state x%x, rpi x%x\n", |
2847 | phba->brd_no, | 2847 | phba->brd_no, elsiocb->iotag, |
2848 | elsiocb->iocb.ulpIoTag, | ||
2849 | elsiocb->iocb.ulpContext, ndlp->nlp_DID, | 2848 | elsiocb->iocb.ulpContext, ndlp->nlp_DID, |
2850 | ndlp->nlp_flag, ndlp->nlp_state, ndlp->nlp_rpi); | 2849 | ndlp->nlp_flag, ndlp->nlp_state, ndlp->nlp_rpi); |
2851 | 2850 | ||
@@ -2951,10 +2950,9 @@ lpfc_els_rsp_rpl_acc(struct lpfc_hba * phba, uint16_t cmdsize, | |||
2951 | 2950 | ||
2952 | /* Xmit ELS RPL ACC response tag <ulpIoTag> */ | 2951 | /* Xmit ELS RPL ACC response tag <ulpIoTag> */ |
2953 | lpfc_printf_log(phba, KERN_INFO, LOG_ELS, | 2952 | lpfc_printf_log(phba, KERN_INFO, LOG_ELS, |
2954 | "%d:0120 Xmit ELS RPL ACC response tag x%x " | 2953 | "%d:0120 Xmit ELS RPL ACC response tag x%x xri x%x, " |
2955 | "Data: x%x x%x x%x x%x x%x\n", | 2954 | "did x%x, nlp_flag x%x, nlp_state x%x, rpi x%x\n", |
2956 | phba->brd_no, | 2955 | phba->brd_no, elsiocb->iotag, |
2957 | elsiocb->iocb.ulpIoTag, | ||
2958 | elsiocb->iocb.ulpContext, ndlp->nlp_DID, | 2956 | elsiocb->iocb.ulpContext, ndlp->nlp_DID, |
2959 | ndlp->nlp_flag, ndlp->nlp_state, ndlp->nlp_rpi); | 2957 | ndlp->nlp_flag, ndlp->nlp_state, ndlp->nlp_rpi); |
2960 | 2958 | ||