From nobody@FreeBSD.ORG  Thu Aug  3 10:12:58 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 5D4FB37B547; Thu,  3 Aug 2000 10:12:58 -0700 (PDT)
Message-Id: <20000803171258.5D4FB37B547@hub.freebsd.org>
Date: Thu,  3 Aug 2000 10:12:58 -0700 (PDT)
From: boopboopboop@hotmail.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: Phase errors with Zip650 CD on USB
X-Send-Pr-Version: www-1.0

>Number:         20384
>Category:       kern
>Synopsis:       Phase errors with Zip650 CD on USB
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 03 10:20:01 PDT 2000
>Closed-Date:    Fri Aug 27 22:45:36 GMT 2004
>Last-Modified:  Fri Aug 27 22:45:36 GMT 2004
>Originator:     Dan Conti
>Release:        4.1, 4.1RC, 4.0
>Organization:
>Environment:
FreeBSD  4.1-RC1 FreeBSD 4.1-RC1 #0: Fri Jul 14 22:27:29 GMT 2000    root@deimos.cdrom.com:/usr/src/sys/compile/GENERIC  i386
>Description:
With the 3 listed kernels and an Iomega ZipCD 650 USB drive, i get repeated Phase errors. I recompiled with all the debugging for umass and usb turned on, and tracked it to a bogus cmd being sent to the device. it was sending an inquiry (12h) with the correct allocation length (36 bytes) which was succeeding, then sending an inquiry with a bogus allocation length (55 bytes) which caused the phase error. I put a quick hack in umass.c to take all inquiry cmds to the device and remap the allocation length to 36 bytes, which seems to have fixed it. sorry i do not have the time to track down the real source and provide a patch.
>How-To-Repeat:
Purchase Zip650 CD drive.
Apply to USB port.
Configure kernel for umass support.
Achieve Nirvana.
>Fix:
I didn't take the time to track down the source of the bogus cmd, i just put a filter in the umass layer before the cmd was sent out so it would be structured properly. FYI the drive seems to behave properly now. I might have backlogs of the debug output, if that would be helpful mail me and i can search for them.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->n_hibma 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Thu Aug 3 13:01:07 PDT 2000 
Responsible-Changed-Why:  
Nick's Mr USB. 

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

From: Nick Hibma <n_hibma@qubesoft.com>
To: boopboopboop@hotmail.com
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/20384: Phase errors with Zip650 CD on USB
Date: Wed, 9 Aug 2000 21:33:29 +0100 (BST)

 > I didn't take the time to track down the source of the bogus cmd, i
 > just put a filter in the umass layer before the cmd was sent out so
 > it would be structured properly. FYI the drive seems to behave
 > properly now. I might have backlogs of the debug output, if that
 > would be helpful mail me and i can search for them.
 
 Please do. That would be very helpful. Please send them to
 
 	n_hibma@freebsd.org
 
 You stated Inquiry command with data length (36) and (55). Was that last
 one supposed to by (255)? It might be that the device does not
 understand the long command (something fishy is being done to get the
 length that long, I think it is set to 0, so I would appreciate some
 help on that one).
 
 Thanks in advance.
 
 Nick
 --
 Qube Software, Ltd.                                             Private:
 n_hibma@qubesoft.com                              n_hibma@webweaving.org
                                                      n_hibma@freebsd.org
 http://www.qubesoft.com/                   http://www.etla.net/~n_hibma/
 
 
 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Fri Aug 27 22:27:35 GMT 2004 
State-Changed-Why:  
Is this still a problem with modern versions of FreeBSD? 


Responsible-Changed-From-To: n_hibma->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Aug 27 22:27:35 GMT 2004 
Responsible-Changed-Why:  
With permission of assignee, reset assignment. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20384 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Fri Aug 27 22:45:25 GMT 2004 
State-Changed-Why:  
Submitter's email address bounces. 

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