Subject: Re: port-sparc64/31925: smartd panics NetBSD 2.0.2_STABLE on
To: None <port-sparc64-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Johan A.van Zanten <johan@giantfoo.org>
List: netbsd-bugs
Date: 10/29/2005 05:19:02
The following reply was made to PR port-sparc64/31925; it has been noted by GNATS.

From: Johan A.van Zanten <johan@giantfoo.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-sparc64/31925: smartd panics NetBSD 2.0.2_STABLE on
 sparc64
Date: Sat, 29 Oct 2005 00:18:12 -0500 (CDT)

 When i try this with a GENERIC kernel built from -current (circa 27 Oct
 2005), similar results appear on the console.  Please see below.
 
  -johan
 
 Console output when smartd is run:
 
 extent `psycho0 dvma' (0xc0000000 - 0xdfffe000), flags = 0x0
      0xc0000000 - 0xc006dfff
      0xc0078000 - 0xc0079fff
 extent_free: start 0xc0000000, end 0xbfffffff
 panic: extent_free: region not found
 kdb breakpoint at 1384dc0
 Stopped at      netbsd:cpu_Debugger+0x4:        nop
 db> tr
 extent_free(2507d40, c0000000, bfffffff, 24c2150, 2, 2) at netbsd:extent_free+0x1b8
 iommu_dvmamap_unload(5, 251bb80, 27bb600, 0, 2, a) at netbsd:iommu_dvmamap_unload+0x54
 esiop_scsicmd_end(24c6380, 2756c00, b6c, ac, a, 0) at netbsd:esiop_scsicmd_end+0xd0
 esiop_checkdone(2756c00, c6e7dd0, c6e7dc0, 0, c6e7dd0, ff00) at netbsd:esiop_checkdone+0x2ac
 esiop_intr(0, d1, 4093132c, c6e7dd0, 4093132c, 40931330) at netbsd:esiop_intr+0x5c
 intr_list_handler(2507680, 0, e0017ed0, 0, 13788e0, ffffffffffffc77c) at netbsd:
 intr_list_handler+0x10
 sparc_interrupt(0, 0, 13fd038, 0, ffffffffffffffff, 0) at netbsd:sparc_interrupt+0x1d4
 spec_poll(bd94b00, 0, 0, 0, a, 436302a1) at netbsd:spec_poll+0x48
 mi_switch(bd94b00, 0, bd85d40, 0, 0, 0) at netbsd:mi_switch+0x134
 ltsleep(18963b8, 118, 0, 0, 0, 0) at netbsd:ltsleep+0x3e4
 pollcommon(0, c6e7dc0, 224080, 2, 0, 0) at netbsd:pollcommon+0x1b0
 sys_poll(bd94b00, c6e7dd0, c6e7dc0, 0, c6e7dd0, ff00) at netbsd:sys_poll+0x70
 syscall(c6e7ed0, d1, 4093132c, c6e7dd0, 4093132c, 40931330) at netbsd:syscall+0xd0
 ?(224080, 2, ffffffffffffffff, 0, ffffffffffffcb80, ffffffffffffc77c) at 0x1008cb8         
 
  -------
 
 boot-time output from -current kernel:
 
 Boot device: /pci@1f,0/pci@1/scsi@1/disk@0,0  File and args: netbsd-new
 NetBSD IEEE 1275 Bootblock
 ..>> NetBSD/sparc64 OpenFirmware Boot, Revision 1.7
 >> (johan@sarasvati, Sun Jul 17 05:27:50 CDT 2005)
 loadfile: reading header
 elf64_exec: Booting /pci@1f,0/pci@1/scsi@1/disk@0,0:a/netbsd-new
 5533848@0x1000000+327464@0x1800000+3866840@0x184ff28 
 symbols @ 0xfee56500 227+429864+262686 start=0x1000000
 chain: calling OF_chain(800000, d520, 1000000, fffa9a80, 18)
 console is /pci@1f,0/pci@1,1/ebus@1/se@14,400000:a
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
     The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.
 
 NetBSD 3.0_BETA (GENERIC) #0: Fri Oct 28 23:54:03 CDT 2005
         johan@sarasvati:/local/NetBSD/src/NetBSD-current/src/sys/arch/sparc64/co
 mpile/obj.sparc64/GENERIC
 total memory = 512 MB
 avail memory = 489 MB
 bootpath: /pci@1f,0/pci@1,0/scsi@1,0/disk@0,0
 mainbus0 (root): SUNW,UltraSPARC-IIi-Engine: hostid 809ebbbe
 cpu0 at mainbus0: SUNW,UltraSPARC-IIi @ 300.016 MHz, version 0 FPU
 cpu0: 32K instruction (32 b/l), 16K data (32 b/l), 512K external (64 b/l)
 psycho0 at mainbus0 addr 0xfffc4000
 SUNW,sabre: impl 0, version 0: ign 7c0 bus range 0 to 128; PCI bus 0
 DVMA map: c0000000 to e0000000
 IOTSB: 860000 to 8e0000
 pci0 at psycho0
 pci0: i/o space, memory space enabled
 ppb0 at pci0 dev 1 function 1: Sun Microsystems Simba PCI bridge (rev. 0x11)
 pci1 at ppb0 bus 1
 pci1: i/o space, memory space enabled
 ebus0 at pci1 dev 1 function 0
 ebus0: Sun Microsystems PCIO Ebus2, revision 0x01
 auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003, 72c000-72c003, 72f000-72f003
 power at ebus0 addr 724000-724003 ipl 37 not configured
 SUNW,pll at ebus0 addr 504000-504002 not configured
 sab0 at ebus0 addr 400000-40007f ipl 43: rev 3.2
 sabtty0 at sab0 port 0: console i/o
 sabtty1 at sab0 port 1
 com0 at ebus0 addr 3803f8-3803ff ipl 41: ns16550a, working fifo
 kbd0 at com0
 com1 at ebus0 addr 3602f8-3602ff ipl 42: ns16550a, working fifo
 ms0 at com1
 wsmouse0 at ms0 mux 0
 lpt0 at ebus0 addr 340278-340287, 30015c-30015d, 700000-70000f ipl 34
 fdthree at ebus0 addr 3203f0-3203f7, 706000-70600f, 720000-720003 ipl 39 not configured
 clock0 at ebus0 addr 0-1fff: mk48t59
 flashprom at ebus0 addr 0-fffff not configured
 beeper at ebus0 addr 722000-722003 not configured
 hme0 at pci1 dev 1 function 1: Sun Happy Meal Ethernet, rev. 1
 hme0: interrupting at ivec 3021
 hme0: Ethernet address 08:00:20:9e:bb:be
 nsphy0 at hme0 phy 1: DP83840 10/100 media interface, rev. 1
 nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 machfb0 at pci1 dev 4 function 0: ATI Technologies 3D Rage II+ (rev. 0x9a)
 machfb0: 16 MB aperture at 0x41000000, 4 KB registers at 0x00000000
 memctl: 00401097
 machfb0: 4096 KB EDO DRAM 94.585 MHz, maximum RAMDAC clock 200 MHz
 machfb0: initial resolution 1152x864 at 8 bpp
 initializing the DSP
 wsdisplay1 at machfb0 kbdmux 1
 wsmux1: connecting to wsdisplay1
 wsdisplay1: screen 0-3 added (default, sun emulation)
 ppb1 at pci0 dev 1 function 0: Sun Microsystems Simba PCI bridge (rev. 0x11)
 pci2 at ppb1 bus 128
 pci2: i/o space, memory space enabled
 esiop0 at pci2 dev 1 function 0: Symbios Logic 53c875 (ultra-wide scsi)
 esiop0: using on-board RAM
 esiop0: interrupting at ivec 20
 scsibus0 at esiop0: 16 targets, 8 luns per target
 esiop1 at pci2 dev 1 function 1: Symbios Logic 53c875 (ultra-wide scsi)
 esiop1: using on-board RAM
 esiop1: interrupting at ivec 20
 scsibus1 at esiop1: 16 targets, 8 luns per target
 pcons at mainbus0 not configured
 No counter-timer -- using %tick at 300MHz as system clock.
 wskbd0 at kbd0 mux 1
 kbd0: reset failed
 wskbd0: connecting to wsdisplay1
 Kernelized RAIDframe activated
 scsibus0: waiting 2 seconds for devices to settle...
 scsibus1: waiting 2 seconds for devices to settle...
 sd0 at scsibus0 target 0 lun 0: <IBM, DDYS-T09170N, S93E> disk fixed
 sd0: 8748 MB, 15110 cyl, 3 head, 395 sec, 512 bytes/sect x 17916240 sectors
 sd0: sync (50.00ns offset 16), 16-bit (40.000MB/s) transfers, tagged queueing
 cd0 at scsibus0 target 6 lun 0: <TOSHIBA, XM6201TASUN32XCD, 1103> cdrom removable
 cd0: sync (100.00ns offset 16), 8-bit (10.000MB/s) transfers
 root on sd0a dumps on sd0b
 root file system type: ffs
 Sat Oct 29 05:01:53 GMT 2005
 swapctl: adding /dev/sd0b as swap device at priority 0
 Checking for botched superblock upgrades: done.
 Starting file system checks:
 /dev/rsd0a: 1387 files, 58744 used, 68742 free (134 frags, 8576 blocks, 0.1% fragmentation)
 /dev/rsd0a: MARKING FILE SYSTEM CLEAN
 /dev/rsd0f: 2264 files, 12070 used, 496243 free (195 frags, 62006 blocks, 0.0% fragmentation)
 /dev/rsd0f: MARKING FILE SYSTEM CLEAN
 /dev/rsd0g: 38591 files, 359298 used, 673098 free (1890 frags, 83901 blocks, 0.2% fragmentation)
 /dev/rsd0g: MARKING FILE SYSTEM CLEAN
 /dev/rsd0h: file system is clean; not checking
 Setting tty flags.
 Setting sysctl variables:
 Starting network.
 Hostname: ganesha
 IPv6 mode: host
 Configuring network interfaces: hme0.
 add net default: gateway 24.227.169.97
 Adding interface aliases:
 Building databases...
 Starting syslogd.
 Checking for core dump...
 savecore: no core dump
 Starting rpcbind.
 Mounting all filesystems...
 Oct 29 00:02:11 ganesha /netbsd: kbd0: reset failed
 Clearing /tmp.
 Checking quotas: done.
 Setting securelevel: kern.securelevel: 0 -> 1
 Starting virecover.
 Starting local daemons:.
 Updating motd.
 Starting ntpd.
 Starting xdm.
 Starting sshd.
 postfix/postfix-script: starting the Postfix mail system
 Starting inetd.
 Starting cron.
 Sat Oct 29 00:02:18 CDT 2005
 
 NetBSD/sparc64 (ganesha) (console)
 
 login: