Author: np
Date: Wed May 24 22:47:45 2017
New Revision: 318835
URL: https://svnweb.freebsd.org/changeset/base/318835

Log:
  MFC r316172:
  
  cxgbe: Don't call t4_edc_err_read for errors not related to the EDCs.
  
  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      Wed May 24 22:40:56 2017        
(r318834)
+++ stable/11/sys/dev/cxgbe/common/t4_hw.c      Wed May 24 22:47:45 2017        
(r318835)
@@ -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,
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to