svn commit: r219945 - head/sys/dev/cxgb/common

Navdeep Parhar np at FreeBSD.org
Thu Mar 24 01:13:28 UTC 2011


Author: np
Date: Thu Mar 24 01:13:28 2011
New Revision: 219945
URL: http://svn.freebsd.org/changeset/base/219945

Log:
  T3C initialization should setup the parity fence too.
  
  MFC after:	1 week

Modified:
  head/sys/dev/cxgb/common/cxgb_t3_hw.c

Modified: head/sys/dev/cxgb/common/cxgb_t3_hw.c
==============================================================================
--- head/sys/dev/cxgb/common/cxgb_t3_hw.c	Thu Mar 24 01:03:01 2011	(r219944)
+++ head/sys/dev/cxgb/common/cxgb_t3_hw.c	Thu Mar 24 01:13:28 2011	(r219945)
@@ -1750,6 +1750,7 @@ static int t3_handle_intr_status(adapter
 			fatal++;
 			CH_ALERT(adapter, "%s (0x%x)\n",
 				 acts->msg, status & acts->mask);
+			status &= ~acts->mask;
 		} else if (acts->msg)
 			CH_WARN(adapter, "%s (0x%x)\n",
 				acts->msg, status & acts->mask);
@@ -2189,11 +2190,10 @@ static int mac_intr_handler(adapter_t *a
 		t3_os_link_intr(pi);
 	}
 
-	t3_write_reg(adap, A_XGM_INT_CAUSE + mac->offset, cause);
-
 	if (cause & XGM_INTR_FATAL)
 		t3_fatal_err(adap);
 
+	t3_write_reg(adap, A_XGM_INT_CAUSE + mac->offset, cause);
 	return cause != 0;
 }
 
@@ -4189,6 +4189,7 @@ int t3_init_hw(adapter_t *adapter, u32 f
 	t3_write_reg(adapter, A_PM1_TX_MODE, 0);
 	chan_init_hw(adapter, adapter->params.chan_map);
 	t3_sge_init(adapter, &adapter->params.sge);
+	t3_set_reg_field(adapter, A_PL_RST, 0, F_FATALPERREN);
 
 	t3_write_reg(adapter, A_T3DBG_GPIO_ACT_LOW, calc_gpio_intr(adapter));
 


More information about the svn-src-all mailing list