Bug 32831

Summary: HP Colorado IDE tape drive get wedged easily
Product: Base System Reporter: Sam Leffler <sam>
Component: kernAssignee: Søren Schmidt <sos>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-STABLE   
Hardware: Any   
OS: Any   

Description Sam Leffler 2001-12-14 18:30:00 UTC
Simple use of the HP Colorado tape drive frequently results in the problems that can only be resolved by rebooting.  The process doing i/o is blocked on physst at an uninteruptable priority.  For example, I use the Amanda amlabel command to label a new tape and got the following:

ast0: WEOF command timeout - resetting
ata1: resetting devices ..  device dissapeared! 3 done
ata1-slave: timeout waiting to give command=a0 s=d0 e=00
ast0: failure to send ATAPI packet command
ast0: WEOF command timeout - resetting
ata1-slave: timeout waiting to give command=a0 s=d0 e=00
ast0: failure to send ATAPI packet command
ast0: WEOF command timeout - resetting
ata1-slave: timeout waiting to give command=a0 s=d0 e=00
ast0: failure to send ATAPI packet command
ast0: WEOF command timeout - resetting
ata1-slave: timeout waiting to give command=a0 s=d0 e=00
ast0: failure to send ATAPI packet command
ast0: TEST_UNIT_READY command timeout - resetting
ata1-slave: timeout waiting to give command=a0 s=d0 e=00
ast0: failure to send ATAPI packet command

ebb# ps alx|grep amlabel
 1000  4037  4036   0  -6  0  1524 1044 physst DL+   v0    0:10.08 amlabel Dail

This may be crappy hardware but the system shouldn't get wedged like this.

Fix: 

Haven't had a chance but submitting this in case there's a known fix or workaround (haven't looked in the code to see if perhaps there's a quirk table that needs tweaking).
How-To-Repeat: One case was when I ran the Amanda tapetype program that deduces the amount of data that'll fit on a tape by writing 32k records until it gets an error.  On hitting the end of tape the system wedged with the same kernel printfs as shown above.

The second case was running amlabel as described above.
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2001-12-30 12:53:31 UTC
Responsible Changed
From-To: freebsd-bugs->sos

Over to the ATA maintainer.
Comment 2 Søren Schmidt freebsd_committer freebsd_triage 2001-12-30 16:34:18 UTC
State Changed
From-To: open->analyzed

Well clearly this shouldn't happen, unfortuantely my only ATAPI 
tape device has decide to die on me, so I'm a bit handicapped. 
I'll get back to this if/when I get a new ATAPI tape drive 
to test with.
Comment 3 Søren Schmidt freebsd_committer freebsd_triage 2003-04-28 19:33:32 UTC
State Changed
From-To: analyzed->feedback

Does this still not work under -current/5.0 ?
Comment 4 Søren Schmidt freebsd_committer freebsd_triage 2003-08-11 20:46:07 UTC
State Changed
From-To: feedback->closed

Feedback timeout.