Subject: ahc 'not queued, error 5' problem
To: None <port-i386@NetBSD.ORG>
From: Luke Mewburn <lukem@telstra.com.au>
List: port-i386
Date: 09/23/1996 13:25:32
I'm experiencing a problem on a machine that I'm setting up. I'm
getting 'not queued, error 5'. I think that this has something to do
with the lack of SCB's on the SCSI card (AHA 2742AT)

Here's the relevant info. Note that the CPU is a 486 dx2-66, and the
disks are DEC RZ57's and RZ58's (not remarkably fast disks, like about
2.5MB/s read, 1.3MB/s write). ccd0 is just a stripe of sd1 and sd2.

What can I do? (Kernel config options, etc)

The machine is to be the replacement machine for netbsd.rmit.edu.au
(Australian NetBSD mirror site), and it wouldn't be too good for
NetBSD PR (Public Relations that is) if I had to run FreeBSD or
Solaris 2/x86 to get the hardware going. And the concept of running an
AHA1542 is not the solution, since I have EISA hardware to get around
the 16MB ISA DMA limit...

Luke.

PS: note that I have tuned up some kernel things. Specifically:
	NKPDE=32
	NKMEMCLUSTERS=8192
	NMBCLUSTERS=1024
	BUFCACHE=30 (my hack; pr 1903)

---

melanoma:~ 2# dmesg

NetBSD 1.2_BETA (MELANOMA) #9: Fri Sep 20 21:50:10 EST 1996
    root@melanoma:/usr/src/sys/arch/i386/compile/MELANOMA
CPU: i486DX (GenuineIntel 486-class CPU)
real mem  = 20578304
avail mem = 12910592
using 1500 buffers containing 6144000 bytes of memory
mainbus0 (root)
isa0 at mainbus0
ed0 at isa0 port 0x280-0x29f iomem 0xd0000-0xd3fff irq 9
ed0: address 00:00:c0:83:42:5d, type WD8013WC (16-bit) aui
npx0 at isa0 port 0xf0-0xff: using exception 16
pc0 at isa0 port 0x60-0x6f irq 1: color
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
eisa0 at mainbus0
ahc0 at eisa0 slot 1: Adaptec AHA-274x SCSI
ahc0: Using Level Sensitive Interrupts
ahc0: aic7770 >= Rev E, Twin Channel, A SCSI Id=7, B SCSI Id=7, 4 SCBs
ahc0: Reseting Channel B
ahc0: Reseting Channel A
ahc0: Downloading Sequencer Program...Done
ahc0: interrupting at irq 11
ahc0: Probing channel A
scsibus0 at ahc0
ahc0: target 1 synchronous at 3.6MHz, offset = 0xf
sd0 at scsibus0 targ 1 lun 0: <DEC, RZ57     (C) DEC, 5000> SCSI1 0/direct fixed
sd0: 954MB, 1928 cyl, 15 head, 67 sec, 512 bytes/sec
ahc0: Probing channel B
scsibus1 at ahc0
ahc0: target 1 synchronous at 6.67MHz, offset = 0xf
sd1 at scsibus1 targ 1 lun 0: <DEC, RZ58     (C) DEC, 3000> SCSI2 0/direct fixed
sd1: 1317MB, 2112 cyl, 15 head, 85 sec, 512 bytes/sec
ahc0: target 2 synchronous at 6.67MHz, offset = 0xf
sd2 at scsibus1 targ 2 lun 0: <DEC, RZ58     (C) DEC, 3000> SCSI2 0/direct fixed
sd2: 1317MB, 2112 cyl, 15 head, 85 sec, 512 bytes/sec
biomask 840 netmask a40 ttymask a42


melanoma:~ 3# df

Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/sd0a      197948   102129    85921    54%    /
/dev/sd0e      623023        3   591868     0%    /ftp
/dev/ccd0a    2607838        1  2477445     0%    /ftp/pub/NetBSD
kernfs              1        1        0   100%    /kern


melanoma:~ 4# bonnie -s 128 -d /ftp/pub/NetBSD

File './bonnie.115', size: 134217728
Writing with putc()...bonnie: drastic I/O error (putc): Input/output error


melanoma:~ 5# dmesg | tail

sd2 at scsibus1 targ 2 lun 0: <DEC, RZ58     (C) DEC, 3000> SCSI2 0/direct fixed
sd2: 1317MB, 2112 cyl, 15 head, 85 sec, 512 bytes/sec
biomask 840 netmask a40 ttymask a42
sd0: not queued, error 5
ccd0: error 5 on component 0
sd1: not queued, error 5
ccd0: error 5 on component 1
sd2: not queued, error 5
ccd0: error 5 on component 1
sd2: not queued, error 5