Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Apr 2019 07:40:01 +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-11@freebsd.org
Subject:   svn commit: r346948 - stable/11/sys/dev/cxgbe/common
Message-ID:  <201904300740.x3U7e14b058219@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Tue Apr 30 07:40:01 2019
New Revision: 346948
URL: https://svnweb.freebsd.org/changeset/base/346948

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

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

Modified: stable/11/sys/dev/cxgbe/common/t4_hw.c
==============================================================================
--- stable/11/sys/dev/cxgbe/common/t4_hw.c	Tue Apr 30 07:37:03 2019	(r346947)
+++ stable/11/sys/dev/cxgbe/common/t4_hw.c	Tue Apr 30 07:40:01 2019	(r346948)
@@ -209,9 +209,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?201904300740.x3U7e14b058219>