Module Name:    src
Committed By:   tsutsui
Date:           Sat Jan 25 00:07:48 UTC 2014

Modified Files:
        src/sys/arch/x68k/include: vmparam.h

Log Message:
Increase VM_KERNEL_PT_PAGES from 2 to 4 for x68k.

X68030 with 8MB or 12MB RAM (which is default for most X68030s)
now gets "pmap_enter_ptpage: can't get KPT page" panic again
with VM_KERNEL_PT_PAGES=2 while it works with >=14MB.
3 is enough to boot for now, but I also add a spare.

I guess this is because the post netbsd-6 vmem(9) bootstrap
changes require more kernel memory before MD pmap_init().

Note1:  netbsd-6 (which also pulls physmem detection changes
        that affect nptpages) doesn't have this problem.
Note2:  other hp300 pmap based m68k ports might have the same issue,
        but at least 12MB luna68k works with VM_KERNEL_PT_PAGES=2
        so I think it depends on kernel size and/or iomapsize.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/arch/x68k/include/vmparam.h

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/x68k/include/vmparam.h
diff -u src/sys/arch/x68k/include/vmparam.h:1.35 src/sys/arch/x68k/include/vmparam.h:1.36
--- src/sys/arch/x68k/include/vmparam.h:1.35	Sat Jan 21 20:19:55 2012
+++ src/sys/arch/x68k/include/vmparam.h	Sat Jan 25 00:07:48 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: vmparam.h,v 1.35 2012/01/21 20:19:55 tsutsui Exp $	*/
+/*	$NetBSD: vmparam.h,v 1.36 2014/01/25 00:07:48 tsutsui Exp $	*/
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -107,7 +107,7 @@
 #define VM_PHYS_SIZE		(USRIOSIZE*PAGE_SIZE)
 
 /* # of kernel PT pages (initial only, can grow dynamically) */
-#define VM_KERNEL_PT_PAGES	((vsize_t)2)		/* XXX: SYSPTSIZE */
+#define VM_KERNEL_PT_PAGES	((vsize_t)4)		/* XXX: SYSPTSIZE */
 
 /*
  * Constants which control the way the VM system deals with memory segments.

Reply via email to