Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 2019 21:38:18 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r345607 - stable/12/sys/dev/cxgbe/common
Message-ID:  <201903272138.x2RLcIQb046232@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Wed Mar 27 21:38:18 2019
New Revision: 345607
URL: https://svnweb.freebsd.org/changeset/base/345607

Log:
  MFC r342758:
  
  cxgbe(4): Clear FW_OK if the firmware reports an error.
  
  Sponsored by:	Chelsio Communications

Modified:
  stable/12/sys/dev/cxgbe/common/t4_hw.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/cxgbe/common/t4_hw.c
==============================================================================
--- stable/12/sys/dev/cxgbe/common/t4_hw.c	Wed Mar 27 21:34:13 2019	(r345606)
+++ stable/12/sys/dev/cxgbe/common/t4_hw.c	Wed Mar 27 21:38:18 2019	(r345607)
@@ -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?201903272138.x2RLcIQb046232>