IB/ipath: Don't try to handle freeze mode HW errors if diagnostic mode

Don't try to handle freeze mode HW errors if the driver is in diagnostic
mode since some tests can cause errors that shouldn't be processed.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
Ralph Campbell 2008-04-16 21:01:14 -07:00 committed by Roland Dreier
parent b848882153
commit c1702be20f

View File

@ -481,7 +481,7 @@ static void ipath_pe_handle_hwerrors(struct ipath_devdata *dd, char *msg,
(hwerrs & ~dd->ipath_hwe_bitsextant)); (hwerrs & ~dd->ipath_hwe_bitsextant));
ctrl = ipath_read_kreg32(dd, dd->ipath_kregs->kr_control); ctrl = ipath_read_kreg32(dd, dd->ipath_kregs->kr_control);
if (ctrl & INFINIPATH_C_FREEZEMODE) { if ((ctrl & INFINIPATH_C_FREEZEMODE) && !ipath_diag_inuse) {
/* /*
* parity errors in send memory are recoverable, * parity errors in send memory are recoverable,
* just cancel the send (if indicated in * sendbuffererror), * just cancel the send (if indicated in * sendbuffererror),