Record the LogInfo field when reporting the IOCStatus. Helps in
debugging errors. Submitted by: slm Obtained from: Netflix MFC after: 3 days
This commit is contained in:
parent
e3454ae8b3
commit
694cb8b815
@ -2496,8 +2496,9 @@ mprsas_scsiio_complete(struct mpr_softc *sc, struct mpr_command *cm)
|
|||||||
*/
|
*/
|
||||||
mprsas_set_ccbstatus(ccb, CAM_REQ_CMP_ERR);
|
mprsas_set_ccbstatus(ccb, CAM_REQ_CMP_ERR);
|
||||||
mprsas_log_command(cm, MPR_INFO,
|
mprsas_log_command(cm, MPR_INFO,
|
||||||
"terminated ioc %x scsi %x state %x xfer %u\n",
|
"terminated ioc %x loginfo %x scsi %x state %x xfer %u\n",
|
||||||
le16toh(rep->IOCStatus), rep->SCSIStatus, rep->SCSIState,
|
le16toh(rep->IOCStatus), le32toh(rep->IOCLogInfo),
|
||||||
|
rep->SCSIStatus, rep->SCSIState,
|
||||||
le32toh(rep->TransferCount));
|
le32toh(rep->TransferCount));
|
||||||
break;
|
break;
|
||||||
case MPI2_IOCSTATUS_INVALID_FUNCTION:
|
case MPI2_IOCSTATUS_INVALID_FUNCTION:
|
||||||
@ -2512,8 +2513,9 @@ mprsas_scsiio_complete(struct mpr_softc *sc, struct mpr_command *cm)
|
|||||||
case MPI2_IOCSTATUS_SCSI_TASK_MGMT_FAILED:
|
case MPI2_IOCSTATUS_SCSI_TASK_MGMT_FAILED:
|
||||||
default:
|
default:
|
||||||
mprsas_log_command(cm, MPR_XINFO,
|
mprsas_log_command(cm, MPR_XINFO,
|
||||||
"completed ioc %x scsi %x state %x xfer %u\n",
|
"completed ioc %x loginfo %x scsi %x state %x xfer %u\n",
|
||||||
le16toh(rep->IOCStatus), rep->SCSIStatus, rep->SCSIState,
|
le16toh(rep->IOCStatus), le32toh(rep->IOCLogInfo),
|
||||||
|
rep->SCSIStatus, rep->SCSIState,
|
||||||
le32toh(rep->TransferCount));
|
le32toh(rep->TransferCount));
|
||||||
csio->resid = cm->cm_length;
|
csio->resid = cm->cm_length;
|
||||||
mprsas_set_ccbstatus(ccb, CAM_REQ_CMP_ERR);
|
mprsas_set_ccbstatus(ccb, CAM_REQ_CMP_ERR);
|
||||||
|
@ -2446,8 +2446,9 @@ mpssas_scsiio_complete(struct mps_softc *sc, struct mps_command *cm)
|
|||||||
*/
|
*/
|
||||||
mpssas_set_ccbstatus(ccb, CAM_REQ_CMP_ERR);
|
mpssas_set_ccbstatus(ccb, CAM_REQ_CMP_ERR);
|
||||||
mpssas_log_command(cm, MPS_INFO,
|
mpssas_log_command(cm, MPS_INFO,
|
||||||
"terminated ioc %x scsi %x state %x xfer %u\n",
|
"terminated ioc %x loginfo %x scsi %x state %x xfer %u\n",
|
||||||
le16toh(rep->IOCStatus), rep->SCSIStatus, rep->SCSIState,
|
le16toh(rep->IOCStatus), le32toh(rep->IOCLogInfo),
|
||||||
|
rep->SCSIStatus, rep->SCSIState,
|
||||||
le32toh(rep->TransferCount));
|
le32toh(rep->TransferCount));
|
||||||
break;
|
break;
|
||||||
case MPI2_IOCSTATUS_INVALID_FUNCTION:
|
case MPI2_IOCSTATUS_INVALID_FUNCTION:
|
||||||
@ -2462,8 +2463,9 @@ mpssas_scsiio_complete(struct mps_softc *sc, struct mps_command *cm)
|
|||||||
case MPI2_IOCSTATUS_SCSI_TASK_MGMT_FAILED:
|
case MPI2_IOCSTATUS_SCSI_TASK_MGMT_FAILED:
|
||||||
default:
|
default:
|
||||||
mpssas_log_command(cm, MPS_XINFO,
|
mpssas_log_command(cm, MPS_XINFO,
|
||||||
"completed ioc %x scsi %x state %x xfer %u\n",
|
"completed ioc %x loginfo %x scsi %x state %x xfer %u\n",
|
||||||
le16toh(rep->IOCStatus), rep->SCSIStatus, rep->SCSIState,
|
le16toh(rep->IOCStatus), le32toh(rep->IOCLogInfo),
|
||||||
|
rep->SCSIStatus, rep->SCSIState,
|
||||||
le32toh(rep->TransferCount));
|
le32toh(rep->TransferCount));
|
||||||
csio->resid = cm->cm_length;
|
csio->resid = cm->cm_length;
|
||||||
mpssas_set_ccbstatus(ccb, CAM_REQ_CMP_ERR);
|
mpssas_set_ccbstatus(ccb, CAM_REQ_CMP_ERR);
|
||||||
|
Loading…
Reference in New Issue
Block a user