From owner-freebsd-scsi Tue Apr 15 12:24:55 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA03479 for freebsd-scsi-outgoing; Tue, 15 Apr 1997 12:24:55 -0700 (PDT) Received: from news1.gtn.com (news1.gtn.com [194.77.0.15]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA03471 for ; Tue, 15 Apr 1997 12:24:51 -0700 (PDT) Received: (from uucp@localhost) by news1.gtn.com (8.7.2/8.7.2) with UUCP id VAA18155; Tue, 15 Apr 1997 21:15:32 +0200 (MET DST) Received: (from andreas@localhost) by klemm.gtn.com (8.8.5/8.8.2) id UAA18566; Tue, 15 Apr 1997 20:31:21 +0200 (CEST) Message-ID: <19970415203121.01225@klemm.gtn.com> Date: Tue, 15 Apr 1997 20:31:21 +0200 From: Andreas Klemm To: alex@nac.net Cc: scsi@FreeBSD.ORG Subject: Re: Adaptec on FreeBSD References: <33533C94.5D4B@nac.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: <33533C94.5D4B@nac.net>; from Alex Rubenstein on Tue, Apr 15, 1997 at 04:30:12AM -0400 X-Disclaimer: A free society is one where it is safe to be unpopular X-Operating-System: FreeBSD 2.2-RELEASE Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 <<<