Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Oct 1997 19:30:01 -0700 (PDT)
From:      Mark Diekhans <markd@Grizzly.COM>
To:        freebsd-bugs
Subject:   Re: kern/3671: SCSI tape drive with AHA 2940 locks up system.
Message-ID:  <199710170230.TAA11401@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/3671; it has been noted by GNATS.

From: Mark Diekhans <markd@Grizzly.COM>
To: jbr@idiom.com
Cc: freebsd-gnats-submit@freebsd.org, jbr@idiom.com
Subject: Re: kern/3671: SCSI tape drive with AHA 2940 locks up system.
Date: Thu, 16 Oct 1997 19:29:30 -0700 (PDT)

 >Date: Thu, 16 Oct 1997 16:21:26 -0700 (PDT)
 >Got an error, it made it to the error log, once, but each line 
 >was repeated twice on each Xterm.
 >
 >Oct 16 16:09:14 jbr /kernel: ahc0:A:5: ahc_intr - referenced scb not valid durin
 >g seqint 0x71 scb(255)
 >Oct 16 16:09:14 jbr /kernel: ahc0: WARNING no command for scb 255 (cmdcmplt)
 >Oct 16 16:09:14 jbr /kernel: QOUTCNT == 1
 
 Does this happen on rewind?  On my system, all is fine until rewind, then it
 hangs because of a scsi timeout.  I was able to track it to a timeout on a
 PREVENT_ALLOW scsi request to the tape drive.  The enclosed patch hacks around
 it the timeout, although it doesn't deal with why the system is hanging
 instead of handling the timeout.
 
 Mark
 
 
 
 
 *** scsi_base.c.ORG	Fri Jun 13 19:21:17 1997
 --- scsi_base.c	Thu Oct 16 18:52:50 1997
 ***************
 *** 310,316 ****
 --- 310,327 ----
   		0,
   		0,
   		2,
 + #if 0
   		5000,
 + #else
 + /*
 +  * HACK from markd@grizzly.com:  Adaptec 2940/WANGTEK 6130-FS DAT: this will
 +  * time out and cause a system hang when st issues this command after a rewind.
 +  * To avoid timeout, set it to larger than the time to rewind the tape.
 +  * Don't know the true cause here.
 +  */
 + 
 + 		1000*60*10,  /* 10 minutes */
 + #endif
   		NULL,
   		flags));
   }
 



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