Subject: Re: port-alpha/36628: cdhdtape image panics with memory management trap on Jensen
To: None <,,>
From: Christoph Franzen <>
List: netbsd-bugs
Date: 07/24/2007 21:45:03
The following reply was made to PR port-alpha/36628; it has been noted by GNATS.

From: "Christoph Franzen" <>
To: Izumi Tsutsui <>
Subject: Re: port-alpha/36628: cdhdtape image panics with memory management trap on Jensen
Date: Tue, 24 Jul 2007 23:45:04 +0200

 > Then I thought the ECU didn't set ahb's register, but
 > maybe other OSes always prefer the ECU's value, I guess.
 > (though I'm not sure if it could be a problem if there is no IRQ
 > conflict)
 I tried to resolve the conflict by setting the IRQ to 12 in the ECU. 
 This did not help (not with the old and new GENERIC version).
 > I've written a quick patch which makes ahb use the ECU irq value
 > if it's different from card setting. Could you try this one?
 This doesn't work either:
 NetBSD 4.0_BETA2 (GENERIC) #4: Tue Jul 24 00:35:42 JST 2007
 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 = 20200 KB
 mainbus0 (root)
 cpu0 at mainbus0: ID 0 (primary), 21064-0
 jensenio0 at mainbus0
 pckbc0 at jensenio0 port 0x60
 pms0 at pckbc0 (aux slot)
 pckbc0: aux slot interrupting at vector 0x990
 wsmouse0 at pms0 mux 0
 com0 at jensenio0 port 0x3f8: ns8250 or ns16450, no fifo
 com0: console
 com0: interrupting at vector 0x900
 com1 at jensenio0 port 0x2f8: ns8250 or ns16450, no fifo
 com1: interrupting at vector 0x920
 lpt0 at jensenio0 port 0x3bc
 lpt0: interrupting at eisa irq 1
 mcclock0 at jensenio0 port 0x170: mc146818 or compatible
 eisa0 at jensenio0
 ahb0 at eisa0 slot 2: Adaptec AHA-1742A SCSI
 panic: jensenio_eisa_intr_map: bogus IRQ 9114572
 Stopped in pid 0.1 (swapper) at netbsd:cpu_Debugger+0x4:        ret   
 db> trace
 cpu_Debugger() at netbsd:cpu_Debugger+0x4
 panic() at netbsd:panic+0x1e8
 jensenio_eisa_intr_map() at netbsd:jensenio_eisa_intr_map+0xb4
 ahbattach() at netbsd:ahbattach+0x69c
 config_attach_loc() at netbsd:config_attach_loc+0x420
 eisaattach() at netbsd:eisaattach+0x2a4
 config_attach_loc() at netbsd:config_attach_loc+0x420
 jensenio_attach() at netbsd:jensenio_attach+0x178
 config_attach_loc() at netbsd:config_attach_loc+0x420
 mbattach() at netbsd:mbattach+0x168
 config_attach_loc() at netbsd:config_attach_loc+0x420
 cpu_configure() at netbsd:cpu_configure+0x44
 configure() at netbsd:configure+0x44
 main() at netbsd:main+0x1bc
 locorestart() at netbsd:locorestart+0x64
 --- root of call graph ---
 db> ps/w
 >0            swapper   netbsd    0   0.0   0.0
 db> show event
 evcnt type 0: uvmmap ukh_alloc = 2
 evcnt type 0: uvmmap uke_free = 10
 evcnt type 0: uvmmap uke_alloc = 64
 evcnt type 0: uvmmap mlk_hint = 1
 evcnt type 0: uvmmap mlk_call = 6
 evcnt type 0: uvmmap map_call = 59
 evcnt type 0: uvmmap knomerge = 12
 evcnt type 0: uvmmap kbackmerge = 47
 db> show uvmexp
 Current UVM status:
   pagesize=8192 (0x2000), pagemask=0x1fff, pageshift=13
   2547 VM pages: 0 active, 0 inactive, 0 wired, 2428 free
   pages  0 anon, 0 file, 0 exec
   freemin=0, free-target=0, wired-max=0
   faults=0, traps=1, 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