Subject: Re: pc164/ncr scsi problems
To: None <thorpej@nas.nasa.gov>
From: None <Havard.Eidnes@runit.sintef.no>
List: tech-kern
Date: 08/23/1999 22:50:20
----Next_Part(Mon_Aug_23_22:50:08_1999_542)--
Content-Type: Text/Plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

> You probably need to update your ncr.c ... Matt Thomas recently made a
> change that fixes this sort of condition (uninitialized buffer getting
> in your way).

Hm, I applied the diff which initialized the buffer to 0 to my
otherwise 1.4.1 system, and I still get problems during boot.  It
always complains about one particular partition (/dev/sd1g) on
bootup:

sd1(ncr0:1:0): Sense Error Code 0x0
sd1(ncr0:1:0): Sense Error Code 0x0

My fstab is

/dev/wd0a / ffs rw 1 1
/dev/wd0b none swap sw 0 0
/dev/wd0b /tmp mfs rw,-s=3D200000,nosuid,nodev 0 0
/dev/wd0d /usr ffs rw 1 2
/dev/wd0f /var ffs rw 1 2
/dev/wd0g /local ffs rw 1 2
/kern /kern kernfs rw
#
/dev/sd0g /spare1 ffs rw 1 2
/dev/sd1g /spare2 ffs rw 1 5
/dev/sd2c /spare3 ffs rw 1 3
#
/dev/sd0a /altroot ffs rw 1 2
/dev/sd0d /altroot/usr ffs rw 1 2
/dev/sd0f /altroot/var ffs rw 1 2
/dev/sd1a /altroot2 ffs rw 1 2
/dev/sd1d /altroot2/usr ffs rw 1 3
/dev/sd1f /altroot2/var ffs rw 1 4

This happens during the initial "fsck -p" run, and makes the rc
script stop, insisting on a manual fsck.  The manual "fsck -f
partition" works fine, and it appears to work fine thereafter as
well.

The dmesg output from my latest boot follows below.


- H=E5vard

----Next_Part(Mon_Aug_23_22:50:08_1999_542)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

[ preserving 189096 bytes of netbsd ELF symbol table ]
Copyright (c) 1996, 1997, 1998, 1999
    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.4.1 (ALBATROSS) #1: Sun Aug 22 15:58:33 MEST 1999
    he@albatross.runit.sintef.no:/usr/src/sys/arch/alpha/compile/ALBATROSS
Digital AlphaPC 164 500 MHz
8192 byte page size, 1 processor.
real mem = 268435456 (2531328 reserved for PROM, 265904128 used by NetBSD)
avail mem = 230801408
using 3245 buffers containing 26583040 bytes of memory
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21164A-2 (pass 2)
cia0 at mainbus0: DECchip 2117x Core Logic Chipset (ALCOR/ALCOR2), pass 3
cia0: extended capabilities: 21<DWEN,BWEN>
cia0: using BWX for PCI config access
pci0 at cia0 bus 0
pci0: i/o enabled, memory enabled
isp0 at pci0 dev 5 function 0
isp0: interrupting at eb164 irq 2
isp0: Ultra Mode Capable
isp0: Board Revision 1040B, loaded F/W Revision 7.55
isp0: Last F/W revision was 7.55
isp0: driver initiated bus reset
scsibus0 at isp0: 16 targets, 8 luns per target
isp0: Target 0 Async Mode
sd0 at scsibus0 targ 0 lun 0: <IBM, DGHS09U, 0350> SCSI3 0/direct fixed
sd0: 8748MB, 8152 cyl, 10 head, 219 sec, 512 bytes/sect x 17916240 sectors
ncr0 at pci0 dev 7 function 0: ncr 53c860 fast20 scsi
ncr0: interrupting at eb164 irq 1
ncr0: minsync=12, maxsync=137, maxoffs=8, 16 dwords burst, normal dma fifo
ncr0: single-ended, open drain IRQ driver
ncr0: restart (scsi reset).
scsibus1 at ncr0: 8 targets, 8 luns per target
sd1 at scsibus1 targ 1 lun 0: <DEC, RZ29B    (C) DEC, 0007> SCSI2 0/direct fixed
sd1(ncr0:1:0): 10.0 MB/s (100 ns, offset 8)
sd1: 4091MB, 3708 cyl, 20 head, 113 sec, 512 bytes/sect x 8380080 sectors
sd2 at scsibus1 targ 3 lun 0: <DEC, RZ29B    (C) DEC, 0007> SCSI2 0/direct fixed
sd2(ncr0:3:0): 10.0 MB/s (100 ns, offset 8)
sd2: 4091MB, 3708 cyl, 20 head, 113 sec, 512 bytes/sect x 8380080 sectors
sio0 at pci0 dev 8 function 0: Intel 82378ZB System I/O (SIO) (rev. 0x43)
de0 at pci0 dev 9 function 0
de0: interrupting at eb164 irq 3
de0: 21140 [10-100Mb/s] pass 1.2
de0: address 00:c0:f0:16:11:ca
de0: enabling 10baseT port
pciide0 at pci0 dev 11 function 0: CMD Technology PCI0646
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <IBM-DJNA-370910>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 8693MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 17803440 sectors
wd0: 32-bits data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
pciide0: secondary channel wired to compatibility mode
pciide0: secondary channel ignored (disabled)
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
isa0 at sio0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
lpt0 at isa0 port 0x3bc-0x3bf irq 7
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
isabeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
mcclock0 at isa0 port 0x70-0x71: mc146818 or compatible
root on wd0a dumps on wd0b
root file system type: ffs
sd1(ncr0:1:0): Sense Error Code 0x0
sd1(ncr0:1:0): Sense Error Code 0x0
isp0: Target 0 at 20MHz Max Offset 8, 16 bit wide, Tagged Queueing Enabled
de0: enabling Full Duplex 100baseTX port

----Next_Part(Mon_Aug_23_22:50:08_1999_542)----