From nobody@FreeBSD.ORG  Fri Jul 14 17:15:34 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 26EEB37C64C; Fri, 14 Jul 2000 17:15:34 -0700 (PDT)
Message-Id: <20000715001534.26EEB37C64C@hub.freebsd.org>
Date: Fri, 14 Jul 2000 17:15:34 -0700 (PDT)
From: defouwj@purdue.edu
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: IDE tape drive (ast0) timeout too quick
X-Send-Pr-Version: www-1.0

>Number:         19938
>Category:       kern
>Synopsis:       IDE tape drive (ast0) timeout too quick
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 14 17:20:03 PDT 2000
>Closed-Date:    Tue Nov 14 00:49:39 PST 2000
>Last-Modified:  Tue Nov 14 00:50:06 PST 2000
>Originator:     Jeff DeFouw
>Release:        4.0
>Organization:
ThinkHost
>Environment:
FreeBSD socrates.thinkhost.com 4.0-STABLE FreeBSD 4.0-STABLE #2: Tue Jun  6 04:06:26 GMT 2000     jeff@socrates.thinkhost.com:/usr/src/sys/compile/socrates  i386
>Description:
Operations on the tape drive (ast0) time out after a very short period (25-30 seconds) even though the tape device is performing the operation properly.
For example, from past about 10MB on the 10GB(20GB) tape mt rewind will report "Input/output error".  The I/O error then causes the tape to be rewound no matter what it was supposed to do.  During this time the device returns "Device busy".
This happens on any command except reading and writing to the current position, which can make it difficult to use the tape drive.
Kernel messages:
ast0: TEST_UNIT_READY command timeout - resetting
ata1: resetting devices .. ata1-slave: timeout waiting for command=ef s=11 e=04
This fails:
mt -f /dev/nrast0 setspos 60000
But this works:
mt -f /dev/nrast0 setspos 20000
mt -f /dev/nrast0 setspos 40000
mt -f /dev/nrast0 setspos 60000
And then will fail if you do:
mt -f /dev/nrast0 rewind
Auto-rewinds by /dev/rast0 will also run into this problem.
>How-To-Repeat:
Fastest way:
mt -f /dev/nrast0 setspos 60000
Otherwise, write large enough amount of data (30MB) to tape and then rewind or use the auto-rewind device instead.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Mon Jul 17 10:18:49 PDT 2000 
Responsible-Changed-Why:  
Over to the IDE/ATA/ATAPI maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19938 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Tue Nov 14 00:49:39 PST 2000 
State-Changed-Why:  
Fixed in 4.2 and later. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=19938 
>Unformatted:
