Subject: port-i386/6701: aic pcmcia driver does not work with HP DAT drive HP35470A
To: None <gnats-bugs@gnats.netbsd.org>
From: None <frueauf@ira.uka.de>
List: netbsd-bugs
Date: 01/01/1999 21:23:07
>Number:         6701
>Category:       port-i386
>Synopsis:       aic pcmcia driver does not work with HP DAT drive HP35470A
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-i386-maintainer (NetBSD/i386 Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan  1 12:35:01 1999
>Last-Modified:
>Originator:     Thorsten Frueauf
>Organization:
private
	
>Release:        <NetBSD-current source date> NetBSD-current 31.12.1998
>Environment:
	
System: NetBSD cyberlap 1.3I NetBSD 1.3I (CYBERLAP) #3: Thu Dec 31 23:04:36 MET 1998 frueauf@cyberlap:/usr/src/sys/arch/i386/compile/CYBERLAP i386

output of dmesg of the aic pcmcia part, with just a scsi disk connected:

pcmcia1 at pcic0 controller 0 socket 1
pcmcia1: CIS version PCMCIA 2.0 or 2.1
pcmcia1: CIS info: Adaptec, Inc., APA-1460 SCSI Host Adapter, Version 0.01
pcmcia1: Manufacturer code 0x12f, product 0x2
pcmcia1: function 0: unspecified, ccr addr 2000 mask 1
pcmcia1: function 0, config table entry 9: I/O card; irq mask 1e00; iomask a, iospace 340-35f; rdybsy_active wp_active bvd_active io16 irqlevel
pcmcia1: function 0, config table entry 8: I/O card; irq mask 1e00; iomask a, iospace 140-15f; rdybsy_active wp_active bvd_active io16 irqlevel
aic0 at pcmcia1 function 0 port 0x340-0x35f: Adaptec APA-1460/B SCSI Host Adapter
aic0: 8 targets, 8 luns per target
sd0 at scsibus0 targ 0 lun 0: <IBM, DCAS-34330, S65A> SCSI2 0/direct fixed
sd0: 4134MB, 8205 cyl, 6 head, 171 sec, 512 bytes/sect x 8467200 sectors
pcmcia1: card irq 9

>Description:
	
Today I tried to boot my laptop (Toshiba Tecra 500CDT with Adaptec APA-1460
pcmcia card) running current as of 31.12.1998 with an additional
SCSI DAT drive connected, but this failed:

[...]
aic0: unexpected disconnect; sending REQUEST SENSE
aic0: unexpected MESSAGE OUT; sending NOOP
aic0: unexpected disconnect; sending REQUEST SENSE
aic0: unexpected MESSAGE OUT; sending NOOP
aic0: unexpected disconnect; sending REQUEST SENSE
aic0: unexpected MESSAGE OUT; sending NOOP
[...]

this cycled, until I powered down the DAT drive, the system then continued
booting.

Exactly this same drive works fine connected to my Amiga 3000 running
current from 30.12.1998, so I suspect its a problem with the aic pcmcia driver:

st0 at scsibus0 targ 5 lun 0: <HP, HP35470A, 1109> SCSI2 1/sequential removable
st0: drive empty

Please note also that I have to compile a current kernel with version 1.7
of /src/sys/dev/pcmcia/aic_pcmcia.c - version 1.8 does hang my system,
as reported in pr kern/6488.

>How-To-Repeat:
	
Try to boot a current kernel on a laptop with an Adaptec APA-1460/B SCSI
Host Adapter and a HP DAT HP35470A connected to it, watch it fail.

>Fix:
	
No idea unfortunalty, but I need to make a backup of my laptop :-(
>Audit-Trail:
>Unformatted:
aic pcmcia driver does not work with HP DAT drive HP35470A