aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx
diff options
context:
space:
mode:
authorAndrew Vasquez <andrew.vasquez@qlogic.com>2010-05-28 18:08:16 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-27 13:01:19 -0400
commitd3fa9e7d270e3d9b3fda325cdcb2ea77a00ed876 (patch)
tree4ad1b3aa0c568bf4aa13c61e82532ac45d55a301 /drivers/scsi/qla2xxx
parentb963752f47c54a29c11acee99e6c99b3c6bb35c5 (diff)
[SCSI] qla2xxx: Add portid to async-request messages.
This helps to correlate submission/completion messages during triaging. Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla2xxx')
-rw-r--r--drivers/scsi/qla2xxx/qla_init.c6
-rw-r--r--drivers/scsi/qla2xxx/qla_isr.c41
2 files changed, 31 insertions, 16 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index f1db11a0d699..4bf973483818 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -131,8 +131,10 @@ qla2x00_async_iocb_timeout(srb_t *sp)
131 struct srb_ctx *ctx = sp->ctx; 131 struct srb_ctx *ctx = sp->ctx;
132 132
133 DEBUG2(printk(KERN_WARNING 133 DEBUG2(printk(KERN_WARNING
134 "scsi(%ld:%x): Async-%s timeout.\n", 134 "scsi(%ld:%x): Async-%s timeout - portid=%02x%02x%02x.\n",
135 fcport->vha->host_no, sp->handle, ctx->name)); 135 fcport->vha->host_no, sp->handle,
136 ctx->name, fcport->d_id.b.domain,
137 fcport->d_id.b.area, fcport->d_id.b.al_pa));
136 138
137 fcport->flags &= ~FCF_ASYNC_SENT; 139 fcport->flags &= ~FCF_ASYNC_SENT;
138 if (ctx->type == SRB_LOGIN_CMD) 140 if (ctx->type == SRB_LOGIN_CMD)
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c
index be3d8bed2ecf..bc82ba99f251 100644
--- a/drivers/scsi/qla2xxx/qla_isr.c
+++ b/drivers/scsi/qla2xxx/qla_isr.c
@@ -918,12 +918,15 @@ qla2x00_mbx_iocb_entry(scsi_qla_host_t *vha, struct req_que *req,
918 QLA_LOGIO_LOGIN_RETRIED : 0; 918 QLA_LOGIO_LOGIN_RETRIED : 0;
919 if (mbx->entry_status) { 919 if (mbx->entry_status) {
920 DEBUG2(printk(KERN_WARNING 920 DEBUG2(printk(KERN_WARNING
921 "scsi(%ld:%x): Async-%s error entry - entry-status=%x " 921 "scsi(%ld:%x): Async-%s error entry - portid=%02x%02x%02x "
922 "status=%x state-flag=%x status-flags=%x.\n", 922 "entry-status=%x status=%x state-flag=%x "
923 "status-flags=%x.\n",
923 fcport->vha->host_no, sp->handle, type, 924 fcport->vha->host_no, sp->handle, type,
924 mbx->entry_status, le16_to_cpu(mbx->status), 925 fcport->d_id.b.domain, fcport->d_id.b.area,
925 le16_to_cpu(mbx->state_flags), 926 fcport->d_id.b.al_pa, mbx->entry_status,
927 le16_to_cpu(mbx->status), le16_to_cpu(mbx->state_flags),
926 le16_to_cpu(mbx->status_flags))); 928 le16_to_cpu(mbx->status_flags)));
929
927 DEBUG2(qla2x00_dump_buffer((uint8_t *)mbx, sizeof(*mbx))); 930 DEBUG2(qla2x00_dump_buffer((uint8_t *)mbx, sizeof(*mbx)));
928 931
929 goto logio_done; 932 goto logio_done;
@@ -935,9 +938,11 @@ qla2x00_mbx_iocb_entry(scsi_qla_host_t *vha, struct req_que *req,
935 status = 0; 938 status = 0;
936 if (!status && le16_to_cpu(mbx->mb0) == MBS_COMMAND_COMPLETE) { 939 if (!status && le16_to_cpu(mbx->mb0) == MBS_COMMAND_COMPLETE) {
937 DEBUG2(printk(KERN_DEBUG 940 DEBUG2(printk(KERN_DEBUG
938 "scsi(%ld:%x): Async-%s complete - mbx1=%x.\n", 941 "scsi(%ld:%x): Async-%s complete - portid=%02x%02x%02x "
942 "mbx1=%x.\n",
939 fcport->vha->host_no, sp->handle, type, 943 fcport->vha->host_no, sp->handle, type,
940 le16_to_cpu(mbx->mb1))); 944 fcport->d_id.b.domain, fcport->d_id.b.area,
945 fcport->d_id.b.al_pa, le16_to_cpu(mbx->mb1)));
941 946
942 data[0] = MBS_COMMAND_COMPLETE; 947 data[0] = MBS_COMMAND_COMPLETE;
943 if (ctx->type == SRB_LOGIN_CMD) { 948 if (ctx->type == SRB_LOGIN_CMD) {
@@ -963,9 +968,10 @@ qla2x00_mbx_iocb_entry(scsi_qla_host_t *vha, struct req_que *req,
963 } 968 }
964 969
965 DEBUG2(printk(KERN_WARNING 970 DEBUG2(printk(KERN_WARNING
966 "scsi(%ld:%x): Async-%s failed - status=%x mb0=%x mb1=%x mb2=%x " 971 "scsi(%ld:%x): Async-%s failed - portid=%02x%02x%02x status=%x "
967 "mb6=%x mb7=%x.\n", 972 "mb0=%x mb1=%x mb2=%x mb6=%x mb7=%x.\n",
968 fcport->vha->host_no, sp->handle, type, status, 973 fcport->vha->host_no, sp->handle, type, fcport->d_id.b.domain,
974 fcport->d_id.b.area, fcport->d_id.b.al_pa, status,
969 le16_to_cpu(mbx->mb0), le16_to_cpu(mbx->mb1), 975 le16_to_cpu(mbx->mb0), le16_to_cpu(mbx->mb1),
970 le16_to_cpu(mbx->mb2), le16_to_cpu(mbx->mb6), 976 le16_to_cpu(mbx->mb2), le16_to_cpu(mbx->mb6),
971 le16_to_cpu(mbx->mb7))); 977 le16_to_cpu(mbx->mb7)));
@@ -1096,9 +1102,11 @@ qla24xx_logio_entry(scsi_qla_host_t *vha, struct req_que *req,
1096 QLA_LOGIO_LOGIN_RETRIED : 0; 1102 QLA_LOGIO_LOGIN_RETRIED : 0;
1097 if (logio->entry_status) { 1103 if (logio->entry_status) {
1098 DEBUG2(printk(KERN_WARNING 1104 DEBUG2(printk(KERN_WARNING
1099 "scsi(%ld:%x): Async-%s error entry - entry-status=%x.\n", 1105 "scsi(%ld:%x): Async-%s error entry - "
1106 "portid=%02x%02x%02x entry-status=%x.\n",
1100 fcport->vha->host_no, sp->handle, type, 1107 fcport->vha->host_no, sp->handle, type,
1101 logio->entry_status)); 1108 fcport->d_id.b.domain, fcport->d_id.b.area,
1109 fcport->d_id.b.al_pa, logio->entry_status));
1102 DEBUG2(qla2x00_dump_buffer((uint8_t *)logio, sizeof(*logio))); 1110 DEBUG2(qla2x00_dump_buffer((uint8_t *)logio, sizeof(*logio)));
1103 1111
1104 goto logio_done; 1112 goto logio_done;
@@ -1106,8 +1114,11 @@ qla24xx_logio_entry(scsi_qla_host_t *vha, struct req_que *req,
1106 1114
1107 if (le16_to_cpu(logio->comp_status) == CS_COMPLETE) { 1115 if (le16_to_cpu(logio->comp_status) == CS_COMPLETE) {
1108 DEBUG2(printk(KERN_DEBUG 1116 DEBUG2(printk(KERN_DEBUG
1109 "scsi(%ld:%x): Async-%s complete - iop0=%x.\n", 1117 "scsi(%ld:%x): Async-%s complete - portid=%02x%02x%02x "
1118 "iop0=%x.\n",
1110 fcport->vha->host_no, sp->handle, type, 1119 fcport->vha->host_no, sp->handle, type,
1120 fcport->d_id.b.domain, fcport->d_id.b.area,
1121 fcport->d_id.b.al_pa,
1111 le32_to_cpu(logio->io_parameter[0]))); 1122 le32_to_cpu(logio->io_parameter[0])));
1112 1123
1113 data[0] = MBS_COMMAND_COMPLETE; 1124 data[0] = MBS_COMMAND_COMPLETE;
@@ -1152,8 +1163,10 @@ qla24xx_logio_entry(scsi_qla_host_t *vha, struct req_que *req,
1152 } 1163 }
1153 1164
1154 DEBUG2(printk(KERN_WARNING 1165 DEBUG2(printk(KERN_WARNING
1155 "scsi(%ld:%x): Async-%s failed - comp=%x iop0=%x iop1=%x.\n", 1166 "scsi(%ld:%x): Async-%s failed - portid=%02x%02x%02x comp=%x "
1156 fcport->vha->host_no, sp->handle, type, 1167 "iop0=%x iop1=%x.\n",
1168 fcport->vha->host_no, sp->handle, type, fcport->d_id.b.domain,
1169 fcport->d_id.b.area, fcport->d_id.b.al_pa,
1157 le16_to_cpu(logio->comp_status), 1170 le16_to_cpu(logio->comp_status),
1158 le32_to_cpu(logio->io_parameter[0]), 1171 le32_to_cpu(logio->io_parameter[0]),
1159 le32_to_cpu(logio->io_parameter[1]))); 1172 le32_to_cpu(logio->io_parameter[1])));