Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Apr 1997 20:31:21 +0200
From:      Andreas Klemm <andreas@klemm.gtn.com>
To:        alex@nac.net
Cc:        scsi@FreeBSD.ORG
Subject:   Re: Adaptec  on FreeBSD
Message-ID:  <19970415203121.01225@klemm.gtn.com>
In-Reply-To: <33533C94.5D4B@nac.net>; from Alex Rubenstein on Tue, Apr 15, 1997 at 04:30:12AM -0400
References:  <33533C94.5D4B@nac.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Alex !

On Tue, Apr 15, 1997 at 04:30:12AM -0400, Alex Rubenstein wrote:
> I am having the same exact problems as you with a 2940UW giving me
> strange Timeouts/freezes. Did you ever solve the problem?

I updated my machine to the newest version 2.2-stable, so that Justin's 
newest SCSI patches are included. You have three choices here, since
SCSI changes have been merged from HEAD into 2.1.x and 2.2.x:

	- FreeBSD-2.1.7-stable (the RELENG_2_1 branch of the CVS 
	  source repository)
	- FreeBSD-2.2-stable (the RELENG_2_2 branch of the 
	  source repository).
	- FreeBSD-current (the HEAD branch of the CVS 
	  source repository)

I enabled the following SCSI options, since Justin said, that
the TAGGED queuing code is the best tested now ;-)

options	AHC_TAGENABLE
options	AHC_SCBPAGING_ENABLE
options	AHC_ALLOW_MEMIO

Then I got still QUEUE full race conditions ... but this is not
FreeBSD's fault, it's the fault of my harddisks, which can't get
more than a few tags managed ! (Shit !)

Justin made the proposal, that I should set the amount of allowed
tags to 2. I made the necessary changes and voila, everything runs
very very fine and stable now !

Big thanks to Justin !

	Andreas ///

My hard and cruel patch:

Index: aic7xxx.c
===================================================================
RCS file: /local/CVS/src/sys/i386/scsi/aic7xxx.c,v
retrieving revision 1.81.2.23
diff -u -r1.81.2.23 aic7xxx.c
--- aic7xxx.c   1997/04/14 02:31:44     1.81.2.23
+++ aic7xxx.c   1997/04/15 18:30:27
@@ -1910,7 +1910,7 @@
                        if (ahc->scb_data->maxhscbs >= 16
                         || (ahc->flags & AHC_PAGESCBS)) {
                                /* Default to 8 tags */
-                               xs->sc_link->opennings += 6;
+                               xs->sc_link->opennings = 2;
                        } else {
                                /*
                                 * Default to 4 tags on whimpy
@@ -1920,7 +1920,7 @@
                                 * slots.  We should really have a better
                                 * way of providing fairness.
                                 */
-                               xs->sc_link->opennings += 2;
+                               xs->sc_link->opennings = 2;
                        }
                }
        }

-- 
andreas@klemm.gtn.com         /\/\___      Wiechers & Partner Datentechnik GmbH
   Andreas Klemm          ___/\/\/         Support Unix -- andreas.klemm@wup.de
pgp p-key  http://www-swiss.ai.mit.edu/~bal/pks-toplev.html  >>> powered by <<<
ftp://sunsite.unc.edu/pub/Linux/system/Printing/aps-491.tgz  >>>    FreeBSD <<<



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970415203121.01225>