aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_hbadisc.c
diff options
context:
space:
mode:
authorJames Smart <James.Smart@Emulex.Com>2007-04-25 09:52:49 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2007-05-06 10:33:14 -0400
commit5b8bd0c9be706677327c01df28bf6b54de008f34 (patch)
tree5f5a3461af6821afc621c3368887658530372dd3 /drivers/scsi/lpfc/lpfc_hbadisc.c
parent82085718faa6955c8a78b2e6ac2ad95072ac875a (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_hbadisc.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_hbadisc.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c
index 5f8698bcecb9..164af8a7e95d 100644
--- a/drivers/scsi/lpfc/lpfc_hbadisc.c
+++ b/drivers/scsi/lpfc/lpfc_hbadisc.c
@@ -900,12 +900,21 @@ lpfc_mbx_cmpl_read_la(struct lpfc_hba * phba, LPFC_MBOXQ_t * pmb)
900 900
901 if (la->attType == AT_LINK_UP) { 901 if (la->attType == AT_LINK_UP) {
902 phba->fc_stat.LinkUp++; 902 phba->fc_stat.LinkUp++;
903 lpfc_printf_log(phba, KERN_ERR, LOG_LINK_EVENT, 903 if (phba->fc_flag & FC_LOOPBACK_MODE) {
904 lpfc_printf_log(phba, KERN_INFO, LOG_LINK_EVENT,
905 "%d:1306 Link Up Event in loop back mode "
906 "x%x received Data: x%x x%x x%x x%x\n",
907 phba->brd_no, la->eventTag, phba->fc_eventTag,
908 la->granted_AL_PA, la->UlnkSpeed,
909 phba->alpa_map[0]);
910 } else {
911 lpfc_printf_log(phba, KERN_ERR, LOG_LINK_EVENT,
904 "%d:1303 Link Up Event x%x received " 912 "%d:1303 Link Up Event x%x received "
905 "Data: x%x x%x x%x x%x\n", 913 "Data: x%x x%x x%x x%x\n",
906 phba->brd_no, la->eventTag, phba->fc_eventTag, 914 phba->brd_no, la->eventTag, phba->fc_eventTag,
907 la->granted_AL_PA, la->UlnkSpeed, 915 la->granted_AL_PA, la->UlnkSpeed,
908 phba->alpa_map[0]); 916 phba->alpa_map[0]);
917 }
909 lpfc_mbx_process_link_up(phba, la); 918 lpfc_mbx_process_link_up(phba, la);
910 } else { 919 } else {
911 phba->fc_stat.LinkDown++; 920 phba->fc_stat.LinkDown++;
@@ -2251,6 +2260,7 @@ lpfc_disc_timeout_handler(struct lpfc_hba *phba)
2251 initlinkmbox->mb.un.varInitLnk.lipsr_AL_PA = 0; 2260 initlinkmbox->mb.un.varInitLnk.lipsr_AL_PA = 0;
2252 rc = lpfc_sli_issue_mbox(phba, initlinkmbox, 2261 rc = lpfc_sli_issue_mbox(phba, initlinkmbox,
2253 (MBX_NOWAIT | MBX_STOP_IOCB)); 2262 (MBX_NOWAIT | MBX_STOP_IOCB));
2263 lpfc_set_loopback_flag(phba);
2254 if (rc == MBX_NOT_FINISHED) 2264 if (rc == MBX_NOT_FINISHED)
2255 mempool_free(initlinkmbox, phba->mbox_mem_pool); 2265 mempool_free(initlinkmbox, phba->mbox_mem_pool);
2256 2266