scsi: qla2xxx: edif: Tweak trace message
Modify trace messages for additional debugability. Link: https://lore.kernel.org/r/20211026115412.27691-9-njavali@marvell.com Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Quinn Tran <qutran@marvell.com> Signed-off-by: Nilesh Javali <njavali@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
8062b742d3
commit
6c9998ce4b
|
@ -639,9 +639,9 @@ struct qla_els_pt_arg {
|
|||
u8 els_opcode;
|
||||
u8 vp_idx;
|
||||
__le16 nport_handle;
|
||||
u16 control_flags;
|
||||
u16 control_flags, ox_id;
|
||||
__le32 rx_xchg_address;
|
||||
port_id_t did;
|
||||
port_id_t did, sid;
|
||||
u32 tx_len, tx_byte_count, rx_len, rx_byte_count;
|
||||
dma_addr_t tx_addr, rx_addr;
|
||||
|
||||
|
|
|
@ -1762,7 +1762,8 @@ qla_els_reject_iocb(scsi_qla_host_t *vha, struct qla_qpair *qp,
|
|||
qla_els_pt_iocb(vha, els_iocb, a);
|
||||
|
||||
ql_dbg(ql_dbg_edif, vha, 0x0183,
|
||||
"Sending ELS reject...\n");
|
||||
"Sending ELS reject ox_id %04x s:%06x -> d:%06x\n",
|
||||
a->ox_id, a->sid.b24, a->did.b24);
|
||||
ql_dump_buffer(ql_dbg_edif + ql_dbg_verbose, vha, 0x0185,
|
||||
vha->hw->elsrej.c, sizeof(*vha->hw->elsrej.c));
|
||||
/* flush iocb to mem before notifying hw doorbell */
|
||||
|
@ -2357,6 +2358,7 @@ void qla24xx_auth_els(scsi_qla_host_t *vha, void **pkt, struct rsp_que **rsp)
|
|||
a.tx_addr = vha->hw->elsrej.cdma;
|
||||
a.vp_idx = vha->vp_idx;
|
||||
a.control_flags = EPD_ELS_RJT;
|
||||
a.ox_id = le16_to_cpu(p->ox_id);
|
||||
|
||||
sid = p->s_id[0] | (p->s_id[1] << 8) | (p->s_id[2] << 16);
|
||||
|
||||
|
@ -2406,6 +2408,8 @@ void qla24xx_auth_els(scsi_qla_host_t *vha, void **pkt, struct rsp_que **rsp)
|
|||
purex->pur_info.pur_did.b.al_pa = p->d_id[0];
|
||||
purex->pur_info.vp_idx = p->vp_idx;
|
||||
|
||||
a.sid = purex->pur_info.pur_did;
|
||||
|
||||
rc = __qla_copy_purex_to_buffer(vha, pkt, rsp, purex->msgp,
|
||||
purex->msgp_len);
|
||||
if (rc) {
|
||||
|
|
|
@ -333,9 +333,6 @@ qla2x00_async_login(struct scsi_qla_host *vha, fc_port_t *fcport,
|
|||
vha->e_dbell.db_flags & EDB_ACTIVE) {
|
||||
lio->u.logio.flags |=
|
||||
(SRB_LOGIN_FCSP | SRB_LOGIN_SKIP_PRLI);
|
||||
ql_dbg(ql_dbg_disc, vha, 0x2072,
|
||||
"Async-login: w/ FCSP %8phC hdl=%x, loopid=%x portid=%06x\n",
|
||||
fcport->port_name, sp->handle, fcport->loop_id, fcport->d_id.b24);
|
||||
} else {
|
||||
lio->u.logio.flags |= SRB_LOGIN_COND_PLOGI;
|
||||
}
|
||||
|
@ -344,12 +341,14 @@ qla2x00_async_login(struct scsi_qla_host *vha, fc_port_t *fcport,
|
|||
if (NVME_TARGET(vha->hw, fcport))
|
||||
lio->u.logio.flags |= SRB_LOGIN_SKIP_PRLI;
|
||||
|
||||
ql_dbg(ql_dbg_disc, vha, 0x2072,
|
||||
"Async-login - %8phC hdl=%x, loopid=%x portid=%06x retries=%d.\n",
|
||||
fcport->port_name, sp->handle, fcport->loop_id,
|
||||
fcport->d_id.b24, fcport->login_retry);
|
||||
|
||||
rval = qla2x00_start_sp(sp);
|
||||
|
||||
ql_dbg(ql_dbg_disc, vha, 0x2072,
|
||||
"Async-login - %8phC hdl=%x, loopid=%x portid=%06x retries=%d %s.\n",
|
||||
fcport->port_name, sp->handle, fcport->loop_id,
|
||||
fcport->d_id.b24, fcport->login_retry,
|
||||
lio->u.logio.flags & SRB_LOGIN_FCSP ? "FCSP" : "");
|
||||
|
||||
if (rval != QLA_SUCCESS) {
|
||||
fcport->flags |= FCF_LOGIN_NEEDED;
|
||||
set_bit(RELOGIN_NEEDED, &vha->dpc_flags);
|
||||
|
@ -5867,6 +5866,10 @@ void qla_register_fcport_fn(struct work_struct *work)
|
|||
|
||||
qla2x00_update_fcport(fcport->vha, fcport);
|
||||
|
||||
ql_dbg(ql_dbg_disc, fcport->vha, 0x911e,
|
||||
"%s rscn gen %d/%d next DS %d\n", __func__,
|
||||
rscn_gen, fcport->rscn_gen, fcport->next_disc_state);
|
||||
|
||||
if (rscn_gen != fcport->rscn_gen) {
|
||||
/* RSCN(s) came in while registration */
|
||||
switch (fcport->next_disc_state) {
|
||||
|
|
|
@ -2233,6 +2233,10 @@ qla24xx_els_ct_entry(scsi_qla_host_t *v, struct req_que *req,
|
|||
}
|
||||
|
||||
} else if (comp_status == CS_PORT_LOGGED_OUT) {
|
||||
ql_dbg(ql_dbg_disc, vha, 0x911e,
|
||||
"%s %d schedule session deletion\n",
|
||||
__func__, __LINE__);
|
||||
|
||||
els->u.els_plogi.len = 0;
|
||||
res = DID_IMM_RETRY << 16;
|
||||
qlt_schedule_sess_for_deletion(sp->fcport);
|
||||
|
|
Loading…
Reference in New Issue