From owner-freebsd-current Wed Mar 26 23:35:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA10260 for current-outgoing; Wed, 26 Mar 1997 23:35:22 -0800 (PST) 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 XAA10255 for ; Wed, 26 Mar 1997 23:35:19 -0800 (PST) Received: (from uucp@localhost) by news1.gtn.com (8.7.2/8.7.2) with UUCP id IAA05298; Thu, 27 Mar 1997 08:16:33 +0100 (MET) Received: (from andreas@localhost) by klemm.gtn.com (8.8.5/8.8.2) id IAA00720; Thu, 27 Mar 1997 08:10:43 +0100 (MET) Message-ID: <19970327081043.13955@klemm.gtn.com> Date: Thu, 27 Mar 1997 08:10:43 +0100 From: Andreas Klemm To: "Justin T. Gibbs" Cc: Kachun Lee , freebsd-current@freebsd.org Subject: Re: ahc crashes References: <19970326201659.02877@klemm.gtn.com> <199703261954.MAA29414@pluto.plutotech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.67 In-Reply-To: <199703261954.MAA29414@pluto.plutotech.com>; from Justin T. Gibbs on Wed, Mar 26, 1997 at 12:55:06PM -0700 X-Disclaimer: A free society is one where it is safe to be unpopular X-Operating-System: FreeBSD 3.0-CURRENT Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, Mar 26, 1997 at 12:55:06PM -0700, Justin T. Gibbs wrote: > >First of all congradulations, you are making big progress ! > > What model is the drive you're dumping off of? It certainly seems > to have problems with tagged queuing and it may be that what you really > want to do is reduce the number of openings from 8 down to 3 in i386/scsi/ > aic7xxx.c. It may also be that you need a firmware update on that drive > in order to properly do tagged queueing. > > Se my other post to current about how tagged queueing can still fail if a > device returns QUEUE FULL status. You seem to be right ... reducing the tags to 3 brings more stability, but on the long run the machine also hangs ... Although I reduced the tags to 3 the following message appears at the beginning of the dump: sd0: Tagged openings reduced to 3 Then this after about 30 Minutes: ahc0: WARNING no command for scb 4 (cmdcmplt) QOUTCNT == 1 And this seems to be a hardware error (defective sector) or ? sd1: data overrun of 16715782 bytes detected in Data-In phase. Tag == 0x0. Forcing a retry. sd1: Have seen Data Phase. Length = 12288. NumSGs = 3. sg[0] - Addr 0x2cbc000 : Length 4096 sg[1] - Addr 0x2c75000 : Length 4096 sg[2] - Addr 0x2cfc000 : Length 4096 swap_pager: I/O error - pagein failed; blkno 25824, size 12288, error 5 vm_fault: pager input (probably hardware) error, PID 687 failure ahc0: WARNING no command for scb 0 (cmdcmplt) QOUTCNT == 1 Mar 27 05:22:04 klemm /kernel: pid 687 (dump), uid 0: exited on signal 11 Mar 27 05:22:04 klemm /kernel: pid 685 (dump), uid 0: exited on signal 11 Mar 27 05:22:04 klemm /kernel: pid 688 (dump), uid 0: exited on signal 11 Mar 27 05:22:04 klemm /kernel: pid 686 (dump), uid 0: exited on signal 11 Mar 27 05:22:04 klemm /kernel: pid 684 (dump), uid 0: exited on signal 11 Mar 27 05:22:04 klemm /kernel: pid 630 (sh), uid 0: exited on signal 11 (core dumped) This was my patch: RCS file: /local/CVS/src/sys/i386/scsi/aic7xxx.c,v retrieving revision 1.109 diff -u -r1.109 aic7xxx.c --- aic7xxx.c 1997/03/24 17:42:25 1.109 +++ aic7xxx.c 1997/03/27 04:08:21 @@ -1892,7 +1892,8 @@ if (ahc->scb_data->maxhscbs >= 16 || (ahc->flags & AHC_PAGESCBS)) { /* Default to 8 tags */ - xs->sc_link->opennings += 13; + /* XXX xs->sc_link->opennings += 13; */ + xs->sc_link->opennings = 3; } else { /* * Default to 4 tags on whimpy @@ -1902,7 +1903,8 @@ * slots. We should really have a better * way of providing fairness. */ - xs->sc_link->opennings += 2; + /* XXX xs->sc_link->opennings += 2; */ + xs->sc_link->opennings = 3; } } } And I asked IBM via e-mail if I can get a firmware update ... -- 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 <<<