Module Name: src Committed By: snj Date: Fri Oct 16 06:45:40 UTC 2009
Modified Files: src/sys/arch/alpha/alpha [netbsd-5-0]: pmap.c Log Message: Pull up following revision(s) (requested by mhitch in ticket #1073): sys/arch/alpha/alpha/pmap.c: revision 1.243 IPI interrupts occur above IPL_VM, so using IPL_VM in for the tlb shootdown queue mutex doesn't work very well. I get various deadlocks and corrupted queue entries. Change to IPL_SCHED [IPL_CLOCK] to block IPI interrupts while the cpu is mucking with the shootdown queue. To generate a diff of this commit: cvs rdiff -u -r1.236.14.1 -r1.236.14.2 src/sys/arch/alpha/alpha/pmap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/alpha/alpha/pmap.c diff -u src/sys/arch/alpha/alpha/pmap.c:1.236.14.1 src/sys/arch/alpha/alpha/pmap.c:1.236.14.2 --- src/sys/arch/alpha/alpha/pmap.c:1.236.14.1 Wed Sep 16 04:26:04 2009 +++ src/sys/arch/alpha/alpha/pmap.c Fri Oct 16 06:45:40 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.236.14.1 2009/09/16 04:26:04 snj Exp $ */ +/* $NetBSD: pmap.c,v 1.236.14.2 2009/10/16 06:45:40 snj Exp $ */ /*- * Copyright (c) 1998, 1999, 2000, 2001, 2007, 2008 The NetBSD Foundation, Inc. @@ -140,7 +140,7 @@ #include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.236.14.1 2009/09/16 04:26:04 snj Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.236.14.2 2009/10/16 06:45:40 snj Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -963,7 +963,7 @@ for (i = 0; i < ALPHA_MAXPROCS; i++) { TAILQ_INIT(&pmap_tlb_shootdown_q[i].pq_head); mutex_init(&pmap_tlb_shootdown_q[i].pq_lock, MUTEX_DEFAULT, - IPL_VM); + IPL_SCHED); } #endif