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/28/2007 01:25:03
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: Sat, 28 Jul 2007 03:23:24 +0200

 Hello,
 
 there are finally some good news: it starts several processes and can 
 do a "real" reboot (rather than going back to SRM). 
 
 You'll find the whole output below (without me calling for "help" and 
 some duplicates and typographic errors in between).
 
 Unfortunately we still seem to be stuck at the SCSI adapter:
 ------------------------------
 Kernelized RAIDframe activated
 md0: internal 4650 KB image area
 scsibus0: waiting 2 seconds for devices to settle...
 probe(ahb0:0:0:0): timed out
 probe(ahb0:0:0:0): timed out AGAIN
 Stopped at      netbsd:cpu_Debugger+0x4:        ret     zero,(ra)
 ------------------------------
 
 There *is* a device with ID 0 installed, as you can see in the SRM 
 console:
 ------------------------------
 >>> sh dev
 
  BOOTDEV      ADDR      DEVTYPE    RM/FX    DEVNAM      REV NUMBYTES
  -------      ----      -------    -----    ------      --- ------
  FD0          PC Floppy DISK       RM   
  SCSI Devices..
  DKA0         A/0/0     DISK       FX       CFP2105     2D4D 2.14GB
  DKA400       A/4/0     RODISK     RM       CD-R        1.4D ......
  DKA500       A/5/0     DISK       FX       CP30540     B0BC 545.74MB
  HOST         A/7/0     PROC                AHA1742A    E   
 ------------------------------
 
 However, this is not found by NetBSD when it begins probing the bus 
 for device 0. The adapter's LED keeps dark, so there is no SCSI 
 activity at all at this point. A Reboot without powering down works, 
 while a halt from ddb leads to a situation, where the SRM console 
 would also fail to find the hostadapter:
 
 ------------------------------
 db> reboot 0x8
 syncing disks... done
 unmounting file systems... done
 halted.
 
 
 ?05 HLT INSTR
   PC= FFFFFC00.00300118 PSL= 00000000.00000006
 
  >>> sh dev
 
   BOOTDEV      ADDR      DEVTYPE    RM/FX    DEVNAM      REV NUMBYTES
   -------      ----      -------    -----    ------      --- --------
 
 *** UNEXPECTED INTERRUPT ***
 
 VECTOR   = 000007E0
 EXC_ADDR = 00030988
 PS       = 38000000.00001300
 ------------------------------
 
 The rest of the possibly relevant logs follows:
 
 ------------------------------
 NetBSD 4.0_BETA2 (GENERIC_MD) #1: Sat Jul 28 09:21:31 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
 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
 ahb0: INTDEF configured to use irq 12, ECU configured to use irq 12
 ahb0: interrupting at eisa irq 12
 scsibus0 at ahb0: 8 targets, 8 luns per target
 Compaq NetFlex-2 ENET-TR at eisa0 slot 3 not configured
 isa0 at jensenio0
 depca: address not found
 attimer0 at isa0 port 0x40-0x43: AT Timer
 we1 at isa0 port 0x300-0x31f iomem 0xcc000-0xcffff irq 10
 we1: WD8013EPC Ethernet (16-bit)
 we1: Ethernet address 00:00:c0:db:6c:2e
 vga0 at isa0 port 0x3b0-0x3df iomem 0xa0000-0xbffff
 wsdisplay0 at vga0 kbdmux 1
 wsmux1: connecting to wsdisplay0
 pcppi0 at isa0 port 0x61
 pcppi0: children must have an explicit unit
 midi0 at pcppi0: PC speaker (CPU-intensive output)
 spkr0 at pcppi0
 isabeep0 at pcppi0
 fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
 pcppi0: attached to attimer0
 enabling interrupts
 WARNING: stray interrupt, vector 0x840
 calling hwrpb_restart_setup()
 calling initclocks()
 cpu_initclocks()
 starting clock
 calling config_process_deferred()
 fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
 configure() done.
 Kernelized RAIDframe activated
 md0: internal 4650 KB image area
 scsibus0: waiting 2 seconds for devices to settle...
 probe(ahb0:0:0:0): timed out
 probe(ahb0:0:0:0): timed out AGAIN
 Stopped at      netbsd:cpu_Debugger+0x4:        ret     zero,(ra)
 db> trace
 cpu_Debugger() at netbsd:cpu_Debugger+0x4
 comintr() at netbsd:comintr+0x138
 com_jensenio_intr() at netbsd:com_jensenio_intr+0x24
 interrupt() at netbsd:interrupt+0x230
 XentInt() at netbsd:XentInt+0x1c
 --- interrupt (from ipl 0) ---
 idle() at netbsd:idle+0x48
 mi_switch() at netbsd:mi_switch+0xe0
 ltsleep() at netbsd:ltsleep+0x284
 scsipi_execute_xs() at netbsd:scsipi_execute_xs+0x318
 scsipi_command() at netbsd:scsipi_command+0xb8
 scsipi_inquire() at netbsd:scsipi_inquire+0xa0
 scsi_probe_bus() at netbsd:scsi_probe_bus+0x290
 scsibus_config() at netbsd:scsibus_config+0xcc
 scsipi_completion_thread() at netbsd:scsipi_completion_thread+0x30
 exception_return() at netbsd:exception_return
 --- root of call graph ---
 db> ps /w
  PID          COMMAND     EMUL  PRI UTIME STIME WAIT-MSG    WAIT-
 CHANNEL
  4          cryptoret   netbsd   36   0.2   0.2 crypto_wait 
 netbsd:crp_ret_q
  3           scsibus0   netbsd   16   0.0   0.4 xscmd       
 0xfffffc0001f13e60
  2               pms0   netbsd   32   0.1   0.1 pmsreset    
 0xfffffe0000071e74
  1               init   netbsd   32   0.1   0.1 initexec    
 netbsd:start_init_ex
 ec
  0            swapper   netbsd   32   0.0   0.4 cfpend      
 netbsd:config_pendin
 g
 db> show  event
 evcnt type 0: uvmmap ukh_alloc = 3
 evcnt type 0: uvmmap uke_free = 10
 evcnt type 0: uvmmap uke_alloc = 85
 evcnt type 0: uvmmap mlk_hint = 8
 evcnt type 0: uvmmap mlk_call = 14
 evcnt type 0: uvmmap map_call = 81
 evcnt type 0: uvmmap knomerge = 17
 evcnt type 0: uvmmap kbackmerge = 64
 evcnt type 1: soft net = 4
 evcnt type 1: cpu0 clock = 138377
 evcnt type 1: cpu0 device = 2
 evcnt type 1: vector 0x900 = 1
 db> show uvmexp
 Current UVM status:
   pagesize=8192 (0x2000), pagemask=0x1fff, pageshift=13
   2098 VM pages: 0 active, 0 inactive, 8 wired, 1905 free
   pages  8 anon, 0 file, 0 exec
   freemin=0, free-target=0, wired-max=0
   faults=8, traps=1, intrs=138379, ctxswitch=10
   softint=4, 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)=8/0
     cases: anon=0, anoncow=0, obj=8, 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> show page
 PAGE 0xfffffc00007e4ff0:
   flags=0, pqflags=4801<FREE,PRIVATE4,PRIVATE7>, wire_count=63008, 
 pa=0x20218000
 243f6801
   uobject=0x6bfa800144203000, uanon=0x4821d681f4600002, 
 offset=0x2021c000243ffc0
 1 loan_count=17921
   [page ownership tracking disabled]
 db> show vnode
 OBJECT 0xfffffc00007e4ff0: locked=1811578881, 
 pgops=0x203f000d46020002, npages=5
 38902529, refs=-197132283
 
 VNODE flags fffffffff4600002<TEXT>
 mp 0x4801f62046010000 numoutput 1210177153 size 0x47ff04004a01f621
 data 0x406205a2243f2c00 usecount -197132283 writecount 
 7780672049162235904 holdc
 nt 2315342790285851649 numoutput 1210177153
 tag UNKNOWN(-197132278) type UNKNOWN(-195035124) mount 
 0x4801f62046010000 typeda
 ta 0x404355a148235682
 db> show object
 OBJECT 0xfffffc00007e4ff0: locked=1811578881, 
 pgops=0x203f000d46020002, npages=5
 38902529, refs=-197132283
 db> reboot
 syncing disks... done
 unmounting file systems... done
 rebooting...
 
 
   83 BOOT SYS
 INIT-S-CPU...
 AUDIT_BOOT_STARTS ... 
 AUDIT_CHECKSUM_GOOD
 AUDIT_LOAD_BEGINS
 AUDIT_LOAD_DONE
 ------------------------------
 [...]
 ------------------------------
 db> x
 netbsd:cpu_Debugger+0x4:        6bfa8001
 db> reboot 0x8
 syncing disks... done
 unmounting file systems... done
 halted.
 
 
 ?05 HLT INSTR
   PC= FFFFFC00.00300118 PSL= 00000000.00000006
 
  >>> sh dev
 
   BOOTDEV      ADDR      DEVTYPE    RM/FX    DEVNAM      REV     
 NUMBYTES
   -------      ----      -------    -----    ------      ---     -----
 ---
 
 *** UNEXPECTED INTERRUPT ***
 
 VECTOR   = 000007E0
 EXC_ADDR = 00030988
 PS       = 38000000.00001300
 
 R00 = 00000000.0000000C R01 = 00000000.01E6443F R02 = 
 00000000.000C34B0 
 R03 = 00000000.000B8300 R04 = 00000000.00000008 R05 = 
 00000000.0006A5C0 
 R06 = 00000000.000FEC28 R07 = 00000000.0006A5C0 R08 = 
 00000000.00000000 
 R09 = 00000000.00000001 R10 = FFFFFFFF.FFFFFFBF R11 = 
 00000000.00000001 
 R12 = 00000000.00000001 R13 = 00000000.00000001 R14 = 
 00000000.00000001 
 R15 = FFFFFFFF.FFFFFFBF R16 = 00000000.000001F4 R17 = 
 00000000.0001FA80 
 R18 = 00000000.00000000 R19 = 00000000.00460007 R20 = 
 00000000.00004600 
 R21 = 00000000.00000001 R22 = 00000000.CBC0C193 R23 = 
 00000000.CBC0C19F 
 R24 = 00000000.00000001 R25 = 00000000.00000001 R26 = 
 00000000.00066738 
 R27 = 00000000.000BB8F8 R28 = 00000000.000B82FC R29 = 
 00000000.000FE978 
 
  >>>
 ------------------------------
 
 -- 
 Christoph Franzen