svn commit: r342758 - head/sys/dev/cxgbe/common
Navdeep Parhar
np at FreeBSD.org
Fri Jan 4 04:15:18 UTC 2019
Author: np
Date: Fri Jan 4 04:15:17 2019
New Revision: 342758
URL: https://svnweb.freebsd.org/changeset/base/342758
Log:
cxgbe(4): Clear FW_OK if the firmware reports an error.
Sponsored by: Chelsio Communications
Modified:
head/sys/dev/cxgbe/common/t4_hw.c
Modified: head/sys/dev/cxgbe/common/t4_hw.c
==============================================================================
--- head/sys/dev/cxgbe/common/t4_hw.c Fri Jan 4 03:13:24 2019 (r342757)
+++ head/sys/dev/cxgbe/common/t4_hw.c Fri Jan 4 04:15:17 2019 (r342758)
@@ -211,9 +211,11 @@ static void t4_report_fw_error(struct adapter *adap)
u32 pcie_fw;
pcie_fw = t4_read_reg(adap, A_PCIE_FW);
- if (pcie_fw & F_PCIE_FW_ERR)
+ if (pcie_fw & F_PCIE_FW_ERR) {
CH_ERR(adap, "Firmware reports adapter error: %s\n",
reason[G_PCIE_FW_EVAL(pcie_fw)]);
+ adap->flags &= ~FW_OK;
+ }
}
/*
More information about the svn-src-all
mailing list