Subject: kern/31924: amd startup panics mac68k with "amap_cow_now: non-resident wired page..."
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: netbsd-bugs
Date: 10/27/2005 00:00:00
>Number:         31924
>Category:       kern
>Synopsis:       amd startup panics mac68k with "amap_cow_now: non-resident wired page..."
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 27 00:00:00 +0000 2005
>Originator:     Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
>Release:        NetBSD 3.99.10
>Organization:
Mahlzeit!
>Environment:
	
	
System: NetBSD mara 3.99.10 NetBSD 3.99.10 (GENERICSBC) #0: Tue Oct 25 23:44:06 CEST 2005 hf@heiligenberg:/var/obj/netbsd-builds/current/mac68k/sys/arch/mac68k/compile/GENERICSBC mac68k
Architecture: m68k
Machine: mac68k
>Description:

	When I boot my Quadra 700 with amd (the auto-mounter) 
	enabled I get a repeatable panic on -current of 2005-10-25 
	as well as netbsd-3.

	The kernel is a vanilla GENERICSBC from a cross-built distribution.

NetBSD 3.99.10 (GENERICSBC) #0: Tue Oct 25 23:44:06 CEST 2005
hf@heiligenberg:/var/obj/netbsd-builds/current/mac68k/sys/arch/mac68k/compile/GENERICSBC
Apple Macintosh Quadra 700  (68040)
cpu: delay factor 800
total memory = 20480 KB
avail memory = 15868 KB

[...]

Starting rpcbind.
Starting ypbind.
Mounting all filesystems...
Clearing /tmp.
Starting amd.
panic: amap_cow_now: non-resident wired page in anon 0x41c9fcc
Stopped in pid 268.1 (amd) at   netbsd:cpu_Debugger+0x6:        unlk    a6
db> t
cpu_Debugger(0,41c2bd4,41c9fcc,40aaae60,19c962) + 6
panic(2294a4,41c9fcc,36a844e8,12ae7e,0) + f8
amap_cow_now(36a8780,41c1194,0,0,40787fc) + 10c
uvmspace_fork(36a84b0,40787fc,4078b2c,40aaee0,1276be) + 29a
uvm_proc_fork(4078b2c,40787fc,0,40aafb4,4078b2c) + 1c
fork1(36aa800,0,14,0,0) + 292
sys_fork(36aa800,40aaf44,40aaf3c) + 1c
syscall_plain(2,36aa800,40aafb4,12,ffffffff) + 82
syscall(2) + 4e
trap0() + e
db> ps
 PID           PPID     PGRP        UID S   FLAGS LWPS          COMMAND    WAIT
 >268            266      268          0 2       0    1              amd
  266            254        9          0 2  0x4002    1              amd   pause
  254              9        9          0 2     0x2    1               sh    wait
  245              1      245          0 2       0    1        mount_mfs  mfsidl
  230              1      230          0 2       0    1           ypbind
  210              1      210          0 2       0    1          rpcbind    poll
  173              1      173          0 2       0    1          syslogd  kqread
  151              1      151          0 2       0    1         dhclient  select
  9                1        9          0 2  0x4002    1               sh    wait
  5                0        0          0 2 0x20200    1         aiodoned
  4                0        0          0 2 0x20200    1          ioflush
  3                0        0          0 2 0x20200    1       pagedaemon pgdaemo
  2                0        0          0 2 0x20200    1         scsibus0  sccomp
  1                0        1          0 2  0x4000    1             init    wait
  0               -1        0          0 2 0x20200    1          swapper schedul
db>

>How-To-Repeat:

	Install netbsd-3 or -current on mac68k, enable amd in /etc/rc.conf,
	reboot, panic.

>Fix:
	No idea.

>Unformatted: