Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Mar 2017 19:25:31 +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: r316172 - head/sys/dev/cxgbe/common
Message-ID:  <201703291925.v2TJPV3O036824@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Wed Mar 29 19:25:31 2017
New Revision: 316172
URL: https://svnweb.freebsd.org/changeset/base/316172

Log:
  cxgbe: Don't call t4_edc_err_read for errors not related to the EDCs.
  
  MFC after:	3 days
  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	Wed Mar 29 18:35:20 2017	(r316171)
+++ head/sys/dev/cxgbe/common/t4_hw.c	Wed Mar 29 19:25:31 2017	(r316172)
@@ -4332,7 +4332,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?201703291925.v2TJPV3O036824>