Module Name:    src
Committed By:   rin
Date:           Mon Oct  9 13:01:58 UTC 2023

Modified Files:
        src/sys/arch/powerpc/oea: pmap.c

Log Message:
powerpc/oea: pmap: Use pool_allocator_nointr() for pmap_pool

As done for (majority of) other pmap implementations.

pmap_pool_allocator() allocates memory below 256MB, but it is not
necessary for struct pmap.

Fix part of PR kern/57621, i.e., stall in pmap_create(9).

There should be another bugs that cause (MP?) kernel hangs
reported in the PR, in pmap or other MD components for powerpc
(PR port-powerpc/56922 should be one of the candidates).

XXX
pmap for powerpc/oea apparently needs some clean ups. But leave it
as is, and pull up this minimum fix to netbsd-10 at the moment.


To generate a diff of this commit:
cvs rdiff -u -r1.114 -r1.115 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.114 src/sys/arch/powerpc/oea/pmap.c:1.115
--- src/sys/arch/powerpc/oea/pmap.c:1.114	Mon May  9 11:39:44 2022
+++ src/sys/arch/powerpc/oea/pmap.c	Mon Oct  9 13:01:58 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.c,v 1.114 2022/05/09 11:39:44 rin Exp $	*/
+/*	$NetBSD: pmap.c,v 1.115 2023/10/09 13:01:58 rin 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.114 2022/05/09 11:39:44 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.115 2023/10/09 13:01:58 rin Exp $");
 
 #define	PMAP_NOOPNAMES
 
@@ -3448,7 +3448,7 @@ pmap_bootstrap1(paddr_t kernelstart, pad
 	pool_setlowat(&pmap_pvo_pool, 1008);
 
 	pool_init(&pmap_pool, sizeof(struct pmap),
-	    sizeof(void *), 0, 0, "pmap_pl", &pmap_pool_allocator,
+	    sizeof(void *), 0, 0, "pmap_pl", &pool_allocator_nointr,
 	    IPL_NONE);
 
 #if defined(PMAP_NEED_MAPKERNEL)

Reply via email to