From owner-freebsd-usb@FreeBSD.ORG Sun Jan 2 05:33:38 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E637E16A4CE for ; Sun, 2 Jan 2005 05:33:38 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8974943D1F for ; Sun, 2 Jan 2005 05:33:38 +0000 (GMT) (envelope-from geekout@gmail.com) Received: by wproxy.gmail.com with SMTP id 36so343760wra for ; Sat, 01 Jan 2005 21:33:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=DKlkzIizhYrFC1iz9eqPiRxqhQUk8UQOfvWv915FfhV+yFO8dTaJCjJDyQdBlvRlSD3z9VTxPDHML9O1QcWC0X0SauRluThbN8hsphWV/77vPox567QyamlSq2mGEGKsB8bWQ/l34p+ltYp1LHt/G+sZ76U8H1P/QYXpyyl7HiQ= Received: by 10.54.47.61 with SMTP id u61mr153875wru; Sat, 01 Jan 2005 21:33:37 -0800 (PST) Received: by 10.54.46.25 with HTTP; Sat, 1 Jan 2005 21:33:37 -0800 (PST) Message-ID: <6e01203b05010121337006d141@mail.gmail.com> Date: Sat, 1 Jan 2005 22:33:37 -0700 From: Tyler Gee To: Julian Elischer In-Reply-To: <6e01203b05010114472b3aa9db@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20041228010938.GA39686@freebsd3.cimlogic.com.au> <20041230.111631.13597845.imp@bsdimp.com> <16853.27324.504672.6086@roam.psg.com> <1104542138.3084.9.camel@localhost> <41D67753.60202@elischer.org> <6e01203b0501011052ada0d9c@mail.gmail.com> <41D7203A.5080701@elischer.org> <41D72700.1040605@elischer.org> <6e01203b05010114472b3aa9db@mail.gmail.com> cc: vova@fbsd.ru cc: Randy Bush cc: usb@freebsd.org Subject: Re: USB problems X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Tyler Gee List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jan 2005 05:33:39 -0000 So, I'm an idiot, I had the following in my /etc/rc.conf : moused_type="NO" moused_enable="NO" -current works fine. Sorry. -wtgee On Sat, 1 Jan 2005 15:47:45 -0700, Tyler Gee wrote: > I'll give it a try, I don't have much else to do today. (Woo hoo for > holidays!). I will start on the Dec. 9 version and move forward. > > -wtgee > > > On Sat, 01 Jan 2005 14:41:04 -0800, Julian Elischer wrote: > > Julian Elischer wrote: > > > Tyler Gee wrote: > > > > > > > > > > > any chance you could try revert ums.c back a while and see if doing so > > > fixes the problem? > > > > > I might add htat theeasiest way to do this if you do not import a CVS mirror is > > by simply getting it from: > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/usb/ > > > > and getting the last few revisions and trying them. > > > From owner-freebsd-usb@FreeBSD.ORG Sun Jan 2 08:14:42 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAB8D16A4CE for ; Sun, 2 Jan 2005 08:14:42 +0000 (GMT) Received: from pimout1-ext.prodigy.net (pimout1-ext.prodigy.net [207.115.63.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1219F43D45 for ; Sun, 2 Jan 2005 08:14:42 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [192.168.1.102] (adsl-216-100-134-143.dsl.snfc21.pacbell.net [216.100.134.143])j028EWjb073024; Sun, 2 Jan 2005 03:14:32 -0500 Message-ID: <41D7AD67.90000@elischer.org> Date: Sun, 02 Jan 2005 00:14:31 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8a3) Gecko/20041017 X-Accept-Language: en, hu MIME-Version: 1.0 To: Tyler Gee References: <20041228010938.GA39686@freebsd3.cimlogic.com.au> <20041230.111631.13597845.imp@bsdimp.com> <16853.27324.504672.6086@roam.psg.com> <1104542138.3084.9.camel@localhost> <41D67753.60202@elischer.org> <6e01203b0501011052ada0d9c@mail.gmail.com> <41D7203A.5080701@elischer.org> <41D72700.1040605@elischer.org> <6e01203b05010114472b3aa9db@mail.gmail.com> <6e01203b05010121337006d141@mail.gmail.com> In-Reply-To: <6e01203b05010121337006d141@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: vova@fbsd.ru cc: Randy Bush cc: usb@freebsd.org Subject: Re: USB problems X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jan 2005 08:14:42 -0000 Tyler Gee wrote: > So, I'm an idiot, I had the following in my /etc/rc.conf : > > moused_type="NO" > moused_enable="NO" > > -current works fine. Sorry. "been there, done that" :-) thanks for figuring it out.. > > -wtgee > > > On Sat, 1 Jan 2005 15:47:45 -0700, Tyler Gee wrote: > >>I'll give it a try, I don't have much else to do today. (Woo hoo for >>holidays!). I will start on the Dec. 9 version and move forward. >> >>-wtgee >> >> >>On Sat, 01 Jan 2005 14:41:04 -0800, Julian Elischer wrote: >> >>>Julian Elischer wrote: >>> >>>>Tyler Gee wrote: >>> >>>> >>>>any chance you could try revert ums.c back a while and see if doing so >>>>fixes the problem? >>>> >>> >>>I might add htat theeasiest way to do this if you do not import a CVS mirror is >>>by simply getting it from: >>> http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/usb/ >>> >>>and getting the last few revisions and trying them. >>> >> From owner-freebsd-usb@FreeBSD.ORG Sun Jan 2 17:58:16 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8128E16A4CE for ; Sun, 2 Jan 2005 17:58:16 +0000 (GMT) Received: from rip.psg.com (rip.psg.com [147.28.0.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53CF843D39 for ; Sun, 2 Jan 2005 17:58:16 +0000 (GMT) (envelope-from randy@psg.com) Received: from localhost ([127.0.0.1] helo=roam.psg.com) by rip.psg.com with esmtp (Exim 4.43 (FreeBSD)) id 1Cl9zb-000GBw-NW; Sun, 02 Jan 2005 17:58:15 +0000 Received: from localhost ([127.0.0.1] helo=roam.psg.com.psg.com) by roam.psg.com with esmtp (Exim 4.43 (FreeBSD)) id 1Cl9zX-000DGE-MC; Sun, 02 Jan 2005 07:58:11 -1000 From: Randy Bush MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16856.13874.617308.852948@roam.psg.com> Date: Sun, 2 Jan 2005 07:58:10 -1000 To: Julian Elischer References: <20041228010938.GA39686@freebsd3.cimlogic.com.au> <20041230.111631.13597845.imp@bsdimp.com> <16853.27324.504672.6086@roam.psg.com> <1104542138.3084.9.camel@localhost> <41D67753.60202@elischer.org> <6e01203b0501011052ada0d9c@mail.gmail.com> <41D7203A.5080701@elischer.org> <41D72700.1040605@elischer.org> cc: usb@freebsd.org Subject: Re: USB problems X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jan 2005 17:58:16 -0000 apologies, but only time to test compile, not fix/revert > any chance you could try revert ums.c back a while and see if doing so > fixes the problem? 1.70 cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror /usr/src/sys/dev/usb/ums.c /usr/src/sys/dev/usb/ums.c: In function `ums_enable': /usr/src/sys/dev/usb/ums.c:582: error: syntax error before '=' token *** Error code 1 1.71 cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror /usr/src/sys/dev/usb/ums.c /usr/src/sys/dev/usb/ums.c: In function `ums_intr': /usr/src/sys/dev/usb/ums.c:479: error: structure has no member named `dt' /usr/src/sys/dev/usb/ums.c: In function `ums_enable': /usr/src/sys/dev/usb/ums.c:582: error: structure has no member named `dt' /usr/src/sys/dev/usb/ums.c: In function `ums_ioctl': /usr/src/sys/dev/usb/ums.c:839: error: structure has no member named `dt' /usr/src/sys/dev/usb/ums.c:842: error: structure has no member named `dt' *** Error code 1 and by 1.72, the usb problems crash on boot randy From owner-freebsd-usb@FreeBSD.ORG Sun Jan 2 21:59:10 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B0CA16A4CE for ; Sun, 2 Jan 2005 21:59:10 +0000 (GMT) Received: from pimout1-ext.prodigy.net (pimout1-ext.prodigy.net [207.115.63.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id D233843D46 for ; Sun, 2 Jan 2005 21:59:09 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [192.168.1.102] (adsl-216-100-134-143.dsl.snfc21.pacbell.net [216.100.134.143])j02Lx3jb243852; Sun, 2 Jan 2005 16:59:08 -0500 Message-ID: <41D86EA6.7040108@elischer.org> Date: Sun, 02 Jan 2005 13:59:02 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8a3) Gecko/20041017 X-Accept-Language: en, hu MIME-Version: 1.0 To: Randy Bush References: <20041228010938.GA39686@freebsd3.cimlogic.com.au> <20041230.111631.13597845.imp@bsdimp.com> <16853.27324.504672.6086@roam.psg.com> <1104542138.3084.9.camel@localhost> <41D67753.60202@elischer.org> <6e01203b0501011052ada0d9c@mail.gmail.com> <41D7203A.5080701@elischer.org> <41D72700.1040605@elischer.org> <16856.13874.617308.852948@roam.psg.com> In-Reply-To: <16856.13874.617308.852948@roam.psg.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: usb@freebsd.org Subject: Re: USB problems X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jan 2005 21:59:10 -0000 Randy Bush wrote: > apologies, but only time to test compile, not fix/revert > > >>any chance you could try revert ums.c back a while and see if doing so >>fixes the problem? The comment about ums.c was for tha chap who was having troubles with the usb mouse.. From memory, your problems are more general and I meant that you should take the whole of /sys/dev/usb from Dec 9 and try and isolate the checkin that produces the problem. UMS.c is likely not the problem. But thanks for trying.. julian > > > 1.70 > > cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror /usr/src/sys/dev/usb/ums.c > /usr/src/sys/dev/usb/ums.c: In function `ums_enable': > /usr/src/sys/dev/usb/ums.c:582: error: syntax error before '=' token > *** Error code 1 > > 1.71 > > cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror /usr/src/sys/dev/usb/ums.c > /usr/src/sys/dev/usb/ums.c: In function `ums_intr': > /usr/src/sys/dev/usb/ums.c:479: error: structure has no member named `dt' > /usr/src/sys/dev/usb/ums.c: In function `ums_enable': > /usr/src/sys/dev/usb/ums.c:582: error: structure has no member named `dt' > /usr/src/sys/dev/usb/ums.c: In function `ums_ioctl': > /usr/src/sys/dev/usb/ums.c:839: error: structure has no member named `dt' > /usr/src/sys/dev/usb/ums.c:842: error: structure has no member named `dt' > *** Error code 1 > > and by 1.72, the usb problems crash on boot > > randy > > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Mon Jan 3 01:35:56 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 42EFF16A4CE for ; Mon, 3 Jan 2005 01:35:56 +0000 (GMT) Received: from ispmxmta09-srv.alltel.net (ispmxmta09-srv.alltel.net [166.102.165.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8B3D43D2D for ; Mon, 3 Jan 2005 01:35:55 +0000 (GMT) (envelope-from trey@fastmail.fm) Received: from [192.168.0.2] (really [69.40.74.131]) by ispmxmta09-srv.alltel.net with ESMTP <20050103013555.NLAE23786.ispmxmta09-srv.alltel.net@[192.168.0.2]> for ; Sun, 2 Jan 2005 19:35:55 -0600 From: Trey Sizemore To: freebsd-usb@freebsd.org Content-Type: text/plain Date: Sun, 02 Jan 2005 20:37:27 -0500 Message-Id: <1104716247.806.16.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: USB ports not working with 5.3-RELEASE or 5.3-STABLE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2005 01:35:56 -0000 My USB devices are not being detected on my tower. I'm running 5.3-STABLE and have the following in my /etc/rc.conf: ________________________________________________________________ salamander# cat /etc/rc.conf # -- sysinstall generated deltas -- # Mon Dec 6 13:36:23 2004 # Created: Mon Dec 6 13:36:23 2004 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. hostname="salamander.thesizemores.net" ifconfig_vr0="DHCP" linux_enable="YES" moused_enable="YES" usbd_enable="YES" sendmail_enable="YES" sendmail_flags="-bd" sendmail_pidfile="/var/spool/postfix/pid/master.pid" sendmail_outbound_enable="NO" sendmail_submit_enable="NO" sendmail_msp_queue_enable="NO" devfs_system_ruleset="local_ruleset" ________________________________________________________________ and this in a /etc/devfs.rules file that I created per another post I saw on the forum: ________________________________________________________________ [local_ruleset=10] add path 'ugen*' mode 664 ________________________________________________________________ The following lines appear in my /sys/i386/conf/GENERIC file (this is out-of-the-box, I have not recompiled the kernel since initial install): ________________________________________________________________ # USB support device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface device usb # USB Bus (required) #device udbp # USB Double Bulk Pipe devices device ugen # Generic device uhid # "Human Interface Devices" device ukbd # Keyboard device ulpt # Printer device umass # Disks/Mass storage - Requires scbus and da device ums # Mouse device urio # Diamond Rio 500 MP3 player device uscanner # Scanners # SCSI peripherals device scbus # SCSI bus (required for SCSI) device ch # SCSI media changers device da # Direct Access (disks) device sa # Sequential Access (tape etc) device cd # CD device pass # Passthrough device (direct SCSI access) device ses # SCSI Environmental Services (and SAF-TE) ________________________________________________________________ However, when I connect my camera via the USB connector (or via a SanDisk card reader) and turn it on, I get no messages in dmesg and usbdevs shows ________________________________________________________________ salamander# usbdevs addr 1: UHCI root hub, VIA addr 1: UHCI root hub, VIA addr 1: UHCI root hub, VIA ________________________________________________________________ I also have an Epson Stylus C84 printer connected directly to one of the box's USB ports and it doesn't appear either. I have PNP turned off in the BIOS. What else could I check? These ports were working as recently as a month ago with a Linux flavor installed. Thanks. -- Cheers, Trey --- Adversity is the trial of principle. Without it, a man hardly knows whether he is honest or not. -- Henry Fielding 8:36PM up 6:44, 0 users, load averages: 0.48, 0.35, 0.30 FreeBSD salamander.thesizemores.net 5.3-STABLE i386 From owner-freebsd-usb@FreeBSD.ORG Mon Jan 3 11:02:10 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6458716A4E9 for ; Mon, 3 Jan 2005 11:02:10 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35ECE43D5A for ; Mon, 3 Jan 2005 11:02:10 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j03B2AL7006256 for ; Mon, 3 Jan 2005 11:02:10 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j03B29Oq006250 for freebsd-usb@freebsd.org; Mon, 3 Jan 2005 11:02:09 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 3 Jan 2005 11:02:09 GMT Message-Id: <200501031102.j03B29Oq006250@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2005 11:02:10 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/05/04] kern/66248 usb [panic] bootloader is confused by booting 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2001/09/11] kern/30502 usb panics if logitech joystick usb attached a [2001/10/31] kern/31659 usb USB controller driver will die after some f [2001/12/12] kern/32713 usb [usb] mouse detaches from hub and doesnt f [2002/01/13] kern/33839 usb usb0: host controller halted (involving A f [2002/02/17] kern/35061 usb After printing to HP Deskjet 656c USB pri f [2002/04/07] i386/36850 usb Page Fault using ppp with USB Modem [4.9] f [2002/05/30] kern/38736 usb kernel panic during memory stick removal f [2002/06/15] kern/39341 usb ppp + USB modem problem f [2002/06/24] kern/39805 usb 4.6R install panics with umass0 device co o [2002/07/19] kern/40792 usb signals lead to data loss on device ugen o [2002/09/13] kern/42748 usb USB does not work (Fujitsu Lifebook) f [2002/09/25] i386/43366 usb Cannot format media in USB floppy devices o [2002/09/29] kern/43462 usb copying files from olympus C-4040 digital o [2002/10/13] bin/43993 usb /usr/sbin/usbd does not handle an usb eve f [2002/11/22] kern/45579 usb Panic from USB stack after device detach o [2002/12/10] kern/46176 usb umass causes kernel panic if device remov o [2002/12/19] i386/46371 usb USB controller cannot be initialized on I f [2002/12/24] i386/46506 usb [usb] [hang] Crash Before Initialization o [2002/12/29] kern/46618 usb USB (UHCI/ICH3) PALM connect/disconnect/c f [2003/01/12] kern/47005 usb OHCI USB not noticing device detachments o [2003/02/17] kern/48359 usb SiS 5597/8 USB + uscanner breakage a [2003/03/02] kern/48849 usb Maxtor XT5000 causes panic in boot o [2003/03/05] kern/48952 usb uscanner0 hangs a [2003/03/20] kern/50149 usb Using Alcatel SpeedTouch results in "usb0 a [2003/08/14] kern/55587 usb null dereference in usbdi.c: usb_transfer o [2003/09/26] bin/57255 usb usbd and multi-function devices f [2003/12/11] kern/60131 usb [usb] Page fault on disconnect of USB dev f [2003/12/13] kern/60217 usb EHCI controller halts when USB 2.0 device o [2003/12/15] kern/60276 usb [usb] Kernel panic when plugging in USB ( o [2004/01/11] kern/61191 usb [usb] panic: USB vs. Serial problems o [2004/01/15] kern/61377 usb [kbd] usb keyboard not functional after b o [2004/01/20] kern/61627 usb [usb] [patch] New USB printer not support f [2004/01/23] kern/61804 usb [panic] panic with hitachi travelstar USB o [2004/01/24] kern/61841 usb [boot] 5.2 Boot freeze if memorybird (USB f [2004/01/30] kern/62088 usb [usb] Logitech Cordless/Optical Mouse not o [2004/01/30] kern/62123 usb [usb] LaCie 160GB USB drive umass: BBB re o [2004/02/23] i386/63251 usb [usb] USB stops working after 2nd APM sus o [2004/02/26] kern/63375 usb [patch] panic: unplugging USB devices pan o [2004/02/29] i386/63521 usb 5.2.1 doesn't detect drives on SATA contr o [2004/03/01] kern/63621 usb [usb] USB MemoryStick Reader stalls/crash o [2004/04/07] kern/65292 usb [panic] random page faults (usb-related?) o [2004/04/19] i386/65783 usb [panic] Panic when attaching card reader o [2004/05/06] kern/66324 usb [usb] usb driver memory leak grows wired o [2004/07/13] kern/69006 usb [patch] Apple Cinema Display hangs USB po o [2004/08/30] kern/71155 usb [usb] misbehaving usb-printer hangs proce o [2004/09/18] kern/71887 usb [kbd] Losing keyboard after plugging a bl o [2004/09/27] kern/72119 usb Detaching USB Memory Stick w/o umount cau f [2004/10/11] i386/72497 usb WD USB Disk Panics -stable and 5.2.1 o [2004/10/29] kern/73295 usb Lock order reversal in USB code. o [2004/10/30] kern/73307 usb Kernel panics on USB disconnect o [2004/11/18] kern/74088 usb ohci ehci uhub: port disabled on connecti 51 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2001/09/30] conf/30929 usb [patch] use usbd to initialize USB ADSL m o [2001/12/09] kern/32652 usb [patch] A new ioctl to uscanner s [2001/12/09] ports/32653 usb Added patches to improve USB scanner supp f [2002/04/23] kern/37374 usb [PATCH] closing ums0 blocks with wmesg uh f [2002/05/04] conf/37732 usb usbd start in wrong place in /etc/rc in 4 o [2002/05/23] kern/38452 usb [usb] Logitech USB iFeel: device_probe_an o [2002/07/16] kern/40657 usb [usb] Logitech iFeel usb mouse will not a o [2002/07/24] kern/40948 usb [usb] USB HP CDW8200 does not work o [2002/08/07] kern/41415 usb [usb] [patch] Some USB scanners cannot ta f [2002/08/30] bin/42213 usb moused(8) seems to delay some mouse event f [2002/10/25] kern/44450 usb USB support FAILURE for device that was s o [2003/01/18] kern/47200 usb USB port is disabled when Kodak DX4900 is o [2003/02/06] kern/48014 usb [usb] moused fails to correctly identify o [2003/02/16] bin/48342 usb [PATCH] usbd dynamic device list. o [2003/03/19] kern/50110 usb [usb] Astra 2100U scanner being detected o [2003/05/08] kern/51958 usb [usb] [patch] update for urio driver o [2003/05/10] kern/52026 usb [usb] feature request: umass driver suppo f [2003/05/19] bin/52432 usb [sysinstall] drivers.flp won't load with o [2003/06/08] kern/53025 usb [PATCH] ugen does not allow O_NONBLOCK fo f [2003/09/19] kern/56999 usb FreeCom USB CD/RW problem on FreeBSD 5.1 o [2003/11/10] i386/59147 usb [usb] USB active extension cable not reco o [2003/11/11] kern/59169 usb [patch] ulpt is missing read operation o [2003/12/15] kern/60248 usb [patch] Problem with USB printer HP Laser o [2004/01/12] bin/61234 usb [usb] [patch] usbhidaction doesn't suppor o [2004/01/14] kern/61365 usb FreeBSD resets when I turn off monitor w/ o [2004/02/13] kern/62788 usb need quirks for Super Talent Flash USB 2. o [2004/03/04] kern/63779 usb [usb] USB-mass storage (USB to IDE Conver o [2004/03/06] kern/63837 usb [patch] USB: hid_is_collection() only loo o [2004/04/11] kern/65436 usb QUIRK: [patch] to add support for PNY Att o [2004/04/19] kern/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops o [2004/05/11] kern/66547 usb [usb] Palm Tungsten T USB does not initia o [2004/06/27] kern/68412 usb [usb] [patch] QUIRK: Philips KEY013 USB M o [2004/07/06] i386/68719 usb [usb] USB 2.0 mobil rack+ fat32 performan o [2004/08/16] kern/70523 usb [usb] [patch] umct sending/receiving wron o [2004/08/25] kern/70942 usb [usb] Genius Wireless USB mouse: moused d o [2004/09/06] kern/71416 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/06] kern/71417 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/07] kern/71455 usb [usb] Slow USB umass performance of 5.3 o [2004/09/11] kern/71605 usb [usb] [patch] umass doesn't recognize mul o [2004/10/05] kern/72344 usb [usb] [patch] QUIRK: Dane-Elec zMate 512 f [2004/10/06] i386/72380 usb [usb] USB does not work [dual Celeron Abi o [2004/10/23] i386/73056 usb [usb] Sun Microsystems Type 6 USB mouse n o [2004/11/02] i386/73421 usb [usb] USB not recgnized/working on Toshib o [2004/11/16] kern/73999 usb [usb] USB Freezes when a device is plugge 44 problems total. From owner-freebsd-usb@FreeBSD.ORG Tue Jan 4 00:03:18 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24DCC16A4CE for ; Tue, 4 Jan 2005 00:03:18 +0000 (GMT) Received: from rip.psg.com (rip.psg.com [147.28.0.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03B1F43D39 for ; Tue, 4 Jan 2005 00:03:18 +0000 (GMT) (envelope-from randy@psg.com) Received: from localhost ([127.0.0.1] helo=roam.psg.com) by rip.psg.com with esmtp (Exim 4.43 (FreeBSD)) id 1ClcAP-0003nv-CY; Tue, 04 Jan 2005 00:03:17 +0000 Received: from localhost ([127.0.0.1] helo=roam.psg.com.psg.com) by roam.psg.com with esmtp (Exim 4.43 (FreeBSD)) id 1Clc7P-0000PP-W4; Mon, 03 Jan 2005 14:00:12 -1000 From: Randy Bush MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16857.56458.917513.483230@roam.psg.com> Date: Mon, 3 Jan 2005 14:00:10 -1000 To: Julian Elischer References: <20041228010938.GA39686@freebsd3.cimlogic.com.au> <20041230.111631.13597845.imp@bsdimp.com> <16853.27324.504672.6086@roam.psg.com> <1104542138.3084.9.camel@localhost> <41D67753.60202@elischer.org> <6e01203b0501011052ada0d9c@mail.gmail.com> <41D7203A.5080701@elischer.org> <41D72700.1040605@elischer.org> <16856.13874.617308.852948@roam.psg.com> <41D86EA6.7040108@elischer.org> <16857.44426.524800.544905@roam.psg.com> <41D9BDD9.6090007@elischer.org> cc: freebsd-usb@freebsd.org Subject: Re: USB problems X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 00:03:18 -0000 [ usb cc:ed for archival purposes ] > I may be able to put some tar files with different dates somewhere for > you .. this is embarrassing. the usb from four weeks ago worked fine the usb from two weeks ago worked fine the usb from one week ago worked fine so i cvsupped without the -s option and current as of today works fine somehow, i got out of sync and have been chasing a wild goose. sorry to draw you into the chase. sigh randy From owner-freebsd-usb@FreeBSD.ORG Tue Jan 4 01:49:08 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F87116A4CE for ; Tue, 4 Jan 2005 01:49:08 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 675BE43D1D for ; Tue, 4 Jan 2005 01:49:07 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id EE5E67A403; Mon, 3 Jan 2005 17:49:06 -0800 (PST) Message-ID: <41D9F612.90401@elischer.org> Date: Mon, 03 Jan 2005 17:49:06 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: Randy Bush References: <20041228010938.GA39686@freebsd3.cimlogic.com.au> <20041230.111631.13597845.imp@bsdimp.com> <16853.27324.504672.6086@roam.psg.com> <1104542138.3084.9.camel@localhost> <41D67753.60202@elischer.org> <6e01203b0501011052ada0d9c@mail.gmail.com> <41D7203A.5080701@elischer.org> <41D72700.1040605@elischer.org> <16856.13874.617308.852948@roam.psg.com> <41D86EA6.7040108@elischer.org> <16857.44426.524800.544905@roam.psg.com> <41D9BDD9.6090007@elischer.org> <16857.56458.917513.483230@roam.psg.com> In-Reply-To: <16857.56458.917513.483230@roam.psg.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: USB problems X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 01:49:08 -0000 Randy Bush wrote: >[ usb cc:ed for archival purposes ] > > > >>I may be able to put some tar files with different dates somewhere for >>you .. >> >> > >this is embarrassing. > >the usb from four weeks ago worked fine > >the usb from two weeks ago worked fine > >the usb from one week ago worked fine > >so i cvsupped without the -s option and current as of today >works fine > >somehow, i got out of sync and have been chasing a wild goose. >sorry to draw you into the chase. > no worries.. You did all the work to dig yourself out of your hole.. All I had to do was hand you the shovel. > >sigh > >randy > >_______________________________________________ >freebsd-usb@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-usb >To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > > From owner-freebsd-usb@FreeBSD.ORG Tue Jan 4 05:40:29 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7990E16A4CE for ; Tue, 4 Jan 2005 05:40:29 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D97D43D2D for ; Tue, 4 Jan 2005 05:40:29 +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 j045eTVI064222 for ; Tue, 4 Jan 2005 05:40:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j045eTAI064221; Tue, 4 Jan 2005 05:40:29 GMT (envelope-from gnats) Date: Tue, 4 Jan 2005 05:40:29 GMT Message-Id: <200501040540.j045eTAI064221@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Julian Elischer Subject: Re: kern/30502: panics if logitech joystick usb attached to system X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Julian Elischer List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 05:40:29 -0000 The following reply was made to PR kern/30502; it has been noted by GNATS. From: Julian Elischer To: freebsd-gnats-submit@FreeBSD.org, igla@batterybackups.net Cc: Subject: Re: kern/30502: panics if logitech joystick usb attached to system Date: Mon, 03 Jan 2005 21:37:07 -0800 Believe it or not, we're still tracking this.. has anyting changed with regard to this bug with any of the new USB changes? julian From owner-freebsd-usb@FreeBSD.ORG Tue Jan 4 06:00:43 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5BD2C16A4CE for ; Tue, 4 Jan 2005 06:00:43 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3125843D49 for ; Tue, 4 Jan 2005 06:00:43 +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 j0460h8G075789 for ; Tue, 4 Jan 2005 06:00:43 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0460hfZ075788; Tue, 4 Jan 2005 06:00:43 GMT (envelope-from gnats) Date: Tue, 4 Jan 2005 06:00:43 GMT Message-Id: <200501040600.j0460hfZ075788@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Julian Elischer Subject: Re: kern/66324: [usb] usb driver memory leak grows wired X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Julian Elischer List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 06:00:43 -0000 The following reply was made to PR kern/66324; it has been noted by GNATS. From: Julian Elischer To: freebsd-gnats-submit@FreeBSD.org, apostbackup@yahoo.com Cc: Subject: Re: kern/66324: [usb] usb driver memory leak grows wired Date: Mon, 03 Jan 2005 21:53:39 -0800 Is this still true? going through the PRs doing a cleanup pass. julian From owner-freebsd-usb@FreeBSD.ORG Tue Jan 4 06:00:50 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EF9616A4CE for ; Tue, 4 Jan 2005 06:00:50 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5157843D53 for ; Tue, 4 Jan 2005 06:00:50 +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 j0460o46075809 for ; Tue, 4 Jan 2005 06:00:50 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0460oEq075808; Tue, 4 Jan 2005 06:00:50 GMT (envelope-from gnats) Date: Tue, 4 Jan 2005 06:00:50 GMT Message-Id: <200501040600.j0460oEq075808@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Julian Elischer Subject: Re: kern/31659: USB controller driver will die after somehours/heavy load. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Julian Elischer List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 06:00:50 -0000 The following reply was made to PR kern/31659; it has been noted by GNATS. From: Julian Elischer To: freebsd-gnats-submit@FreeBSD.org, sehh@altered.com, apostbackup@yahoo.com, david@inty.net Cc: Subject: Re: kern/31659: USB controller driver will die after some hours/heavy load. Date: Mon, 03 Jan 2005 21:59:56 -0800 I this still a problem for you? http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/31659 From owner-freebsd-usb@FreeBSD.ORG Tue Jan 4 06:46:50 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B535016A4CE; Tue, 4 Jan 2005 06:46:50 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A2F843D4C; Tue, 4 Jan 2005 06:46:50 +0000 (GMT) (envelope-from julian@FreeBSD.org) Received: from freefall.freebsd.org (julian@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j046ko78087050; Tue, 4 Jan 2005 06:46:50 GMT (envelope-from julian@freefall.freebsd.org) Received: (from julian@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j046ko0A087046; Tue, 4 Jan 2005 06:46:50 GMT (envelope-from julian) Date: Tue, 4 Jan 2005 06:46:50 GMT From: Julian Elischer Message-Id: <200501040646.j046ko0A087046@freefall.freebsd.org> To: ntai@smartfruit.com, julian@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: bin/43993: /usr/sbin/usbd does not handle an usb event with multiple devices X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 06:46:50 -0000 Synopsis: /usr/sbin/usbd does not handle an usb event with multiple devices State-Changed-From-To: open->closed State-Changed-By: julian State-Changed-When: Tue Jan 4 06:46:16 GMT 2005 State-Changed-Why: Apply the supplied patch. http://www.freebsd.org/cgi/query-pr.cgi?pr=43993 From owner-freebsd-usb@FreeBSD.ORG Tue Jan 4 16:50:18 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2A9916A4CE for ; Tue, 4 Jan 2005 16:50:18 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7663143D1D for ; Tue, 4 Jan 2005 16:50:18 +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 j04GoINW054183 for ; Tue, 4 Jan 2005 16:50:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j04GoISP054182; Tue, 4 Jan 2005 16:50:18 GMT (envelope-from gnats) Date: Tue, 4 Jan 2005 16:50:18 GMT Message-Id: <200501041650.j04GoISP054182@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Dimitrios Subject: Re: kern/31659: USB controller driver will die after some hours/heavy load. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dimitrios List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 16:50:18 -0000 The following reply was made to PR kern/31659; it has been noted by GNATS. From: Dimitrios To: freebsd-gnats-submit@FreeBSD.org, sehh@altered.com Cc: Subject: Re: kern/31659: USB controller driver will die after some hours/heavy load. Date: Tue, 4 Jan 2005 18:47:08 +0200 I can't confirm if this bug still exists or not, since i've moved to a DSL router/hub instead. From owner-freebsd-usb@FreeBSD.ORG Tue Jan 4 19:19:36 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3963B16A4CF for ; Tue, 4 Jan 2005 19:19:36 +0000 (GMT) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id 8C09143D2F for ; Tue, 4 Jan 2005 19:19:34 +0000 (GMT) (envelope-from roam@ringlet.net) Received: (qmail 22703 invoked from network); 4 Jan 2005 19:19:28 -0000 Received: from unknown (HELO straylight.ringlet.net) (213.16.36.85) by gandalf.online.bg with SMTP; 4 Jan 2005 19:19:28 -0000 Received: (qmail 2489 invoked by uid 1000); 4 Jan 2005 19:13:54 -0000 Date: Tue, 4 Jan 2005 21:13:54 +0200 From: Peter Pentchev To: Julian Elischer Message-ID: <20050104191354.GA1916@straylight.m.ringlet.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VbJkn9YxBvnuCH5J" Content-Disposition: inline User-Agent: Mutt/1.5.6i cc: freebsd-usb@FreeBSD.org Subject: [PATCH] ugen_destroy_devnodes panic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 19:19:36 -0000 --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I am getting reproducible panics on RELENG_5 with ugen and my camera, Canon PowerShot A80. The problem seems to be that ugen_set_config() calls ugen_destroy_devnodes() twice, and ugen_destroy_devnodes() may get to operate on the same sc's and the same devs, thus calling destroy_dev() on an already destroyed endpoint device. My first hunch was to comment out the first ugen_destroy_devnodes() call in ugen_set_config(), but then I realized that it might be necessary to make sure no one else tries to open a ugen endpoint while it is being marked for destruction. What do you think about the following patch which makes ugen_destroy_devnodes() zero out the dev pointer for each destroyed device, so that it never attempts to destroy the same device twice? Am I right to think that after this routine is called, no one should use the device endpoint that it freed? G'luck, Peter Index: src/sys/dev/usb/ugen.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/dev/usb/ugen.c,v retrieving revision 1.88.2.2 diff -u -r1.88.2.2 ugen.c --- src/sys/dev/usb/ugen.c 31 Dec 2004 08:01:48 -0000 1.88.2.2 +++ src/sys/dev/usb/ugen.c 4 Jan 2005 18:20:39 -0000 @@ -283,7 +283,7 @@ ugen_destroy_devnodes(struct ugen_softc *sc) { int endptno; - struct cdev *dev; + struct cdev **pdev; =20 /* destroy all devices for the other (existing) endpoints as well */ for (endptno =3D 1; endptno < USB_MAX_ENDPOINTS; endptno++) { @@ -298,10 +298,13 @@ * of the structs is populated. */ if (sc->sc_endpoints[endptno][IN].sc !=3D NULL) - dev =3D sc->sc_endpoints[endptno][IN].dev; + pdev =3D &sc->sc_endpoints[endptno][IN].dev; else - dev =3D sc->sc_endpoints[endptno][OUT].dev; - destroy_dev(dev); + pdev =3D &sc->sc_endpoints[endptno][OUT].dev; + if (*pdev =3D=3D NULL) + continue; + destroy_dev(*pdev); + *pdev =3D NULL; } } } --=20 Peter Pentchev roam@ringlet.net roam@cnsys.bg roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This sentence is false. --VbJkn9YxBvnuCH5J Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB2ury7Ri2jRYZRVMRAgEdAJ9Y1r5cbjA09ojETQxePI2u4gTWrQCfYWzq m788LtVAQ/uDfktLACfXfQM= =gFUP -----END PGP SIGNATURE----- --VbJkn9YxBvnuCH5J-- From owner-freebsd-usb@FreeBSD.ORG Tue Jan 4 19:40:46 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A46E416A4CF; Tue, 4 Jan 2005 19:40:46 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B23443D49; Tue, 4 Jan 2005 19:40:46 +0000 (GMT) (envelope-from julian@FreeBSD.org) Received: from freefall.freebsd.org (julian@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j04JekNo074572; Tue, 4 Jan 2005 19:40:46 GMT (envelope-from julian@freefall.freebsd.org) Received: (from julian@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j04Jek5K074568; Tue, 4 Jan 2005 19:40:46 GMT (envelope-from julian) Date: Tue, 4 Jan 2005 19:40:46 GMT From: Julian Elischer Message-Id: <200501041940.j04Jek5K074568@freefall.freebsd.org> To: emattman@cascadeaccess.com, julian@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: kern/42748: USB does not work (Fujitsu Lifebook) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 19:40:46 -0000 Synopsis: USB does not work (Fujitsu Lifebook) State-Changed-From-To: open->closed State-Changed-By: julian State-Changed-When: Tue Jan 4 19:37:58 GMT 2005 State-Changed-Why: Submitter doesn't have the hardware any more, and given the massively improved state of the USB code since then, and the fact that we cannot reproduce it, close it and if it's still a problem for someone, they can re-open it or add a new PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=42748 From owner-freebsd-usb@FreeBSD.ORG Tue Jan 4 19:45:34 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E92816A4CE; Tue, 4 Jan 2005 19:45:34 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64D6143D5E; Tue, 4 Jan 2005 19:45:34 +0000 (GMT) (envelope-from julian@FreeBSD.org) Received: from freefall.freebsd.org (julian@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j04JjYJu074727; Tue, 4 Jan 2005 19:45:34 GMT (envelope-from julian@freefall.freebsd.org) Received: (from julian@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j04JjYWH074723; Tue, 4 Jan 2005 19:45:34 GMT (envelope-from julian) Date: Tue, 4 Jan 2005 19:45:34 GMT From: Julian Elischer Message-Id: <200501041945.j04JjYWH074723@freefall.freebsd.org> To: mad@madpilot.net, julian@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: kern/47005: OHCI USB not noticing device detachments on A7N266-VM MoBo X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 19:45:34 -0000 Synopsis: OHCI USB not noticing device detachments on A7N266-VM MoBo State-Changed-From-To: feedback->closed State-Changed-By: julian State-Changed-When: Tue Jan 4 19:43:34 GMT 2005 State-Changed-Why: Submitter thinks it has been fixed. Unfortunatrly he can no longer test this to confirm it however. http://www.freebsd.org/cgi/query-pr.cgi?pr=47005 From owner-freebsd-usb@FreeBSD.ORG Tue Jan 4 20:18:40 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B28716A4CE; Tue, 4 Jan 2005 20:18:40 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FBDE43D2F; Tue, 4 Jan 2005 20:18:40 +0000 (GMT) (envelope-from julian@FreeBSD.org) Received: from freefall.freebsd.org (julian@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j04KIeud080185; Tue, 4 Jan 2005 20:18:40 GMT (envelope-from julian@freefall.freebsd.org) Received: (from julian@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j04KIeEk080181; Tue, 4 Jan 2005 20:18:40 GMT (envelope-from julian) Date: Tue, 4 Jan 2005 20:18:40 GMT From: Julian Elischer Message-Id: <200501042018.j04KIeEk080181@freefall.freebsd.org> To: iedowse@FreeBSD.org, rjohnson_14@hotmail.com, julian@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: kern/35061: After printing to HP Deskjet 656c USB printer, computer hangs X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 20:18:40 -0000 Synopsis: After printing to HP Deskjet 656c USB printer, computer hangs State-Changed-From-To: feedback->closed State-Changed-By: julian State-Changed-When: Tue Jan 4 20:16:53 GMT 2005 State-Changed-Why: Submitter does not have the printer any more.. substantial work on USB makes it possible this has been fixed and since we can not reproduce it, close it. http://www.freebsd.org/cgi/query-pr.cgi?pr=35061 From owner-freebsd-usb@FreeBSD.ORG Tue Jan 4 21:39:32 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2382D16A4CE; Tue, 4 Jan 2005 21:39:32 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5B8A43D49; Tue, 4 Jan 2005 21:39:31 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id BCB5A7A44B; Tue, 4 Jan 2005 13:39:29 -0800 (PST) Message-ID: <41DB0D11.7040900@elischer.org> Date: Tue, 04 Jan 2005 13:39:29 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: Peter Pentchev References: <20050104191354.GA1916@straylight.m.ringlet.net> In-Reply-To: <20050104191354.GA1916@straylight.m.ringlet.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: [PATCH] ugen_destroy_devnodes panic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 21:39:32 -0000 Peter Pentchev wrote: >Hi, > >I am getting reproducible panics on RELENG_5 with ugen and my camera, >Canon PowerShot A80. The problem seems to be that ugen_set_config() >calls ugen_destroy_devnodes() twice, and ugen_destroy_devnodes() may get >to operate on the same sc's and the same devs, thus calling >destroy_dev() on an already destroyed endpoint device. My first hunch >was to comment out the first ugen_destroy_devnodes() call in >ugen_set_config(), but then I realized that it might be necessary to >make sure no one else tries to open a ugen endpoint while it is being >marked for destruction.: > how does this achieve that goal? how about seeing if you can use the version of ugen.c from -current. this has all been reworked there. > >What do you think about the following patch which makes >ugen_destroy_devnodes() zero out the dev pointer for each destroyed >device, so that it never attempts to destroy the same device twice? Am >I right to think that after this routine is called, no one should use >the device endpoint that it freed? > >G'luck, >Peter > >Index: src/sys/dev/usb/ugen.c >=================================================================== >RCS file: /home/ncvs/src/sys/dev/usb/ugen.c,v >retrieving revision 1.88.2.2 >diff -u -r1.88.2.2 ugen.c >--- src/sys/dev/usb/ugen.c 31 Dec 2004 08:01:48 -0000 1.88.2.2 >+++ src/sys/dev/usb/ugen.c 4 Jan 2005 18:20:39 -0000 >@@ -283,7 +283,7 @@ > ugen_destroy_devnodes(struct ugen_softc *sc) > { > int endptno; >- struct cdev *dev; >+ struct cdev **pdev; > > /* destroy all devices for the other (existing) endpoints as well */ > for (endptno = 1; endptno < USB_MAX_ENDPOINTS; endptno++) { >@@ -298,10 +298,13 @@ > * of the structs is populated. > */ > if (sc->sc_endpoints[endptno][IN].sc != NULL) >- dev = sc->sc_endpoints[endptno][IN].dev; >+ pdev = &sc->sc_endpoints[endptno][IN].dev; > else >- dev = sc->sc_endpoints[endptno][OUT].dev; >- destroy_dev(dev); >+ pdev = &sc->sc_endpoints[endptno][OUT].dev; >+ if (*pdev == NULL) >+ continue; >+ destroy_dev(*pdev); >+ *pdev = NULL; > } > } > } > > > From owner-freebsd-usb@FreeBSD.ORG Tue Jan 4 22:22:21 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 127ED16A4CE; Tue, 4 Jan 2005 22:22:21 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E135643D48; Tue, 4 Jan 2005 22:22:20 +0000 (GMT) (envelope-from julian@FreeBSD.org) Received: from freefall.freebsd.org (julian@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j04MMKMA097527; Tue, 4 Jan 2005 22:22:20 GMT (envelope-from julian@freefall.freebsd.org) Received: (from julian@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j04MMKG6097523; Tue, 4 Jan 2005 22:22:20 GMT (envelope-from julian) Date: Tue, 4 Jan 2005 22:22:20 GMT From: Julian Elischer Message-Id: <200501042222.j04MMKG6097523@freefall.freebsd.org> To: grog@lemis.com, julian@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: kern/45579: Panic from USB stack after device detach X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 22:22:21 -0000 Synopsis: Panic from USB stack after device detach State-Changed-From-To: feedback->closed State-Changed-By: julian State-Changed-When: Tue Jan 4 22:19:09 GMT 2005 State-Changed-Why: Sender cannot test any more but suspects it is fixed. http://www.freebsd.org/cgi/query-pr.cgi?pr=45579 From owner-freebsd-usb@FreeBSD.ORG Tue Jan 4 22:24:46 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B57DF16A4CE; Tue, 4 Jan 2005 22:24:46 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E96E43D39; Tue, 4 Jan 2005 22:24:46 +0000 (GMT) (envelope-from julian@FreeBSD.org) Received: from freefall.freebsd.org (julian@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j04MOk52097614; Tue, 4 Jan 2005 22:24:46 GMT (envelope-from julian@freefall.freebsd.org) Received: (from julian@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j04MOks7097610; Tue, 4 Jan 2005 22:24:46 GMT (envelope-from julian) Date: Tue, 4 Jan 2005 22:24:46 GMT From: Julian Elischer Message-Id: <200501042224.j04MOks7097610@freefall.freebsd.org> To: damm@livid.de, julian@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: i386/46506: [usb] [hang] Crash Before Initialization of Printer? or USB Error? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 22:24:46 -0000 Synopsis: [usb] [hang] Crash Before Initialization of Printer? or USB Error? State-Changed-From-To: feedback->closed State-Changed-By: julian State-Changed-When: Tue Jan 4 22:23:35 GMT 2005 State-Changed-Why: Submitter cannot confirm it still exists. http://www.freebsd.org/cgi/query-pr.cgi?pr=46506 From owner-freebsd-usb@FreeBSD.ORG Wed Jan 5 00:45:28 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D2CE16A4CE; Wed, 5 Jan 2005 00:45:28 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3593A43D48; Wed, 5 Jan 2005 00:45:28 +0000 (GMT) (envelope-from julian@FreeBSD.org) Received: from freefall.freebsd.org (julian@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j050jS3Z014245; Wed, 5 Jan 2005 00:45:28 GMT (envelope-from julian@freefall.freebsd.org) Received: (from julian@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j050jRC1014241; Wed, 5 Jan 2005 00:45:27 GMT (envelope-from julian) Date: Wed, 5 Jan 2005 00:45:27 GMT From: Julian Elischer Message-Id: <200501050045.j050jRC1014241@freefall.freebsd.org> To: morganw@chemikals.org, julian@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: kern/43462: copying files from olympus C-4040 digital camera panics kernel X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2005 00:45:28 -0000 Synopsis: copying files from olympus C-4040 digital camera panics kernel State-Changed-From-To: open->closed State-Changed-By: julian State-Changed-When: Wed Jan 5 00:44:43 GMT 2005 State-Changed-Why: Submitter says: "the last time I tried it did not have any problems" http://www.freebsd.org/cgi/query-pr.cgi?pr=43462 From owner-freebsd-usb@FreeBSD.ORG Wed Jan 5 12:08:02 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 469CE16A4CE for ; Wed, 5 Jan 2005 12:08:02 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16FD343D55 for ; Wed, 5 Jan 2005 12:08:02 +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 j05C81dH027381 for ; Wed, 5 Jan 2005 12:08:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j05C81KR027380; Wed, 5 Jan 2005 12:08:01 GMT (envelope-from gnats) Resent-Date: Wed, 5 Jan 2005 12:08:01 GMT Resent-Message-Id: <200501051208.j05C81KR027380@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ceri Davies Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF50016A4CE for ; Wed, 5 Jan 2005 12:07:36 +0000 (GMT) Received: from shrike.submonkey.net (cpc2-cdif3-6-0-cust204.cdif.cable.ntl.com [81.103.67.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0FCE43D58 for ; Wed, 5 Jan 2005 12:07:36 +0000 (GMT) (envelope-from setantae@submonkey.net) Received: from setantae by shrike.submonkey.net with local (Exim 4.43 (FreeBSD)) id 1Cm9wt-0000IA-RQ for FreeBSD-gnats-submit@freebsd.org; Wed, 05 Jan 2005 12:07:35 +0000 Message-Id: Date: Wed, 05 Jan 2005 12:07:35 +0000 From: Ceri Davies Sender: Ceri Davies To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: usb/75849: Test PR - please ignore. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Ceri Davies List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2005 12:08:02 -0000 >Number: 75849 >Category: usb >Synopsis: Test PR - please ignore. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed Jan 05 12:08:01 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Ceri Davies >Release: FreeBSD 4.10-STABLE i386 >Organization: FreeBSD BugMeisters >Environment: System: FreeBSD shrike.private.submonkey.net 4.10-STABLE FreeBSD 4.10-STABLE #51: Wed Dec 1 23:31:06 GMT 2004 root@shrike.private.submonkey.net:/usr/obj/usr/src/sys/SHRIKE i386 >Description: New category test. Ignote. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Wed Jan 5 12:09:36 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F1F716A4CE; Wed, 5 Jan 2005 12:09:36 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6927043D54; Wed, 5 Jan 2005 12:09:36 +0000 (GMT) (envelope-from ceri@FreeBSD.org) Received: from freefall.freebsd.org (ceri@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j05C9aM0027436; Wed, 5 Jan 2005 12:09:36 GMT (envelope-from ceri@freefall.freebsd.org) Received: (from ceri@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j05C9aQ3027432; Wed, 5 Jan 2005 12:09:36 GMT (envelope-from ceri) Date: Wed, 5 Jan 2005 12:09:36 GMT From: Ceri Davies Message-Id: <200501051209.j05C9aQ3027432@freefall.freebsd.org> To: ceri@FreeBSD.org, ceri@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: usb/75849: Test PR - please ignore. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2005 12:09:36 -0000 Synopsis: Test PR - please ignore. State-Changed-From-To: open->closed State-Changed-By: ceri State-Changed-When: Wed Jan 5 12:08:48 GMT 2005 State-Changed-Why: Dear usb@, enjoy your new category. Commits to send-pr will follow shortly. http://www.freebsd.org/cgi/query-pr.cgi?pr=75849 From owner-freebsd-usb@FreeBSD.ORG Wed Jan 5 16:29:19 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FBA516A4CE for ; Wed, 5 Jan 2005 16:29:19 +0000 (GMT) Received: from ispmxmta05-srv.alltel.net (ispmxmta05-srv.alltel.net [166.102.165.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id BADD443D1F for ; Wed, 5 Jan 2005 16:29:17 +0000 (GMT) (envelope-from trey@fastmail.fm) Received: from [192.168.0.2] (really [69.40.74.131]) by ispmxmta05-srv.alltel.net with ESMTP <20050105162916.HPGZ10027.ispmxmta05-srv.alltel.net@[192.168.0.2]> for ; Wed, 5 Jan 2005 10:29:16 -0600 From: Trey Sizemore To: freebsd-usb@freebsd.org In-Reply-To: <1104716247.806.16.camel@localhost> References: <1104716247.806.16.camel@localhost> Content-Type: text/plain Date: Wed, 05 Jan 2005 11:31:01 -0500 Message-Id: <1104942661.794.8.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: Re: USB ports not working with 5.3-RELEASE or 5.3-STABLE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2005 16:29:19 -0000 On Sun, 2005-01-02 at 20:37 -0500, Trey Sizemore wrote: > My USB devices are not being detected on my tower. I'm running > 5.3-STABLE and have the following in my /etc/rc.conf: > > > ________________________________________________________________ > salamander# cat /etc/rc.conf > # -- sysinstall generated deltas -- # Mon Dec 6 13:36:23 2004 > # Created: Mon Dec 6 13:36:23 2004 > # Enable network daemons for user convenience. > # Please make all changes to this file, not > to /etc/defaults/rc.conf. > # This file now contains just the overrides > from /etc/defaults/rc.conf. > hostname="salamander.thesizemores.net" > ifconfig_vr0="DHCP" > linux_enable="YES" > moused_enable="YES" > usbd_enable="YES" > sendmail_enable="YES" > sendmail_flags="-bd" > sendmail_pidfile="/var/spool/postfix/pid/master.pid" > sendmail_outbound_enable="NO" > sendmail_submit_enable="NO" > sendmail_msp_queue_enable="NO" > devfs_system_ruleset="local_ruleset" > ________________________________________________________________ > > and this in a /etc/devfs.rules file that I created per another post I > saw on the forum: > > > ________________________________________________________________ > [local_ruleset=10] > add path 'ugen*' mode 664 > ________________________________________________________________ > > > The following lines appear in my /sys/i386/conf/GENERIC file (this is > out-of-the-box, I have not recompiled the kernel since initial install): > > > ________________________________________________________________ > # USB support > device uhci # UHCI PCI->USB interface > device ohci # OHCI PCI->USB interface > device usb # USB Bus (required) > #device udbp # USB Double Bulk Pipe devices > device ugen # Generic > device uhid # "Human Interface Devices" > device ukbd # Keyboard > device ulpt # Printer > device umass # Disks/Mass storage - Requires > scbus and da > device ums # Mouse > device urio # Diamond Rio 500 MP3 player > device uscanner # Scanners > > # SCSI peripherals > device scbus # SCSI bus (required for SCSI) > device ch # SCSI media changers > device da # Direct Access (disks) > device sa # Sequential Access (tape etc) > device cd # CD > device pass # Passthrough device (direct > SCSI access) > device ses # SCSI Environmental Services > (and SAF-TE) > > ________________________________________________________________ > > > However, when I connect my camera via the USB connector (or via a > SanDisk card reader) and turn it on, I get no messages in dmesg and > usbdevs shows > > > ________________________________________________________________ > salamander# usbdevs > addr 1: UHCI root hub, VIA > addr 1: UHCI root hub, VIA > addr 1: UHCI root hub, VIA > ________________________________________________________________ > > I also have an Epson Stylus C84 printer connected directly to one of the > box's USB ports and it doesn't appear either. I have PNP turned off in > the BIOS. What else could I check? These ports were working as > recently as a month ago with a Linux flavor installed. > > Thanks. Thanks for the offline offers of help that I've received. I'm not sure what changed, but I was troubleshooting with a LiveCD distro which detected the ports and devices correctly. I then copied the /var/log/messages file from this and was going to post to the list, but when I booted into FreeBSD again, the ports were miraculously working! Hmmm...don't know what happened, as I'd rebooted a few times previous to this, but at least it's working now. Thanks again. -- Cheers, Trey --- "There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable. There is another which states that this has already happened." -- Douglas Adams 11:25AM up 1 day, 16:34, 0 users, load averages: 0.14, 0.04, 0.01 FreeBSD salamander.thesizemores.net 5.3-STABLE i386 From owner-freebsd-usb@FreeBSD.ORG Wed Jan 5 21:01:04 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22CD016A4D1 for ; Wed, 5 Jan 2005 21:01:04 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE12843D45 for ; Wed, 5 Jan 2005 21:01: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 j05L13GU085804 for ; Wed, 5 Jan 2005 21:01:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j05L139i085802; Wed, 5 Jan 2005 21:01:03 GMT (envelope-from gnats) Date: Wed, 5 Jan 2005 21:01:03 GMT Message-Id: <200501052101.j05L139i085802@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Peter Edwards Subject: Re: kern/66248: [panic] bootloader is confused by booting from USB flash, trashes main drives boot block X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Peter Edwards List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2005 21:01:04 -0000 The following reply was made to PR kern/66248; it has been noted by GNATS. From: Peter Edwards To: freebsd-gnats-submit@FreeBSD.org, bremner@unb.ca Cc: julian@elischer.org, imp@bsdimp.org Subject: Re: kern/66248: [panic] bootloader is confused by booting from USB flash, trashes main drives boot block Date: Wed, 05 Jan 2005 20:53:02 +0000 This is a multi-part message in MIME format. --------------070200040205060401080901 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit The following patch, applied before the one above, shrinks boot0 enough to squeeze the previous patch in without undeffing the BEL stuff. FWIW: The patch to fix the bug looks good to me. I someone gives a go-ahead, I'll commit a combined patch: I certainly don't want to make a commit to boot0 and have half the FreeBSD community left without a bootable machine, unless I can pass the book :-) --------------070200040205060401080901 Content-Type: text/plain; name="boot0.smaller.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="boot0.smaller.patch" Index: boot0.S =================================================================== RCS file: /usr/cvs/FreeBSD-CVS/src/sys/boot/i386/boot0/boot0.S,v retrieving revision 1.12 diff -u -w -r1.12 boot0.S --- boot0.S 24 Nov 2004 15:39:04 -0000 1.12 +++ boot0.S 5 Jan 2005 20:44:32 -0000 @@ -29,7 +29,7 @@ .set PRT_OFF,0x1be # Partition table .set TBL0SZ,0x3 # Table 0 size - .set TBL1SZ,0xb # Table 1 size + .set TBL1SZ,0xc # Table 1 size .set MAGIC,0xaa55 # Magic: bootable .set B0MAGIC,0xbb66 # Identification @@ -148,13 +148,8 @@ movb $TBL1SZ,%cl # Number of entries repne # Known scasb # type? - jne main.4 # No -/* - * If it matches get the matching element in the next array. If it doesn't, - * we are already pointing at its first element which points to a "?". - */ - addw $TBL1SZ,%di # Adjust -main.4: movb (%di),%cl # Partition + addw $TBL1SZ - 1, %di # Adjust + movb (%di),%cl # Partition addw %cx,%di # description callw putx # Display it main.5: incw %dx # Next item @@ -314,8 +309,7 @@ cmpw $MAGIC,0x1fe(%bx) # Bootable? jne main.10 # No pushw %si # Save - movw $crlf,%si # Leave some - callw puts # space + callw putn # Leave some space popw %si # Restore jmp *%bx # Invoke bootstrap @@ -408,14 +402,14 @@ .byte 0x0, 0x5, 0xf /* * These values indicate bootable types we know the names of. + * The value of the last entry is unimportant: it indicates "everything else" */ .byte 0x1, 0x4, 0x6, 0xb, 0xc, 0xe, 0x83 - .byte 0x9f, 0xa5, 0xa6, 0xa9 + .byte 0x9f, 0xa5, 0xa6, 0xa9, 0xff /* * These are offsets that match the known names above and point to the strings * that will be printed. */ - .byte os_misc-. # Unknown .byte os_dos-. # DOS .byte os_dos-. # DOS .byte os_dos-. # DOS @@ -427,6 +421,7 @@ .byte os_freebsd-. # FreeBSD .byte os_bsd-. # OpenBSD .byte os_bsd-. # NetBSD + .byte os_misc-. # Unknown /* * And here are the strings themselves. 0x80 or'd into a byte indicates * the end of the string. (not so great for Russians but...) --------------070200040205060401080901-- From owner-freebsd-usb@FreeBSD.ORG Fri Jan 7 00:57:03 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AB1D16A4CE for ; Fri, 7 Jan 2005 00:57:03 +0000 (GMT) Received: from freebsd3.cimlogic.com.au (adsl-20-121.swiftdsl.com.au [218.214.20.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12CE043D5A for ; Fri, 7 Jan 2005 00:57:02 +0000 (GMT) (envelope-from jb@cimlogic.com.au) Received: by freebsd3.cimlogic.com.au (Postfix, from userid 102) id 390956A9BF; Fri, 7 Jan 2005 11:57:01 +1100 (EST) Date: Fri, 7 Jan 2005 11:57:01 +1100 From: John Birrell To: "M. Warner Losh" Message-ID: <20050107005700.GC55403@freebsd3.cimlogic.com.au> References: <20041228010938.GA39686@freebsd3.cimlogic.com.au> <20041230.111631.13597845.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041230.111631.13597845.imp@bsdimp.com> User-Agent: Mutt/1.4.2.1i cc: usb@freebsd.org Subject: Re: USB problems X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 00:57:03 -0000 On Thu, Dec 30, 2004 at 11:16:31AM -0700, M. Warner Losh wrote: > In message: <20041228010938.GA39686@freebsd3.cimlogic.com.au> > John Birrell writes: > : 1. The USB sub-system doesn't handle loading and unloading drivers properly. > : If a driver is unloaded when a USB device is still attached, the next > : time the driver is loaded, the kernel panics. This might not be such > : a problem to normal users because they don't have a need to do that, but > : during driver development when you want to load and unload repeatedly, > : it's a pain. > > I don't see this. Can you give a more concrete example? I've done > work in this area and I believe that it is almost working correctly. What I see is that my driver is detached, the USB device still exists and so does the device_t. The generic probe and attach bus code goes through each driver and tries to probe the device. However, since the probe and attach hasn't come from uhub, the attach_args and quirks haven't been set up. The kernel invaribly panics accessing a NULL quirk pointer. The 'concrete' example here (as best I can give one) is that the USB device is already known to uhub and no USB event has been seen for it. The only thing that has happened is that a driver is loaded which tries to probe, via generic probe and attach (since there is no specific uhub_driver_loaded - which I believe there should be). > : 3. The usbd_bulk_transfer function calls tsleep() to wait for streaming > : data to become available. On current, this bumps into a KASSERT in > : msleep because Giant is not locked and no mutex has been supplied. > : In my driver, I need to run an 'encoder' thread which calls > : usbd_bulk_transfer() to gobble the incoming MPEG data stream. While > : this is going on, there is no syscall in progress because the > : application is off doing other things. It might be looking at the > : mmaped buffer or it may not. > : > : For FreeBSD, usbd_bulk_transfer() needs to change to allow the driver > : to specify it's mutex. I don't know what the implications are for > : uhci given that it hasn't been converted to use mutexes. Can anyone > : comment on that? > > I have changes to make sure this can't happen as well. But you must > hold Giant whenever you call into the usb subsystem. Yuk. How long is Giant held? Is it only while the transaction is queued and de-queued? > I already deal with these things, are you sure you're looking at the > current code? Well, I Don't deal with ugen, but when I have to load > drivers I don't include it in my kernel. There's no harm in that. > I'm working on a generic newbus way of dealing with this situation, > but acpi does non-idempotent things in its probe routines :-(. I am definitely using the current code. I leave ugen out because it only gets in my way. During development and because of the frequency of panics in FreeBSD's USB implementation, I build usb and uhci into the kernel which I net-boot. Then I run a test which loads the driver, tries to open and talk to the device, closes the device and unloads the driver. I expect to be able to do this a few times - once for each test. At present the kernel panics on the second test. -- John Birrell From owner-freebsd-usb@FreeBSD.ORG Fri Jan 7 04:54:13 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE11416A4CE for ; Fri, 7 Jan 2005 04:54:13 +0000 (GMT) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CBAA43D1D for ; Fri, 7 Jan 2005 04:54:12 +0000 (GMT) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: from ednmsw503.dsto.defence.gov.au (ednmsw503.dsto.defence.gov.au [131.185.2.150]) by digger1.defence.gov.au with ESMTP id j074r3gh025871 for ; Fri, 7 Jan 2005 15:23:03 +1030 (CST) Received: from muttley.dsto.defence.gov.au (unverified) by ednmsw503.dsto.defence.gov.au (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Fri, 7 Jan 2005 15:24:02 +1030 Received: from ednex501.dsto.defence.gov.au (ednex501.dsto.defence.gov.au [131.185.2.81]) by muttley.dsto.defence.gov.au (8.11.3/8.11.3) with ESMTP id j074nGQ09383 for ; Fri, 7 Jan 2005 15:19:16 +1030 (CST) Received: from squash.dsto.defence.gov.au ([131.185.40.212]) by ednex501.dsto.defence.gov.au with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id YK37X61X; Fri, 7 Jan 2005 15:19:06 +1030 Received: from squash.dsto.defence.gov.au (localhost [127.0.0.1]) by squash.dsto.defence.gov.au (8.12.11/8.12.11) with ESMTP id j074nVLW018602 for ; Fri, 7 Jan 2005 15:19:31 +1030 (CST) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by squash.dsto.defence.gov.au (8.12.11/8.12.11/Submit) id j074nUu4018601 for usb@freebsd.org; Fri, 7 Jan 2005 15:19:31 +1030 (CST) (envelope-from wilkinsa) Date: Fri, 7 Jan 2005 15:19:30 +1030 From: "Wilkinson, Alex" To: usb@freebsd.org Message-ID: <20050107044927.GA18554@squash.dsto.defence.gov.au> Mail-Followup-To: usb@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: JetFlash TS1GJF2B 2.00 Attempt to query device size failed: UNIT ATTENTION X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 04:54:14 -0000 Hi all, I have a new 1GB JetFlash TS1GJF2B 2.00 thumb drive. When I plug in the thumb drive dmesg(8) outputs the following: umass0: USB Flash Disk, rev 2.00/2.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 1.000MB/s transfers da0: Attempt to query device size failed: UNIT ATTENTION, Not ready to ready change, (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed (da0:umass-sim0:0:0:0): Retries Exhausted Opened disk da0 -> 6 (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) # camcontrol devlist -v .... at scbus5 target 0 lun 0 (da0) scbus-1 on xpt0 bus 0: < > at scbus-1 target -1 lun -1 (xpt0) # mount -t msdos /dev/da0 /mnt msdosfs: /dev/da0: Resource temporarily unavailable and then after trying to mount I get these errors in dmesg(8) fsync: giving up on dirty: 0xc2c24420: tag devfs, type VCHR, usecount 1, writecount 0, refcount 33, flags (VV_OBJBUF), lock type devfs: EXCL (count 1) by thread 0xc309c320 (pid 9693) dev da0 I have the following in my kernel: device ehci # Enchanced Host Controller Int device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface OS: FreeBSD 5.3-STABLE #21: Thu Jan 6 16:45:52 CST 2005 Not sure what to make of this. Anyone ? - aW From owner-freebsd-usb@FreeBSD.ORG Fri Jan 7 08:55:10 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 965DE16A4CE; Fri, 7 Jan 2005 08:55:10 +0000 (GMT) Received: from pimout3-ext.prodigy.net (pimout3-ext.prodigy.net [207.115.63.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id F130443D1D; Fri, 7 Jan 2005 08:55:09 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [192.168.1.102] (adsl-216-100-134-143.dsl.snfc21.pacbell.net [216.100.134.143])j078shHg061798; Fri, 7 Jan 2005 03:54:54 -0500 Message-ID: <41DE4E52.2040301@elischer.org> Date: Fri, 07 Jan 2005 00:54:42 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8a3) Gecko/20041017 X-Accept-Language: en, hu MIME-Version: 1.0 To: "Wilkinson, Alex" References: <20050107064748.GE18554@squash.dsto.defence.gov.au> In-Reply-To: <20050107064748.GE18554@squash.dsto.defence.gov.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: usb@freebsd.org cc: freebsd-current@freebsd.org Subject: Re: [USB] JetFlash TS1GJF2B 2.00 Attempt to query device sizefailed: UNIT ATTENTION X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 08:55:10 -0000 Wilkinson, Alex wrote: > No response from usb@ so hopefully someone (julian) will respond here > ;) well you posted there at 8:49 and here at 10:47 I guess I didn't happen to read the usb list in that 1 hour and 58 minutes. we may need to make it use a quirk to use a different read capacity command or skip it.. I'll have to look to remember what collection of 'quirks' we have in our collection. > > Hi all, > > I have a new 1GB JetFlash TS1GJF2B 2.00 thumb drive. > > When I plug in the thumb drive dmesg(8) outputs the following: > > umass0: USB Flash Disk, rev 2.00/2.00, addr 2 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-2 device > da0: 1.000MB/s transfers > da0: Attempt to query device size failed: UNIT ATTENTION, Not ready to ready change, > (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 > (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > (da0:umass-sim0:0:0:0): SCSI Status: Check Condition > (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 > (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed > (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) > (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 > (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > (da0:umass-sim0:0:0:0): SCSI Status: Check Condition > (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 > (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed > (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) > (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 > (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > (da0:umass-sim0:0:0:0): SCSI Status: Check Condition > (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 > (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed > (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) > (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 > (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > (da0:umass-sim0:0:0:0): SCSI Status: Check Condition > (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 > (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed > (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) > (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 > (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > (da0:umass-sim0:0:0:0): SCSI Status: Check Condition > (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 > (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed > (da0:umass-sim0:0:0:0): Retries Exhausted > Opened disk da0 -> 6 > (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 > (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > (da0:umass-sim0:0:0:0): SCSI Status: Check Condition > (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 > (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed > (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) > (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 > (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > (da0:umass-sim0:0:0:0): SCSI Status: Check Condition > (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 > (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed > (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) > > # camcontrol devlist -v > .... > > at scbus5 target 0 lun 0 (da0) > scbus-1 on xpt0 bus 0: > < > at scbus-1 target -1 lun -1 (xpt0) > > # mount -t msdos /dev/da0 /mnt > msdosfs: /dev/da0: Resource temporarily unavailable > > and then after trying to mount I get these errors in dmesg(8) > > fsync: giving up on dirty: 0xc2c24420: tag devfs, type VCHR, usecount > 1, writecount 0, refcount 33, flags (VV_OBJBUF), lock type devfs: EXCL > (count 1) by thread 0xc309c320 (pid 9693) > dev da0 > > I have the following in my kernel: > > device ehci # Enchanced Host Controller Int > device uhci # UHCI PCI->USB interface > device ohci # OHCI PCI->USB interface > > OS: FreeBSD 5.3-STABLE #21: Thu Jan 6 16:45:52 CST 2005 > > Not sure what to make of this. Anyone ? > > - aW > _______________________________________________ > 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" From owner-freebsd-usb@FreeBSD.ORG Fri Jan 7 10:38:12 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 69CD316A4CE for ; Fri, 7 Jan 2005 10:38:12 +0000 (GMT) Received: from megalogika.stp.lt (megalogika.stp.lt [193.219.52.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDC8343D3F for ; Fri, 7 Jan 2005 10:38:11 +0000 (GMT) (envelope-from tomasv@megalogika.lt) Received: by megalogika.stp.lt (Postfix, from userid 426) id 03FBB3A4; Fri, 7 Jan 2005 12:38:09 +0200 (EET) Received: from pilvas.lan (pilvas.lan [192.169.1.78]) by megalogika.stp.lt (Postfix) with ESMTP id D583094; Fri, 7 Jan 2005 12:38:05 +0200 (EET) Received: by pilvas.lan (Postfix, from userid 1001) id BE1BD40B3; Fri, 7 Jan 2005 12:38:11 +0200 (EET) Date: Fri, 7 Jan 2005 12:38:11 +0200 From: Tomas Verbaitis To: Julian Elischer Message-ID: <20050107103811.GA717@megalogika.lt> References: <20050107064748.GE18554@squash.dsto.defence.gov.au> <41DE4E52.2040301@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <41DE4E52.2040301@elischer.org> X-URL: http://blog.hardcore.lt/ve/ X-nic-hdl: TV13-LT User-Agent: Mutt/1.5.6i cc: usb@freebsd.org Subject: usb tuning (was: [USB] JetFlash TS1GJF2B 2.00 Attempt to query device sizefailed: UNIT ATTENTION) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: tomasv@megalogika.lt List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 10:38:12 -0000 On Fri, Jan 07, 2005 at 12:54:42AM -0800, Julian Elischer wrote: > we may need to make it use a quirk to use a different read capacity command > or skip it.. > > I'll have to look to remember what collection of 'quirks' we have in our > collection. could you give some advice how to apply quirks for various devices? or point to some description of USB drivers' architecture. i have a similar flash drive (TS2GJF2A) which is hanging the system on write with ehci (on RELENG_5) and is awfully slow, but otherwise working, without ehci. -- Tomas "Verbaitis" Verbaitis ** http://megalogika.lt * Å¡ita gudri beždžionÄ— moka dirbti su kompiuteriu * From owner-freebsd-usb@FreeBSD.ORG Fri Jan 7 19:56:01 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD90F16A4CE for ; Fri, 7 Jan 2005 19:56:01 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (84-72-30-72.dclient.hispeed.ch [84.72.30.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2FB243D1F for ; Fri, 7 Jan 2005 19:55:59 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [IPv6:2002:5448:1e48:0:210:60ff:fe25:f1e5]) (8.13.2/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id j07Jttro011517NO) for ; Fri, 7 Jan 2005 20:55:58 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.13.2/FNORD) id j07JtsxU011516; Fri, 7 Jan 2005 20:55:54 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Fri, 7 Jan 2005 20:55:54 +0100 (CET) Message-Id: <200501071955.j07JtsxU011516@Mail.NOSPAM.DynDNS.dK> X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: beer set sender to bounce@NOSPAM.dyndns.dk using -f X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed from queue /tmp X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed by beer with -C /etc/mail/sendmail.cf-LOCAL From: Barry Bouwsma References: <200412292023.iBTKNIp93736@Mail.NOSPAM.DynDNS.dK> <20041229.140208.104029434.imp@harmony.village.org> <200412300719.iBU7JlL06874@Mail.NOSPAM.DynDNS.dK> <20041230.104652.72711160.imp@bsdimp.com> To: freebsd-usb@freebsd.org Mail-Followup-To: freebsd-usb@freebsd.org Subject: Re: USB vendore designations.. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Barry Bouwsma List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 19:56:01 -0000 On Thu, 30 Dec 2004 10:46:52 -0700 (MST), "M. Warner Losh" wrote: > : > I think that it is going to take sepveral steps to get from here to > : > there. Since I have CVS access to both FreeBSD and NetBSD, I can > : > directly make changes there. Since I prefer smaller, more easily > : > tested patches to one big jumbo patch, I'd like to propose that we > : > harmonize strings first, as much as possible, before going after the > : > name changes. I'd also like to do these in smaller batches so that > : Matt and Julian have merged the D/FBSD differences into -current, so > : that there's nothing missing between them. > This isn't true. Julian committed a huge diff, it failed, he backed > it out. I've committed parts of the non conflicting stuff, and will > continue to do so cautiously. Sorry it's taking me so long to make progress with this. Slow machine, little memory, blah blah. I've updated my -current source this morning (07.01.2004) after successfully building -current with my -in-progress usbdevs, and patching the files which needed to be changed elsewhere in the tree to match the NetBSD differences in the usbdevs file (or my changes made to help searching alternate strings more readily), and then decided to make another diff of my work-in-progress against your changes from 06.Jan. If you'd like to see what I've come up with, that diff can be found at https://NOSPAM.dyndns.dk/hacks/usbdevs/usbdevs-patch-based-on-current There are a few minor corrections to your latest changes, as well as some updates I've made while reviewing the diffs. A few redundant things eliminated, and some minor ordering changes. And then the usual significant additions from NetBSD. I'm now in the process of building some kernels to identify as many source files as possible where I've broken things. The previous changes I've had to make (based on my NetBSD-successful build) can be seen under https://NOSPAM.dyndns.dk/hacks/usbdevs/usbdevs-in-progress-PATCHES-NEEDED-for-freebsd-4.x-and-current/ That is based on the -in-progress-for-4.x file in its parent directory, from which I built both 4.x and -current successfully with the patches. As I'm positive I've broken things afresh, within a day or three I should add some more files to that directory, as I slowly chew my way through LINT and a -current world crossbuild. The above diff should obviously *NOT* be committed as-is, but reviewed and perhaps used as a basis for more non-controversial commits for now. I've tried to document my so- called thinking within the diffs as well as `XXX' highlight particular items of importance or to be addressed later. (A few of the newly- broken files have patches in this directory now.) These latest diffs have not been applied to my NetBSD yet. There are some vendor name changes to match the USB website vendor list too. > : As NetBSD is somewhat more state-of-the-art here, the majority of > : catching-up needs to happen in D/FBSD. And OpenBSD. > Actually, that's not entirely true either. FreeBSD had a boatload of > vendors not in NetBSD, and there's general agreement that the OpenBSD > shortness of names is a good thing. Yeah, that's true too, but I was more thinking of the number of products missing from FreeBSD -- NetBSD has a much larger file by size. > My big worry is breaking things on NetBSD when I merge back things > there, so I really want to be cautious and do things very carefully. When my slow machine gives me the chance to tackle a NetBSD crossbuild again, I'll see what these latest changes have broken there too, and try to fix them... Like before, I'll update the above URLs with my in-progress work and findings, and only report major changes here. Feedback, such as `Don't change AMD2 to xxAMD' is welcome. barry bouwsma From owner-freebsd-usb@FreeBSD.ORG Fri Jan 7 20:03:17 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADFAA16A4CE for ; Fri, 7 Jan 2005 20:03:17 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C4B243D1D for ; Fri, 7 Jan 2005 20:03:17 +0000 (GMT) (envelope-from imp@harmony.village.org) Received: from localhost (localhost [IPv6:::1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id j07K1Q5g004615; Fri, 7 Jan 2005 13:01:27 -0700 (MST) (envelope-from imp@harmony.village.org) Date: Fri, 07 Jan 2005 13:01:26 -0700 (MST) Message-Id: <20050107.130126.74745849.imp@harmony.village.org> To: freebsd-misuser@dyndns.dk From: Warner Losh In-Reply-To: <200501071955.j07JtsxU011516@Mail.NOSPAM.DynDNS.dK> References: <200412300719.iBU7JlL06874@Mail.NOSPAM.DynDNS.dK> <20041230.104652.72711160.imp@bsdimp.com> <200501071955.j07JtsxU011516@Mail.NOSPAM.DynDNS.dK> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: USB vendore designations.. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 20:03:17 -0000 > Like before, I'll update the above URLs with my in-progress work and > findings, and only report major changes here. Feedback, such as > `Don't change AMD2 to xxAMD' is welcome. Ideally it would be 'don't change FOOOx to xxFOO, instead change it to who really owns the thing. Warner From owner-freebsd-usb@FreeBSD.ORG Fri Jan 7 20:30:46 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F30616A553 for ; Fri, 7 Jan 2005 20:30:46 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4210443D66 for ; Fri, 7 Jan 2005 20:30:36 +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 j07KUaP9091619 for ; Fri, 7 Jan 2005 20:30:36 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j07KUapc091615; Fri, 7 Jan 2005 20:30:36 GMT (envelope-from gnats) Resent-Date: Fri, 7 Jan 2005 20:30:36 GMT Resent-Message-Id: <200501072030.j07KUapc091615@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Arne Wörner Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1299416A4CE for ; Fri, 7 Jan 2005 20:24:23 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE77E43D1D for ; Fri, 7 Jan 2005 20:24:22 +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 j07KOMtd064503 for ; Fri, 7 Jan 2005 20:24:22 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j07KOMPV064489; Fri, 7 Jan 2005 20:24:22 GMT (envelope-from nobody) Message-Id: <200501072024.j07KOMPV064489@www.freebsd.org> Date: Fri, 7 Jan 2005 20:24:22 GMT From: Arne Wörner To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: usb/75928: Cytronix SmartMedia card (SMC) reader has problems when card changed X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 20:30:46 -0000 >Number: 75928 >Category: usb >Synopsis: Cytronix SmartMedia card (SMC) reader has problems when card changed >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 07 20:30:35 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Arne Wörner >Release: R5.3 >Organization: >Environment: FreeBSD neo.riddick.homeunix.org. 5.3-RELEASE FreeBSD 5.3-RELEASE #20: Wed Jan 5 20:33:11 UTC 2005 aw@neo.riddick.homeunix.org.:/opt/src/sys/i386/compile/RIDDICK i386 slight modifications in dev/bktr >Description: Since today I have a Cytronix SmartMedia card reader (CR-T2-US; USB vendor ID 0xC45, USB product ID 0x1064). The card is accessible via /dev/da0 Whenever I remove the SmartMedia card and reinsert it, "dd" says, that the device is not configured. Whenever I execute "smartctl -a /dev/da0" _two_ times, "dd" can read the da0 device again... I think there is a mistake in the SCSI-USB combination, so that the media change is handled incorrectly. Probably my device does not comply to the UMASS standard (if there is any such std). Since I do not have so much knowledge about SCSI/USB I am quite happy, that I have found that trick... >How-To-Repeat: [SmartMediaCard -SMC- is mounted and working fine...] neo# umount /media/smc neo# mount /dev/vinum/base on / (ufs, local) devfs on /dev (devfs, local) /dev/vinum/user on /usr (ufs, local, soft-updates) /dev/ad1s1e on /opt (ufs, local, soft-updates) devfs on /var/named/dev (devfs, local) [SMC removed and reinserted] neo# !dd dd if=/dev/da0 bs=64k count=100 of=/dev/null dd: /dev/da0: Device not configured neo# smartctl -a /dev/da0 smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen Home page is http://smartmontools.sourceforge.net/ Device: USB CARD READER Version: 0.20 (pass0:umass-sim0:0:0:0): MODE SENSE(06). CDB: 1a 0 1c 0 40 0 (pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (pass0:umass-sim0:0:0:0): SCSI Status: Check Condition (pass0:umass-sim0:0:0:0): NOT READY asc:3a,0 (pass0:umass-sim0:0:0:0): Medium not present Device type: disk (pass0:umass-sim0:0:0:0): MODE SENSE(06). CDB: 1a 0 19 0 40 0 (pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (pass0:umass-sim0:0:0:0): SCSI Status: Check Condition (pass0:umass-sim0:0:0:0): NOT READY asc:3a,0 (pass0:umass-sim0:0:0:0): Medium not present Local Time is: Fri Jan 7 20:04:09 2005 UTC (pass0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (pass0:umass-sim0:0:0:0): SCSI Status: Check Condition (pass0:umass-sim0:0:0:0): NOT READY asc:3a,0 (pass0:umass-sim0:0:0:0): Medium not present device Test Unit Ready [Operation not permitted] A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options. neo# dd if=/dev/da0 bs=64k count=100 of=/dev/null dd: /dev/da0: Device not configured neo# smartctl -a /dev/da0 smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen Home page is http://smartmontools.sourceforge.net/ Device: USB CARD READER Version: 0.20 (pass0:umass-sim0:0:0:0): MODE SENSE(06). CDB: 1a 0 1c 0 40 0 (pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (pass0:umass-sim0:0:0:0): SCSI Status: Check Condition (pass0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (pass0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed Device type: disk (pass0:umass-sim0:0:0:0): MODE SENSE(06). CDB: 1a 0 19 0 40 0 (pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (pass0:umass-sim0:0:0:0): SCSI Status: Check Condition (pass0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (pass0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed Local Time is: Fri Jan 7 20:04:11 2005 UTC (pass0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (pass0:umass-sim0:0:0:0): SCSI Status: Check Condition (pass0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (pass0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed device Test Unit Ready [Operation not permitted] A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options. neo# dd if=/dev/da0 bs=64k count=100 of=/dev/null 100+0 records in 100+0 records out 6553600 bytes transferred in 6.602949 secs (992526 bytes/sec) [SMC removed and reinserted] neo# dd if=/dev/da0 bs=64k count=100 of=/dev/null dd: /dev/da0: Device not configured neo# sleep 300 ; dd if=/dev/da0 bs=64k count=100 of=/dev/null dd: /dev/da0: Device not configured neo# !sma smartctl -a /dev/da0 smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen Home page is http://smartmontools.sourceforge.net/ Device: USB CARD READER Version: 0.20 (pass0:umass-sim0:0:0:0): MODE SENSE(06). CDB: 1a 0 1c 0 40 0 (pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (pass0:umass-sim0:0:0:0): SCSI Status: Check Condition (pass0:umass-sim0:0:0:0): NOT READY asc:3a,0 (pass0:umass-sim0:0:0:0): Medium not present Device type: disk (pass0:umass-sim0:0:0:0): MODE SENSE(06). CDB: 1a 0 19 0 40 0 (pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (pass0:umass-sim0:0:0:0): SCSI Status: Check Condition (pass0:umass-sim0:0:0:0): NOT READY asc:3a,0 (pass0:umass-sim0:0:0:0): Medium not present Local Time is: Fri Jan 7 20:10:58 2005 UTC (pass0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (pass0:umass-sim0:0:0:0): SCSI Status: Check Condition (pass0:umass-sim0:0:0:0): NOT READY asc:3a,0 (pass0:umass-sim0:0:0:0): Medium not present device Test Unit Ready [Operation not permitted] A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options. neo# dd if=/dev/da0 bs=64k count=100 of=/dev/null dd: /dev/da0: Device not configured neo# smartctl -a /dev/da0 smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen Home page is http://smartmontools.sourceforge.net/ Device: USB CARD READER Version: 0.20 (pass0:umass-sim0:0:0:0): MODE SENSE(06). CDB: 1a 0 1c 0 40 0 (pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (pass0:umass-sim0:0:0:0): SCSI Status: Check Condition (pass0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (pass0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed Device type: disk (pass0:umass-sim0:0:0:0): MODE SENSE(06). CDB: 1a 0 19 0 40 0 (pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (pass0:umass-sim0:0:0:0): SCSI Status: Check Condition (pass0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (pass0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed Local Time is: Fri Jan 7 20:11:19 2005 UTC (pass0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (pass0:umass-sim0:0:0:0): SCSI Status: Check Condition (pass0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (pass0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed device Test Unit Ready [Operation not permitted] A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options. neo# dd if=/dev/da0 bs=64k count=100 of=/dev/null 100+0 records in 100+0 records out 6553600 bytes transferred in 6.608987 secs (991619 bytes/sec) neo# [after the second application of the smartctl trick da0 is again configured] >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sat Jan 8 00:38:50 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D69D16A4CE for ; Sat, 8 Jan 2005 00:38:50 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (84-72-30-72.dclient.hispeed.ch [84.72.30.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C02743D2D for ; Sat, 8 Jan 2005 00:38:48 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [IPv6:2002:5448:1e48:0:210:60ff:fe25:f1e5]) (8.13.2/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id j080ccuR014669NO) for ; Sat, 8 Jan 2005 01:38:46 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.13.2/FNORD) id j080ca9u014668; Sat, 8 Jan 2005 01:38:37 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Sat, 8 Jan 2005 01:38:37 +0100 (CET) Message-Id: <200501080038.j080ca9u014668@Mail.NOSPAM.DynDNS.dK> X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: beer set sender to bounce@NOSPAM.dyndns.dk using -f X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed from queue /tmp X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed by beer with -C /etc/mail/sendmail.cf-LOCAL From: Barry Bouwsma To: freebsd-usb@freebsd.org Mail-Followup-To: freebsd-usb@freebsd.org References: <200412300719.iBU7JlL06874@Mail.NOSPAM.DynDNS.dK> <20041230.104652.72711160.imp@bsdimp.com> <200501071955.j07JtsxU011516@Mail.NOSPAM.DynDNS.dK> <20050107.130126.74745849.imp@harmony.village.org> Subject: Re: USB vendore designations.. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Barry Bouwsma List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 00:38:50 -0000 On Fri, 07 Jan 2005 13:01:26 -0700 (MST), Warner Losh wrote: > > findings, and only report major changes here. Feedback, such as > > `Don't change AMD2 to xxAMD' is welcome. > Ideally it would be 'don't change FOOOx to xxFOO, instead change it to > who really owns the thing. Naturally. A couple such changes have been made. The rest were not listed in the USB site vendor list pointed to a while back, and will require some digging. (Searching `xx' and its ilk seems easier than searching `2') The remainder would be things like the word-order HP (0xf003 vs. 0x03f0) and Belkin's use of 0x1293 when their ID is decimal 1293, and I-O Data's 0x40bb in place of the real 0x04bb, f'rinstance. Onspec is really ONSPEC2; Datafab is really ONSPEC. None of the three LINKSYSfoo matches the USB website 0x13b1... Head hurts. I hope the comments in the diff clear this up -- pointers to any non-obvious places where I might find the Real Vendors for the IDs not listed on the website would be appreciated, though I've not gone looking yet. (Sorry this is picking over trivial details) barry bouwsma (Warner, no need to unmunge my e-mail address -- it's not munged, though the from: header works only over IPv6) From owner-freebsd-usb@FreeBSD.ORG Sat Jan 8 01:42:49 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2027916A4CE for ; Sat, 8 Jan 2005 01:42:49 +0000 (GMT) Received: from mailgate-internal1.sri.com (mailgate-internal1.SRI.COM [128.18.84.103]) by mx1.FreeBSD.org (Postfix) with SMTP id C40EE43D1F for ; Sat, 8 Jan 2005 01:42:48 +0000 (GMT) (envelope-from gilham@csl.sri.com) Received: from localhost (HELO mailgate-internal1.SRI.COM) (127.0.0.1) by mailgate-internal1.sri.com with SMTP; 8 Jan 2005 01:42:48 -0000 Received: from mx1.csl.sri.com ([130.107.1.29])M2005010717424822268 for ; Fri, 07 Jan 2005 17:42:48 -0800 Received: from snapdragon.csl.sri.com (snapdragon.csl.sri.com [130.107.19.20]) by mx1.csl.sri.com (8.12.11/8.12.11) with ESMTP id j081gmSV053618 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 7 Jan 2005 17:42:48 -0800 (PST) (envelope-from gilham@snapdragon.csl.sri.com) Received: from snapdragon (localhost [127.0.0.1])j081gmPj071179 for ; Fri, 7 Jan 2005 17:42:48 -0800 (PST) (envelope-from gilham@snapdragon.csl.sri.com) Message-Id: <200501080142.j081gmPj071179@snapdragon.csl.sri.com> To: freebsd-usb@freebsd.org Date: Fri, 07 Jan 2005 17:42:48 -0800 From: Fred Gilham Subject: Rio Riot X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 01:42:49 -0000 Hello, I recently acquired a Rio Riot that was "abandoned on site" by my son. I tried using it with FreeBSD using the riotware and rioutil programs, both of which use the libusb library to talk to the ugen interface. These programs don't work. When I try them I get console errors. Here's an example. In my terminal window: snapdragon:~ > rioutil -i Attempting to open Rio and retrieve song list.... Device not found. library tried to use method: libusb snapdragon:~ > In the console window: When plugged in, prints the following: ugen0: Sonicblue, Inc. RioRiot Digital Audio Player, rev 1.00/1.00, addr 3 When the above command is given, prints the following: usbd_setup_pipe: failed to start endpoint, TIMEOUT I have tried this on both FreeBSD 4.10 and FreeBSD 5.3 (built from source yesterday). The errors are similar or identical. I tried the same setup on a Linux machine and it works OK. Is there anything I can do to make this work? -- Fred Gilham gilham@csl.sri.com The amazing thing is, back when I was a C++ programmer, I thought that [Design Patterns] was SUCH a great book. And I guess it was, in a way: it made it possible to use C++ and get something done. In the long run, of course, that may have been a disservice... - Alain Picard From owner-freebsd-usb@FreeBSD.ORG Sat Jan 8 04:05:54 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2217516A4CE for ; Sat, 8 Jan 2005 04:05:54 +0000 (GMT) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7A8E43D1F for ; Sat, 8 Jan 2005 04:05:53 +0000 (GMT) (envelope-from rodrigc@crodrigues.org) Received: from h00609772adf0.ne.client2.attbi.com ([66.30.114.143]) by comcast.net (sccrmhc12) with ESMTP id <2005010804054901200p0e2de>; Sat, 8 Jan 2005 04:05:50 +0000 Received: from h00609772adf0.ne.client2.attbi.com (localhost [127.0.0.1]) j0846CXY018006 for ; Fri, 7 Jan 2005 23:06:12 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost)j0846BdV018005 for freebsd-usb@freebsd.org; Fri, 7 Jan 2005 23:06:11 -0500 (EST) (envelope-from rodrigc) Date: Fri, 7 Jan 2005 23:06:11 -0500 From: Craig Rodrigues To: freebsd-usb@freebsd.org Message-ID: <20050108040611.GA17994@crodrigues.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: Stability of EHCI for booting off of USB CD-ROM drives? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 04:05:54 -0000 Hi, For the past year, I've been developing bootable FreeBSD 4.x-based CD-ROM based distributions (I started doing this before I learned about FreeSBIE). My distribution is targeted for USB 1.0 CD-ROM drives. Currently, I don't have EHCI enabled in my CD's boot kernel, because of past instability. I've noticed a lot of merges/updates these days to the EHCI code in the 4.x tree. Does anyone have experience with the lastest EHCI code in the FreeBSD 4.x branch and USB 2.0 based devices such as CD-ROM drives or USB keys? Thanks. -- Craig Rodrigues rodrigc@crodrigues.org From owner-freebsd-usb@FreeBSD.ORG Sat Jan 8 06:54:31 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94F7E16A4CE for ; Sat, 8 Jan 2005 06:54:31 +0000 (GMT) Received: from over.ru (over.ru [213.247.139.17]) by mx1.FreeBSD.org (Postfix) with SMTP id 3A2B243D5C for ; Sat, 8 Jan 2005 06:54:30 +0000 (GMT) (envelope-from tarkhil@webmail.sub.ru) Received: (qmail 66266 invoked by uid 65534); 8 Jan 2005 06:52:46 -0000 Received: from over.ru (HELO localhost) (213.247.139.17) by over.ru with SMTP; 8 Jan 2005 06:52:46 -0000 Received: from unknown ([213.247.139.17]) by localhost (over.ru [213.247.139.17]) (amavisd-new, port 10024) with SMTP id 25831-06 for ; Sat, 8 Jan 2005 09:52:37 +0300 (MSK) Received: from unknown (HELO armada) (192.168.1.251) by over.ru with SMTP; 8 Jan 2005 06:52:37 -0000 Received: (qmail 74874 invoked from network); 8 Jan 2005 06:54:02 -0000 Received: from unknown (HELO localhost) (127.0.0.1) by armada with SMTP; 8 Jan 2005 06:54:02 -0000 From: Alex Povolotsky To: usb@freebsd.org Content-Type: multipart/mixed; boundary="=-LXvxz8I3ZCsHUrqHVEq9" Date: Sat, 08 Jan 2005 09:54:01 +0300 Message-Id: <1105167241.94425.27.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port X-Virus-Scanned: by amavisd-new at over.ru Subject: [Fwd: USB CDRW, more or less solved] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 06:54:31 -0000 --=-LXvxz8I3ZCsHUrqHVEq9 Content-Type: text/plain Content-Transfer-Encoding: 7bit -- Alex Povolotsky --=-LXvxz8I3ZCsHUrqHVEq9 Content-Disposition: inline Content-Description: Forwarded message - USB CDRW, more or less solved Content-Type: message/rfc822 Received: (qmail 57114 invoked by uid 0); 6 Jan 2005 08:40:04 -0000 Received: from webmail.sub.ru (HELO localhost) (213.247.139.22) by techno.sub.ru with SMTP; 6 Jan 2005 08:40:04 -0000 Received: from unknown ([213.247.139.22]) by localhost (webmail.sub.ru [213.247.139.22]) (amavisd-new, port 10024) with SMTP id 56605-01 for ; Thu, 6 Jan 2005 11:39:56 +0300 (MSK) Received: from unknown (HELO mx2.freebsd.org) (216.136.204.119) by techno.sub.ru with SMTP; 6 Jan 2005 08:39:55 -0000 Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 207C256F4A; Thu, 6 Jan 2005 08:40:40 +0000 (GMT) (envelope-from owner-freebsd-stable@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id BDA7A16A5E6; Thu, 6 Jan 2005 08:40:12 +0000 (GMT) Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5359016A4D1 for ; Thu, 6 Jan 2005 08:40:05 +0000 (GMT) Received: from over.ru (over.ru [213.247.139.17]) by mx1.FreeBSD.org (Postfix) with SMTP id 3E0DA43D46 for ; Thu, 6 Jan 2005 08:40:04 +0000 (GMT) (envelope-from tarkhil@webmail.sub.ru) Received: (qmail 56239 invoked by uid 65534); 6 Jan 2005 08:38:32 -0000 Received: from over.ru (HELO localhost) (213.247.139.17) by over.ru with SMTP; 6 Jan 2005 08:38:32 -0000 Received: from unknown ([213.247.139.17]) by localhost (over.ru [213.247.139.17]) (amavisd-new, port 10024) with SMTP id 42474-05 for ; Thu, 6 Jan 2005 11:38:24 +0300 (MSK) Received: from unknown (HELO armada) (192.168.1.251) by over.ru with SMTP; 6 Jan 2005 08:38:24 -0000 Received: (qmail 21660 invoked from network); 6 Jan 2005 08:39:39 -0000 Received: from unknown (HELO localhost) (127.0.0.1) by armada with SMTP; 6 Jan 2005 08:39:39 -0000 From: Alex Povolotsky To: stable@freebsd.org Content-Type: text/plain Date: Thu, 06 Jan 2005 11:39:39 +0300 Message-Id: <1105000779.94425.8.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port X-Virus-Scanned: by amavisd-new at over.ru Subject: USB CDRW, more or less solved X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: owner-freebsd-stable@freebsd.org Errors-To: owner-freebsd-stable@freebsd.org X-Virus-Scanned: by amavisd-new at mail.sub.ru X-Spam-Status: No, hits=0.646 tagged_above=-99 required=3.5 tests=AWL, RCVD_FROM_UNKNOWN X-Spam-Level: Content-Transfer-Encoding: 7bit Hello! I've patched usbdevs and umass.c so 5.3-RELEASE works with ACER external CDRW; with ehci, I've managed to record CDs at 40x speed or so. Where should I submit the patch? And, just curious, why AOPEN device get 0x04b4 vendor id, which is marked CYPRESS in usbdevs? -- Alex Povolotsky _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" --=-LXvxz8I3ZCsHUrqHVEq9-- From owner-freebsd-usb@FreeBSD.ORG Sat Jan 8 09:31:12 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A237B16A4CE for ; Sat, 8 Jan 2005 09:31:12 +0000 (GMT) Received: from pimout1-ext.prodigy.net (pimout1-ext.prodigy.net [207.115.63.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3143543D1D for ; Sat, 8 Jan 2005 09:31:10 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [192.168.1.102] (adsl-216-100-134-143.dsl.snfc21.pacbell.net [216.100.134.143])j089V5jb173658; Sat, 8 Jan 2005 04:31:08 -0500 Message-ID: <41DFA856.1060506@elischer.org> Date: Sat, 08 Jan 2005 01:31:02 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8a3) Gecko/20041017 X-Accept-Language: en, hu MIME-Version: 1.0 To: Alex Povolotsky References: <1105167241.94425.27.camel@localhost> In-Reply-To: <1105167241.94425.27.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: usb@freebsd.org Subject: Re: [Fwd: USB CDRW, more or less solved] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 09:31:12 -0000 Alex Povolotsky wrote: > > ------------------------------------------------------------------------ > > Subject: > USB CDRW, more or less solved > From: > Alex Povolotsky > Date: > Thu, 06 Jan 2005 11:39:39 +0300 > To: > stable@freebsd.org > > To: > stable@freebsd.org > > > Hello! > > I've patched usbdevs and umass.c so 5.3-RELEASE works with ACER external > CDRW; with ehci, I've managed to record CDs at 40x speed or so. > > Where should I submit the patch? send a 'pr'. the newest versions have an option of "usb". if you don't have that option select "kern" let the usb list know the number. > > And, just curious, why AOPEN device get 0x04b4 vendor id, which is > marked CYPRESS in usbdevs? Cypress make the chips? Aopen OEM the device? > > > > ------------------------------------------------------------------------ > > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Sat Jan 8 11:50:09 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5F7916A4CE for ; Sat, 8 Jan 2005 11:50:09 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2E7743D31 for ; Sat, 8 Jan 2005 11:50:09 +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 j08Bo9Db040480 for ; Sat, 8 Jan 2005 11:50:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j08Bo9GK040473; Sat, 8 Jan 2005 11:50:09 GMT (envelope-from gnats) Date: Sat, 8 Jan 2005 11:50:09 GMT Message-Id: <200501081150.j08Bo9GK040473@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Arne "Wörner" Subject: Re: usb/75928: Cytronix SmartMedia card (SMC) reader has problems when card changed X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Arne Wörner List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 11:50:09 -0000 The following reply was made to PR usb/75928; it has been noted by GNATS. From: Arne "Wörner" To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: usb/75928: Cytronix SmartMedia card (SMC) reader has problems when card changed Date: Sat, 8 Jan 2005 03:43:33 -0800 (PST) I just found out, that a "camcontrol reset" is sufficient to make the device "configured" again. neo# dd if=/dev/da0 of=/dev/null count=1 bs=4096k dd: /dev/da0: Device not configured neo# camcontrol reset 0:0:0 Reset of 0:0:0 was successful neo# dd if=/dev/da0 of=/dev/null count=1 bs=4096k 1+0 records in 1+0 records out 4194304 bytes transferred in 4.222641 secs (993289 bytes/sec) __________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 From owner-freebsd-usb@FreeBSD.ORG Sat Jan 8 14:10:14 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8F6116A4CE for ; Sat, 8 Jan 2005 14:10:14 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF68F43D49 for ; Sat, 8 Jan 2005 14:10:14 +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 j08EAEaT058709 for ; Sat, 8 Jan 2005 14:10:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j08EAE1h058707; Sat, 8 Jan 2005 14:10:14 GMT (envelope-from gnats) Resent-Date: Sat, 8 Jan 2005 14:10:14 GMT Resent-Message-Id: <200501081410.j08EAE1h058707@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sergio Jorde Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90B3516A4CF for ; Sat, 8 Jan 2005 14:01:22 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CD6F43D46 for ; Sat, 8 Jan 2005 14:01:22 +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 j08E1LSM054182 for ; Sat, 8 Jan 2005 14:01:21 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j08E1L7Y054181; Sat, 8 Jan 2005 14:01:21 GMT (envelope-from nobody) Message-Id: <200501081401.j08E1L7Y054181@www.freebsd.org> Date: Sat, 8 Jan 2005 14:01:21 GMT From: Sergio Jorde To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: usb/75941: system halted during booting due to ehci X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 14:10:15 -0000 >Number: 75941 >Category: usb >Synopsis: system halted during booting due to ehci >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jan 08 14:10:14 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Sergio Jorde >Release: 5.3-p4 >Organization: >Environment: FreeBSD localhost.localdomain 5.3-RELEASE-p4 FreeBSD 5.3-RELEASE-p4 #4: Fri Jan 7 16:54:17 CET 2005 darksidex@localhost.localdomain:/usr/obj/usr/src/sys/DARKSIDEX i386 >Description: If I boot my computer with my USB20 HD powered on, the system gives the next problem: Fatal trap 12: page fault while in kernel fault virtual address = 0x21 fault code = Supervisor read, page not present instruction pointer = 0x8:0xc044f50c stack pointer = 0x10:0xd57d7c58 frame pointer = 0x10:0xd57d7c58 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 36 (swi5: clock sio) trap number = 12 panic: page fault Uptime: 14s This only happens since I compiled my kernel with ehci support. The HD size is 186GB, and it has two FAT32 partions (90Gb + 90Gb). >How-To-Repeat: Every time I boot my FBSD box with my external HD powered on. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sat Jan 8 21:26:40 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD6A516A4CE for ; Sat, 8 Jan 2005 21:26:39 +0000 (GMT) Received: from above.proper.com (above.proper.com [208.184.76.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DF7043D39 for ; Sat, 8 Jan 2005 21:26:39 +0000 (GMT) (envelope-from phoffman@proper.com) Received: from [10.20.30.249] (dsl2-63-249-109-3.cruzio.com [63.249.109.3]) (authenticated bits=0) by above.proper.com (8.12.11/8.12.9) with ESMTP id j08LQXsh034217 for ; Sat, 8 Jan 2005 13:26:34 -0800 (PST) (envelope-from phoffman@proper.com) Mime-Version: 1.0 Message-Id: Date: Sat, 8 Jan 2005 13:26:36 -0800 To: freebsd-usb@freebsd.org From: Paul Hoffman Content-Type: text/plain; charset="us-ascii" ; format="flowed" Subject: Getting USB2 on FreeBSD 5.3? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 21:26:40 -0000 [[ Copied and amended from the thread of similar name on freebsd-questions. ]] Greetings again. I have a no-name USB 2 controller card in my server running FreeBSD 5.3. I rebuilt the kernel with the ehci driver (simply by adding a line to copy of GENERIC and rebuilding). The box already has two USB 1 ports. The dmesg says: . . . ohci0: mem 0xfe123000-0xfe123fff irq 18 at device 3.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0 usb0: on ohci0 usb0: USB revision 1.0 uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ohci1: mem 0xfe122000-0xfe122fff irq 19 at device 3.1 on pci0 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0 usb1: on ohci1 usb1: USB revision 1.0 uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered ehci0: mem 0xfe124000-0xfe1240ff irq 18 at device 3.2 on pci0 ehci0: [GIANT-LOCKED] ehci_pci_attach: companion usb0 ehci_pci_attach: companion usb1 usb2: EHCI version 0.95 usb2: companion controllers, 3 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub2: 5 ports with 5 removable, self powered . . . ohci2: mem 0xfe120000-0xfe120fff irq 3 at device 15.2 on pci0 ohci2: [GIANT-LOCKED] usb3: OHCI version 1.0, legacy support usb3: SMM does not respond, resetting usb3: on ohci2 usb3: USB revision 1.0 uhub3: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered When I plug in a USB 2 IDE adapter to the USB 2 card, I see: umass0: Myson Century, Inc. USB Mass Storage Device, rev 2.00/a3.01, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 114473MB (234441648 512 byte sectors: 255H 63S/T 14593C) The transfers happen at USB 1, not USB 2 speeds, which is of course not what I want. I can't tell why da0 is getting the slow (USB 1) mode. I also can't figure out what the heck ohci2 is; there is only the on-board USB 1 ports (which I assume are ohci0 and ohci1) and the card (which is clearly ehci0). Is ohci2 possibly also running on the add-in card and stomping on ehci0? I guess a related question is how can I tell what device umass0 thinks it is plugged into? [[ Robert Huff replied: The last I remember, the ehci driver was closer to alpha than beta quality (as in both flakey and feature-sparse). You should probably check the usb@ mailing list archives and even the commit logs for more information. ]] [[ John Wilson replied: For what it's worth, I too am using ehci with a USB2 HD based MP3 player, and it is being reported similarly as well in regard to the 1.000MB/s transfer rate. However, according to `systat -vmstat`, I am seeing transfers in the area of 8MB/s. In regard to stability, I've had no issues at all with it. I'm sure this doesn't help at all. ;p ]] [[ I replied: Actually, it helps some. I am seeing similar results (well, 7.1 MB/s), so this is a bit heartening. But it doesn't explain why we're not seeing the 50 MB/s we're supposed to be seeing. ]] So, my question to the USB-specific list is: what should I be doing differently to get closer to the 50MB/sec expected from USB2? --Paul Hoffman From owner-freebsd-usb@FreeBSD.ORG Sat Jan 8 21:47:37 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0129216A4CE for ; Sat, 8 Jan 2005 21:47:37 +0000 (GMT) Received: from web41207.mail.yahoo.com (web41207.mail.yahoo.com [66.218.93.40]) by mx1.FreeBSD.org (Postfix) with SMTP id BCEAE43D2F for ; Sat, 8 Jan 2005 21:47:36 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 39210 invoked by uid 60001); 8 Jan 2005 21:47:36 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=HYN6tyD0KcfpwWpa3OFPkCrpKOMCGoj+L9y1yx/ybGAEGugjGTz/NiBPCZxYyqyB40qjgkKFiT8TiCk+zph6EK6zo2++gZ1ZfQx1RJFZg8LY8+TMR0slxxYGaMs0lj0C0wDNIqPI6+ySdhQR0lu7vpzkaYrBfTy+BU8JWl2Bgtk= ; Message-ID: <20050108214736.39208.qmail@web41207.mail.yahoo.com> Received: from [83.129.173.89] by web41207.mail.yahoo.com via HTTP; Sat, 08 Jan 2005 13:47:36 PST Date: Sat, 8 Jan 2005 13:47:36 -0800 (PST) From: Arne "Wörner" To: Paul Hoffman , freebsd-usb@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Getting USB2 on FreeBSD 5.3? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 21:47:37 -0000 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-0 device > da0: 1.000MB/s transfers > I thought, USB1.1 can do 1.5Mbytes/sec and USB2 can do 480Mbit/sec (I read it in advertisements for USB devices). Why does da0 say, that it can do just 1MBytes/sec? > [[ I replied: > Actually, it helps some. I am seeing similar results (well, 7.1 > MB/s), so this is a bit heartening. But it doesn't explain why > we're not seeing the 50 MB/s we're supposed to be seeing. ]] > 480/8 is 60, isn't it? So we should see 60 MB/s, or is it just marketing talk? I like it, when FreeBSD is nearly as fast as possible (several years ago some FreeBSD NIC drivers were quite efficient). I am wondering, why my USB1.1 Cytronix SmartMedia card reader does not more than 1MBytes/sec... I just wanted to point out some little aspects of the problem... -Arne __________________________________ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250 From owner-freebsd-usb@FreeBSD.ORG Sat Jan 8 22:25:50 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C8D916A4CE for ; Sat, 8 Jan 2005 22:25:50 +0000 (GMT) Received: from pimout2-ext.prodigy.net (pimout2-ext.prodigy.net [207.115.63.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DFF743D45 for ; Sat, 8 Jan 2005 22:25:49 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [192.168.1.102] (adsl-216-100-134-143.dsl.snfc21.pacbell.net [216.100.134.143])j08MPkXO437352; Sat, 8 Jan 2005 17:25:47 -0500 Message-ID: <41E05DE6.2060403@elischer.org> Date: Sat, 08 Jan 2005 14:25:42 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8a3) Gecko/20041017 X-Accept-Language: en, hu MIME-Version: 1.0 To: Paul Hoffman References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: Getting USB2 on FreeBSD 5.3? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 22:25:50 -0000 Paul Hoffman wrote: > [[ Copied and amended from the thread of similar name on > freebsd-questions. ]] > > Greetings again. I have a no-name USB 2 controller card in my server > running FreeBSD 5.3. I rebuilt the kernel with the ehci driver (simply > by adding a line to copy of GENERIC and rebuilding). The box already has > two USB 1 ports. The dmesg says: > > . . . > ohci0: mem 0xfe123000-0xfe123fff irq 18 at > device 3.0 on pci0 > ohci0: [GIANT-LOCKED] > usb0: OHCI version 1.0 > usb0: on ohci0 > usb0: USB revision 1.0 > uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub0: 3 ports with 3 removable, self powered > ohci1: mem 0xfe122000-0xfe122fff irq 19 at > device 3.1 on pci0 > ohci1: [GIANT-LOCKED] > usb1: OHCI version 1.0 > usb1: on ohci1 > usb1: USB revision 1.0 > uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub1: 2 ports with 2 removable, self powered > ehci0: mem 0xfe124000-0xfe1240ff irq > 18 at device 3.2 on pci0 > ehci0: [GIANT-LOCKED] > ehci_pci_attach: companion usb0 > ehci_pci_attach: companion usb1 > usb2: EHCI version 0.95 > usb2: companion controllers, 3 ports each: usb0 usb1 > usb2: on ehci0 > usb2: USB revision 2.0 > uhub2: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 > uhub2: 5 ports with 5 removable, self powered > . . . > ohci2: mem 0xfe120000-0xfe120fff irq 3 > at device 15.2 on pci0 > ohci2: [GIANT-LOCKED] > usb3: OHCI version 1.0, legacy support > usb3: SMM does not respond, resetting > usb3: on ohci2 > usb3: USB revision 1.0 > uhub3: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub3: 2 ports with 2 removable, self powered > > When I plug in a USB 2 IDE adapter to the USB 2 card, I see: > > umass0: Myson Century, Inc. USB Mass Storage Device, rev 2.00/a3.01, addr 2 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-0 device > da0: 1.000MB/s transfers > da0: 114473MB (234441648 512 byte sectors: 255H 63S/T 14593C) > > The transfers happen at USB 1, not USB 2 speeds, which is of course not > what I want. how do you tell they happen at USB1 speeds? > > I can't tell why da0 is getting the slow (USB 1) mode. I also can't > figure out what the heck ohci2 is; there is only the on-board USB 1 > ports (which I assume are ohci0 and ohci1) and the card (which is > clearly ehci0). Is ohci2 possibly also running on the add-in card and > stomping on ehci0? the EHCI spec says that an EHCI controller will also contain N USB1 controllers (ohci OR uhci) to handle USB1 devices. the devices are switched to teh USB1 or USB 2 controller automatically by the hardware. > > I guess a related question is how can I tell what device umass0 thinks > it is plugged into? You need to run usbdevs to see what is plugged in where. > > [[ Robert Huff replied: > The last I remember, the ehci driver was closer to alpha than > beta quality (as in both flakey and feature-sparse). You should > probably check the usb@ mailing list archives and even the commit > logs for more information. > ]] > > [[ John Wilson replied: > For what it's worth, I too am using ehci with a USB2 HD based MP3 > player, and > it is being reported similarly as well in regard to the 1.000MB/s transfer > rate. However, according to `systat -vmstat`, I am seeing transfers in the > area of 8MB/s. In regard to stability, I've had no issues at all with it. > I'm sure this doesn't help at all. ;p don't trust the reported speed in dmesg.. it is almost always wrong. > ]] > > [[ I replied: > Actually, it helps some. I am seeing similar results (well, 7.1 > MB/s), so this is a bit heartening. But it doesn't explain why we're > not seeing the 50 MB/s we're supposed to be seeing. > ]] you may get more in -current.. I'e seen 25MB/sec 50MB/sec is approachinghte theoretical maximum for bulk xfers and I doubt you'll see that in practice. > > So, my question to the USB-specific list is: what should I be doing > differently to get closer to the 50MB/sec expected from USB2? > > --Paul Hoffman > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Sat Jan 8 22:46:21 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E62E216A4CE for ; Sat, 8 Jan 2005 22:46:20 +0000 (GMT) Received: from pimout2-ext.prodigy.net (pimout2-ext.prodigy.net [207.115.63.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A5ED43D1D for ; Sat, 8 Jan 2005 22:46:20 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [192.168.1.102] (adsl-216-100-134-143.dsl.snfc21.pacbell.net [216.100.134.143])j08MkIXO218454; Sat, 8 Jan 2005 17:46:18 -0500 Message-ID: <41E062B9.3010500@elischer.org> Date: Sat, 08 Jan 2005 14:46:17 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8a3) Gecko/20041017 X-Accept-Language: en, hu MIME-Version: 1.0 To: =?ISO-8859-1?Q?=22Arne_=5C=22W=F6rner=5C=22=22?= References: <20050108214736.39208.qmail@web41207.mail.yahoo.com> In-Reply-To: <20050108214736.39208.qmail@web41207.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit cc: freebsd-usb@freebsd.org Subject: Re: Getting USB2 on FreeBSD 5.3? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 22:46:21 -0000 Arne Wörner wrote: >>da0 at umass-sim0 bus 0 target 0 lun 0 >>da0: Fixed Direct Access SCSI-0 device >>da0: 1.000MB/s transfers ignore this.. USB doesn't yet know how to tell CAM that it can do more.. >> > > I thought, USB1.1 can do 1.5Mbytes/sec and USB2 can do 480Mbit/sec > (I read it in advertisements for USB devices). > > Why does da0 say, that it can do just 1MBytes/sec? because code to say otherwise hasn't been written yet. > > >>[[ I replied: >>Actually, it helps some. I am seeing similar results (well, 7.1 >>MB/s), so this is a bit heartening. But it doesn't explain why >>we're not seeing the 50 MB/s we're supposed to be seeing. ]] >> > > 480/8 is 60, isn't it? So we should see 60 MB/s, or is it just > marketing talk? I like it, when FreeBSD is nearly as fast as > possible (several years ago some FreeBSD NIC drivers were quite > efficient). there are tremendous overheads in USB. especially in 1.1 all data transfers (in 1.1) are broken down to 64 byte transfers and each transfer has a lot of overhead.. 12Mb/sec, yes, but for data trsfers the maximum efficiency you can get is 82% so effectively that is 9840000 bits/sec or 1.23MB/sec. and that would be the ABSOLUTE MAXIMUM you would see.. for USB2.0 it's a bit better.. you can see up to 92% efficiency, but that assumes you have no turnaround time, of command processing times. USB2.0 allows bulk data transfers to be broken down into packets of upto 512 bytes which helps the efficiency a lot as the overhead per packet is somewher around 55 bytes worth. there are lots of other factors.. for example, we can only receive upto 8000 intrrupts per second, (currently actually only 4000) and with current code that is one transaction per interrupt, where a disk read is at least 2 transactions.. request for data, data limiting you to around 2000 transactions per second.. if you are reading 16KB/read that is 32MB max.. ANd I have a suspicion that many transactions are 3 actual USB transactions meaning that at 4000 interupts per second we may be limiting ourselves to 1300 reads per sec which at 16KB per read would be aroung 22MB/sec. and I doubt we are that efficient yet.. its still early days. There are ways to: 1/ do more transactions per interrupt. 2/ do the 3 transactions more efficiently. 3/ do more interrupts per second (the EHCI spec allows upto 8000). > > I am wondering, why my USB1.1 Cytronix SmartMedia card reader does > not more than 1MBytes/sec... See above. > > I just wanted to point out some little aspects of the problem... > > -Arne > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - Easier than ever with enhanced search. Learn more. > http://info.mail.yahoo.com/mail_250 > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Sat Jan 8 23:11:00 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D16A16A4CE for ; Sat, 8 Jan 2005 23:11:00 +0000 (GMT) Received: from above.proper.com (above.proper.com [208.184.76.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE89943D2F for ; Sat, 8 Jan 2005 23:10:59 +0000 (GMT) (envelope-from phoffman@proper.com) Received: from [10.20.30.249] (dsl2-63-249-109-3.cruzio.com [63.249.109.3]) (authenticated bits=0) by above.proper.com (8.12.11/8.12.9) with ESMTP id j08NAlIt084343; Sat, 8 Jan 2005 15:10:48 -0800 (PST) (envelope-from phoffman@proper.com) Mime-Version: 1.0 Message-Id: In-Reply-To: <41E05DE6.2060403@elischer.org> References: <41E05DE6.2060403@elischer.org> Date: Sat, 8 Jan 2005 15:10:50 -0800 To: Julian Elischer From: Paul Hoffman Content-Type: text/plain; charset="us-ascii" ; format="flowed" cc: freebsd-usb@freebsd.org Subject: Re: Getting USB2 on FreeBSD 5.3? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 23:11:00 -0000 Thanks for all the info! At 2:25 PM -0800 1/8/05, Julian Elischer wrote: >how do you tell they happen at USB1 speeds? That was my assumption from the message about 1MB/sec transfers; as I said later, I can see that I'm actually getting about 7MB/sec. >>I can't tell why da0 is getting the slow (USB 1) mode. I also can't >>figure out what the heck ohci2 is; there is only the on-board USB 1 >>ports (which I assume are ohci0 and ohci1) and the card (which is >>clearly ehci0). Is ohci2 possibly also running on the add-in card >>and stomping on ehci0? > >the EHCI spec says that an EHCI controller will also contain N USB1 >controllers (ohci OR uhci) to handle USB1 devices. the devices are switched >to teh USB1 or USB 2 controller automatically by the hardware. Thanks, I missed that. >>I guess a related question is how can I tell what device umass0 >>thinks it is plugged into? > >You need to run usbdevs to see what is plugged in where. Thanks, I missed that. >>[[ I replied: >>Actually, it helps some. I am seeing similar results (well, 7.1 >>MB/s), so this is a bit heartening. But it doesn't explain why we're >>not seeing the 50 MB/s we're supposed to be seeing. >>]] > >you may get more in -current.. I'e seen 25MB/sec OK, a kinda-newbie question: given that this is a production machine, can I grab just the ehci-related files from -current and fairly-safely build them into the kernel? If so, how? What is the correct list of files to use? >50MB/sec is approachinghte theoretical maximum for bulk xfers >and I doubt you'll see that in practice. Fully understood. Even getting 15MB/sec would be a big improvement for me, given that I'm using the device as a backup for very large datasets. --Paul Hoffman