Subject: pmap change and ccd panic
To: None <port-sparc@NetBSD.ORG>
From: Erik E. Fair <fair@clock.org>
List: port-sparc
Date: 06/12/1997 18:08:37
Paul,
	Thanks for taking the time to find the real cause of the pv_unlink0
panics. I suspect they'll probably solve this one, too:

# cat /etc/ccd*
# ccd   ileave  flags   component devices
ccd0    35      4       /dev/sd9h /dev/sd5h
# ls -las /etc/ccd*
2 -rw-r--r--  1 root  wheel  67 Jun  4 17:57 /etc/ccd.conf.not
# mv /etc/ccd* /etc/ccd.conf
# ccdonfig -v -C
ccdonfig: not found
# ccdconfig -v -C
ccd0: 2 components (sd9h, sd5h), 4192020 blocks interleaved at 35 blocks
# disklabel -e 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*)
:q
# sync
# newfs /dev/rccd0a
Warning: 236 sector(s) in last cylinder unallocated
/dev/rccd0a:    4192020 sectors in 2047 cylinders of 1 tracks, 2048 sectors
        2043 6.9MB in 128 cyl groups (16 c/g, 16.00MB/g, 3840 i/g)
pmap_extract: invalid pte of type 0
panic: dvma_mapin: null page frame
syncing disks... 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 giving up
Frame pointer is at 0xf8123c00
Call traceback:
  pc = f80fe558  args = (0, 41001fe6, f8139c00, f8123d20, f8002000, 0,
f8123c68) fp = 0xf8123c68
  pc = f802c84c  args = (100, 0, 1, 1ffc, f8da5940, c418a, f8123cd0) fp =
0xf8123cd0
  pc = f81091d8  args = (f81090b8, 100, 0, 3, 24, 0, f8123d38) fp = 0xf8123d38
  pc = f8108fd4  args = (fc004000, fc634f88, 1000, fc004000, 0, 24000,
f8123da0) fp = 0xf8123da0
  pc = f80f1f5c  args = (fc634f88, 1000, 0, 0, 200, fc62efb0, f8123e08) fp
= 0xf8123e08
  pc = f80f2e50  args = (f8780980, f87aee50, f87aee54, 0, f8123f40,
f80f1d74, f8123e70) fp = 0xf8123e70
  pc = f800e434  args = (f87ae800, f87aee50, f87aee54, 0, f8123f40,
f80f2e38, f8123ed8) fp = 0xf8123ed8
  pc = f80069ac  args = (f87ae800, f800d274, 0, 24000, f8002000, 0,
f8123f50) fp = 0xf8123f50
  pc = f8108a98  args = (20000000, 32, 1efe4, f8049f04, ffffff83, c418a,
fc62eec0) fp = 0xfc62eec0

0xf80fe558 <cpu_reboot+196>:                    0x40000093
0xf802c84c <panic+80>:
			                0x40034712
0xf81091d8 <dvma_mapin+260>:                    0x7ffc8d89
0xf8108fd4 <kdvma_mapin+20>:                    0x40000040
0xf80f1f5c <dma_setup+488>:                     0x40005c19
0xf80f2e50 <esp_dma_setup+24>:                  0x9fc34000
0xf800e434 <ncr53c9x_intr+4544>:
				0x9fc34000
0xf80069ac <sparc_interrupt_common+368>:        0x9fc24000
0xf8108a98 <syscall+496>:

		0x9fc2c000

dumping to dev 721, offset 203504
dump sd4(esp1:0:0): esp1: timed out [ecb 0xf87ae92c (flags 0x1, dleft 200,
stat 0)], <state 4, nexus 0xf87ae8c4, phase(c 0, p 101), resid 1000, msg(q
0,o 0) >
sd4(esp1:0:0): esp1: timed out [ecb 0xf87ae92c (flags 0x41, dleft 200, stat
0)], <state 4, nexus 0xf87ae8c4, phase(c 0, p 101), resid 1000, msg(q 0,o
0) > AGAIN
ccd0: error 0 on component 1 (mirror)
panic: esp1: nexus in reset state
Frame pointer is at 0xf8123688
Call traceback:
  pc = f80fe558  args = (f00, 41001fe5, 0, f81237a8, f802d610, f80f2e38,
f81236f0) fp = 0xf81236f0
  pc = f802c84c  args = (104, 0, 1, f80f2dd0, f8142000, 500, f8123758) fp =
0xf8123758
  pc = f800d36c  args = (f800ccb8, 104, f80f2dbc, f80f2dd0, 0, 650,
f81237c0) fp = 0xf81237c0
  pc = f800afcc  args = (f87ae800, f80f2de4, 1, 41, 200, 0, f8123838) fp =
0xf8123838
  pc = f800aef8  args = (f87ae800, f813cb90, 2710, 2, 0, a, f81238a0) fp =
0xf81238a0
  pc = f80ef48c  args = (f813cb90, f800ada8, a, 0, 0, 200, f8123908) fp =
0xf8123908
  pc = f81073b4  args = (f813cb90, 41ed1, f81239e8, 1, 200, f8049f04,
f8123980)fp = 0xf8123980
  pc = f80fe880  args = (0, 31af1, 1, f8123d80, f802d610, f80f2e38,
f8123c00) fp = 0xf8123c00
  pc = f80fe558  args = (0, f80ef2e8, f8139c00, f8123d20, f8002000, 0,
f8123c68) fp = 0xf8123c68
  pc = f802c84c  args = (100, 0, 1, 1ffc, f8da5940, c418a, f8123cd0) fp =
0xf8123cd0
  pc = f81091d8  args = (f81090b8, 100, 0, 3, 24, 0, f8123d38) fp = 0xf8123d38
  pc = f8108fd4  args = (fc004000, fc634f88, 1000, fc004000, 0, 24000,
f8123da0) fp = 0xf8123da0
  pc = f80f1f5c  args = (fc634f88, 1000, 0, 0, 200, fc62efb0, f8123e08) fp
= 0xf8123e08
  pc = f80f2e50  args = (f8780980, f87aee50, f87aee54, 0, f8123f40,
f80f1d74, f8123e70) fp = 0xf8123e70
  pc = f800e434  args = (f87ae800, f87aee50, f87aee54, 0, f8123f40,
f80f2e38, f8123ed8) fp = 0xf8123ed8
  pc = f80069ac  args = (f87ae800, f800d274, 0, 24000, f8002000, 0,
f8123f50) fp = 0xf8123f50
  pc = f8108a98  args = (20000000, 32, 1efe4, f8049f04, ffffff83, c418a,
fc62eec0) fp = 0xfc62eec0

0xf80fe558 <cpu_reboot+196>:                    0x40000093
0xf802c84c <panic+80>:                          0x40034712
0xf800d36c <ncr53c9x_intr+248>:                 0x40007d24
0xf800afcc <ncr53c9x_poll+76>:                  0x400008aa
0xf800aef8 <ncr53c9x_scsi_cmd+336>:             0x40000022
0xf80ef48c <sddump+420>:                        0x9fc24000
0xf81073b4 <pmap_dumpmmu+164>:                  0x9fc58000
0xf80fe880 <dumpsys+220>:                       0x400022a4
0xf80fe558 <cpu_reboot+196>:                    0x40000093
0xf802c84c <panic+80>:                          0x40034712
0xf81091d8 <dvma_mapin+260>:                    0x7ffc8d89
0xf8108fd4 <kdvma_mapin+20>:                    0x40000040
0xf80f1f5c <dma_setup+488>:                     0x40005c19
0xf80f2e50 <esp_dma_setup+24>:                  0x9fc34000
0xf800e434 <ncr53c9x_intr+4544>:                0x9fc34000
0xf80069ac <sparc_interrupt_common+368>:        0x9fc24000
0xf8108a98 <syscall+496>:                       0x9fc2c000

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

Resetting ...