Subject: NetBSD 1.6/pmax: timing/SCSI problems?
To: None <port-pmax@netbsd.org>
From: Georg Schwarz <geos@epost.de>
List: port-pmax
Date: 09/28/2002 00:54:24
[ A copy of this message has been posted to the newsgroup ]
[     comp.unix.bsd.netbsd.misc                           ]

I've installed NetBSd 1.6 on a DECsystem 5000/150 (100 MHz R4000) with six SCSI
disks. It previously ran 1.5.3 with no problems at all.
Now when I boot the generic 1.6 kernel I get:

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
    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 1.6 (GENERIC) #0: Mon Sep  9 02:56:11 UTC 2002

autobuild@tgm.daemon.org:/autobuild/pmax/OBJ/autobuild/src/sys/arch/pmax/compil
e/GENERIC
DECstation 5000/150 (3MIN)
total memory = 32768 KB
avail memory = 26720 KB
using 435 buffers containing 1740 KB of memory
mainbus0 (root)
cpu0 at mainbus0: MIPS R4000 CPU (0x430) Rev. 3.0 with MIPS R4010 FPC Rev. 0.0
cpu0: 8KB/16B direct-mapped L1 Instruction cache, 48 TLB entries
cpu0: 8KB/16B direct-mapped write-back L1 Data cache
cpu0: 1024KB/32B direct-mapped write-back L2 Unified cache
tc0 at mainbus0: 12.5 MHz clock
ioasic0 at tc0 slot 3 offset 0x0
le0 at ioasic0 offset 0xc0000: address 08:00:2b:27:7b:b6
le0: 32 receive buffers, 8 transmit buffers
scc0 at ioasic0 offset 0x100000
scc1 at ioasic0 offset 0x180000
mcclock0 at ioasic0 offset 0x200000: mc146818 or compatible
asc0 at ioasic0 offset 0x300000: NCR53C94, 25MHz, SCSI ID 7
scsibus0 at asc0: 8 targets, 8 luns per target
mfb0 at tc0 slot 0 offset 0x0: 1280x1024x8 console
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <DEC, RZ55     (C) DEC, 0900> SCSI1 0/direct
fixed
sd0: 316 MB, 1224 cyl, 15 head, 35 sec, 512 bytes/sect x 649040 sectors
sd0: async, 8-bit transfers
sd1 at scsibus0 target 1 lun 0: <SEAGATE, ST31200N, 8630> SCSI2 0/direct fixed
sd1: 1006 MB, 2700 cyl, 9 head, 84 sec, 512 bytes/sect x 2061108 sectors
sd1: sync (200.0ns offset 15), 8-bit (5.000MB/s) transfers, tagged queueing
sd2 at scsibus0 target 2 lun 0: <CDC, 94171-9, 7975> SCSI1 0/direct fixed
sd2: 286 MB, 1409 cyl, 9 head, 46 sec, 512 bytes/sect x 586764 sectors
sd2: async, 8-bit transfers
sd3 at scsibus0 target 3 lun 0: <DEC, RZ23L    (C) DEC, 2528> SCSI1 0/direct
fixed
sd3: 116 MB, 1523 cyl, 4 head, 39 sec, 512 bytes/sect x 237588 sectors
sd3: async, 8-bit transfers
sd4 at scsibus0 target 4 lun 0: <MICROP, 1936-21MZ1074215, HZ29> SCSI1 0/direct
fixed
sd4: 2882 MB, 2772 cyl, 21 head, 101 sec, 512 bytes/sect x 5903825 sectors
sd4: async, 8-bit transfers
sd5 at scsibus0 target 5 lun 0: <CDC, 94171-9, 7975> SCSI1 0/direct fixed
sd5: 286 MB, 1409 cyl, 9 head, 46 sec, 512 bytes/sect x 586764 sectors
sd5: async, 8-bit transfers
Kernelized RAIDframe activated
sd0(asc0:0:0:0): asc0: timed out [ecb 0x80a06000 (flags 0x1, dleft 2c, stat
0)], <state 5, nexus 0x80a06000, phase(l 1, c 1, p 1), resid 2c, msg(q 0,o 0)
DMA active>
sd0(asc0:0:0:0): asc0: timed out [ecb 0x80a06000 (flags 0x41, dleft 2c, stat
0)], <state 5, nexus 0x80a06000, phase(l 1, c 1, p 1), resid 2c, msg(q 20,o 0)
DMA active> AGAIN
boot device: sd3
root on sd3a dumps on sd3b
root file system type: ffs


why do I get those sd0 SCSI timeouts? As I said, with 1.5.3 the hardware ran
flawlessly. Now it crashes most of the time I boot up when entering single or
multi user mode.

After having loaded the generic kernel, just beforethe screen clears for the
above messages, I get:

mcclock loop count 264 too low for r4000

what does this mean? What kind of timing problems do I have?

I've built a kernel of my own (which unfortnately does crash even earlier/more
often). It gives me the following boot console output, among others: 

mcclock0: Cannot get 100 Hz clock; using 256 Hz

Again, there seem to be timing problems.
Anybody knows how to fix that?


-- 
Georg Schwarz    http://home.pages.de/~schwarz/
 geos@epost.de     +49 177 2437545