mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Use the isp_lastmbxcmd tag to report timed out mailbox commands.
Arrrggghhhh! Very likely fix 22650 by remembering to, ahem, set CAM_AUTOSNS_VALID when one has sense data.
This commit is contained in:
parent
70d2cccebd
commit
fe4a3254ce
1 changed files with 3 additions and 2 deletions
|
|
@ -244,6 +244,7 @@ struct isposinfo {
|
|||
XS_SETERR(ccb, CAM_REQ_INPROG), (ccb)->ccb_h.spriv_field0 = 0
|
||||
|
||||
#define XS_SAVE_SENSE(xs, sp) \
|
||||
(xs)->ccb_h.status |= CAM_AUTOSNS_VALID, \
|
||||
bcopy(sp->req_sense_data, &(xs)->sense_data, \
|
||||
imin(XS_SNSLEN(xs), sp->req_sense_len))
|
||||
|
||||
|
|
@ -358,7 +359,7 @@ isp_mbox_wait_complete(struct ispsoftc *isp)
|
|||
if (isp->isp_mboxbsy != 0) {
|
||||
isp_prt(isp, ISP_LOGWARN,
|
||||
"Interrupting Mailbox Command (0x%x) Timeout",
|
||||
isp->isp_mboxtmp[0]);
|
||||
isp->isp_lastmbxcmd);
|
||||
isp->isp_mboxbsy = 0;
|
||||
}
|
||||
isp->isp_osinfo.mboxwaiting = 0;
|
||||
|
|
@ -375,7 +376,7 @@ isp_mbox_wait_complete(struct ispsoftc *isp)
|
|||
if (isp->isp_mboxbsy != 0) {
|
||||
isp_prt(isp, ISP_LOGWARN,
|
||||
"Polled Mailbox Command (0x%x) Timeout",
|
||||
isp->isp_mboxtmp[0]);
|
||||
isp->isp_lastmbxcmd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue