svn commit: r208163 - projects/ppc64/sys/powerpc/powermac

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sun May 16 19:01:33 UTC 2010


Author: nwhitehorn
Date: Sun May 16 19:01:32 2010
New Revision: 208163
URL: http://svn.freebsd.org/changeset/base/208163

Log:
  Set the interrupt sense correctly on internal children of the bridge. This
  prevents htpic(4) from triggering an interrupt storm.

Modified:
  projects/ppc64/sys/powerpc/powermac/uninorth.c

Modified: projects/ppc64/sys/powerpc/powermac/uninorth.c
==============================================================================
--- projects/ppc64/sys/powerpc/powermac/uninorth.c	Sun May 16 17:55:09 2010	(r208162)
+++ projects/ppc64/sys/powerpc/powermac/uninorth.c	Sun May 16 19:01:32 2010	(r208163)
@@ -177,6 +177,12 @@ unin_chip_add_intr(phandle_t devnode, st
 		    dinfo->udi_ninterrupts, INTR_VEC(iparent, intr[i]),
 		    INTR_VEC(iparent, intr[i]), 1);
 
+		if (icells > 1) {
+			powerpc_config_intr(INTR_VEC(iparent, intr[i]),
+			    (intr[i+1] & 1) ? INTR_TRIGGER_LEVEL :
+			    INTR_TRIGGER_EDGE, INTR_POLARITY_HIGH);
+		}
+
 		dinfo->udi_interrupts[dinfo->udi_ninterrupts] =
 		    INTR_VEC(iparent, intr[i]);
 		dinfo->udi_ninterrupts++;


More information about the svn-src-projects mailing list