Subject: kern/11523: ahc driver doesn't work with tosha
To: None <gnats-bugs@gnats.netbsd.org>
From: Chuck Silvers <chuq@chuq.com>
List: netbsd-bugs
Date: 11/18/2000 22:25:11
>Number:         11523
>Category:       kern
>Synopsis:       ahc driver doesn't work with tosha
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 18 22:25:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Chuck Silvers
>Release:        -current 00/11/17
>Organization:
me
>Environment:


>Description:

this PR is similar to PR 11522, but this time for the ahc driver.
pretty much the same deal.  run tosha, get this on the console:

cd0(ahc0:3:0): SCB 1d - timed out while idle, SEQADDR == 0xd
SCSIRATE == 0x0
cd0(ahc0:3:0): Queuing a BDR SCB
cd0(ahc0:3:0): Bus Device Reset Message Sent
cd0(ahc0:3:0): no longer in timeout, status = 0
ahc0: Bus Device Reset on A:3. 1 SCBs aborted
ahc0: target 3 synchronous at 10.0MHz, offset = 0xf


and tosha spews:

MSCIOCCOMMAND ioctl: Command accepted.
return status 1 (Command Timeout) after 2000 msCommand out (12 of 12):
d8 00 00 00 00 00 00 00 00 0a 00 00 

Data in (0 of 23520):

No sense sent.
SCIOCCOMMAND ioctl: Command accepted.
return status 1 (Command Timeout) after 2000 msCommand out (12 of 12):
d8 00 00 00 00 0a 00 00 00 0a 00 00 

Data in (0 of 23520):

No sense sent.
SCIOCCOMMAND ioctl: Command accepted.
return status 3 (Sense Returned) host adapter status 2
Command out (12 of 12):
d8 00 00 00 00 14 00 00 00 0a 00 00 

Data in (0 of 23520):

Error code is "current errors"
Segment number is 00
Sense key is "Unit attention"
The Information field is not valid but contains 00000000 (0).
The Command Specific Information field is 00000000 (0).
Additional sense code: 29
Additional sense code qualifier: 00
sense (32 of 48):
70 00 06 00 00 00 00 0a 00 00 00 00 29 00 00 00 
00 00 00 00 60 87 00 00 00 00 00 00 00 00 00 00 

SCIOCCOMMAND ioctl: Command accepted.
return status 3 (Sense Returned) host adapter status 2
Command out (12 of 12):
d8 00 00 00 00 1e 00 00 00 0a 00 00 

Data in (0 of 23520):

Error code is "current errors"
Segment number is 00
Sense key is "Not Ready"
The Information field is not valid but contains 00000000 (0).
The Command Specific Information field is 00000000 (0).
Additional sense code: 04
Additional sense code qualifier: 01
sense (32 of 48):
70 00 02 00 00 00 00 0a 00 00 00 00 04 01 00 00 
00 00 00 00 60 87 00 00 00 00 00 00 00 00 00 00 

SCIOCCOMMAND ioctl: Command accepted.
return status 3 (Sense Returned) host adapter status 2
Command out (12 of 12):
d8 00 00 00 00 28 00 00 00 0a 00 00 

Data in (0 of 23520):

Error code is "current errors"
Segment number is 00
Sense key is "Not Ready"
The Information field is not valid but contains 00000000 (0).
The Command Specific Information field is 00000000 (0).
Additional sense code: 04
Additional sense code qualifier: 01
sense (32 of 48):
70 00 02 00 00 00 00 0a 00 00 00 00 04 01 00 00 
00 00 00 00 60 87 00 00 00 00 00 00 00 00 00 00 


the relevant dmesg lines are:

ahc0 at pci0 dev 16 function 0
ahc0: interrupting at irq 12
ahc0: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs
scsibus0 at ahc0 channel 0: 16 targets, 8 luns per target
...
ahc0: target 3 using 8bit transfers
ahc0: target 3 synchronous at 10.0MHz, offset = 0xf
cd0 at scsibus0 target 3 lun 0: <PLEXTOR, CD-ROM PX-32TS, 1.01> SCSI2 5/cdrom removable



>How-To-Repeat:
	attempt to rip an audio CD with tosha using an ahc scsi card.

>Fix:
	dunno.
>Release-Note:
>Audit-Trail:
>Unformatted: