Subject: kern/3765: ccd mirror panic on sun4m
To: None <gnats-bugs@gnats.netbsd.org>
From: Erik E. Fair <fair@digital.clock.org>
List: netbsd-bugs
Date: 06/19/1997 03:04:40
>Number:         3765
>Category:       kern
>Synopsis:       ccd mirror panic on sun4m
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 19 03:20:03 1997
>Last-Modified:
>Originator:     Erik E. Fair
>Organization:
International Organization of Internet Clock Watchers
>Release:        NetBSD-current June 18, 1997
>Environment:


Type  help  for more information
ok boot -s
Resetting ...

SPARCstation LX, No Keyboard
ROM Rev. 2.10, 96 MB memory installed, Serial #7381056.
Ethernet address 8:0:20:19:c2:65, Host ID: 8070a040.


Rebooting with command: -s
Boot device: /iommu/sbus/dma@0,81000/esp@0,80000/sd@0,0   File and args: -s
>Description:
	an attempt to use a mirror ccd on NetBSD-current on sun4m
	causes the following:

		pmap_extract: invalid pte of type 0
		panic: dvma_mapin: null page frame

>How-To-Repeat:

Enter pathname of shell or RETURN for sh:
Don't login as root, use the su command.
# fsck -p
/dev/rsd4a: file system is clean; not checking
/dev/rsd4d: file system is clean; not checking
/dev/rsd3e: file system is clean; not checking
/dev/rsd4e: file system is clean; not checking
/dev/rsd4f: file system is clean; not checking
/dev/rsd3f: file system is clean; not checking
/dev/rsd4g: file system is clean; not checking
/dev/rsd3h: file system is clean; not checking
/dev/rsd8a: file system is clean; not checking
/dev/rsd8d: file system is clean; not checking
/dev/rsd8e: file system is clean; not checking
/dev/rsd8f: file system is clean; not checking
/dev/rsd8g: file system is clean; not checking
# swapctl -A
swapctl: adding /dev/sd4b as swap device at priority 0
swapctl: adding /dev/sd8b as swap device at priority 0
# ccdconfig -v -C
ccd0: 2 components (sd9h, sd5h), 4192020 blocks interleaved at 35 blocks
# disklabel ccd0
# /dev/rccd0c:
type: ccd
disk: ccd
label: default label
flags:
bytes/sector: 512
sectors/track: 2048
tracks/cylinder: 1
sectors/cylinder: 2048
cylinders: 2046
total sectors: 4192020
rpm: 5400
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

8 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:  4192020        0    4.2BSD     1024  8192    32   # (Cyl.    0 - 2046*)
  c:  4192020        0    unused        0     0         # (Cyl.    0 - 2046*)
# newfs /dev/rccd0a
Warning: 236 sector(

pmap_extract: invalid pte of type 0
panic: dvma_mapin: null page frame
syncing disks... done
Frame pointer is at 0xf8123c00
Call traceback:
  pc = f80ff430  args = (0, 41001fe5, f8139c00, f8123d20, f8101e38, f8143800, f8123c68) fp = 0xf8123c68
  pc = f802c80c  args = (100, 0, 1, f8799e00, f8da3800, fe000000, f8123cd0) fp = 0xf8123cd0
  pc = f810a190  args = (f810a070, 100, 0, 1, f8197ab0, bf81e, f8123d38) fp = 0xf8123d38
  pc = f8109f8c  args = (fc004000, fc62eb68, 1400, fc005000, 1, 0, f8123da0) fp= 0xf8123da0
  pc = f80f2e54  args = (fc62eb68, 1400, 0, f81ec000, 50, 0, f8123e08) fp = 0xf8123e08
  pc = f80f3d48  args = (f8780980, f87aee50, f87aee54, 0, f8123f40, f80f2c6c, f8123e70) fp = 0xf8123e70
  pc = f800e434  args = (f87ae800, f87aee50, f87aee54, 0, f8123f40, f80f3d30, f8123ed8) fp = 0xf8123ed8
  pc = f80069ac  args = (f87ae800, f800d274, f879b8e0, 0, f8101e38, f8143800, f8123f50) fp = 0xf8123f50
  pc = f810584c  args = (410010e6, b8, f8173400, f81734b8, f8002000, fe000000, fc62cab8) fp = 0xfc62cab8

0xf80ff430 <cpu_reboot+196>:     0x40000093
0xf802c80c <panic+80>:   0x40034ad8
0xf810a190 <dvma_mapin+260>:     0x7ffc898b
0xf8109f8c <kdvma_mapin+20>:     0x40000040
0xf80f2e54 <dma_setup+488>:      0x40005c49
0xf80f3d48 <esp_dma_setup+24>:   0x9fc34000
0xf800e434 <ncr53c9x_intr+4544>: 0x9fc34000
0xf80069ac <sparc_interrupt_common+368>: 0x9fc24000
0xf810584c <pmap_enk4m+428>:     0x7ffff187

dumping to dev 721, offset 203504
dump sd4(esp1:0:0): esp1: timed out [ecb 0xf87ae8c4 (flags 0x1, dleft 200, stat0)], <state 4, nexus 0xf87ae890, phase(c 0, p 101), resid 1400, msg(q 0,o 0) >
sd4(esp1:0:0): esp1: timed out [ecb 0xf87ae8c4 (flags 0x41, dleft 200, stat 0)],
o 0) > AGAIN
stray interrupt ipl c pc=f80e4bac npc=f80e4bb0 psr=410015c1<EF,S,PS>
ccd0: error 0 an component 1 (mirror)
stray interrupt ipl c pc=f80e4bac npc=f80e4bb0 psr=410015c4<EF,S,PS>
stray interrupt ipl c pc=f80e4bac npc=f80e4bb0 psr=410015c4<EF,S,PS>
stray interrupt ipl c pc=f80e4bac npc=f80e4bb0 psr=410015c4<EF,S,PS>
stray interrupt ipl c pc=f80e4bac npc=f80e4bb0 psr=410015c4<EF,S,PS>
stray interrupt ipl c pc=f80e4bac npc=f80e4bb0 psr=410015c4<EF,S,PS>
stray interrupt ipl c pc=f80e4bac npc=f80e4bb0 psr=410015c4<EF,S,PS>
panic: esp1: nexus in reset state
Frame pointer is at 0xf8123688
Call traceback:
  pc = f80ff430  args = (f00, 41001fe4, 0, f81237a8, f8123c48, 0, f81236f0) fp = 0xf81236f0
  pc = f802c80c  args = (104, 0, 1, f80f3cc8, f8142000, 500, f8123758) fp = 0xf8123758
  pc = f800d36c  args = (f800ccb8, 104, f80f3cb4, f80f3cc8, 0, 650, f81237c0) fp = 0xf81237c0
  pc = f800afcc  args = (f87ae800, f80f3cdc, 1, 41, 200, 0, f8123838) fp = 0xf8123838
  pc = f800aef8  args = (f87ae800, f813cb98, 2710, a, 0, 0, f81238a0) fp = 0xf81238a0
  pc = f80f0384  args = (f813cb98, f800ada8, a, 0, 0, 200, f8123908) fp = 0xf8123908
  pc = f810836c  args = (f813cb98, 41ed1, f81239e8, 1, 200, f81734b8, f8123980)fp = 0xf8123980
  pc = f80ff758  args = (0, 31af1, 1, f8123d80, f8123c48, 0, f8123c00) fp = 0xf8123c00
  pc = f80ff430  args = (0, f80f01e0, f8139c00, f8123d20, f8101e38, f8143800, f8123c68) fp = 0xf8123c68
  pc = f802c80c  args = (100, 0, 1, f8799e00, f8da3800, fe000000, f8123cd0) fp = 0xf8123cd0
  pc = f810a190  args = (f810a070, 100, 0, 1, f8197ab0, bf81e, f8123d38) fp = 0xf8123d38
  pc = f8109f8c  args = (fc004000, fc62eb68, 1400, fc005000, 1, 0, f8123da0) fp= 0xf8123da0
  pc = f80f2e54  args = (fc62eb68, 1400, 0, f81ec000, 50, 0, f8123e08) fp = 0xf8123e08
  pc = f80f3d48  args = (f8780980, f87aee50, f87aee54, 0, f8123f40, f80f2c6c, f8123e70) fp = 0xf8123e70
  pc = f800e434  args = (f87ae800, f87aee50, f87aee54, 0, f8123f40, f80f3d30, f8123ed8) fp = 0xf8123ed8
  pc = f80069ac  args = (f87ae800, f800d274, f879b8e0, 0, f8101e38, f8143800, f8123f50) fp = 0xf8123f50
  pc = f810584c  args = (410010e6, b8, f8173400, f81734b8, f8002000, fe000000, fc62cab8) fp = 0xfc62cab8

0xf80ff430 <cpu_reboot+196>:    0x40000093
0xf802c80c <panic+80>:  0x40034ad8
0xf800d36c <ncr53c9x_intr+248>: 0x40007d14
0xf800afcc <ncr53c9x_poll+76>:  0x400008aa
0xf800aef8 <ncr53c9x_scsi_cmd+336>:     0x40000022
0xf80f0384 <sddump+420>:        0x9fc24000
0xf810836c <pmap_dumpmmu+164>:  0x9fc58000
0xf80ff758 <dumpsys+220>:       0x400022dc
0xf80ff430 <cpu_reboot+196>:    0x40000093
0xf802c80c <panic+80>:  0x40034ad8
0xf810a190 <dvma_mapin+260>:    0x7ffc898b
0xf8109f8c <kdvma_mapin+20>:    0x40000040
0xf80f2e54 <dma_setup+488>:     0x40005c49
0xf80f3d48 <esp_dma_setup+24>:  0x9fc34000
0xf800e434 <ncr53c9x_intr+4544>:        0x9fc34000
0xf80069ac <sparc_interrupt_common+368>:        0x9fc24000
0xf810584c <pmap_enk4m+428>:    0x7ffff187

dumping to dev 721, offset 203504
dump device not ready
rebooting
Resetting ...

>Fix:

>Audit-Trail:
>Unformatted:
>> NetBSD BOOT [$Revision: 1.4 $]
Booting netbsd @ 0x4000
1163264+112952+70736+[71904+83662]=0x172d3e
pmap_bootstrap: installing kernel page tables...done.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.2G (DIGITAL) #7: Wed Jun 18 13:56:59 PDT 1997
    root@digital.clock.org:/usr/src/sys/arch/sparc/compile/DIGITAL
real mem = 100171776
avail mem = 93540352
using 768 buffers containing 3145728 bytes of memory
bootpath: /iommu@0,10000000/sbus@0,10001000/dma@0,81000/esp@0,80000/sd@0,0
mainbus0 (root): SUNW,SPARCstation-LX
cpu0 at mainbus0: TMS390S10 @ 50 MHz, on-chip FPU
cpu0: physical 4K instruction (32 b/l), 2K data (16 b/l) cache enabled
obio0 at mainbus0
clock0 at obio0 addr 0x71200000: mk48t08 (eeprom)
timer0 at obio0 addr 0x71d00000 delay constant 23
zs0 at obio0 addr 0x71100000 pri 12, softpri 6
zs0a: console i/o
zs1 at obio0 addr 0x71000000 pri 12, softpri 6
[slavioconfig at obio0] addr 0x71800000 not configured
auxreg0 at obio0 addr 0x71900000
power0 at obio0 addr 0x71910000
fdc0 at obio0 addr 0x71400000 pri 11, softpri 4: chip 82077
iommu0 at mainbus0 addr 0x10000000: version 1/4, page-size 4096, range 64MB
sbus0 at iommu0: clock = 25 MHz
dma0 at sbus0 slot 4 offset 0x8400000: rev 2
esp0 at dma0 slot 0x4 offset 0x8800000 pri 4: ESP200, 40MHz, SCSI ID 7
scsibus0 at esp0: 8 targets
probe(esp0:1:0): max sync rate 10.00Mb/s
sd1 at scsibus0 targ 1 lun 0: <QUANTUM, XP34301, 1037> SCSI2 0/direct fixed
sd1: 4106MB, 4076 cyl, 20 head, 103 sec, 512 bytes/sec
probe(esp0:3:0): max sync rate 10.00Mb/s
sd3 at scsibus0 targ 3 lun 0: <QUANTUM, FIREBALL_TM3200S, 300X> SCSI2 0/direct fixed
sd3: 3067MB, 6810 cyl, 5 head, 184 sec, 512 bytes/sec
SUNW,bpp at sbus0 slot 4 offset 0xc800000 not configured
ledma0 at sbus0 slot 4 offset 0x8400010: rev 2
le0 at ledma0 slot 0x4 offset 0x8c00000 pri 6: address 08:00:20:19:c2:65
le0: 8 receive buffers, 2 transmit buffers
dma1 at sbus0 slot 0 offset 0x81000: rev esc
esp1 at dma1 slot 0x0 offset 0x80000 pri 5: ESP200, 40MHz, SCSI ID 7
scsibus1 at esp1: 8 targets
probe(esp1:0:0): max sync rate 10.00Mb/s
sd4 at scsibus1 targ 0 lun 0: <SEAGATE, ST43400N, 1028> SCSI2 0/direct fixed
sd4: 2777MB, 2737 cyl, 21 head, 98 sec, 512 bytes/sec
probe(esp1:1:0): max sync rate 10.00Mb/s
sd5 at scsibus1 targ 1 lun 0: <HP, C3725S, 6019> SCSI2 0/direct fixed
sd5: 2047MB, 3703 cyl, 9 head, 125 sec, 512 bytes/sec
lebuffer0 at sbus0 slot 0 offset 0x40000
le1 at lebuffer0 slot 0x0 offset 0x60000 pri 7: address 08:00:20:19:c2:65
le1: 64 receive buffers, 16 transmit buffers
dma2 at sbus0 slot 1 offset 0x81000: rev esc
esp2 at dma2 slot 0x1 offset 0x80000 pri 5: ESP200, 40MHz, SCSI ID 7
scsibus2 at esp2: 8 targets
probe(esp2:0:0): max sync rate 10.00Mb/s
sd8 at scsibus2 targ 0 lun 0: <SEAGATE, ST43400N, 1028> SCSI2 0/direct fixed
sd8: 2777MB, 2737 cyl, 21 head, 98 sec, 512 bytes/sec
probe(esp2:1:0): max sync rate 10.00Mb/s
sd9 at scsibus2 targ 1 lun 0: <HP, C3725S, 6039> SCSI2 0/direct fixed
sd9: 2047MB, 3703 cyl, 9 head, 125 sec, 512 bytes/sec
lebuffer1 at sbus0 slot 1 offset 0x40000
le2 at lebuffer1 slot 0x1 offset 0x60000 pri 7: address 08:00:20:19:c2:65
le2: 64 receive buffers, 16 transmit buffers
SUNW,DBRIe at sbus0 slot 2 offset 0x10000 not configured
cgsix0 at sbus0 slot 3 offset 0x0: SUNW,501-1672, 1152 x 900, rev 8
root on sd4a dumps on sd4b
mountroot: trying ffs...
root file system type: ffs
init: copying out flags `-s' 3
init: copying out path `/sbin/init' 11

fair@digital 7} cat /etc/ccd.conf.not
# ccd   ileave  flags   component devices
ccd0    35      4       /dev/sd9h /dev/sd5h