Subject: kern/9646: New ahc driver fails to talk to old CD-ROM drive
To: None <gnats-bugs@gnats.netbsd.org>
From: Martin J. Laubach <mjl@emsi.priv.at>
List: netbsd-bugs
Date: 03/20/2000 18:36:05
>Number:         9646
>Category:       kern
>Synopsis:       New ahc driver get
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 20 18:36:00 2000
>Last-Modified:
>Originator:     Martin J. Laubach
>Organization:
>Release:        current 2000-03-20
>Environment:
NetBSD asparagus 1.4V NetBSD 1.4V (ASPARAGUS) #0: Mon Mar 20 04:03:34 CET 2000     mjl@asparagus:/home/temp/devel/cvs/src/sys/arch/i386/compile/ASPARAGUS i386

>Description:

  The new ahc driver fails to talk to an Apple CD-300 (rebadged
Sony drive). The same thing happens if I do a scsictl scsibus0
rescan any any, so it's not a timing issue wrt booting.

| ahc0 at pci0 dev 12 function 0
| ahc0: interrupting at irq 11
| ahc0: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs
| scsibus0 at ahc0 channel 0: 16 targets, 8 luns per target
| ...
| biomask eb65 netmask fb65 ttymask fbe7
| scsibus0: waiting 2 seconds for devices to settle...
| ...
| ahc0: target 4 synchronous at 4.0MHz, offset = 0xf
| ahc0: target 4 using asynchronous transfers
| ahc0: target 4 synchronous at 4.0MHz, offset = 0xf
| ahc0: target 4 using asynchronous transfers
| probe(ahc0:4:0): SCB 1d - timed out in Data-in phase, SEQADDR == 0x112
| SCSIRATE == 0x0
| probe(ahc0:4:0): BDR message in message buffer
| probe(ahc0:4:0): SCB 1d - timed out in Data-in phase, SEQADDR == 0x113
| SCSIRATE == 0x0
| probe(ahc0:4:0): no longer in timeout, status = 2
| ahc0: Issued Channel A Bus Reset. 1 SCBs aborted
| probe(ahc0:4:0): Unexpected busfree while idle
| SEQADDR == 0x155
| ahc0: target 4 synchronous at 4.0MHz, offset = 0xf
| ahc0: target 4 using asynchronous transfers
| scsibus0 targ 4 lun 0: <, , > SCSI0 0/direct fixed not configured

  The relevant lines from the old ahc driver looked like this:

| ahc0 at pci0 dev 12 function 0
| ahc0: interrupting at irq 11
| ahc0: aic7880 Wide Channel, SCSI Id=7, 16 SCBs
| ...
| scsibus0 at ahc0 channel 0: 16 targets, 8 luns per target
| ahc0: target 4 synchronous at 4.0MHz, offset = 0xf
| cd0 at scsibus0 targ 4 lun 0: <SONY, CD-ROM CDU-8003A, 1.8f>
|				SCSI2 5/cdrom removable

>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted: