svn commit: r346949 - stable/11/sys/dev/cxgbe

Navdeep Parhar np at FreeBSD.org
Tue Apr 30 07:45:08 UTC 2019


Author: np
Date: Tue Apr 30 07:45:07 2019
New Revision: 346949
URL: https://svnweb.freebsd.org/changeset/base/346949

Log:
  MFC r342954:
  
  cxgbe(4): Move some INTx specific code to a more appropriate place.

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

Modified: stable/11/sys/dev/cxgbe/t4_sge.c
==============================================================================
--- stable/11/sys/dev/cxgbe/t4_sge.c	Tue Apr 30 07:40:01 2019	(r346948)
+++ stable/11/sys/dev/cxgbe/t4_sge.c	Tue Apr 30 07:45:07 2019	(r346949)
@@ -1325,6 +1325,9 @@ t4_intr_all(void *arg)
 
 	MPASS(sc->intr_count == 1);
 
+	if (sc->intr_type == INTR_INTX)
+		t4_write_reg(sc, MYPF_REG(A_PCIE_PF_CLI), 0);
+
 	t4_intr_err(arg);
 	t4_intr_evt(fwq);
 }
@@ -1338,7 +1341,6 @@ t4_intr_err(void *arg)
 {
 	struct adapter *sc = arg;
 
-	t4_write_reg(sc, MYPF_REG(A_PCIE_PF_CLI), 0);
 	t4_slow_intr_handler(sc);
 }
 


More information about the svn-src-all mailing list