Subject: Re: port-alpha/36628: cdhdtape image panics with memory management trap on Jensen
To: None <tsutsui@NetBSD.org, gnats-admin@netbsd.org,>
From: Christoph Franzen <ChristophFranzen@gmx.net>
List: netbsd-bugs
Date: 07/27/2007 20:30:02
The following reply was made to PR port-alpha/36628; it has been noted by GNATS.

From: "Christoph Franzen" <ChristophFranzen@gmx.net>
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Cc: gnats-bugs@NetBSD.org
Subject: Re: port-alpha/36628: cdhdtape image panics with memory management trap on Jensen
Date: Fri, 27 Jul 2007 22:28:30 +0200

 > Okay, I've checked mailing list archives and notice there is
 > no report that ahb(4) worked on Jensen but there is the similar hang:
 > http://mail-index.netbsd.org/port-alpha/2000/10/29/0000.html
 
 This person's name sounds german, and he has got a german ISP, so I 
 hope that at least one of the mail addresses is still valid...
 
 > Looks interrupts on Jensen PICs are not ack'ed properly.
 > I don't know what is the right way to handle this,
 
 So I've written him a few lines in german language, perhaps he 
 remembers something useful.
 
 > but
 > anyway could you try this one (which includes some PIC fixes)?
 
 This one panics earlier than before:
 -----------------------
 NetBSD 4.0_BETA2 (GENERIC_MD) #0: Fri Jul 27 23:43:54 JST 2007
         tsutsui@mirage:/r/work/src-
 4.0/src/sys/arch/alpha/compile/GENERIC_MD
 DEC2000 model 300, 150MHz, s/n
 8192 byte page size, 1 processor.
 total memory = 32768 KB
 (2048 KB reserved for PROM, 30720 KB used by NetBSD)
 avail memory = 16608 KB
 mainbus0 (root)
 cpu0 at mainbus0: ID 0 (primary), 21064-0
 jensenio0 at mainbus0
 
 CPU 0: fatal kernel trap:
 
 CPU 0    trap entry = 0x2 (memory management fault)
 CPU 0    a0         = 0x1000
 CPU 0    a1         = 0x1
 CPU 0    a2         = 0x1
 CPU 0    pc         = 0xfffffc000079c1fc
 CPU 0    ra         = 0xfffffc000079f50c
 CPU 0    pv         = 0xfffffc000079c1ec
 CPU 0    curlwp    = 0xfffffc0000f642b8
 CPU 0        pid = 0, comm = swapper
 
 panic: trap
 Stopped in pid 0.1 (swapper) at netbsd:cpu_Debugger+0x4:        ret   
   zero,(ra
 )
 db> trace
 cpu_Debugger() at netbsd:cpu_Debugger+0x4
 panic() at netbsd:panic+0x1bc
 trap() at netbsd:trap+0xce0
 XentMM() at netbsd:XentMM+0x20
 --- memory management fault (from ipl 6) ---
 jensenio_io_write_1() at netbsd:jensenio_io_write_1+0x10
 jensenio_pic_init() at netbsd:jensenio_pic_init+0x11c
 jensenio_intr_init() at netbsd:jensenio_intr_init+0x40
 jensenio_attach() at netbsd:jensenio_attach+0x78
 config_attach_loc() at netbsd:config_attach_loc+0x480
 mbattach() at netbsd:mbattach+0x11c
 config_attach_loc() at netbsd:config_attach_loc+0x480
 cpu_configure() at netbsd:cpu_configure+0x40
 configure() at netbsd:configure+0x7c
 main() at netbsd:main+0x1b4
 locorestart() at netbsd:locorestart+0x64
 --- root of call graph ---
 db> show event
 evcnt type 0: uvmmap ukh_alloc = 2
 evcnt type 0: uvmmap uke_free = 10
 evcnt type 0: uvmmap uke_alloc = 57
 evcnt type 0: uvmmap mlk_hint = 1
 evcnt type 0: uvmmap mlk_call = 7
 evcnt type 0: uvmmap map_call = 52
 evcnt type 0: uvmmap knomerge = 12
 evcnt type 0: uvmmap kbackmerge = 40
 db> show uvmexp
 Current UVM status:
   pagesize=8192 (0x2000), pagemask=0x1fff, pageshift=13
   2098 VM pages: 0 active, 0 inactive, 0 wired, 1991 free
   pages  0 anon, 0 file, 0 exec
   freemin=0, free-target=0, wired-max=0
   faults=1, traps=2, intrs=0, ctxswitch=0
   softint=0, syscalls=0, swapins=0, swapouts=0
   fault counts:
     noram=0, noanon=0, pgwait=0, pgrele=0
     ok relocks(total)=0(0), anget(retrys)=0(0), amapcopy=0
     neighbor anon/obj pg=0/0, gets(lock/unlock)=0/0
     cases: anon=0, anoncow=0, obj=0, prcopy=0, przero=0
   daemon and swap counts:
     woke=0, revs=0, scans=0, obscans=0, anscans=0
     busy=0, freed=0, reactivate=0, deactivate=0
     pageouts=0, pending=0, nswget=0
     nswapdev=0, swpgavail=0
     swpages=0, swpginuse=0, swpgonly=0, paging=0
 db>
 -----------------------
 -- 
 Christoph Franzen