Re: USB Mass storage problems...

From: Alexandre <Alex.Kovalenko_at_verizon.net>
Date: Mon, 19 Apr 2004 18:56:28 -0400
On Mon, 19 Apr 2004 01:05:00 -0700 (PDT)
Julian Elischer <julian_at_elischer.org> wrote:

> 
> 
> On Sun, 18 Apr 2004, Adam K Kirchhoff wrote:
> 
> > 
> > 
> > On Sun, 18 Apr 2004, Bernd Walter wrote:
> > 
> > > On Sat, Apr 17, 2004 at 06:29:23PM -0400, Adam K Kirchhoff wrote:
> > > >
> > > > I recently installed 5.2.1 on my machine.  I have previously run 5.2 on
> > > > this machine without any issues...  With 5.2.1 I noticed a problem with
> > > > umass.  I decided to upgrade to CURRENT in the hopes that this problem
> > > > would have been fixed (in addition to want to be on the cutting edge).
> > > > Unfortunately, the umass problem still seems to exist.
> > > >
> > > > http://memory.visualtech.com/freebsd-boot-log.txt
> > > >
> > > > Basically, I have two usb storage devices: a usb1 cf reader, and a usb2
> > > > CD/DVD burner.  The usb1 cf reader is plugged into the uhci controller,
> > > > and the usb2 CD/DVD device is plugged into the ehci controller.
> > > >
> > > > I have usb, uhci, ehci, ohci, and umass all compiled directly into the
> > > > kernel.  I have tried compiling umass as a module and loading it, but when
> > > > I do load the module, absolutely nothing happens.
> > >
> > > In some cases there are timing related problems with ehci disconnecting the
> > > busses aways from their companion controllers for reprobe.
> > > If you don't need any device at boot time you can set the #if 1 line in
> > > sys/dev/usb/usb.c to 0 for a workaround to delay probing.
> > 
> > Thanks for that tip.  Now my computer at least boots all the way up with
> > the umass driver compiled in, but it still doesn't attach to either umass
> > device.  Instead, I still get:
> > 
> > umass0: In-System Design USB Storage Adapter, rev 2.00/11.06, addr 2
> > umass0: Phase Error, residue = 95
> > umass0: Phase Error, residue = 95
> > umass0: Phase Error, residue = 95
> > umass0: Phase Error, residue = 95
> > umass0: Phase Error, residue = 95
> 
> 
> just a shot in the dark, but..
> 
> add an identifier in the umass quirks list and specify the
> quirk about residuals?
> 
> 
> > 
> > Any other ideas?
> > 
> > Adam
> > 
> > _______________________________________________
> > freebsd-current_at_freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> > 
> 
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"

I have attached E-mail from this list, which contains patch that worked for me
in similar situation. I do not have the device in question any more so I cannot
vouch for patch applicability.

Cut here or elsewhere >--------------------------------------------------------------------

From: sanpei_at_freebsd.org
To: yuri_at_irfu.se
Cc: sanpei_at_sanpei.org
Cc: freebsd-current_at_freebsd.org
Subject: Re: problem w/ USB cdrom on 5.2
Date: Sat, 17 Jan 2004 00:03:48 +0900 (JST)
Sender: owner-freebsd-current_at_freebsd.org
X-Mailer: mnews [version 1.22] 1999-12/19(Sun)

>> Doug White wrote:
>> > On Tue, 13 Jan 2004, Yuri Khotyaintsev wrote:
>> > 
>> > 
>> >>I cannot use Dell USB cdrom with 5.2-RELEASE.
>> >>The same drive works without any problems on 4.9.
>> >>
>> >>Any clues? Boot log attached.
>> > 
>> > 
>> > Not much info here ... uhci, some phase error on initializing umass. What
>> > messages do you get if you boot up without it attached, then plug it in?
>> 
>> The messages are:
>> 
>> umass0: Dell USB Drive A01, rev 2.00/1.04, addr 2
>> umass0: Get Max Lun not supported (STALLED)
>> umass0:1:0:-1: Attached to scbus1
>> umass0: Phase Error, residue = 0
>> (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR
>> (probe0:umass-sim0:0:0:0): Retrying Command
>> umass0: Phase Error, residue = 0
>> (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR
>> (probe0:umass-sim0:0:0:0): Retrying Command
>> umass0: Phase Error, residue = 0
>> (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR
>> (probe0:umass-sim0:0:0:0): Retrying Command
>> umass0: Phase Error, residue = 0
>> (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR
>> (probe0:umass-sim0:0:0:0): Retrying Command
>> umass0: Phase Error, residue = 0
>> (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR
>> (probe0:umass-sim0:0:0:0): error 5
>> (probe0:umass-sim0:0:0:0): Retries Exausted

  I have same problem with Panasonic KXL-RW32AN USB CD-RW Drive.
  with uhci and ohci.
  (it works on 4-stable...)
umass0: GENERIC CDRRW09 USB CD-R/RW drive, rev 2.00/11.10, addr 2
umass0: Phase Error, residue = 95
umass0: Phase Error, residue = 95
umass0: Phase Error, residue = 95
umass0: Phase Error, residue = 95
umass0: Phase Error, residue = 95

  I use it on 5-current with below durty patch. Try it.

Index: src/sys/dev/usb/umass.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/usb/umass.c,v
retrieving revision 1.98
diff -u -r1.98 umass.c
--- src/sys/dev/usb/umass.c	3 Jan 2004 13:52:44 -0000	1.98
+++ src/sys/dev/usb/umass.c	16 Jan 2004 14:59:37 -0000
_at__at_ -1570,8 +1570,10 _at__at_
 			printf("%s: Phase Error, residue = %d\n",
 				USBDEVNAME(sc->sc_dev), Residue);
 
+#if 0 /* XXX */
 			umass_bbb_reset(sc, STATUS_WIRE_FAILED);
 			return;
+#endif
 
 		} else if (sc->transfer_actlen > sc->transfer_datalen) {
 			/* Buffer overrun! Don't let this go by unnoticed */


---
MIHIRA, Sanpei Yoshiro
Tokyo, Japan.
_______________________________________________
freebsd-current_at_freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"

Cut here or elsewhere >--------------------------------------------------------------------

-- 
Alexandre "Sunny" Kovalenko.
Received on Mon Apr 19 2004 - 13:56:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:51 UTC