Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jan 2019 04:44:26 +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: r342954 - head/sys/dev/cxgbe
Message-ID:  <201901120444.x0C4iQdC055268@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Sat Jan 12 04:44:25 2019
New Revision: 342954
URL: https://svnweb.freebsd.org/changeset/base/342954

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

Modified:
  head/sys/dev/cxgbe/t4_sge.c

Modified: head/sys/dev/cxgbe/t4_sge.c
==============================================================================
--- head/sys/dev/cxgbe/t4_sge.c	Sat Jan 12 00:39:42 2019	(r342953)
+++ head/sys/dev/cxgbe/t4_sge.c	Sat Jan 12 04:44:25 2019	(r342954)
@@ -1379,6 +1379,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);
 }
@@ -1392,7 +1395,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);
 }
 



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