From owner-freebsd-current@FreeBSD.ORG Mon Apr 19 15:56:39 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FAAE16A4CE for ; Mon, 19 Apr 2004 15:56:39 -0700 (PDT) Received: from out009.verizon.net (out009pub.verizon.net [206.46.170.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id E80DD43D39 for ; Mon, 19 Apr 2004 15:56:38 -0700 (PDT) (envelope-from Alex.Kovalenko@verizon.net) Received: from RabbitsDen ([141.153.211.180]) by out009.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20040419225637.FKFY29216.out009.verizon.net@RabbitsDen> for ; Mon, 19 Apr 2004 17:56:37 -0500 Date: Mon, 19 Apr 2004 18:56:28 -0400 From: Alexandre "Sunny" Kovalenko To: freebsd-current@freebsd.org Message-Id: <20040419185628.1994627a.Alex.Kovalenko@verizon.net> In-Reply-To: References: Organization: Home X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out009.verizon.net from [141.153.211.180] at Mon, 19 Apr 2004 17:56:37 -0500 Subject: Re: USB Mass storage problems... X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Apr 2004 22:56:39 -0000 On Mon, 19 Apr 2004 01:05:00 -0700 (PDT) Julian Elischer 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@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@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@freebsd.org To: yuri@irfu.se Cc: sanpei@sanpei.org Cc: freebsd-current@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@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 @@ -1570,8 +1570,10 @@ 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@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" Cut here or elsewhere >-------------------------------------------------------------------- -- Alexandre "Sunny" Kovalenko.