From owner-freebsd-bugs@FreeBSD.ORG Mon Jan 3 21:20:03 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEFEF16A4CF for ; Mon, 3 Jan 2005 21:20:03 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9786743D49 for ; Mon, 3 Jan 2005 21:20:03 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j03LK33i082035 for ; Mon, 3 Jan 2005 21:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j03LK3GL082034; Mon, 3 Jan 2005 21:20:03 GMT (envelope-from gnats) Resent-Date: Mon, 3 Jan 2005 21:20:03 GMT Resent-Message-Id: <200501032120.j03LK3GL082034@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Raimund Huemmer Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26F7D16A4CE for ; Mon, 3 Jan 2005 21:13:09 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9C7343D31 for ; Mon, 3 Jan 2005 21:13:08 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j03LD8UD044023 for ; Mon, 3 Jan 2005 21:13:08 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j03LD8Tl044022; Mon, 3 Jan 2005 21:13:08 GMT (envelope-from nobody) Message-Id: <200501032113.j03LD8Tl044022@www.freebsd.org> Date: Mon, 3 Jan 2005 21:13:08 GMT From: Raimund Huemmer To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: kern/75764: [patch?] "umass0: Phase Error" - no device for USB HP DVD Writer 300c X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2005 21:20:04 -0000 >Number: 75764 >Category: kern >Synopsis: [patch?] "umass0: Phase Error" - no device for USB HP DVD Writer 300c >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 03 21:20:03 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Raimund Huemmer >Release: 5.3-STABLE >Organization: privat >Environment: FreeBSD brian.huemmer.net 5.3-STABLE FreeBSD 5.3-STABLE #9: Sun Jan 2 23:32:25 CET 2005 raimund@brian.huemmer.net:/usr/src/sys/i386/compile/MYKERN i386 >Description: Hardware: HP DVD Writer dc300 Interface: USB relevant output from dmesg: usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhub1: Hewlett Packard product 0x0a07, class 9/0, rev 2.00/0.00, addr 2 uhub1: 3 ports with 1 removable, self powered ugen0: Hewlett Packard product 0x0907, rev 2.00/0.00, addr 3 umass0: Hewlett-Packard dc3000, rev 3.00/0.00, addr 4 umass0: Get Max Lun not supported (STALLED) [...] At the time, when the Hardware should get the "cd0" device, dmesg shows only the following output: umass0: Phase Error, residue = 0 umass0: Phase Error, residue = 0 umass0: Phase Error, residue = 0 umass0: Phase Error, residue = 0 Summary: There is no "cd0" device and the USB DVD-RW is unusable. >How-To-Repeat: By reboot or plug out/in there is always no success and the same error message. Also by "camcontrol -rescan" the problem is repeatable. >Fix: Edit or patch the File /usr/src/sys/dev/usb/umass.c at line 1627 with the new line: #if 0 /* XXX */ and at line 1630 with the new line #endif Here is the diff: ------------------------------ --- umass.c Thu Oct 28 09:01:15 2004 +++ umass.c_new Sun Jan 2 23:27:32 2005 @@ -1624,10 +1624,10 @@ } else if (sc->csw.bCSWStatus == CSWSTATUS_PHASE) { 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 */ panic("%s: transferred %db instead of %db", ----------------------------------------- After patching, recompiling the kernel and reboot, I've got this dmesg output: cd0 at umass-sim0 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 1.000MB/s transfers and all works perfectly for me. Maybe only a workaround for my hardware and not a regular patch. >Release-Note: >Audit-Trail: >Unformatted: