Subject: Re: CVS commit: syssrc [thorpej_scsipi]
To: Manuel BOUYER <bouyer@netbsd.org>
From: Jason R Thorpe <thorpej@zembu.com>
List: tech-kern
Date: 04/02/2001 10:39:47
On Mon, Apr 02, 2001 at 07:59:01PM +0300, Manuel BOUYER wrote:

 > Module Name:	syssrc
 > Committed By:	bouyer
 > Date:		Mon Apr  2 16:59:01 UTC 2001
 > 
 > Modified Files:
 > 	syssrc/sys/dev/ic [thorpej_scsipi]: aic7xxx.c
 > 
 > Log Message:
 > Use the tag type passed from upper level. Tag number is still handled locally
 > as they're allocated statically to ccbs.

This is a little gross, and has to change.

If a CCB happens to have a tag that is "too large" for a buggy drive,
then any time that CCB is used, the command will fail, regardless if
the queue on the drive is really full.

The driver needs to be fixed to use the tag number specified by the
midlayer, which uses a tag allocation algorithm that always uses the
smallest tag value possible, to avoid this bug that appears in some
drives (some HP drives, in particular, seem to be plagued by this).

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>