Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Jul 2012 10:20:04 -0400
From:      Justin Hibbits <chmeeedalf@gmail.com>
To:        freebsd-ppc@freebsd.org
Cc:        alc@freebsd.org
Subject:   Panic with latest pmap lock changes.
Message-ID:  <20120707102004.3e874201@narn.knownspace>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Looks like I spoke too soon about the pmap lock changes working on my
G4.  After about 24 hours of uptime, it panicked with the following:

_rw_wlock_hard: recursing but non-recursive rw pmap pv global
@ /home/chmeee/freebsd/src/sys/powerpc/aim/mmu_oea.c:2301

I think the attached patch should fix it (Untested, except for
compiling).

- Justin
[-- Attachment #2 --]
Index: sys/powerpc/aim/mmu_oea.c
===================================================================
--- sys/powerpc/aim/mmu_oea.c	(revision 238165)
+++ sys/powerpc/aim/mmu_oea.c	(working copy)
@@ -874,7 +874,7 @@
  	/*
 	 * Initialize the global pv list lock.
 	 */
-	rw_init(&pvh_global_lock, "pmap pv global");
+	rw_init_flags(&pvh_global_lock, "pmap pv global", RW_RECURSE);
 
 	/*
 	 * Set up the Open Firmware mappings
help

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