From doconnor@cain.gsoft.com.au  Tue Nov 20 23:50:03 2007
Return-Path: <doconnor@cain.gsoft.com.au>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C373916A419
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 20 Nov 2007 23:50:03 +0000 (UTC)
	(envelope-from doconnor@cain.gsoft.com.au)
Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10])
	by mx1.freebsd.org (Postfix) with ESMTP id 6828213C458
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 20 Nov 2007 23:50:02 +0000 (UTC)
	(envelope-from doconnor@cain.gsoft.com.au)
Received: from cain.gsoft.com.au (localhost [127.0.0.1])
	by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id lAKNo0Ot049352
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 21 Nov 2007 10:20:01 +1030 (CST)
	(envelope-from doconnor@cain.gsoft.com.au)
Received: (from doconnor@localhost)
	by cain.gsoft.com.au (8.13.8/8.13.8/Submit) id lAKNo0Qb049351;
	Wed, 21 Nov 2007 10:20:00 +1030 (CST)
	(envelope-from doconnor)
Message-Id: <200711202350.lAKNo0Qb049351@cain.gsoft.com.au>
Date: Wed, 21 Nov 2007 10:20:00 +1030 (CST)
From: "Daniel O'Connor" <doconnor@gsoft.com.au>
Reply-To: "Daniel O'Connor" <doconnor@gsoft.com.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: SONY SDX-570V (ATAPI) hangs frequently
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         118158
>Category:       kern
>Synopsis:       [ata] SONY SDX-570V (ATAPI) hangs frequently
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          suspended
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 21 00:00:11 UTC 2007
>Closed-Date:    
>Last-Modified:  Tue May 12 20:30:01 UTC 2009
>Originator:     Daniel O'Connor
>Release:        FreeBSD 6.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD cain.gsoft.com.au 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Feb 2 17:35:07 CST 2007 root@new-cain.gsoft.com.au:/usr/obj/usr/src/sys/GENERIC amd64
atapci0: <Intel ICH7 SATA300 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x30a0-0x30af mem 0x88400000-0x884003ff irq 19 at device 31.2 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
...
ast0: TAPE <SONY SDX-570V/0100> at ata0-slave SATA150
acd0: DVDR <SONY DVD RW AW-G170S/1.72> at ata1-slave SATA150

aposkidm# atacontrol cap ast0

Protocol              Serial ATA v1.0
device model          SONY SDX-570V
serial number         0001020294
firmware revision     0100
cylinders             0
heads                 0
sectors/track         0
lba supported
lba48 not supported
dma supported
overlap not supported

Feature                      Support  Enable    Value           Vendor
write cache                    no       no
read ahead                     no       no
Native Command Queuing (NCQ)   no        -      0/0x00
Tagged Command Queuing (TCQ)   no       no      0/0x00
SMART                          no       no
microcode download             no       no
security                       no       no
power management               yes      yes
advanced power management      no       no      0/0x00
automatic acoustic management  no       no      0/0x00  0/0x00
aposkidm#

>Description:
Quite often the tape drive appears to 'hang' and will not respond to
eject requests either from the button (does nothing - no LEDs flash etc)
or mt -f /dev/ast0 offline (returns EIO)

A reinit of the channel gets the tape drive back in order, ie atacontrol
reinit ata0

>How-To-Repeat:

The script to write to the tape is fairly straightforward. It tar's a
bunch of stuff to a spool directory then writes those files out to tape,
rewind's the tape and then reads the files back and compares md5.

As compared to SCSI drives (AIT, DDS & LTO) I have had to add delays
into the script to wait for the tape to rewind as it does not appear to
block until it's done. It does not report EBUSY when you try and access
it. This is unfortunate as there is no way to tell if the drive is busy,
broken, has no tape, etc..

>Fix:



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: koitsu 
State-Changed-When: Mon Jun 9 11:04:18 UTC 2008 
State-Changed-Why:  
Daniel, is this still a problem on the RELENG_7 platform?  I'm guessing 
it is, but confirmation of such would be worthwhile. 

FWIW, I also have personal interest in this PR, as I'm considering 
purchasing one of these drives for home use. 

Reassigning to sos@, since this is his department. 



Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: koitsu 
Responsible-Changed-When: Mon Jun 9 11:04:18 UTC 2008 
Responsible-Changed-Why:  
Daniel, is this still a problem on the RELENG_7 platform?  I'm guessing 
it is, but confirmation of such would be worthwhile. 

FWIW, I also have personal interest in this PR, as I'm considering 
purchasing one of these drives for home use. 

Reassigning to sos@, since this is his department. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=118158 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Tue May 12 04:43:08 UTC 2009 
State-Changed-Why:  
Note that no response was received, and koitsu and sos are no longer 
active.  Daniel, let me know if you are still seeing this problem. 


Responsible-Changed-From-To: sos->linimon 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue May 12 04:43:08 UTC 2009 
Responsible-Changed-Why:  
Track. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118158 
State-Changed-From-To: closed->suspended 
State-Changed-By: linimon 
State-Changed-When: Tue May 12 20:23:06 UTC 2009 
State-Changed-Why:  
Feedback received: may still be a bug. 


Responsible-Changed-From-To: linimon->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue May 12 20:23:06 UTC 2009 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=118158 

From: Mark Linimon <linimon@lonesome.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/118158: [ata] SONY SDX-570V (ATAPI) hangs frequently
Date: Tue, 12 May 2009 15:22:56 -0500

 ----- Forwarded message from Daniel O'Connor <doconnor@gsoft.com.au> -----
 
 From: Daniel O'Connor <doconnor@gsoft.com.au>
 To: linimon@freebsd.org
 Subject: Re: kern/118158: [ata] SONY SDX-570V (ATAPI) hangs frequently
 
 I haven't tried it on RELENG_7 - the drive is in a customer machine and 
 I only do very sporadic work, so I can't really try different things :(
 
 -- 
 Daniel O'Connor software and network engineer
 for Genesis Software - http://www.gsoft.com.au
 "The nice thing about standards is that there
 are so many of them to choose from."
   -- Andrew Tanenbaum
 GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
 
 ----- End forwarded message -----
>Unformatted:
