Module Name: src Committed By: martin Date: Sun Jun 7 12:23:43 UTC 2020
Modified Files: src/sys/arch/powerpc/oea [netbsd-8]: pmap.c Log Message: Pull up following revision(s) (requested by rin in ticket #1554): sys/arch/powerpc/oea/pmap.c: revision 1.96 Stop returning while PMAP_LOCK() (= KERNEL_LOCK(1, NULL)) is held. Kernel freeze with heavy load is significantly mitigated (fixed?), in which I could not even enter DDB from console. XXX There is still inconsistency in usage of two PVO pools. I will send-pr later. XXX pullup to netbsd-[987] To generate a diff of this commit: cvs rdiff -u -r1.94.8.1 -r1.94.8.2 src/sys/arch/powerpc/oea/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/powerpc/oea/pmap.c diff -u src/sys/arch/powerpc/oea/pmap.c:1.94.8.1 src/sys/arch/powerpc/oea/pmap.c:1.94.8.2 --- src/sys/arch/powerpc/oea/pmap.c:1.94.8.1 Tue Feb 27 09:07:33 2018 +++ src/sys/arch/powerpc/oea/pmap.c Sun Jun 7 12:23:43 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.94.8.1 2018/02/27 09:07:33 martin Exp $ */ +/* $NetBSD: pmap.c,v 1.94.8.2 2020/06/07 12:23:43 martin Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. @@ -63,7 +63,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.94.8.1 2018/02/27 09:07:33 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.94.8.2 2020/06/07 12:23:43 martin Exp $"); #define PMAP_NOOPNAMES @@ -991,6 +991,7 @@ pmap_pte_spill(struct pmap *pm, vaddr_t } source_pvo = pvo; if (exec && !PVO_EXECUTABLE_P(source_pvo)) { + PMAP_UNLOCK(); return 0; } if (victim_pvo != NULL) @@ -2162,6 +2163,7 @@ pmap_extract(pmap_t pm, vaddr_t va, padd return true; } } + PMAP_UNLOCK(); return false; #elif defined (PMAP_OEA64_BRIDGE) if (va >= SEGMENT_LENGTH)