Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 May 2017 22:48:17 +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-10@freebsd.org
Subject:   svn commit: r318836 - stable/10/sys/dev/cxgbe/common
Message-ID:  <201705242248.v4OMmHJF062101@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Wed May 24 22:48:17 2017
New Revision: 318836
URL: https://svnweb.freebsd.org/changeset/base/318836

Log:
  MFC r316172:
  
  cxgbe: Don't call t4_edc_err_read for errors not related to the EDCs.
  
  Sponsored by:	Chelsio Communications

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

Modified: stable/10/sys/dev/cxgbe/common/t4_hw.c
==============================================================================
--- stable/10/sys/dev/cxgbe/common/t4_hw.c	Wed May 24 22:47:45 2017	(r318835)
+++ stable/10/sys/dev/cxgbe/common/t4_hw.c	Wed May 24 22:48:17 2017	(r318836)
@@ -4329,7 +4329,8 @@ static void mem_intr_handler(struct adap
 	if (v & F_ECC_CE_INT_CAUSE) {
 		u32 cnt = G_ECC_CECNT(t4_read_reg(adapter, cnt_addr));
 
-		t4_edc_err_read(adapter, idx);
+		if (idx <= MEM_EDC1)
+			t4_edc_err_read(adapter, idx);
 
 		t4_write_reg(adapter, cnt_addr, V_ECC_CECNT(M_ECC_CECNT));
 		CH_WARN_RATELIMIT(adapter,



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