Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jan 2019 04:15:17 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r342758 - head/sys/dev/cxgbe/common
Message-ID:  <201901040415.x044FHED027083@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
+	}
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901040415.x044FHED027083>