Subject: scsi kernel crashes - sbc & ncrscsi (long)
To: None <port-mac68k@NetBSD.ORG>
From: Hauke Fath <saw@sun0.urz.uni-heidelberg.de>
List: port-mac68k
Date: 06/13/1996 00:52:38
Hi,

now that NetBSD 1.2 is drawing near...

...after the following crash on

>NetBSD 1.2_ALPHA (EIBE) #0: Thu Jun  6 17:13:08 GMT 1996
>    hauke@se30:/usr/src/sys/arch/mac68k/compile/EIBE
>Apple Macintosh SE/30  (68030)


## 12 Jun 96, 21h45
#
# sup kernel sources to /dev/sd2g (Fujitsu M2512)


>sbc0: can not transfer more data
>sbc0: aborting, but phase=DATA_OUT (reset)
>sbc0: reset SCSI bus for TID=2 LUN=0
>panic: ncr5380_scsi_cmd: polled request, abort failed
>Stopped at      _Debugger+0x6:  unlk    a6
>db> t
>_Debugger(195c8,7ab8,8c4af0,1013,8c4b08) + 6
>_panic(7ab8,0,7,2,3) + 34
>_ncr5380_scsi_cmd(6c06f80) + 80
>_scsi_done(6c06f80,79d0,6c048ac,6c04800,6c048ac) + 6a
>_ncr5380_scsi_cmd(6c04800) + 352
>_ncr5380_scsi_cmd(6c04800) + 1950
>_ncr5380_scsi_cmd(6c04800) + 650
>_ncr5380_scsi_cmd(6c06f80) + 110
>_scsi_execute_xs(6c06f80) + 28
>_scsi_scsi_cmd(6c05de0,8c4c24,6,6e21000,2000,4,2710,760770,1001) + 8a
>_sdstart(6c02200,6c022a6,760770) + 1ca
>_sdstrategy(760770,8c4c84,2830a,8c4c7c,0) + b4
>_spec_strategy(8c4c7c) + 24
>_bwrite(760770,6c54500,0,1,fffff7f3) + b8
>_ffs_update(8c4d10,6c54500,ffffffff,2,0) + 182
>_ffs_truncate(8c4de4) + 436
>_ufs_setattr(8c4e20) + 168
>_vn_open(8c4ee8,603,1a4) + 2ee
>_sys_open(6c54500,8c4f88,8c4f80) + 72
>_syscall(5) + 10a
>_trap0() + e
>db>


I tried twice to fsck my MO on /dev/sd2g and twice...


## 12 Jun, 22h06
#
# trying fsck /dev/rsd2g after crash


>se30/hauke:~ {3} fsck /dev/rsd2g
>sd2(sbc0:2:0): illegal request, data = 80 20 01 00 00 00 c4 1b 10 00 00 00
>22 60
> 6d b6 db 6d b6 db 1a 00 04 00
>sd2: could not mode sense (4); using fictitious geometry
>** /dev/rsd2g
>panic: pmap_alloc_pv: pgi_nfree inconsistent
>Stopped at      _Debugger+0x6:  unlk    a6
>db> t
>_Debugger(195c8,8851d,898d70,1,898d74) + 6
>_panic(8851d,12f928,898da8,88dd6,7529000) + 34
>_pmap_init(7529000,1,7529000,33000,ffffffff) + 484
>_pmap_enter(a0e00,7529000,bb7000,3,1) + 156
>_vmapbuf(75d830,2000,33000,2000,6c72a00) + bc
>_physio(7e3e8,0,d16,100000,7e736) + 176
>_sdread(d16,898f28,0) + 1c
>_spec_read(898ed8,898eec,30a1a,898ed8,e8) + a6
>_ufsspec_read(898ed8) + 28
>_vn_read(6c73540,898f28,6c72a00) + b8
>_sys_read(6c3fb00,898f88,898f80) + a2
>_syscall(3) + 10a
>_trap0() + e
>db>

A "mount -r /dev/sd2g /mnt" went without crash, but
"fsck -f /dev/rsd2g" reported

>CANNOT READ: BLK 328176
>CONTINUE? [yn] y
>
>sd2(sbc0:2:0): medium error, info = 328389 (decimal), data = 18 00 23 20
>23 00 6
>0 00 00 00 00 00 8a 21 6d b6 db 6d b6 db 08 05 02 c5
>sd2(sbc0:2:0): medium error, info = 328390 (decimal), data = 18 00 23 20
>23 00 6
>0 00 00 00 00 00 8a 21 6d b6 db 6d b6 db 08 05 02 c6
>sd2(sbc0:2:0): medium error, info = 328391 (decimal), data = 18 00 23 20
>23 00 6
>0 00 00 00 00 00 8a 21 6d b6 db 6d b6 db 08 05 02 c7
>sd2(sbc0:2:0): medium error, info = 328392 (decimal), data = 18 00 23 20
>23 00 6
>0 00 00 00 00 00 8a 21 6d b6 db 6d b6 db 08 05 02 c8
>THE FOLLOWING DISK SECTORS COULD NOT BE READ: 328256, 328257, 328258, 328259,


-- PHYSICAL errors! Can a crash damage media physically?

My kernel says:


NetBSD/mac68k console
[ preserving 81118 bytes of netbsd symbol table ]
Bootstrapping NetBSD/mac68k.
Getting mapping from MMU.
System RAM: 20971520 bytes in 5120 pages.
     Low = 0x0, high = 0x1400000
  no internal video at address 0 -- videoaddr is 0xfee08040.
Done.
Bootstrapping the pmap system.
Pmap bootstrapped.
Moving ROMBase from 0x40800000 to 0x9f9000.
Video address 0xfee08040 -> 0xbf9040.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.

NetBSD 1.2_ALPHA (EIBE) #0: Thu Jun  6 17:13:08 GMT 1996
    hauke@se30:/usr/src/sys/arch/mac68k/compile/EIBE
Apple Macintosh SE/30  (68030)
real mem = 20971520
avail mem = 17686528
using 204 buffers containing 835584 bytes of memory
mrg: kernel has no ROM vectors for this machine!
adb: no ROM ADB driver in this kernel for this machine
mainbus0 (root)
obio0 at mainbus0
adb0 at obio0 (ADB event device)
asc0 at obio0 Apple sound chip.
ite0 at obio0 (minimal console)
sbc0 at obio0: options=1<PDMA>
scsibus0 at sbc0
sd0 at scsibus0 targ 0 lun 0: <QUANTUM, TRB850S, 0403> SCSI2 0/direct fixed
sd0: 810MB, 3653 cyl, 4 head, 113 sec, 512 bytes/sec
sd1 at scsibus0 targ 1 lun 0: <QUANTUM, LP105S 910109405, 3.1> SCSI2 0/direct fi
xed
sd1: 100MB, 1219 cyl, 4 head, 42 sec, 512 bytes/sec
sd2 at scsibus0 targ 2 lun 0: <FUJITSU, M2512A, 1314> SCSI2 7/optical removable
sd2: sd2(sbc0:2:0): illegal request, data = 80 20 01 00 00 00 c4 1b 00 00 00 00
22 60 6d b6 db 6d b6 db 1a 00 04 00
sd2: could not mode sense (4); using fictitious geometry
217MB, 217 cyl, 64 head, 32 sec, 512 bytes/sec
zsc0 at obio0 chip type 0
zstty0 at zsc0 channel 0 (console)
zstty1 at zsc0 channel 1
fpu0 at obio0 (mc68882)
nubus0 at mainbus0
ae0 at nubus0: address 00:00:94:10:6f:d0, type MacCon 30si, 16k mem.
macvid0 at nubus0: Macintosh SE/30 Internal Video
macvid0: 512 x 342, monochrome
grf0 at macvid0
PRAM time does not appear to have been read correctly.
PRAM: 0x83da4f80, macos_boottime: 0x31bf3e7f.


For now I shall return to the ncrscsi driver: It crashes, too, but not that
badly. Err.... ncrscsi kernel of 15 May, trying fsck /dev/rsd2g ->

>NetBSD/mac68k (se30) (tty00)
>
>login: Jun 12 23:38:48 se30 su: hauke to root on /dev/ttyp0
>sd2(ncrscsi0:2:0): illegal request, data = 80 20 01 00 00 00 c4 1b 10 00
>00 00 2
>2 60 00 00 00 00 00 00 1a 00 04 00
>sd2: could not mode sense (4); using fictitious geometry
>panic: pmap_alloc_pv: pgi_nfree inconsistent
>Stopped at      _Debugger+0x6:  unlk    a6
>db> t
>_Debugger(16c28,87895,99dd64,1,99dd68) + 6
>_panic(87895,12ac58,99dd9c,8814e,7329000) + 34
>_pmap_init(7329000,1,7329000,33000,ffffffff) + 484
>_pmap_enter(9ec64,7329000,9d9000,3,1) + 156
>_vmapbuf(95b830,2000,33000,2000,7cd380) + bc
>_physio(7b850,0,d16,100000,7bb9e) + 18c
>_sdread(d16,99df28,0) + 1c
>_spec_read(99ded8,99deec,2df82,99ded8,e8) + a6
>_ufsspec_read(99ded8) + 28
>_vn_read(7d2f80,99df28,7cd380) + b8
>_sys_read(794e00,99df88,99df80) + a2
>_syscall(3) + 10a
>_trap0() + e
>db>

I must have a terrible karma today 8-/



	hauke

---
"It's never straight up and down"     (DEVO)