From owner-freebsd-usb@FreeBSD.ORG Sun Jan 20 13:02:46 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E421616A419; Sun, 20 Jan 2008 13:02:46 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BD25B13C4D3; Sun, 20 Jan 2008 13:02:46 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from freefall.freebsd.org (kris@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0KD2k5m042696; Sun, 20 Jan 2008 13:02:46 GMT (envelope-from kris@freefall.freebsd.org) Received: (from kris@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0KD2jDB042670; Sun, 20 Jan 2008 13:02:45 GMT (envelope-from kris) Date: Sun, 20 Jan 2008 13:02:45 GMT Message-Id: <200801201302.m0KD2jDB042670@freefall.freebsd.org> To: puga@mauibuilt.com, kris@FreeBSD.org, freebsd-usb@FreeBSD.org From: kris@FreeBSD.org Cc: Subject: Re: usb/116898: panic: sleeping thread while using USB hard drive X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jan 2008 13:02:47 -0000 Synopsis: panic: sleeping thread while using USB hard drive State-Changed-From-To: open->feedback State-Changed-By: kris State-Changed-When: Sun Jan 20 13:02:34 UTC 2008 State-Changed-Why: Feedback required http://www.freebsd.org/cgi/query-pr.cgi?pr=116898 From owner-freebsd-usb@FreeBSD.ORG Sun Jan 20 13:10:05 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54AA816A418 for ; Sun, 20 Jan 2008 13:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 455D813C442 for ; Sun, 20 Jan 2008 13:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0KDA548043609 for ; Sun, 20 Jan 2008 13:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0KDA5Mk043605; Sun, 20 Jan 2008 13:10:05 GMT (envelope-from gnats) Date: Sun, 20 Jan 2008 13:10:05 GMT Message-Id: <200801201310.m0KDA5Mk043605@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Kris Kennaway Cc: Subject: Re: misc/116898: panic: sleeping thread while using USB hard drive X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Kris Kennaway List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jan 2008 13:10:05 -0000 The following reply was made to PR usb/116898; it has been noted by GNATS. From: Kris Kennaway To: Richard Puga Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: misc/116898: panic: sleeping thread while using USB hard drive Date: Sun, 20 Jan 2008 14:02:16 +0100 Richard Puga wrote: > The errors on the screen which dont make it to the log are; > > sleeping thread (tid 100015, pid 19) owns a non-sleepable-lock > panic: sleeping thread > cpuid=1 > > and > > panic: Trying sleep, but thread marked as sleeping prohimited > cpuid=0 > [thread pid 13 tid 100002] > stoped at kbd-enter + ox32: leave db7 >> How-To-Repeat: > backup to a usb drive, the problem will occur anywhere from 5 minutes to 5 hours. >> Fix: Please follow up with the steps described here to complete your PR so that someone can begin to look at it: http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.html Kris From owner-freebsd-usb@FreeBSD.ORG Sun Jan 20 14:20:03 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F59616A417 for ; Sun, 20 Jan 2008 14:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 040CF13C442 for ; Sun, 20 Jan 2008 14:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0KEK2G6050070 for ; Sun, 20 Jan 2008 14:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0KEK2Ds050069; Sun, 20 Jan 2008 14:20:02 GMT (envelope-from gnats) Date: Sun, 20 Jan 2008 14:20:02 GMT Message-Id: <200801201420.m0KEK2Ds050069@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Peter Schuller Cc: Subject: Re: usb/94166: btx halted with a flashcard plugged X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Peter Schuller List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jan 2008 14:20:03 -0000 The following reply was made to PR usb/94166; it has been noted by GNATS. From: Peter Schuller To: bug-followup@freebsd.org, patrice@idea.dnsalias.net Cc: Subject: Re: usb/94166: btx halted with a flashcard plugged Date: Sun, 20 Jan 2008 15:10:47 +0100 --nextPart1312543.XZpN1zF4hv Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =46WIW: I get the same error trying to boot either a USB flash stick or a USB hard= =20 drive on one of my machines (a quad-core c2d). It's a FreeBSD 7 system on=20 both, but one of the boot0cfg installed blocks come from a 7 system and the= =20 other from a 6.1 or 6.2 (I do not remember which - this was months ago that= I=20 initially created it). In the case of the USB flash stick, the exact same stick is bootable on my= =20 ThinkPad T40p laptop. Interestingly, even though both the stick and the drive are sliced (fdisk -= BI=20 device), no slice/partition (whatever you prefer) is visible when booting a= =20 grub CD and tab-completing the hard drives. That is, the drives (the flash= =20 stick and the USB hard drive respectively) are visible, but grub does not=20 feel they contain a slice). Could the BTX problem be a result of whatever it is that is causing the sli= ces=20 to be invisible from what I presume to be the BIOS perspective? =2D-=20 / Peter Schuller PGP userID: 0xE9758B7D or 'Peter Schuller ' Key retrieval: Send an E-Mail to getpgpkey@scode.org E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org --nextPart1312543.XZpN1zF4hv Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHk1ZoDNor2+l1i30RArSjAJ0U06IVI+749WgWq/4Bi9TnH5/nvgCfWwF8 Gz7E/o41FH+0V5Fj52ZpVmI= =PNH3 -----END PGP SIGNATURE----- --nextPart1312543.XZpN1zF4hv-- From owner-freebsd-usb@FreeBSD.ORG Sun Jan 20 17:34:51 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1F7416A41A for ; Sun, 20 Jan 2008 17:34:51 +0000 (UTC) (envelope-from mi@aldan.algebra.com) Received: from romulan2.deckpoint.ch (romulan3.deckpoint.ch [194.38.160.11]) by mx1.freebsd.org (Postfix) with ESMTP id 4835513C45B for ; Sun, 20 Jan 2008 17:34:50 +0000 (UTC) (envelope-from mi@aldan.algebra.com) Received: from vaio.virtual-estates.net (ppp-69-180-38-194.adsl.deckpoint.net [194.38.180.69]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by romulan2.deckpoint.ch (DeckMail) with ESMTP id 536856CCB7D for ; Sun, 20 Jan 2008 18:07:13 +0100 (CET) Received: from vaio.virtual-estates.net (localhost [127.0.0.1]) by vaio.virtual-estates.net (8.14.2/8.13.7) with ESMTP id m0KH6Wsb020393; Sun, 20 Jan 2008 17:06:33 GMT (envelope-from mi@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by vaio.virtual-estates.net (8.14.2/8.13.7/Submit) id m0KH6Ur0020392; Sun, 20 Jan 2008 17:06:30 GMT (envelope-from mi@aldan.algebra.com) X-Authentication-Warning: vaio.virtual-estates.net: mi set sender to mi@aldan.algebra.com using -f From: "Mikhail T." To: "Kirk Davis" Date: Sun, 20 Jan 2008 17:06:29 +0000 User-Agent: KMail/1.9.7 References: <200801090114.56195@aldan> <200801091015.17730@aldan> In-Reply-To: X-Face: %UW#n0|w>ydeGt/b@1-.UFP=K^~-:0f#O:D7whJ5G_<5143Bb3kOIs9XpX+"V+~$adGP:J|SLieM31VIhqXeLBli"<=?koi8-u?q?kcG=5EEOVihy+z3/UR=7B6SCQ=0A?= MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-u" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200801201706.30461@Misha> Cc: freebsd-usb@freebsd.org Subject: Re: BlackBerry (Re: using libusb) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jan 2008 17:34:51 -0000 =D0=CF=CE=C5=C4=A6=CC=CF=CB 14 =D3=A6=DE=C5=CE=D8 2008, Kirk Davis, =F7=C9 = =CE=C1=D0=C9=D3=C1=CC=C9: =3D =9A I have ported the uberry driver from OpenBSD over to FreeBSD. =9AI = have =3D done a lot of changed and support for the new devices and am just =3D working on some final changed before submitting it. =9AI abandoned the =3D linux uberry driver as I didn't like the inteaction with libusb and =3D running it from userspace. Thanks, Kirk. Without knowing the details of your work, I can only emphasis= e=20 once again, the API-compatibility with (the Linuxish) libusb is an absolute= =20 requirement. I'm sure, the API can be argued to be lacking in some respect or another. I= 'd=20 also accept the validity of arguments for making kernel-drivers for various= =20 devices (such as uberry) instead of exposing them as ugen and letting the=20 user-space software deal with them. However, without the libusb API-compatibility AND the sysctl-compatibility = for=20 Linuxulator we will not be able to compile/run the applications written for= =20 Linux (Solaris?). Some time ago BSD decided to go its own way with video instead of adopting = the=20 video4linux framework. I don't know the arguments leading that decision, bu= t=20 I'm quite certain, they were and remain sound... Unfortunately, it also mea= nt=20 incompatibility with Linux-targeted apps, and we should not repeat the same= =20 mistake with USB. uberry(4) is nice, but libusb is a must... -mi From owner-freebsd-usb@FreeBSD.ORG Sun Jan 20 20:28:50 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D24D816A420 for ; Sun, 20 Jan 2008 20:28:50 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outX.internet-mail-service.net (outX.internet-mail-service.net [216.240.47.247]) by mx1.freebsd.org (Postfix) with ESMTP id C191D13C4D1 for ; Sun, 20 Jan 2008 20:28:50 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Sun, 20 Jan 2008 12:15:34 -0800 Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 529E9126F75; Sun, 20 Jan 2008 12:15:34 -0800 (PST) Message-ID: <4793ABE5.7010101@elischer.org> Date: Sun, 20 Jan 2008 12:15:33 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: "Mikhail T." References: <200801090114.56195@aldan> <200801091015.17730@aldan> <200801201706.30461@Misha> In-Reply-To: <200801201706.30461@Misha> Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 8bit Cc: Kirk Davis , freebsd-usb@freebsd.org Subject: Re: BlackBerry (Re: using libusb) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jan 2008 20:28:50 -0000 Mikhail T. wrote: > понед╕лок 14 с╕чень 2008, Kirk Davis, Ви написали: > = I have ported the uberry driver from OpenBSD over to FreeBSD. I have > = done a lot of changed and support for the new devices and am just > = working on some final changed before submitting it. I abandoned the > = linux uberry driver as I didn't like the inteaction with libusb and > = running it from userspace. > > Thanks, Kirk. Without knowing the details of your work, I can only emphasise > once again, the API-compatibility with (the Linuxish) libusb is an absolute > requirement. > > I'm sure, the API can be argued to be lacking in some respect or another. I'd > also accept the validity of arguments for making kernel-drivers for various > devices (such as uberry) instead of exposing them as ugen and letting the > user-space software deal with them. > > However, without the libusb API-compatibility AND the sysctl-compatibility for > Linuxulator we will not be able to compile/run the applications written for > Linux (Solaris?). > > Some time ago BSD decided to go its own way with video instead of adopting the > video4linux framework. I don't know the arguments leading that decision, but > I'm quite certain, they were and remain sound... Unfortunately, it also meant > incompatibility with Linux-targeted apps, and we should not repeat the same > mistake with USB. we did not decide to not go with it...we just never did it.. there have been serveral attempts to get a v4l2 in FreeBSD but they all stalled for ENOTIME. there is even one that basically worked but never got integrated. It's in perforce somewhere. > > uberry(4) is nice, but libusb is a must... > > -mi > > _______________________________________________ > 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 21 05:50:03 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5568416A419 for ; Mon, 21 Jan 2008 05:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 400B813C448 for ; Mon, 21 Jan 2008 05:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0L5o2Ce023392 for ; Mon, 21 Jan 2008 05:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0L5o2ct023391; Mon, 21 Jan 2008 05:50:02 GMT (envelope-from gnats) Date: Mon, 21 Jan 2008 05:50:02 GMT Message-Id: <200801210550.m0L5o2ct023391@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Richard Puga Cc: Subject: Re: usb/116898: panic: sleeping thread while using USB hard drive X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Richard Puga List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2008 05:50:03 -0000 The following reply was made to PR usb/116898; it has been noted by GNATS. From: Richard Puga To: bug-followup@FreeBSD.org, puga@mauibuilt.com Cc: Subject: Re: usb/116898: panic: sleeping thread while using USB hard drive Date: Sun, 20 Jan 2008 19:25:37 -1000 This is all I get from the debugger mauibuilt /usr/src/sys/i386/compile/MAUIBUILT 181% kgdb kernel.debug /var/crash/vmcore.1 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd". Cannot access memory at address 0xc7b4 (kgdb) all 3 core dumps have the same memory error.. the machine has never showed signs of memory problems or rebooots other than the usb problem, neither have 5 other machine that have had the problem. I posted a link to the core dumps which ae still avalible online in case I did somthing wrong. Please inform me of what I have to do in order to complete this. Thank you Richard Puga From owner-freebsd-usb@FreeBSD.ORG Mon Jan 21 11:07:10 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2882016A418 for ; Mon, 21 Jan 2008 11:07:10 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0E54113C442 for ; Mon, 21 Jan 2008 11:07:10 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0LB7A8O047173 for ; Mon, 21 Jan 2008 11:07:10 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0LB79BI047169 for freebsd-usb@FreeBSD.org; Mon, 21 Jan 2008 11:07:09 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 21 Jan 2008 11:07:09 GMT Message-Id: <200801211107.m0LB79BI047169@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2008 11:07:10 -0000 Current FreeBSD problem reports Critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa o usb/91629 usb usbd_abort_pipe() may result in infinite loop 2 problems total. Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/46176 usb [panic] umass causes kernel panic if device removed be o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o bin/57255 usb usbd and multi-function devices o usb/63621 usb [usb] USB MemoryStick Reader stalls/crashes system o usb/69006 usb [patch] Apple Cinema Display hangs USB ports o usb/71155 usb [usb] misbehaving usb-printer hangs processes, causes o usb/73307 usb [panic] Kernel panics on USB disconnect o usb/74771 usb [umass] mounting write-protected umass device as read/ o usb/75705 usb [panic] da0 attach / Optio S4 (with backtrace) o usb/75797 usb 5.3-STABLE(2005 1/4) detect USB headset, But can not f o usb/76395 usb USB printer does not work, usbdevs says "addr 0 should o usb/77184 usb [panic] kernel panic on USB device disconnect o usb/77294 usb [ulpcom] [panic] ucom + ulpcom panic o usb/79269 usb USB ohci da0 plug/unplug causes crashes and lockups. o usb/79287 usb [uhci] UHCI hang after interrupt transfer o usb/79524 usb printing to Minolta PagePro 1[23]xxW via USB fails wit a usb/79656 usb [usb] RHSC interrupts lost o usb/79722 usb [usb] wrong alignments in ehci.h o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/80361 usb [patch] mounting of usb-stick fails o usb/80829 usb possible panic when loading USB-modules o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/82350 usb [usb] null pointer dereference in USB stack o usb/82520 usb Reboot when USL101 connected s usb/82569 usb [usb] USB mass storage plug/unplug causes system panic o usb/82660 usb [umass] [panic] EHCI: I/O stuck in state 'physrd'/pani o usb/83563 usb [panic] Page Fault while detaching Mpman Usb device o usb/83677 usb [usb] usb controller often not detected (Sun W2100z) o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/86767 usb [usb] [patch] bogus "slice starts beyond end of the di o usb/88743 usb [hang] USB makes kernel hang at boot (regression in 6. o usb/88966 usb [modules] kldunload ucom.ko returns "Device busy" erro o usb/89003 usb LaCie Firewire drive not properly supported under 6.0 o usb/89954 usb [usb] USB Disk driver race condition? o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/91283 usb booting very slow with usb devices connection (regress o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91906 usb [hang] FreeBSD hangs while booting with USB legacy sup o usb/92052 usb [unlpt] usbd causes defunct process with busy file-han o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92142 usb SET_ADDR_FAILED and SHORT_XFER errors from usb drivers o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93640 usb [irq] device ehci causes interrupt storm on this MSI a o usb/93828 usb [panic] ohci causes panic on boot (HP Pavillion d4100e o usb/94166 usb btx halted with a flashcard plugged o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94813 usb [umass] mounting write-protected umass device freezes o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/95131 usb [install] Boot/setup process does not accept key strok o usb/95348 usb [kbd] USB keyboard unplug causes noise on screen o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb o usb/95636 usb [boot] 5 minute delay at boot when using VT6205 based o usb/96120 usb [mouse] USB mouse not always detected o usb/96224 usb [usb] mount_msdosfs cause page fault in syncer process o usb/96457 usb [panic] fatback on umass = reboot o usb/97286 usb [mouse] MS Wireless Intellimouse Explorer 2.0 doesn't o usb/99431 usb [kbd] FreeBSD on MSI 6566E (Intel 845E motherboards) d o usb/101096 usb [if_ural] [panic] USB WLAN occasionally causes kernel- o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/102096 usb [patch] /usr/sbin/usbd does not handle multiple device o usb/103025 usb [usb] wrong detection of USB device for FreeBSD 6.1 an o usb/104292 usb [hang] system lockup on forced umount of usb-storage d o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/105186 usb USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 crashes box o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106648 usb [hang] USB Floppy on D1950 10 min Hang on Insert w/o F o usb/106832 usb USB HP printer is not detected by kernel when ACPI ena o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107446 usb [umass] umass problems (usb and fw disks) o usb/107827 usb [panic] ohci_add_done addr not found o usb/107848 usb [umass] cannot access Samsung flash disk o usb/107924 usb [patch] usbd(8) does not call detach o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE (regr o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/109397 usb [panic] on boot from USB flash o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110988 usb [umass] [patch] Handling of quirk IGNORE_RESIDUE is um o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID o usb/112568 usb USB mode may wrong when mounting Playstation Pro o usb/112631 usb [panic] Problem with SONY DSC-S80 camera o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/113478 usb [boot] FreeBSD could not start on Core2Duo notebook fr o usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 o usb/113851 usb [boot] Unable to boot install cd from USB-CDROM o usb/113977 usb [feature request] Need a way to set mode of USB disk's o usb/114310 usb [panic] USB hub attachment panics kernel during libusb o usb/114682 usb USB media-card reader unusable o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/115298 usb Turning off USB printer panics kernel o usb/116561 usb RELENG_6 umodem panic "trying to sleep while sleeping o usb/116699 usb USB HID devices does not initialized at system boot o usb/116947 usb [patch] enable boot protocol on the USB keyboards o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117313 usb [panic] panic on usb camera attachment o usb/117613 usb uhci interrupt storm & USB leaked memory on destroy o usb/117719 usb umass plugging with hald running causes kernel panics o usb/117946 usb D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BETA2 o usb/117955 usb plugging minolta dimage a2 crashes os o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118141 usb usb serial and nokia phones ucomreadcb ucomreadcb: IOE o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118391 usb Add uscanner ID for Epson CX4800 o usb/118480 usb Timeout in USB mass storage freezes vfs layer or crash o usb/119018 usb HP ScanJet 4300C found as knowndev but not recognized o usb/119201 usb [patch] Quirksfor Olympus FE-210 camera, LG and Laser o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119509 usb USB flaky on Dell Optiplex 755 o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i 118 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem o usb/40948 usb [usb] USB HP CDW8200 does not work o usb/48342 usb [PATCH] usbd dynamic device list. f usb/51958 usb [urio] [patch] update for urio driver o usb/52026 usb [usb] feature request: umass driver support for InSyst o usb/56095 usb [usb] [patch] QUIRK: Apacer Pen Drive fails to work o usb/59698 usb [kbd] [patch] Rework of ukbd HID to AT code translatio o usb/62257 usb [umass] card reader UCR-61S2B is only half-supported o usb/63837 usb [uhid] [patch] USB: hid_is_collection() only looks for o usb/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops input on usb- o usb/66547 usb [usb] Palm Tungsten T USB does not initialize correctl o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/70523 usb [usb] [patch] umct sending/receiving wrong characters o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71455 usb [usb] Slow USB umass performance of 5.3 o usb/72380 usb [usb] USB does not work [dual Celeron Abit] o usb/72733 usb Kyocera 7135 Palm OS connection problem. o usb/73056 usb [usb] Sun Microsystems Type 6 USB mouse not working in o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R f usb/74453 usb [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL11R chip o usb/74557 usb imation 500mb usb key can only be written halfway on f o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75928 usb Cytronix SmartMedia card (SMC) reader has problems whe o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76732 usb Mouse problems with USB KVM Switch f usb/78984 usb [patch] Creative MUVO umass failure o usb/79723 usb [usb] prepare for high speed isochronous transfers o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80776 usb [udav] UDAV device driver shouldn't use usb_add_task o usb/80777 usb usb_rem_task() should wait for callback to complete? o usb/80854 usb suggestion for new iface-no-probe mechanism o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. f usb/81621 usb external hd hangs under load on ehci o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/85067 usb Cannot attach ScanJet 4300C to usb device o usb/85257 usb [boot] BTX boot loader fails on USB CDROM (HP DL145 Op o usb/86298 usb [mouse] Known good USB mouse won't work with correct s o usb/87224 usb Cannot mount USB Zip750 o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/88408 usb [axe] axe0 read PHY failed o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91811 usb Compact Flash in HP Photosmart 2610 return " Medium n o usb/91896 usb Serial Number of USB Memory Sticks is not passed throu o usb/92852 usb [mouse] [patch] Vertical scroll not working properly o o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93872 usb [patch] SCSI quirk required for ELTA 8061 OL USB memor o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/95173 usb [umass] [patch] cannot mount external usb harddisk VIA o usb/96381 usb [patch] add a quirk table entry for a flash ram usb st o usb/97175 usb [hang] USB cardreader hangs system o usb/97472 usb [patch] add support for Olympus C150,D390 o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/99538 usb [kbd] while using USB keyboard default params of atkbd o usb/100746 usb [kbd] system does not boot due to USB keyboard problem o usb/101761 usb [patch] usb.h: increase maximal size of report descrip o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/102678 usb [kbd] Dell PowerEdge DRAC5 USB Keyboard does not work o usb/102976 usb [panic] Casio Exilim Digital Camera cause panic o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103289 usb USB 2.0 problems on AMD LX-800 CPU and CS-5536 chipset o usb/103418 usb [usb] [patch] usbhidctl: add ability to write output a o usb/103917 usb USB driver reports "Addr 0 should never happen" o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104645 usb Rave C-201 MP3 player does not communicate o usb/105065 usb [sata] SATA - USB Bridge f usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/106041 usb FreeBSD does not recognise Mustek BearPaw 2400TA usb s o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze o usb/107243 usb [patch] Apacer USB Flash Drive quirk o usb/107388 usb [PATCH] Add utoppy device from NetBSD o usb/107496 usb USB device problem on RELENG_6_2 (SHORT_XFER) (regress o usb/107665 usb [usb] [patch] uscanner support for epson stylus DX5050 o usb/107701 usb [usbd] usbd ignores "detach" o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108509 usb [hang] FreeBSD hang at startup after ehci0 detected (C o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC s usb/110991 usb [patch] QUIRK: Super Top IDE DEVICE (depends on usb/11 o usb/112461 usb [ehci] ehci USB 2.0 doesn't work on nforce4 o usb/112463 usb problem with Samsung USB DVD writer, libscg and FreeBS o usb/112944 usb [patch] Bi-directional access to HP LaserJet 1010 prin o usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/113432 usb WARNING: attempt to net_add_domain(netgraph) after dom o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff o usb/114068 usb [umass] [patch] Problems with connection of the umass p usb/114860 usb if_udav / ShanTou ST268 USB NIC o usb/114916 usb USB Maxtor drive (L300RO) requires quirk. o usb/115080 usb using a Hercules HWGUSB2-54-V2 wifi usb adapter o usb/115197 usb can not install from USB stick drive o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115737 usb uplcom doesn't identify my Prolific 2303 any more o usb/115933 usb RATOC REX-USB60F (usb serial converter) is working o usb/115935 usb [patch] kernel counterproductively attaches to Cyber P o usb/116282 usb Cannot print on USB HP LJ1018 or LJ1300 o usb/116574 usb [patch] Add device ids for ICH8 USB chipsets f usb/116898 usb panic: sleeping thread while using USB hard drive o usb/117075 usb [scsi_da] [patch] quirk: USB Samsung YP-U3 MP3 o usb/117183 usb USB/fusefs -- Fatal trap 12: page fault while in kerne o usb/117185 usb [patch] [umodem] Add support for UNION interface descr o usb/117205 usb [uscanner] [patch] uscanner support for HP ScanJet 447 o usb/117366 usb USB keyboard status lights not working properly o usb/117546 usb [usbdevs] [patch] Add MaxStream ZigBee product ID to u o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117893 usb Lacie USB DVD writing failing o usb/117911 usb Mouse Gembird MUSWC not work o usb/117938 usb [Patch] Adding support for MS WL Natural and MS WL Opt o usb/118098 usb 6th gen iPod causes problems when disconnecting. o usb/118374 usb Patch to support Option GlobeTrotter Max 3.6 wireless o usb/118479 usb ubsa driver does not recognize AnyDATA ADU-500A o usb/118485 usb Logitech Headset Workaround o usb/118571 usb BTX issues when booting FreeBSD 7 from a USB CD-ROM o usb/118670 usb Razer Copperhead Laser Mouse shows up as keyboard o usb/118686 usb [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei o usb/118741 usb [PATCH] Support for Nikon D300 digital camera (as USB p usb/118915 usb usbhidctl appears to not report features and write siz o usb/119002 usb add "ucp" driver support o usb/119150 usb [usbdevs] [patch] new usbdevs for CDMA 1xEVDO devices o usb/119227 usb ubsa buffer o usb/119389 usb Sony DSC-W1 CBI reset failed, STALLED o usb/119633 usb umass0: BBB reset failed, IOERROR o usb/119653 usb iriver s7 player sync cache error patch 128 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Jan 21 11:17:57 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D31416A419 for ; Mon, 21 Jan 2008 11:17:57 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id EDF1B13C458 for ; Mon, 21 Jan 2008 11:17:56 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: by blah.sun-fish.com (Postfix, from userid 1002) id 57AAD1B10EFD; Mon, 21 Jan 2008 12:17:55 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on blah.cmotd.com X-Spam-Level: X-Spam-Status: No, score=-10.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, J_CHICKENPOX_33 autolearn=no version=3.2.3 Received: from hater.haters.org (hater.cmotd.com [192.168.3.125]) by blah.sun-fish.com (Postfix) with ESMTP id 43A4E1B10EA4; Mon, 21 Jan 2008 12:17:52 +0100 (CET) Message-ID: <47947F60.2080405@moneybookers.com> Date: Mon, 21 Jan 2008 13:17:52 +0200 From: Stefan Lambrev User-Agent: Thunderbird 2.0.0.9 (X11/20071120) MIME-Version: 1.0 To: Hans Petter Selasky References: <477BC1A3.5080406@moneybookers.com> <200801161802.48506.hselasky@c2i.net> <478F8670.3030500@moneybookers.com> <200801171815.38196.hselasky@c2i.net> In-Reply-To: <200801171815.38196.hselasky@c2i.net> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.91.2/5506/Mon Jan 21 08:20:24 2008 on blah.cmotd.com X-Virus-Status: Clean Cc: freebsd-usb@freebsd.org Subject: Re: [SOLVED] Re: Problem with usb4bsd rev566 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2008 11:17:57 -0000 Hi Hans, Sorry for my late reply. I just checked build with rev 574. with latest RELENG_7_0 and buildkernel finished successfully. I'll let you know if there are any problems when I boot the new kernel, or will be silent if everything is ok :) Hans Petter Selasky wrote: > On Thursday 17 January 2008, Stefan Lambrev wrote: > >> Hi Hans, >> >> Unfortunately with rev568 I still see: >> >> /usr/src/sys/dev/usb/usb_transfer.c: In function 'usbd_callback_intr_td': >> /usr/src/sys/dev/usb/usb_transfer.c:2094: warning: 'xfer[2]' may be used >> uninitialized in this function >> /usr/src/sys/dev/usb/usb_transfer.c:2094: warning: 'xfer[3]' may be used >> uninitialized in this function >> *** Error code 1 >> >> And the code does not compile. >> > > I've given it another try: > > +static void > +usbd_callback_intr_td_sub(struct usbd_xfer **xfer, uint8_t dropcount) > +{ > + struct usbd_memory_info *info = xfer[0]->usb_root; > + > + mtx_unlock(info->usb_mtx); > + > + /* > + * We exploit the fact that the mutex is the same for > + * all callbacks: > + */ > + mtx_lock(info->priv_mtx); > + > + /* call callback(s) */ > + switch (dropcount) { > + case 4: > + usbd_callback_wrapper(xfer[3], info, USBD_CONTEXT_CALLBACK); > + case 3: > + usbd_callback_wrapper(xfer[2], info, USBD_CONTEXT_CALLBACK); > + case 2: > + usbd_callback_wrapper(xfer[1], info, USBD_CONTEXT_CALLBACK); > + case 1: > + usbd_callback_wrapper(xfer[0], info, USBD_CONTEXT_CALLBACK); > + default: > + break; > + } > + mtx_unlock(info->priv_mtx); > + mtx_lock(info->usb_mtx); > + info->memory_refcount -= dropcount; > + return; > +} > + > /*------------------------------------------------------------------------* > * usbd_callback_intr_td > * > @@ -2093,7 +2125,6 @@ > struct usbd_memory_info *info = arg; > struct usbd_xfer *xfer[4]; > struct thread *td; > - uint8_t dropcount; > > /* adjust priority */ > td = curthread; > @@ -2110,60 +2141,31 @@ > repeat: > xfer[0] = LIST_FIRST(&(info->done_head)); > if (xfer[0]) { > - do { > LIST_REMOVE(xfer[0], done_list); > xfer[0]->done_list.le_prev = NULL; > xfer[1] = LIST_FIRST(&(info->done_head)); > if (xfer[1] == NULL) { > - dropcount = 1; > - break; > + usbd_callback_intr_td_sub(xfer, 1); > + goto repeat; > } > LIST_REMOVE(xfer[1], done_list); > xfer[1]->done_list.le_prev = NULL; > xfer[2] = LIST_FIRST(&(info->done_head)); > if (xfer[2] == NULL) { > - dropcount = 2; > - break; > + usbd_callback_intr_td_sub(xfer, 2); > + goto repeat; > } > LIST_REMOVE(xfer[2], done_list); > xfer[2]->done_list.le_prev = NULL; > xfer[3] = LIST_FIRST(&(info->done_head)); > if (xfer[3] == NULL) { > - dropcount = 3; > - break; > + usbd_callback_intr_td_sub(xfer, 3); > + goto repeat; > } > LIST_REMOVE(xfer[3], done_list); > xfer[3]->done_list.le_prev = NULL; > - dropcount = 4; > - } while (0); > - > - mtx_unlock(info->usb_mtx); > - > - /* > - * we exploit the fact that the mutex is the same for > - * all callbacks > - */ > - mtx_lock(info->priv_mtx); > - > - /* call callback(s) */ > - switch (dropcount) { > - case 4: > - usbd_callback_wrapper(xfer[3], info, > USBD_CONTEXT_CALLBACK); > - case 3: > - usbd_callback_wrapper(xfer[2], info, > USBD_CONTEXT_CALLBACK); > - case 2: > - usbd_callback_wrapper(xfer[1], info, > USBD_CONTEXT_CALLBACK); > - case 1: > - usbd_callback_wrapper(xfer[0], info, > USBD_CONTEXT_CALLBACK); > - default: > - break; > - } > - mtx_unlock(info->priv_mtx); > - > - mtx_lock(info->usb_mtx); > - info->memory_refcount -= dropcount; > - goto repeat; > - > + usbd_callback_intr_td_sub(xfer, 4); > + goto repeat; > } else { > if (info->memory_refcount != 0) { > info->done_sleep = 1; > > > > Could you do an "svn update" and see if it finally compiles without errors ? > > --HPS > > --HPS > -- Best Wishes, Stefan Lambrev ICQ# 24134177 From owner-freebsd-usb@FreeBSD.ORG Mon Jan 21 13:15:03 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01E6116A41B; Mon, 21 Jan 2008 13:15:03 +0000 (UTC) (envelope-from akiyama@jp.FreeBSD.org) Received: from castle.jp.FreeBSD.org (castle.jp.FreeBSD.org [IPv6:2001:218:422:1::15]) by mx1.freebsd.org (Postfix) with ESMTP id 85AD013C474; Mon, 21 Jan 2008 13:15:02 +0000 (UTC) (envelope-from akiyama@jp.FreeBSD.org) Received: from localhost (castle.jp.FreeBSD.org [2001:218:422:1::15]) by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3/smtpfeed 1.14) with ESMTP/inet6 id m0LDF1687764; Mon, 21 Jan 2008 22:15:01 +0900 (JST) (envelope-from akiyama@jp.FreeBSD.org) Date: Mon, 21 Jan 2008 22:14:58 +0900 From: Shunsuke Akiyama To: Michael Nottebrock In-Reply-To: <200801161708.38213.lofi@freebsd.org> References: <200801161708.38213.lofi@freebsd.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/21.3 (i386--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Message-Id: <20080121221459U.akiyama@jp.FreeBSD.org> X-Dispatcher: imput version 20050308(IM148) Lines: 101 Cc: freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: Re: USB prevents system from powering off and ucom prevents usb from being unloaded - ideas? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2008 13:15:03 -0000 Hi, Michael Please try attached patch for current. For other branches, please get a patch from http://people.freebsd.org/~akiyama/patches/ I've only tested it on RELENG_6 branch, but it would work for both current and RELENG_7. Regards, At Wed, 16 Jan 2008 17:08:34 +0100, Michael Nottebrock wrote: > > [1 ] > Subject line is the executive summary of my problem: > > I have a box with an Intel 945GC A2 chipset that will not poweroff on shutdown > if the usb kernel module is loaded (or statically compiled into the kernel). > Unloading the usb kernel modules sometime during shutdown (I hacked the usbd > rc script for this) to work around the problem helped until I needed to hook > up another device which uses ucom(4) to the machine. On kldunload, ucom > claims to detach, but remains loaded and subsequent kldunload attempts > trigger the error "kldunload: attempt to unload file that was loaded by the > kernel". The stuck ucom in turn prevents usb from getting unloaded and the > machine cannot poweroff. > > I have already tried disabling EHCI, but it does not help. Any ideas on either > getting uhci to properly detach on shutdown or getting rid of ucom? > > > Cheers, > -- > ,_, | Michael Nottebrock | lofi@freebsd.org > (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org > \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org > [2 This is a digitally signed message part. ] > Index: sys/dev/usb/ucom.c =================================================================== RCS file: /home/ncvs/src/sys/dev/usb/ucom.c,v retrieving revision 1.64 diff -u -r1.64 ucom.c --- sys/dev/usb/ucom.c 25 Jun 2007 06:40:20 -0000 1.64 +++ sys/dev/usb/ucom.c 21 Jan 2008 12:54:00 -0000 @@ -1,7 +1,8 @@ /* $NetBSD: ucom.c,v 1.40 2001/11/13 06:24:54 lukem Exp $ */ /*- - * Copyright (c) 2001-2003, 2005 Shunsuke Akiyama . + * Copyright (c) 2001-2003, 2005, 2008 + * Shunsuke Akiyama . * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -113,6 +114,7 @@ #define DPRINTFN(n, x) #endif +static int ucom_modevent(module_t, int, void *); static void ucom_cleanup(struct ucom_softc *); static int ucomparam(struct tty *, struct termios *); static void ucomstart(struct tty *); @@ -135,7 +137,7 @@ static moduledata_t ucom_mod = { "ucom", - NULL, + ucom_modevent, NULL }; @@ -143,6 +145,21 @@ MODULE_DEPEND(ucom, usb, 1, 1, 1); MODULE_VERSION(ucom, UCOM_MODVER); +static int +ucom_modevent(module_t mod, int type, void *data) +{ + switch (type) { + case MOD_LOAD: + break; + case MOD_UNLOAD: + break; + default: + return (EOPNOTSUPP); + break; + } + return (0); +} + int ucom_attach(struct ucom_softc *sc) { -- Shunsuke Akiyama akiyama@jp.FreeBSD.org akiyama@FreeBSD.org From owner-freebsd-usb@FreeBSD.ORG Mon Jan 21 16:46:59 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CFF116A4D7 for ; Mon, 21 Jan 2008 16:46:59 +0000 (UTC) (envelope-from kirk.davis@epsb.ca) Received: from Exchange22.EDU.epsb.ca (exchange22.edu.epsb.ca [198.161.119.187]) by mx1.freebsd.org (Postfix) with ESMTP id 76C3F13C448 for ; Mon, 21 Jan 2008 16:46:58 +0000 (UTC) (envelope-from kirk.davis@epsb.ca) Received: from Exchange24.EDU.epsb.ca ([10.0.5.121]) by Exchange22.EDU.epsb.ca with Microsoft SMTPSVC(6.0.3790.3959); Mon, 21 Jan 2008 09:46:57 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable Date: Mon, 21 Jan 2008 09:46:57 -0700 Message-ID: In-Reply-To: <200801201706.30461@Misha> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: BlackBerry (Re: using libusb) Thread-Index: AchbisbgfaWyBznYSnKSZFw0Vr3kZAAt6lbA References: <200801090114.56195@aldan> <200801091015.17730@aldan> <200801201706.30461@Misha> From: "Kirk Davis" To: "Mikhail T." , X-OriginalArrivalTime: 21 Jan 2008 16:46:57.0992 (UTC) FILETIME=[3CA7B480:01C85C4D] Cc: Subject: RE: BlackBerry (Re: using libusb) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2008 16:46:59 -0000 =20 >-----Original Message----- >From: owner-freebsd-usb@freebsd.org = [mailto:owner-freebsd-usb@freebsd.org] On Behalf Of Mikhail T. > >=EF=EE=ED=E5=E4=B3=EB=EE=EA 14 =F1=B3=F7=E5=ED=FC 2008, Kirk Davis, = =C2=E8 =ED=E0=EF=E8=F1=E0=EB=E8: > =3D =A0 I have ported the uberry driver from OpenBSD over to FreeBSD. = =A0I have=20 > =3D done a lot of changed and support for the new devices and am just > =3D working on some final changed before submitting it. =A0I abandoned = the > =3D linux uberry driver as I didn't like the inteaction with libusb = and > =3D running it from userspace. I have the uberry(4) driver working now with all the blackberry = devices but I'm still having some trouble getting the driver to mount = the storage card in the new devices. Right now the driver will detect = the devices and turn on the USB power so it charges the device (the = Linux uberry drives will not work with the 8830 and higher devices yet) = but I can't get it to attach another interface to the umass device for = mounting. > >Thanks, Kirk. Without knowing the details of your work, I can only = emphasise once again, the API-compatibility with (the Linuxish) libusb = is an absolute requirement. > >I'm sure, the API can be argued to be lacking in some respect or = another. I'd also accept the validity of arguments for making = kernel-drivers for various devices (such as uberry) instead of exposing = them as ugen and >letting the user-space software deal with them. > >However, without the libusb API-compatibility AND the = sysctl-compatibility for Linuxulator we will not be able to compile/run = the applications written for Linux (Solaris?). I agree with you here, the job of porting software would be a lot = easier if libusb where more compatible. I don't think it is a conscious = effort on anyone's part to make it different, it is just a port of an = older Linux version that does not yet have all the newer features. =20 >Some time ago BSD decided to go its own way with video instead of = adopting the video4linux framework. I don't know the arguments leading = that decision, but I'm quite certain, they were and remain sound... = Unfortunately, it also meant incompatibility with Linux-targeted apps, = and we should not repeat the same mistake with USB. The Linux way is not always the best way IMHO. A lot of the = features and libraries in Linux have grown out of necessity rather that = good planning. It has worked well for them but I think FreeBSD has = always done a better job of planning and "Doing it the right way". = Yes, I think we should be compatable where possable but not just because = Linux does it this way. I have run into the V4L problem to when porting things over from = Linux. It would be great if some one would write V4L on FreeBSD but I'm = not willing to tackle it so I'll have to wait until someone does. ---- Kirk=20 From owner-freebsd-usb@FreeBSD.ORG Mon Jan 21 16:52:08 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95C6E16A477 for ; Mon, 21 Jan 2008 16:52:08 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.swip.net [212.247.155.1]) by mx1.freebsd.org (Postfix) with ESMTP id 326C513C46A for ; Mon, 21 Jan 2008 16:52:07 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe09.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 605162031; Mon, 21 Jan 2008 17:52:06 +0100 From: Hans Petter Selasky To: Steve Anelay Date: Mon, 21 Jan 2008 17:52:55 +0100 User-Agent: KMail/1.9.7 References: <1200508961.6490.9.camel@tek-patrol.DISTROSHACK> <200801162029.45471.hselasky@c2i.net> <4790AE22.3090005@anelay.net> In-Reply-To: <4790AE22.3090005@anelay.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801211752.56203.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: Problem with USB4BSD on DesktopBSD 1.6 (i386) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2008 16:52:08 -0000 On Friday 18 January 2008, Steve Anelay wrote: > Hans Petter Selasky wrote: > Jan 17 18:41:33 TekBSD kernel: umass0:umass_cam_action: > 11:0:0:XPT_SCSI_IO: cmd: 0x1e, flags: 0xc0, 6b cmd/0b data/32b sense > Jan 17 18:41:33 TekBSD kernel: umass0:umass_bbb_dump_cbw: CBW 7: cmd = > 6b (0x1e0000000100), data = 0b, lun = 0, dir = out > Jan 17 18:41:33 TekBSD kernel: umass0:umass_transfer_start: transfer > index = 8 > Jan 17 18:41:33 TekBSD kernel: umass0:umass_bbb_dump_csw: CSW 7: sig = > 0x53425355 (valid), tag = 0x00000007, res = 0, status = 0x01 (failed) Hi, When you see "failed" in the log that means a SCSI command failed. To me it looks like the following command failed: #define PREVENT_ALLOW 0x1e Can you find more failed commands ? > The usb sticks I'm using are two corsair flash voyagers 4GB (16mb/s) and > one generic 2GB stick (12mb/s). Isn't this brand supposed to be super-fast ? > > I'm not sure what you mean when you say there is a way to nice/throttle > USB transfers now. How would I do that? By inserting a line of code, you can make the USB transfer execution go slower. It doesn't look like that is the problem. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Jan 21 18:39:54 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E86A216A417 for ; Mon, 21 Jan 2008 18:39:54 +0000 (UTC) (envelope-from steve@anelay.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mx1.freebsd.org (Postfix) with ESMTP id 88DAD13C455 for ; Mon, 21 Jan 2008 18:39:54 +0000 (UTC) (envelope-from steve@anelay.net) Received: from [192.168.0.200] (cpc2-cove6-0-0-cust52.sol2.cable.ntl.com [86.20.52.53]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis) id 0ML2xA-1JH1Yl3znn-0000dV; Mon, 21 Jan 2008 19:39:52 +0100 From: Steve Anelay To: Hans Petter Selasky In-Reply-To: <200801211752.56203.hselasky@c2i.net> References: <1200508961.6490.9.camel@tek-patrol.DISTROSHACK> <200801162029.45471.hselasky@c2i.net> <4790AE22.3090005@anelay.net> <200801211752.56203.hselasky@c2i.net> Content-Type: text/plain Date: Mon, 21 Jan 2008 18:39:55 +0000 Message-Id: <1200940795.7111.7.camel@tek-patrol.DISTROSHACK> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1/PlfpQaJZctoNZvAGruHjChBSwQAdx92zXCCs NBQBsJnPo87UKhNMq+5HXn0qjUvVDOygDUA90axf+Scc09fdEX 7jg17iYzDpe3tiSzhyYTWR7g4BcsuSL Cc: freebsd-usb@freebsd.org Subject: Re: Problem with USB4BSD on DesktopBSD 1.6 (i386) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2008 18:39:55 -0000 Hi Peter yes, many failed command, always at the umass0:umass_bbb_dump_csw: CSW ??: sig = 0x53425355 point. A few goods amongst the fails as well e.g. Jan 17 18:44:45 TekBSD kernel: umass0:umass_cam_action: 11:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b cmd/8b data/32b sense Jan 17 18:44:45 TekBSD kernel: umass0:umass_bbb_dump_cbw: CBW 100: cmd = 10b (0x250000000000...), data = 8b, lun = 0, dir = in Jan 17 18:44:45 TekBSD kernel: umass0:umass_transfer_start: transfer index = 4 Jan 17 18:44:45 TekBSD kernel: umass0:umass_t_bbb_data_read_callback: max_bulk=131072, data_rem=8 Jan 17 18:44:45 TekBSD kernel: umass0:umass_t_bbb_data_read_callback: max_bulk=131072, data_rem=0 Jan 17 18:44:45 TekBSD kernel: umass0:umass_transfer_start: transfer index = 8 Jan 17 18:44:45 TekBSD kernel: umass0:umass_bbb_dump_csw: CSW 100: sig = 0x53425355 (valid), tag = 0x00000064, res = 0, status = 0x00 (good) Jan 17 18:44:45 TekBSD kernel: umass0:umass_cam_action: 11:0:0:XPT_SCSI_IO: cmd: 0x1e, flags: 0xc0, 6b cmd/0b data/32b sense Jan 17 18:44:45 TekBSD kernel: umass0:umass_bbb_dump_cbw: CBW 101: cmd = 6b (0x1e0000000100), data = 0b, lun = 0, dir = out Jan 17 18:44:45 TekBSD kernel: umass0:umass_transfer_start: transfer index = 8 Jan 17 18:44:45 TekBSD kernel: umass0:umass_bbb_dump_csw: CSW 101: sig = 0x53425355 (valid), tag = 0x00000065, res = 0, status = 0x01 (failed) the corsair voyagers are meant to be fast, but the generic one behaves in the same way. Steve From owner-freebsd-usb@FreeBSD.ORG Mon Jan 21 23:10:34 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DAF5516A41A for ; Mon, 21 Jan 2008 23:10:34 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id C21DE13C46B for ; Mon, 21 Jan 2008 23:10:34 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JH5Pg-0000ql-8M for freebsd-usb@freebsd.org; Mon, 21 Jan 2008 14:46:44 -0800 Message-ID: <22375940.265171200955604252.JavaMail.nabble@isper.nabble.com> From: kensmail11@yahoo.com To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 21 Jan 2008 14:46:44 -0800 X-Mailman-Approved-At: Mon, 21 Jan 2008 23:37:35 +0000 Subject: a41x/v32x free download X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2008 23:10:34 -0000 I'm trying to download pictures off of my phone. I have the chord but it says I need usb drivers. From owner-freebsd-usb@FreeBSD.ORG Tue Jan 22 01:49:48 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC51D16A46E for ; Tue, 22 Jan 2008 01:49:48 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.freebsd.org (Postfix) with ESMTP id 83AAC13C478 for ; Tue, 22 Jan 2008 01:49:48 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.14.1/8.14.1) with ESMTP id m0M1ngj8045095 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 21 Jan 2008 20:49:42 -0500 (EST) (envelope-from mi+kde@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by aldan.algebra.com (8.14.1/8.14.1/Submit) id m0M1nf27045094; Mon, 21 Jan 2008 20:49:41 -0500 (EST) (envelope-from mi+kde@aldan.algebra.com) From: Mikhail Teterin To: "Kirk Davis" Date: Mon, 21 Jan 2008 20:49:40 -0500 User-Agent: KMail/1.9.7 References: <200801090114.56195@aldan> <200801201706.30461@Misha> In-Reply-To: X-Face: %UW#n0|w>ydeGt/b@1-.UFP=K^~-:0f#O:D7whJ5G_<5143Bb3kOIs9XpX+"V+~$adGP:J|SLieM31VIhqXeLBli" Cc: freebsd-usb@freebsd.org Subject: Re: BlackBerry (Re: using libusb) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2008 01:49:49 -0000 On =EF=EE=ED=E5=E4=B3=EB=EE=EA 21 =F1=B3=F7=E5=ED=FC 2008, Kirk Davis wrote: =3D I don't think it is a conscious effort on anyone's part to make it =3D different, it is just a port of an older Linux version that does not yet =3D have all the newer features. Of course not. All I'm urging is a conscious effort to keep it the same... =3D The Linux way is not always the best way IMHO. =A0A lot of the features= and =3D libraries in Linux have grown out of necessity rather that good plannin= g. Agreed. But Linux is the de-facto standard. If someone like Research in Mot= ion=20 (makers of BlackBerry) or Nokia decides to release a Linux-version of the=20 software for their devices, FreeBSD better run it -- even if=20 our /alternative/ methods of talking to the same devices is better... -mi From owner-freebsd-usb@FreeBSD.ORG Tue Jan 22 12:30:03 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FD1E16A417 for ; Tue, 22 Jan 2008 12:30:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DE79013C4E8 for ; Tue, 22 Jan 2008 12:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0MCU2mY068063 for ; Tue, 22 Jan 2008 12:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0MCU2HR068058; Tue, 22 Jan 2008 12:30:02 GMT (envelope-from gnats) Date: Tue, 22 Jan 2008 12:30:02 GMT Message-Id: <200801221230.m0MCU2HR068058@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Erwin Lansing Cc: Subject: Re: usb/118686: [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei E220 G3 Modem X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Erwin Lansing List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2008 12:30:03 -0000 The following reply was made to PR usb/118686; it has been noted by GNATS. From: Erwin Lansing To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: usb/118686: [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei E220 G3 Modem Date: Tue, 22 Jan 2008 13:23:17 +0100 Updated patch that applies to todays HEAD: http://people.freebsd.org/~erwin/e220-usb.diff From owner-freebsd-usb@FreeBSD.ORG Tue Jan 22 13:45:53 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F5EB16A417 for ; Tue, 22 Jan 2008 13:45:53 +0000 (UTC) (envelope-from antik@bsd.ee) Received: from zzz.ee (kalah.zzz.ee [194.204.30.253]) by mx1.freebsd.org (Postfix) with ESMTP id 4438613C4E5 for ; Tue, 22 Jan 2008 13:45:53 +0000 (UTC) (envelope-from antik@bsd.ee) Received: by zzz.ee (Postfix, from userid 3019) id 1E7A71985CD; Tue, 22 Jan 2008 15:26:33 +0200 (EET) X-Spam-Checker-Version: SpamAssassin on spamassassin.zzz.ee X-Spam-Level: X-Spam-Guessed-Language: en X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,BAYES_50 X-Spam-Checker-URL: http://info.zzz.ee Received: from andrei.demo (adsl215.uninet.ee [194.204.62.215]) by zzz.ee (Postfix) with ESMTP id 43E3F1985C8 for ; Tue, 22 Jan 2008 15:26:31 +0200 (EET) From: Andrei Kolu To: freebsd-usb@freebsd.org Date: Tue, 22 Jan 2008 15:26:30 +0200 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801221526.30610.antik@bsd.ee> Subject: apcupsd: bsd-usb.c:774 set_report for kill power function SelftestStatus failed. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2008 13:45:53 -0000 ugen0: American Power Conversion Smart-UPS 750 FW:651.13.I USB FW:7.3, rev 1.10/0.06, addr 2 # apctest 2008-01-22 15:23:57 apctest 3.14.2 (15 September 2007) freebsd Checking configuration ... Attached to driver: usb sharenet.type = DISABLE cable.type = USB_CABLE You are using a USB cable type, so I'm entering USB test mode mode.type = USB_UPS Setting up the port ... Hello, this is the apcupsd Cable Test program. This part of apctest is for testing USB UPSes. Getting UPS capabilities...SUCCESS Please select the function you want to perform. 1) Test kill UPS power 2) Perform self-test 3) Read last self-test result 4) Change battery date 5) View battery date 6) View manufacturing date 7) Set alarm behavior 8) Set sensitivity 9) Quit Select function number: 2 This test instructs the UPS to perform a self-test operation and reports the result when the test completes. Clearing previous self test result...2.918 apcupsd: bsd-usb.c:774 set_report for kill power function SelftestStatus failed. FAILED From owner-freebsd-usb@FreeBSD.ORG Tue Jan 22 22:21:17 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31DBD16A418 for ; Tue, 22 Jan 2008 22:21:17 +0000 (UTC) (envelope-from brix@FreeBSD.org) Received: from solow.pil.dk (relay.pil.dk [195.41.47.164]) by mx1.freebsd.org (Postfix) with ESMTP id D82B913C465 for ; Tue, 22 Jan 2008 22:21:16 +0000 (UTC) (envelope-from brix@FreeBSD.org) Received: from tirith.brixandersen.dk (0x55534f5f.adsl.cybercity.dk [85.83.79.95]) by solow.pil.dk (Postfix) with ESMTP id 4967E1CC0DD for ; Tue, 22 Jan 2008 23:03:43 +0100 (CET) Received: by tirith.brixandersen.dk (Postfix, from userid 1001) id 9575411436; Tue, 22 Jan 2008 23:03:42 +0100 (CET) Date: Tue, 22 Jan 2008 23:03:42 +0100 From: Henrik Brix Andersen To: freebsd-usb@freebsd.org Message-ID: <20080122220342.GF21985@tirith.brixandersen.dk> Mail-Followup-To: freebsd-usb@freebsd.org References: <200801221230.m0MCU2HR068058@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Q0rSlbzrZN6k9QnT" Content-Disposition: inline In-Reply-To: <200801221230.m0MCU2HR068058@freefall.freebsd.org> X-PGP-Key: http://www.brixandersen.dk/files/HenrikBrixAndersen.asc User-Agent: Mutt/1.5.17 (2007-11-01) Subject: Re: usb/118686: [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei E220 G3 Modem X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2008 22:21:17 -0000 --Q0rSlbzrZN6k9QnT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 22, 2008 at 12:30:02PM +0000, Erwin Lansing wrote: > The following reply was made to PR usb/118686; it has been noted by GNATS. >=20 > From: Erwin Lansing > To: freebsd-gnats-submit@FreeBSD.org > Cc: =20 > Subject: Re: usb/118686: [usbdevs] [patch] teach usbdevs / ubsa(4) about > Huawei E220 G3 Modem > Date: Tue, 22 Jan 2008 13:23:17 +0100 >=20 > Updated patch that applies to todays HEAD: > http://people.freebsd.org/~erwin/e220-usb.diff Looks good to me. Brix --=20 Henrik Brix Andersen --Q0rSlbzrZN6k9QnT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: GnuPG signed iD8DBQFHlmg9v+Q4flTiePgRAjpTAJ9CtQyspawoUw3iZaKD+W0Y62xj7QCfc08M nN7VgDQYK79lWlrCtCFQWbA= =oLfv -----END PGP SIGNATURE----- --Q0rSlbzrZN6k9QnT-- From owner-freebsd-usb@FreeBSD.ORG Wed Jan 23 18:55:57 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5F2C16A419 for ; Wed, 23 Jan 2008 18:55:57 +0000 (UTC) (envelope-from toomas.aas@raad.tartu.ee) Received: from smtp-out.neti.ee (smtp-out.neti.ee [194.126.126.40]) by mx1.freebsd.org (Postfix) with ESMTP id 9A46C13C465 for ; Wed, 23 Jan 2008 18:55:57 +0000 (UTC) (envelope-from toomas.aas@raad.tartu.ee) Received: from smtp-out.neti.ee (relay8.neti.ee [88.196.174.139]) by HOT-Bounce1.estpak.ee (Postfix) with ESMTP id 016AF71F671 for ; Wed, 23 Jan 2008 20:24:56 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at estpak.ee Received: from Relayhost3.neti.ee (relayhost3.estpak.ee [88.196.174.169]) by MXR-8.estpak.ee (Postfix) with ESMTP id 8947D137B3C for ; Wed, 23 Jan 2008 20:24:52 +0200 (EET) Received: from originaal.kodu.lan (88-196-100-220-dsl.trt.estpak.ee [88.196.100.220]) by Relayhost3.neti.ee (Postfix) with ESMTP id 993F9D1025 for ; Wed, 23 Jan 2008 20:24:49 +0200 (EET) Message-ID: <47978673.1020108@raad.tartu.ee> Date: Wed, 23 Jan 2008 20:24:51 +0200 From: Toomas Aas User-Agent: Thunderbird 2.0.0.9 (X11/20071121) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: pr/107495 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2008 18:55:57 -0000 Hello! It seems that pr/107495 didn't make it into FreeBSD 6.3-RELEASE. I wonder if it will ever be MFC-d to RELENG_6? -- Toomas Aas ... If Windows sucked, it would be good for something. From owner-freebsd-usb@FreeBSD.ORG Wed Jan 23 20:02:12 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10BF716A4FD for ; Wed, 23 Jan 2008 20:02:12 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.swip.net [212.247.154.225]) by mx1.freebsd.org (Postfix) with ESMTP id 79AE313C43E for ; Wed, 23 Jan 2008 20:02:11 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [85.19.218.45] (account mc467741@c2i.net [85.19.218.45] verified) by mailfe08.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 774953410; Wed, 23 Jan 2008 20:47:09 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Wed, 23 Jan 2008 20:48:00 +0100 User-Agent: KMail/1.9.7 References: <200801221230.m0MCU2HR068058@freefall.freebsd.org> <20080122220342.GF21985@tirith.brixandersen.dk> In-Reply-To: <20080122220342.GF21985@tirith.brixandersen.dk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801232048.00814.hselasky@c2i.net> Cc: Subject: Re: usb/118686: [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei E220 G3 Modem X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2008 20:02:12 -0000 On Tuesday 22 January 2008, Henrik Brix Andersen wrote: > On Tue, Jan 22, 2008 at 12:30:02PM +0000, Erwin Lansing wrote: > > The following reply was made to PR usb/118686; it has been noted by > > GNATS. > > > > From: Erwin Lansing > > To: freebsd-gnats-submit@FreeBSD.org > > Cc: > > Subject: Re: usb/118686: [usbdevs] [patch] teach usbdevs / ubsa(4) about > > Huawei E220 G3 Modem > > Date: Tue, 22 Jan 2008 13:23:17 +0100 > > > > Updated patch that applies to todays HEAD: > > http://people.freebsd.org/~erwin/e220-usb.diff > > Looks good to me. > > Brix I see no problems either. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Jan 24 13:58:08 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 552BF16A52C; Thu, 24 Jan 2008 13:58:08 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from falcon.cybervisiontech.com (falcon.cybervisiontech.com [217.20.163.9]) by mx1.freebsd.org (Postfix) with ESMTP id CC7E113C448; Thu, 24 Jan 2008 13:58:07 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost (localhost [127.0.0.1]) by falcon.cybervisiontech.com (Postfix) with ESMTP id EB4C9744016; Thu, 24 Jan 2008 15:58:04 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at falcon.cybervisiontech.com Received: from falcon.cybervisiontech.com ([127.0.0.1]) by localhost (falcon.cybervisiontech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b986g9LtCO0k; Thu, 24 Jan 2008 15:58:04 +0200 (EET) Received: from [10.2.1.87] (gateway.cybervisiontech.com.ua [88.81.251.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by falcon.cybervisiontech.com (Postfix) with ESMTP id 32ECC744002; Thu, 24 Jan 2008 15:58:03 +0200 (EET) Message-ID: <4798996A.8090205@icyb.net.ua> Date: Thu, 24 Jan 2008 15:58:02 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.9 (X11/20071116) MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <46C44170.3040108@icyb.net.ua> In-Reply-To: <46C44170.3040108@icyb.net.ua> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Warner Losh Subject: Re: scsi_da quirk for a device with "no name" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2008 13:58:08 -0000 This is me again on the issue of a weird umass device that reports empty strings to SCSI inquiry command. Currently the only way to specify some SCSI-level quirk for such a device is to create a quirk entry with all fields set to wildcard "*", but apparently such a quirk would be applied to many more devices. A suggestion: what about umass intercepting a response of inquiry command and generating some names in such a case. E.g. vendor and product identification could be generated from the USB ids like Vendor_abcd, Product_1234. In this case we would get some sufficient identification for such devices. P.S. it also seems that if NO_INQUIRY umass quirk is specified for a device, then its identification will be empty as well. I think that this is not good because, for example, scsi_da quirks are troublesome then. P.P.S. it is currently impossible to have scsi_da quirk entries with empty fields (""), they get ignored. on 16/08/2007 15:22 Andriy Gapon said the following: > I have ASUS P535 PPC+phone with Windows Mobile 5 on it. > It has an option to act as a USB mass storage (instead of attempting > acivesync). > > When I tried it, it first got recognized by umass and then it > immediately panicked my system. > > From messages: > kernel: umass0: ASUS Generic Mass Storage, rev 2.00/0.00, addr 3 > kernel: da0 at umass-sim0 bus 0 target 0 lun 0 > kernel: da0: < > Removable Direct Access SCSI-0 device > kernel: da0: 1.000MB/s transfers > kernel: da0: 1952MB (3998720 512 byte sectors: 255H 63S/T 248C) > > From panic (typed from memory): > umass0: Invalid CSW: tag 7 should be 8 > (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x0, scsi > status == 0x4 > > I googled up several reports of similar and not so similar panics. > Here's a small overview that is not directly related to a question that > I really want to ask: > > 1. Invalid CSW problems where a signature is wrong, I see that > WRONG_CSWSIG umass quirk is recommended for that; > 2. Invalid CSW problems where a tag is wrong and the values are very > different, I see that one person attempted to cure that with a new > hand-rolled quirk to simply ignore the mismatch; > 3. Invalid CSW problems where a tag is wrong and the difference is > exactly one. I don't know if there is anything special about that, but > it looks the most interesting of all the cases. > > In some cases but not all "Invalid CSW" comes together with "Synchronize > cache failed" and DA_Q_NO_SYNC_CACHE scsi_da quirk is recommended for that. > > So I attempted the latter quirk and it helped me! But there is one not > good thing about the way I did that - I used wild cards ("*") for all > three of vendor, product and revision. This is because they all appear > to be empty/unset. This is shown in both kernel messages and by > camcontrol devlist and by camcontrol inquiry. > I am not sure if there are any risks of applying the quirk to all > possible da devices, there will be only umass ones in my case, but I > still would like to do something more specific to the device in question. > > Will empty patterns work ? I mean if I put "", "", "" entry into the > quirk array. Actually, I can test this myself soon, but not today. > > Thank you. > > P.S. some links to the problems that others have reported: > http://www.freebsd.org/cgi/query-pr.cgi?pr=114916&cat= > http://osdir.com/ml/os.freebsd.devel.usb/2005-12/msg00039.html > http://lists.freebsd.org/pipermail/freebsd-bugs/2004-November/010483.html > http://lists.freebsd.org/pipermail/freebsd-bugs/2004-January/005170.html > http://lists.freebsd.org/mailman/htdig/freebsd-usb/2004-December/000318.html > http://lists.freebsd.org/mailman/htdig/freebsd-usb/2005-February/000660.html > -- Andriy Gapon From owner-freebsd-usb@FreeBSD.ORG Thu Jan 24 16:40:03 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1934F16A420 for ; Thu, 24 Jan 2008 16:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EFBF413C4EF for ; Thu, 24 Jan 2008 16:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0OGe2R3058879 for ; Thu, 24 Jan 2008 16:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0OGe2n7058878; Thu, 24 Jan 2008 16:40:02 GMT (envelope-from gnats) Resent-Date: Thu, 24 Jan 2008 16:40:02 GMT Resent-Message-Id: <200801241640.m0OGe2n7058878@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, "Y.Okabe" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A56F16A41A for ; Thu, 24 Jan 2008 16:39:46 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 45F4A13C44B for ; Thu, 24 Jan 2008 16:39:46 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m0OGcA8C021254 for ; Thu, 24 Jan 2008 16:38:10 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m0OGcAvt021253; Thu, 24 Jan 2008 16:38:10 GMT (envelope-from nobody) Message-Id: <200801241638.m0OGcAvt021253@www.freebsd.org> Date: Thu, 24 Jan 2008 16:38:10 GMT From: "Y.Okabe" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/119945: rum device in hostap mode, cause kernel core dump. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2008 16:40:03 -0000 >Number: 119945 >Category: usb >Synopsis: rum device in hostap mode, cause kernel core dump. >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 24 16:40:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Y.Okabe >Release: 7.0-PRERELEASE >Organization: >Environment: FreeBSD 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE CPU: VIA C7 Esther+RNG+AES+AES-CTR+SHA1+SHA256+RSA (1500.00-MHz 686-class CPU) Origin = "CentaurHauls" Id = 0x6d0 Stepping = 0 Features=0xa7c9bbff Features2=0x4181 dmesg follow: uhub4: on usb4 uhub4: 8 ports with 8 removable, self powered rum0: on uhub4 rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528 rum0: Ethernet address: 00:16:xx:xx:xx:xx rum0: if_start running deferred for Giant >Description: I made rum device into hostap mode. When receive some packet by rum device, kernel was panic and core dumped at module uhci.ko. >How-To-Repeat: 1. install GENERIC kernel for RENENG_7, 2. configure hostapd using rum0. 3. setup rum0 and wired lan ingerface bridge i.e. run ifconfig bridge0 create run ifconfig bridge0 addm rum0 addm eth0 run ifconfig bridge0 inet 192.168.1.9/24 4. run hostapd. 5. accsess wlan client this hostap accces point (by WPA-PSK, WPA-AES, WPA2-AES, etc...) 6. some packet send, kernel panic. >Fix: rum_free_tx_list function on if_rum.c , at the OpenBSD current source is --------------- openbsd if_rum.c start -------------------------------- void rum_free_tx_list(struct rum_softc *sc) { int i; for (i = 0; i < RUM_TX_LIST_COUNT; i++) { struct rum_tx_data *data = &sc->tx_data[i]; if (data->xfer != NULL) { usbd_free_xfer(data->xfer); data->xfer = NULL; } /* * The node has already been freed at that point so don't call * ieee80211_release_node() here. */ data->ni = NULL; } } --------------- openbsd if_rum.c end -------------------------------- therefor, freebsd's rum_free_tx_list function at if_rum.c /usr/src/sys/dev/usb/if_rum.c at line 650 static void rum_free_tx_list(struct rum_softc *sc) { struct rum_tx_data *data; int i; for (i = 0; i < RUM_TX_LIST_COUNT; i++) { data = &sc->tx_data[i]; if (data->xfer != NULL) { usbd_free_xfer(data->xfer); data->xfer = NULL; } if (data->ni != NULL) { - ieee80211_free_node(data->ni); + /*ieee80211_free_node(data->ni);*/ data->ni = NULL; } } } -------------------------------------------------------------------- I don't know this patch's work reason. but, hostapd can work at patched kernel. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu Jan 24 22:40:04 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93CAD16A417 for ; Thu, 24 Jan 2008 22:40:04 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 4A78613C44B for ; Thu, 24 Jan 2008 22:40:04 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1JIAjq-00008N-Tw for freebsd-usb@freebsd.org; Thu, 24 Jan 2008 22:40:02 +0000 Received: from 78-0-88-44.adsl.net.t-com.hr ([78.0.88.44]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Jan 2008 22:40:02 +0000 Received: from ivoras by 78-0-88-44.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Jan 2008 22:40:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: Ivan Voras Date: Thu, 24 Jan 2008 23:37:12 +0100 Lines: 65 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig3EB32881BAF294FE3AC74F5E" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 78-0-88-44.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) X-Enigmail-Version: 0.95.6 Sender: news Subject: "pre-2.0 USB rev" ehci problem X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2008 22:40:04 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3EB32881BAF294FE3AC74F5E Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi, I have a AMD Geode (embedded platform) based hardware with problems in=20 EHCI. Here's an excerpt from dmesg: ohci0: mem 0xe0215000-0xe0215fff irq 11=20 at device 15.4 on pci0 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 4 ports with 4 removable, self powered ehci0: mem 0xe0216000-0xe0216fff irq = 11 at device 15.5 on pci0 ehci0: pre-2.0 USB rev device_attach: ehci0 attach returned 6 USB 1.0 works fine with cca 1 MB/s transfer rate from a flash memory=20 drive. EHCI capability works fine in Linux. Here's an excerpt from pciconf -lv: ohci0@pci0:0:15:4: class=3D0x0c0310 card=3D0x20941022 chip=3D0x20941= 022=20 rev=3D0x02 hdr=3D0x00 vendor =3D 'Advanced Micro Devices (AMD)' device =3D 'CS5536 CS5536 OHCI USB Host Controller' class =3D serial bus subclass =3D USB ehci0@pci0:0:15:5: class=3D0x0c0320 card=3D0x20951022 chip=3D0x20951= 022=20 rev=3D0x02 hdr=3D0x00 vendor =3D 'Advanced Micro Devices (AMD)' device =3D 'CS5536 CS5536 EHCI USB Host Controller' class =3D serial bus subclass =3D USB Since it works in Linux, I suppose there should be some relatively=20 simple quirks to make it work. Any ideas on what should I try? --------------enig3EB32881BAF294FE3AC74F5E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHmRMdldnAQVacBcgRAtLZAKDNt3IMcUc/USCqoQO6+rOB9emqKgCfeKfG MDhxTyZHkglrKFd/L1AOdVQ= =MNwV -----END PGP SIGNATURE----- --------------enig3EB32881BAF294FE3AC74F5E-- From owner-freebsd-usb@FreeBSD.ORG Fri Jan 25 08:55:15 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E11816A418 for ; Fri, 25 Jan 2008 08:55:15 +0000 (UTC) (envelope-from antik@bsd.ee) Received: from zzz.ee (kalah.zzz.ee [194.204.30.253]) by mx1.freebsd.org (Postfix) with ESMTP id 4296313C457 for ; Fri, 25 Jan 2008 08:55:14 +0000 (UTC) (envelope-from antik@bsd.ee) Received: by zzz.ee (Postfix, from userid 3019) id 5B5001985DA; Fri, 25 Jan 2008 10:55:13 +0200 (EET) X-Spam-Checker-Version: SpamAssassin on spamassassin.zzz.ee X-Spam-Level: X-Spam-Guessed-Language: en X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,BAYES_50 X-Spam-Checker-URL: http://info.zzz.ee Received: from andrei.demo (adsl215.uninet.ee [194.204.62.215]) by zzz.ee (Postfix) with ESMTP id 606EC1985C0 for ; Fri, 25 Jan 2008 10:55:11 +0200 (EET) From: Andrei Kolu To: freebsd-usb@freebsd.org Date: Fri, 25 Jan 2008 10:55:09 +0200 User-Agent: KMail/1.9.7 References: <200801221526.30610.antik@bsd.ee> In-Reply-To: <200801221526.30610.antik@bsd.ee> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801251055.10170.antik@bsd.ee> Subject: Re: apcupsd: bsd-usb.c:774 set_report for kill power function SelftestStatus failed. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2008 08:55:15 -0000 On Tuesday 22 January 2008 15:26:30 Andrei Kolu wrote: > ugen0: American Power Conversion Smart-UPS 750 FW:651.13.I USB FW:7.3, rev > 1.10/0.06, addr 2 > > > # apctest > > 2008-01-22 15:23:57 apctest 3.14.2 (15 September 2007) freebsd > Checking configuration ... > Attached to driver: usb > sharenet.type = DISABLE > cable.type = USB_CABLE > > You are using a USB cable type, so I'm entering USB test mode > mode.type = USB_UPS > Setting up the port ... > Hello, this is the apcupsd Cable Test program. > This part of apctest is for testing USB UPSes. > > Getting UPS capabilities...SUCCESS > > Please select the function you want to perform. > > 1) Test kill UPS power > 2) Perform self-test > 3) Read last self-test result > 4) Change battery date > 5) View battery date > 6) View manufacturing date > 7) Set alarm behavior > 8) Set sensitivity > 9) Quit > > Select function number: 2 > > > This test instructs the UPS to perform a self-test > operation and reports the result when the test completes. > > Clearing previous self test result...2.918 apcupsd: bsd-usb.c:774 > set_report for kill power function SelftestStatus failed. > FAILED > _______________________________________________ Oops, I forgot to add that this is FreeBSD 6.2-p10. Same problem with other APC ups 1000 with FreeBSD 6.3-RELEASE. I just don't know if this is an apcupsd daemon problem or FreeBSD USB stack- any hint, please? From owner-freebsd-usb@FreeBSD.ORG Fri Jan 25 10:30:04 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46A7A16A419 for ; Fri, 25 Jan 2008 10:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 272B813C44B for ; Fri, 25 Jan 2008 10:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0PAU3vm042332 for ; Fri, 25 Jan 2008 10:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0PAU3ug042324; Fri, 25 Jan 2008 10:30:03 GMT (envelope-from gnats) Date: Fri, 25 Jan 2008 10:30:03 GMT Message-Id: <200801251030.m0PAU3ug042324@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Alexey Popov Cc: Subject: Re: usb/119945: rum device in hostap mode, cause kernel core dump. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexey Popov List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2008 10:30:04 -0000 The following reply was made to PR usb/119945; it has been noted by GNATS. From: Alexey Popov To: bug-followup@FreeBSD.org, be_works_us@yahoo.com Cc: Subject: Re: usb/119945: rum device in hostap mode, cause kernel core dump. Date: Fri, 25 Jan 2008 12:21:24 +0300 Hi This is exactly the same bug as to usb/92083, usb/101096 and the last part of kern/117820. The main question is whether it is enough to check data->ni to be not NULL or to completely remove ieee80211_free_node() call from (rum|ral)_txeof(). Do I understand correct that adding this check does not work for you? Can anyone shed some light on this issue? With best regards, Alexey Popov From owner-freebsd-usb@FreeBSD.ORG Fri Jan 25 16:00:05 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E178C16A419 for ; Fri, 25 Jan 2008 16:00:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CFCC813C455 for ; Fri, 25 Jan 2008 16:00:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0PG04et067308 for ; Fri, 25 Jan 2008 16:00:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0PG04En067307; Fri, 25 Jan 2008 16:00:04 GMT (envelope-from gnats) Resent-Date: Fri, 25 Jan 2008 16:00:04 GMT Resent-Message-Id: <200801251600.m0PG04En067307@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, "Y.Okabe" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5B3716A420 for ; Fri, 25 Jan 2008 15:52:01 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id D31FA13C46A for ; Fri, 25 Jan 2008 15:52:01 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m0PFoORL097198 for ; Fri, 25 Jan 2008 15:50:24 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m0PFoOev097197; Fri, 25 Jan 2008 15:50:24 GMT (envelope-from nobody) Message-Id: <200801251550.m0PFoOev097197@www.freebsd.org> Date: Fri, 25 Jan 2008 15:50:24 GMT From: "Y.Okabe" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/119981: axe driver supports for LOGITEC LAN-GTJ/U2 gigabit ethernet adapter X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2008 16:00:05 -0000 >Number: 119981 >Category: usb >Synopsis: axe driver supports for LOGITEC LAN-GTJ/U2 gigabit ethernet adapter >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jan 25 16:00:04 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Y.Okabe >Release: FreeBSD 7.0-PRERELEASE >Organization: Japan >Environment: FreeBSD c7v7.myhome 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #19: Fri Jan 25 21:08:44 JST 2008 be@c7v7.myhome:/tmp/usr/src/sys/i386/compile/C7V7 i386 >Description: Please add USB device ID for LOGITEC LAN-GTJ/U2 gigabit ethernet adapter. (http://www.logitec.co.jp/products/lan/langtju2.html) This hardware is based on AX88178 chip, so axe driver is work well. dmesg -- axe0: on uhub4 axe0: AX88178, bufsz 1536, boundary 64 miibus2: on axe0 e1000phy0: PHY 24 on miibus2 e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto axe0: using obsoleted if_watchdog interface axe0: Ethernet address: 00:01:8e:xx:xx:xx axe0: if_start running deferred for Giant -- usbdevs -v reports -- Controller /dev/usb4: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), VIA(0x0000), rev 1.00 port 1 powered port 2 addr 3: high speed, power 450 mA, config 1, product 0x0102(0x0102), vendor 0x0789(0x0789), rev 0.01 -- >How-To-Repeat: >Fix: *** /usr/src/sys/dev/usb/usbdevs Tue Jan 8 08:12:39 2008 --- ./usbdevs Sat Jan 26 00:09:54 2008 *************** *** 1568,1573 **** --- 1568,1574 ---- /* Logitec Corp. products */ product LOGITEC LDR_H443SU2 0x0033 DVD Multi-plus unit LDR-H443SU2 product LOGITEC LDR_H443U2 0x00b3 DVD Multi-plus unit LDR-H443U2 + product LOGITEC LAN_GTJU2 0x0102 LAN-GTJ/U2 Gigabit Ethernet Adapter /* Lucent products */ product LUCENT EVALKIT 0x1001 USS-720 evaluation kit ** /usr/src/sys/dev/usb/if_axe.c Wed Sep 26 06:08:33 2007 --- ./if_axe.c Sat Jan 26 00:10:09 2008 *************** *** 133,138 **** --- 133,139 ---- { { USB_VENDOR_PLANEX3, USB_PRODUCT_PLANEX3_GU1000T }, AX178 }, { { USB_VENDOR_SYSTEMTALKS, USB_PRODUCT_SYSTEMTALKS_SGCX2UL}, 0 }, { { USB_VENDOR_SITECOM, USB_PRODUCT_SITECOM_LN029}, 0 }, + { { USB_VENDOR_LOGITEC, USB_PRODUCT_LOGITEC_LAN_GTJU2}, AX178 }, { { USB_VENDOR_SITECOMEU, USB_PRODUCT_SITECOMEU_LN028 }, AX178 } }; >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri Jan 25 20:40:01 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CC4716A419 for ; Fri, 25 Jan 2008 20:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6BAC413C455 for ; Fri, 25 Jan 2008 20:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0PKe1Ps091049 for ; Fri, 25 Jan 2008 20:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0PKe1BX091048; Fri, 25 Jan 2008 20:40:01 GMT (envelope-from gnats) Resent-Date: Fri, 25 Jan 2008 20:40:01 GMT Resent-Message-Id: <200801252040.m0PKe1BX091048@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, "Rashid N. \"Citycat\" Achilov" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F28F16A417 for ; Fri, 25 Jan 2008 20:33:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 3FC3313C457 for ; Fri, 25 Jan 2008 20:33:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m0PKVT7e044343 for ; Fri, 25 Jan 2008 20:31:29 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m0PKVTNj044342; Fri, 25 Jan 2008 20:31:29 GMT (envelope-from nobody) Message-Id: <200801252031.m0PKVTNj044342@www.freebsd.org> Date: Fri, 25 Jan 2008 20:31:29 GMT From: "Rashid N. \"Citycat\" Achilov" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/119985: inserting of an Apacer 1Gb USB Flash leads to crash hald X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2008 20:40:01 -0000 >Number: 119985 >Category: usb >Synopsis: inserting of an Apacer 1Gb USB Flash leads to crash hald >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 25 20:40:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Rashid N. "Citycat" Achilov >Release: 6.3-PRERELEASE >Organization: Cat's Home >Environment: FreeBSD vmfree.shelton.net 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #29: Wed Jan 16 00:52:10 NOVT 2008 root@vmfree.shelton.net:/usr/obj/usr/src/sys/VmFree i386 >Description: When I insert USB Flashdrive Apacer 1Gb, hald crashed: Jan 26 01:41:40 vmfree kernel: umass0: vendor 0x1005 USB FLASH DRIVE, rev 2.00/1.00, addr 2 Jan 26 01:41:40 vmfree kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Jan 26 01:41:40 vmfree kernel: da0: < USB FLASH DRIVE PMAP> Removable Direct Access SCSI-0 device Jan 26 01:41:40 vmfree kernel: da0: 40.000MB/s transfers Jan 26 01:41:40 vmfree kernel: da0: 984MB (2015232 512 byte sectors: 64H 32S/T 984C) Jan 26 01:41:41 vmfree kernel: GEOM_LABEL: Label for provider da0s1 is msdosfs/ . Jan 26 01:43:48 vmfree kernel: pid 54401 (hald), uid 560: exited on signal 10 >How-To-Repeat: Buy Apacer 1Gb Flash in brown plastic box with transparent orange delimiter. Try to insert in USB port >Fix: Use 'normal' USB Flash (Transcend, Kingston :-\\ ) >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri Jan 25 22:20:07 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA88C16A543; Fri, 25 Jan 2008 22:20:07 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3007213C465; Fri, 25 Jan 2008 22:20:07 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0PMK6re000998; Fri, 25 Jan 2008 22:20:06 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0PMK6u4000994; Fri, 25 Jan 2008 22:20:06 GMT (envelope-from linimon) Date: Fri, 25 Jan 2008 22:20:06 GMT Message-Id: <200801252220.m0PMK6u4000994@freefall.freebsd.org> To: bruce@cran.org.uk, linimon@FreeBSD.org, freebsd-usb@FreeBSD.org, linimon@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/117366: USB keyboard status lights not working properly X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2008 22:20:07 -0000 Synopsis: USB keyboard status lights not working properly State-Changed-From-To: open->feedback State-Changed-By: linimon State-Changed-When: Fri Jan 25 22:19:16 UTC 2008 State-Changed-Why: I've gotten a report that this is fixed on 7.0-RC1. Can you confirm this? Responsible-Changed-From-To: freebsd-usb->linimon Responsible-Changed-By: linimon Responsible-Changed-When: Fri Jan 25 22:19:16 UTC 2008 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=117366 From owner-freebsd-usb@FreeBSD.ORG Fri Jan 25 22:37:49 2008 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2053016A46C; Fri, 25 Jan 2008 22:37:49 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.bluestop.org (unknown [IPv6:2001:41c8:1:548a::2]) by mx1.freebsd.org (Postfix) with ESMTP id DA2B813C45D; Fri, 25 Jan 2008 22:37:48 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from [IPv6:2a01:348:10f:0:c477:e656:f1b4:a740] (unknown [IPv6:2a01:348:10f:0:c477:e656:f1b4:a740]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTP id ADC4B3031E; Fri, 25 Jan 2008 22:37:46 +0000 (GMT) Message-ID: <479A6494.9020001@cran.org.uk> Date: Fri, 25 Jan 2008 22:37:08 +0000 From: Bruce Cran User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: linimon@FreeBSD.org References: <200801252220.m0PMK6u4000994@freefall.freebsd.org> In-Reply-To: <200801252220.m0PMK6u4000994@freefall.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@FreeBSD.org Subject: Re: usb/117366: USB keyboard status lights not working properly X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2008 22:37:49 -0000 I can no longer reproduce this problem on the laptop or desktop PC with 7.0-RC1. From owner-freebsd-usb@FreeBSD.ORG Fri Jan 25 23:10:25 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F0F216A421; Fri, 25 Jan 2008 23:10:25 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4248F13C4D5; Fri, 25 Jan 2008 23:10:25 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0PNAPIb004097; Fri, 25 Jan 2008 23:10:25 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0PNAPVb004093; Fri, 25 Jan 2008 23:10:25 GMT (envelope-from linimon) Date: Fri, 25 Jan 2008 23:10:25 GMT Message-Id: <200801252310.m0PNAPVb004093@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/119977: [ums] Mouse does not work in a Cherry-USB keyboard/mouse-combo X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2008 23:10:25 -0000 Old Synopsis: Mouse does not work in a Cherry-USB keyboard/mouse-combo New Synopsis: [ums] Mouse does not work in a Cherry-USB keyboard/mouse-combo Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Fri Jan 25 23:09:22 UTC 2008 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=119977 From owner-freebsd-usb@FreeBSD.ORG Sat Jan 26 00:34:31 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E746F16A419; Sat, 26 Jan 2008 00:34:31 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B8ACD13C43E; Sat, 26 Jan 2008 00:34:31 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0Q0YV8w012823; Sat, 26 Jan 2008 00:34:31 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0Q0YVVD012819; Sat, 26 Jan 2008 00:34:31 GMT (envelope-from linimon) Date: Sat, 26 Jan 2008 00:34:31 GMT Message-Id: <200801260034.m0Q0YVVD012819@freefall.freebsd.org> To: oliver@FreeBSD.org, linimon@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/84336: [usb] [reboot] instant system reboot when unmounting a powered off/unplugged+replugged USB device X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 00:34:32 -0000 Synopsis: [usb] [reboot] instant system reboot when unmounting a powered off/unplugged+replugged USB device State-Changed-From-To: open->suspended State-Changed-By: linimon State-Changed-When: Sat Jan 26 00:19:49 UTC 2008 State-Changed-Why: This is a well-known error: there are underlying structures in the kernel that haven't been made to understand that drives can go away. This assumption has been false for years. However, the work required is going to be quite detailed; no quick workarounds are available (they've been discussed and rejected). So, mark this one as suspended for now. http://www.freebsd.org/cgi/query-pr.cgi?pr=84336 From owner-freebsd-usb@FreeBSD.ORG Sat Jan 26 01:46:43 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F72B16A46C; Sat, 26 Jan 2008 01:46:43 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6EFE613C46A; Sat, 26 Jan 2008 01:46:43 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0Q1kh7J019297; Sat, 26 Jan 2008 01:46:43 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0Q1kgWC019293; Sat, 26 Jan 2008 01:46:42 GMT (envelope-from linimon) Date: Sat, 26 Jan 2008 01:46:42 GMT Message-Id: <200801260146.m0Q1kgWC019293@freefall.freebsd.org> To: harry@akima.flintsbach.schmalzbauer.de, linimon@FreeBSD.org, freebsd-usb@FreeBSD.org, linimon@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/115737: [uplcom] uplcom doesn't identify my Prolific 2303 any more X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 01:46:43 -0000 Synopsis: [uplcom] uplcom doesn't identify my Prolific 2303 any more State-Changed-From-To: open->feedback State-Changed-By: linimon State-Changed-When: Sat Jan 26 01:45:41 UTC 2008 State-Changed-Why: Volker Werth reports that he can't reproduce the problem with his hardware and 7.0-RC1. Can the submitter confirm if it has been fixed? Responsible-Changed-From-To: freebsd-usb->linimon Responsible-Changed-By: linimon Responsible-Changed-When: Sat Jan 26 01:45:41 UTC 2008 Responsible-Changed-Why: track. http://www.freebsd.org/cgi/query-pr.cgi?pr=115737 From owner-freebsd-usb@FreeBSD.ORG Sat Jan 26 03:45:28 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 787B216A419; Sat, 26 Jan 2008 03:45:28 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4B14E13C448; Sat, 26 Jan 2008 03:45:28 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0Q3jSxG029241; Sat, 26 Jan 2008 03:45:28 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0Q3jRBf029237; Sat, 26 Jan 2008 03:45:27 GMT (envelope-from linimon) Date: Sat, 26 Jan 2008 03:45:27 GMT Message-Id: <200801260345.m0Q3jRBf029237@freefall.freebsd.org> To: ajacoutot@lphp.org, linimon@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/52026: [usb] [feature request] umass driver support for InSystem ISD200 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 03:45:28 -0000 Synopsis: [usb] [feature request] umass driver support for InSystem ISD200 State-Changed-From-To: open->suspended State-Changed-By: linimon State-Changed-When: Sat Jan 26 03:45:17 UTC 2008 State-Changed-Why: Mark suspended awaiting a patch. http://www.freebsd.org/cgi/query-pr.cgi?pr=52026 From owner-freebsd-usb@FreeBSD.ORG Sat Jan 26 03:58:30 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46EB616A417; Sat, 26 Jan 2008 03:58:30 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1987D13C447; Sat, 26 Jan 2008 03:58:30 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0Q3wU5C030296; Sat, 26 Jan 2008 03:58:30 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0Q3wTn6030292; Sat, 26 Jan 2008 03:58:30 GMT (envelope-from linimon) Date: Sat, 26 Jan 2008 03:58:30 GMT Message-Id: <200801260358.m0Q3wTn6030292@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-usb@FreeBSD.org, imp@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/118915: usbhidctl appears to not report features and write size correctly X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 03:58:30 -0000 Synopsis: usbhidctl appears to not report features and write size correctly Responsible-Changed-From-To: freebsd-usb->imp Responsible-Changed-By: linimon Responsible-Changed-When: Sat Jan 26 03:57:28 UTC 2008 Responsible-Changed-Why: Over to imp for MFC. http://www.freebsd.org/cgi/query-pr.cgi?pr=118915 From owner-freebsd-usb@FreeBSD.ORG Sat Jan 26 07:00:06 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB00616A420 for ; Sat, 26 Jan 2008 07:00:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9AEB513C469 for ; Sat, 26 Jan 2008 07:00:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0Q706hN046052 for ; Sat, 26 Jan 2008 07:00:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0Q7063D046051; Sat, 26 Jan 2008 07:00:06 GMT (envelope-from gnats) Date: Sat, 26 Jan 2008 07:00:06 GMT Message-Id: <200801260700.m0Q7063D046051@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Ben Kelly Cc: Subject: Re: usb/95173: [umass] [patch] cannot mount external usb harddisk VIA Technologies Inc. USB 2.0 IDE Bridge X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ben Kelly List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 07:00:06 -0000 The following reply was made to PR usb/95173; it has been noted by GNATS. From: Ben Kelly To: bug-followup@freebsd.org, diazepam@gmx.net Cc: Subject: Re: usb/95173: [umass] [patch] cannot mount external usb harddisk VIA Technologies Inc. USB 2.0 IDE Bridge Date: Sat, 26 Jan 2008 01:35:41 -0500 --Apple-Mail-95--316157853 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit My last patch did not seem to get incorporated into the bug system properly. Here is a second attempt. --Apple-Mail-95--316157853 Content-Disposition: attachment; filename=via_usb_ata_patch.txt Content-Type: text/plain; x-unix-mode=0700; name="via_usb_ata_patch.txt" Content-Transfer-Encoding: 7bit Index: src/sys/dev/usb/usbdevs =================================================================== --- src/sys/dev/usb/usbdevs (revision 6) +++ src/sys/dev/usb/usbdevs (revision 9) @@ -2229,6 +2229,9 @@ /* U.S. Robotics products */ product USR USR5423 0x0121 USR5423 WLAN +/* VIA Technologies products */ +product VIA USB2IDEBRIDGE 0x6204 USB 2.0 IDE Bridge + /* VidzMedia products */ product VIDZMEDIA MONSTERTV 0x4fb1 MonsterTV P2H Index: src/sys/dev/usb/umass.c =================================================================== --- src/sys/dev/usb/umass.c (revision 6) +++ src/sys/dev/usb/umass.c (revision 9) @@ -323,6 +323,12 @@ * sector number. */ # define READ_CAPACITY_OFFBY1 0x2000 + /* Device cannot handle a SCSI synchronize cache command. Normally + * this quirk would be handled in the cam layer, but for IDE bridges + * we need to associate the quirk with the bridge and not the + * underlying disk device. This is handled by faking a success result. + */ +# define NO_SYNCHRONIZE_CACHE 0x4000 }; static struct umass_devdescr_t umass_devdescrs[] = { @@ -804,6 +810,10 @@ UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_QUIRKS }, + { USB_VENDOR_VIA, USB_PRODUCT_VIA_USB2IDEBRIDGE, RID_WILDCARD, + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, + NO_SYNCHRONIZE_CACHE + }, { USB_VENDOR_VIVITAR, USB_PRODUCT_VIVITAR_35XX, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_INQUIRY @@ -2878,6 +2888,15 @@ xpt_done(ccb); return; } + if ((sc->quirks & NO_SYNCHRONIZE_CACHE) && + rcmd[0] == SYNCHRONIZE_CACHE) { + struct ccb_scsiio *csio = &ccb->csio; + + csio->scsi_status = SCSI_STATUS_OK; + ccb->ccb_h.status = CAM_REQ_CMP; + xpt_done(ccb); + return; + } if ((sc->quirks & FORCE_SHORT_INQUIRY) && rcmd[0] == INQUIRY) { csio->dxfer_len = SHORT_INQUIRY_LENGTH; --Apple-Mail-95--316157853 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit --Apple-Mail-95--316157853-- From owner-freebsd-usb@FreeBSD.ORG Sat Jan 26 10:30:03 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3251D16A418 for ; Sat, 26 Jan 2008 10:30:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 20AB613C455 for ; Sat, 26 Jan 2008 10:30:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0QAU2dx066870 for ; Sat, 26 Jan 2008 10:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0QAU2PF066867; Sat, 26 Jan 2008 10:30:02 GMT (envelope-from gnats) Date: Sat, 26 Jan 2008 10:30:02 GMT Message-Id: <200801261030.m0QAU2PF066867@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Marc Fonvieille Cc: Subject: Re: usb/95173: [umass] [patch] cannot mount external usb harddisk VIA Technologies Inc. USB 2.0 IDE Bridge X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marc Fonvieille List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 10:30:03 -0000 The following reply was made to PR usb/95173; it has been noted by GNATS. From: Marc Fonvieille To: Ben Kelly Cc: freebsd-usb@FreeBSD.org, bug-followup@FreeBSD.org Subject: Re: usb/95173: [umass] [patch] cannot mount external usb harddisk VIA Technologies Inc. USB 2.0 IDE Bridge Date: Sat, 26 Jan 2008 11:26:18 +0100 On Sat, Jan 26, 2008 at 07:00:06AM +0000, Ben Kelly wrote: > The following reply was made to PR usb/95173; it has been noted by GNATS. > > From: Ben Kelly > To: bug-followup@freebsd.org, diazepam@gmx.net > Cc: > Subject: Re: usb/95173: [umass] [patch] cannot mount external usb harddisk VIA Technologies Inc. USB 2.0 IDE Bridge > Date: Sat, 26 Jan 2008 01:35:41 -0500 > > --Apple-Mail-95--316157853 > Content-Type: text/plain; > charset=US-ASCII; > format=flowed; > delsp=yes > Content-Transfer-Encoding: 7bit > > My last patch did not seem to get incorporated into the bug system > properly. Here is a second attempt. > > I can confirm this patch fixed the problem I also had with 2 VIA USB 2.0 IDE Bridge based enclosures. I did my tests on 7.0-PRERELEASE. This patch should be committed :) -- Marc From owner-freebsd-usb@FreeBSD.ORG Sat Jan 26 10:37:54 2008 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09E8416A419 for ; Sat, 26 Jan 2008 10:37:54 +0000 (UTC) (envelope-from marc@blackend.org) Received: from abigail.blackend.org (ns0.blackend.org [82.227.222.164]) by mx1.freebsd.org (Postfix) with ESMTP id 769B813C4FD for ; Sat, 26 Jan 2008 10:37:53 +0000 (UTC) (envelope-from marc@blackend.org) Received: from gothic.blackend.org (gothic.blackend.org [192.168.1.203]) by abigail.blackend.org (8.13.4/8.13.3) with ESMTP id m0QAQJc3015292; Sat, 26 Jan 2008 11:26:19 +0100 (CET) (envelope-from marc@abigail.blackend.org) Received: from gothic.blackend.org (localhost [127.0.0.1]) by gothic.blackend.org (8.14.2/8.14.1) with ESMTP id m0QAQI3c001111; Sat, 26 Jan 2008 11:26:19 +0100 (CET) (envelope-from marc@gothic.blackend.org) Received: (from marc@localhost) by gothic.blackend.org (8.14.2/8.14.1/Submit) id m0QAQIC5001110; Sat, 26 Jan 2008 11:26:18 +0100 (CET) (envelope-from marc) Date: Sat, 26 Jan 2008 11:26:18 +0100 From: Marc Fonvieille To: Ben Kelly Message-ID: <20080126102618.GA1073@gothic.blackend.org> References: <200801260700.m0Q7063D046051@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200801260700.m0Q7063D046051@freefall.freebsd.org> X-Useless-Header: blackend.org X-Operating-System: FreeBSD 7.0-PRERELEASE User-Agent: Mutt/1.5.16 (2007-06-09) Cc: bug-followup@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: usb/95173: [umass] [patch] cannot mount external usb harddisk VIA Technologies Inc. USB 2.0 IDE Bridge X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 10:37:54 -0000 On Sat, Jan 26, 2008 at 07:00:06AM +0000, Ben Kelly wrote: > The following reply was made to PR usb/95173; it has been noted by GNATS. > > From: Ben Kelly > To: bug-followup@freebsd.org, diazepam@gmx.net > Cc: > Subject: Re: usb/95173: [umass] [patch] cannot mount external usb harddisk VIA Technologies Inc. USB 2.0 IDE Bridge > Date: Sat, 26 Jan 2008 01:35:41 -0500 > > --Apple-Mail-95--316157853 > Content-Type: text/plain; > charset=US-ASCII; > format=flowed; > delsp=yes > Content-Transfer-Encoding: 7bit > > My last patch did not seem to get incorporated into the bug system > properly. Here is a second attempt. > > I can confirm this patch fixed the problem I also had with 2 VIA USB 2.0 IDE Bridge based enclosures. I did my tests on 7.0-PRERELEASE. This patch should be committed :) -- Marc From owner-freebsd-usb@FreeBSD.ORG Sat Jan 26 11:55:11 2008 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24D4C16A421 for ; Sat, 26 Jan 2008 11:55:11 +0000 (UTC) (envelope-from henrik@gulbra.net) Received: from av9-2-sn2.hy.skanova.net (av9-2-sn2.hy.skanova.net [81.228.8.180]) by mx1.freebsd.org (Postfix) with ESMTP id A1AF913C461 for ; Sat, 26 Jan 2008 11:55:10 +0000 (UTC) (envelope-from henrik@gulbra.net) Received: by av9-2-sn2.hy.skanova.net (Postfix, from userid 502) id 19B9B3843F; Sat, 26 Jan 2008 12:55:09 +0100 (CET) Received: from smtp4-2-sn2.hy.skanova.net (smtp4-2-sn2.hy.skanova.net [81.228.8.93]) by av9-2-sn2.hy.skanova.net (Postfix) with ESMTP id E7B363843B; Sat, 26 Jan 2008 12:55:08 +0100 (CET) Received: from [192.168.0.2] (81-235-156-87-no29.tbcn.telia.com [81.235.156.87]) by smtp4-2-sn2.hy.skanova.net (Postfix) with ESMTP id A7E3537E49; Sat, 26 Jan 2008 12:55:08 +0100 (CET) From: Henrik Gulbrandsen To: linimon@FreeBSD.org In-Reply-To: <200801260034.m0Q0YVVD012819@freefall.freebsd.org> References: <200801260034.m0Q0YVVD012819@freefall.freebsd.org> Content-Type: text/plain Date: Sat, 26 Jan 2008 12:54:54 +0100 Message-Id: <1201348494.2277.96.camel@Particle> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-usb@FreeBSD.org, oliver@FreeBSD.org Subject: Re: usb/84336: [usb] [reboot] instant system reboot when unmounting a powered off/unplugged+replugged USB device X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 11:55:11 -0000 On Sat, 2008-01-26 at 00:34 +0000, linimon@FreeBSD.org wrote: > This is a well-known error: there are underlying structures in the kernel > that haven't been made to understand that drives can go away. This > assumption has been false for years. However, the work required is going > to be quite detailed; no quick workarounds are available (they've been > discussed and rejected). So, mark this one as suspended for now. Just out of curiosity: when was this problem last discussed in earnest, what were the suggested workarounds, and why were they rejected? This seems to be a variety of my pet peeve, usb/46176. From what I see, the workaround has been about four patches away most of the time, but I get the feeling that nobody has bothered looking for it, because it has been a well-known "fact" that the solution must involve a full redesign of the underlying subsystems. At least four subsystems are involved here: USB, SCSI, GEOM, and the file system, which would most commonly be the msdosfs in this scenario. The first three of these SHOULD already be handling disappearing drives, but SCSI gets a bit confused when the file system is still around. That was the main problem worked around in the new patch mentioned here: http://lists.freebsd.org/pipermail/freebsd-usb/2007-December/004286.html At this point, only the file systems need to be updated. The cleanest way to handle things may be to have GEOM automatically unmount them at orphaning. Until that's done, however, unmounting from user space via devd seems to be a reasonable approach. Now, I know that this is something of a moving target. There will almost certainly be other problems in this area, for instance when some devices suddenly disappear under high load. That doesn't change the fact that we are slowly getting there. Remember: this bug won't go away until we have the courage to stop running, turn around, and say "boo"! :-) /Henrik From owner-freebsd-usb@FreeBSD.ORG Sat Jan 26 19:20:03 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 120C216A421 for ; Sat, 26 Jan 2008 19:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 06D2C13C45A for ; Sat, 26 Jan 2008 19:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0QJK292010893 for ; Sat, 26 Jan 2008 19:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0QJK2ZP010892; Sat, 26 Jan 2008 19:20:02 GMT (envelope-from gnats) Date: Sat, 26 Jan 2008 19:20:02 GMT Message-Id: <200801261920.m0QJK2ZP010892@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Ben Kelly Cc: Subject: Re: usb/95173: [umass] [patch] cannot mount external usb harddisk VIA Technologies Inc. USB 2.0 IDE Bridge X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ben Kelly List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 19:20:03 -0000 The following reply was made to PR usb/95173; it has been noted by GNATS. From: Ben Kelly To: bug-followup@FreeBSD.org, diazepam@gmx.net Cc: Subject: Re: usb/95173: [umass] [patch] cannot mount external usb harddisk VIA Technologies Inc. USB 2.0 IDE Bridge Date: Sat, 26 Jan 2008 14:14:16 -0500 For the PR I thought I would also just throw in another thought I had. It occurred to me that since umass devices are usually designed for a "can be pulled at any time" environment, it seems likely that most of them disable write caching anyways. With that in mind, would it make more sense to disable the SYNC command by default and add a quirk for those devices where its known to be functioning and useful? This might increase the default compatibility of the FreeBSD USB stack with devices in the future. I count around 34 entries in scsi_da.c for umass devices simply to add the NO_SYNC quirk. Just a thought. If people are interested I can develop a patch for this. From owner-freebsd-usb@FreeBSD.ORG Sat Jan 26 20:10:03 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 675C916A41B for ; Sat, 26 Jan 2008 20:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4E1E513C468 for ; Sat, 26 Jan 2008 20:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0QKA3eE013815 for ; Sat, 26 Jan 2008 20:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0QKA3tE013812; Sat, 26 Jan 2008 20:10:03 GMT (envelope-from gnats) Resent-Date: Sat, 26 Jan 2008 20:10:03 GMT Resent-Message-Id: <200801262010.m0QKA3tE013812@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, Ivan Voras Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 371A916A41A for ; Sat, 26 Jan 2008 20:04:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 2D32813C45A for ; Sat, 26 Jan 2008 20:04:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m0QK3E9O012575 for ; Sat, 26 Jan 2008 20:03:14 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m0QK3EtF012574; Sat, 26 Jan 2008 20:03:14 GMT (envelope-from nobody) Message-Id: <200801262003.m0QK3EtF012574@www.freebsd.org> Date: Sat, 26 Jan 2008 20:03:14 GMT From: Ivan Voras To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/120017: CS5536 (AMD Geode) USB 2.0 quirk X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 20:10:03 -0000 >Number: 120017 >Category: usb >Synopsis: CS5536 (AMD Geode) USB 2.0 quirk >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jan 26 20:10:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Ivan Voras >Release: 7-STABLE >Organization: >Environment: FreeBSD ursaminor.cosmos 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #3: Fri Jan 25 00:20:32 CET 2008 ivoras@ursaminor.cosmos:/usr/obj/usr/src/sys/URSAMINOR i386 >Description: A quirk has to be made so USB 2.0 (EHCI) works on CS5536 (embedded AMD Geode companion chip) controller. >How-To-Repeat: Boot FreeBSD 7 or 8 on a suitable machine (e.g. fit-pc), observe the message "ehci0: pre-2.0 USB rev". >Fix: Patch supplied. Patch attached with submission follows: --- patch.txt begins here --- --- usb_/ehci_pci.c 2008-01-26 18:42:11.000000000 +0100 +++ usb/ehci_pci.c 2008-01-26 18:50:20.000000000 +0100 @@ -99,6 +99,8 @@ /* AMD */ #define PCI_EHCI_DEVICEID_8111 0x10227463 static const char *ehci_device_8111 = "AMD 8111 USB 2.0 controller"; +#define PCI_EHCI_DEVICEID_CS5536 0x20951022 +static const char *ehci_device_cs5536 = "AMD CS5536 (Geode) USB 2.0 controller"; /* ATI */ #define PCI_EHCI_DEVICEID_SB200 0x43451002 @@ -214,6 +216,8 @@ return (ehci_device_m5239); case PCI_EHCI_DEVICEID_8111: return (ehci_device_8111); + case PCI_EHCI_DEVICEID_CS5536: + return (ehci_device_cs5536); case PCI_EHCI_DEVICEID_SB200: return (ehci_device_sb200); case PCI_EHCI_DEVICEID_SB400: @@ -293,6 +297,10 @@ case PCI_USBREV_1_1: sc->sc_bus.usbrev = USBREV_UNKNOWN; device_printf(self, "pre-2.0 USB rev\n"); + if (pci_get_devid(self) == PCI_EHCI_DEVICEID_CS5536) { + device_printf(self, "Quirk for CS5536 USB 2.0 enabled\n"); + break; + } return ENXIO; case PCI_USBREV_2_0: sc->sc_bus.usbrev = USBREV_2_0; --- patch.txt ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sat Jan 26 20:19:36 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB2B416A419 for ; Sat, 26 Jan 2008 20:19:36 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id B58BE13C465 for ; Sat, 26 Jan 2008 20:19:35 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.3] (account mc467741@c2i.net HELO [10.0.0.122]) by mailfe07.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 781583962; Sat, 26 Jan 2008 21:19:33 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sat, 26 Jan 2008 21:20:23 +0100 User-Agent: KMail/1.9.7 References: <200801262003.m0QK3EtF012574@www.freebsd.org> In-Reply-To: <200801262003.m0QK3EtF012574@www.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801262120.25261.hselasky@c2i.net> Cc: freebsd-gnats-submit@freebsd.org, Ivan Voras Subject: Re: usb/120017: CS5536 (AMD Geode) USB 2.0 quirk X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 20:19:36 -0000 On Saturday 26 January 2008, Ivan Voras wrote: > >Number: 120017 > >Category: usb > >Synopsis: CS5536 (AMD Geode) USB 2.0 quirk > >Confidential: no > >Severity: serious > >Priority: medium > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Sat Jan 26 20:10:02 UTC 2008 > >Closed-Date: > >Last-Modified: > >Originator: Ivan Voras > >Release: 7-STABLE > >Organization: > >Environment: > > FreeBSD ursaminor.cosmos 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #3: Fri Jan > 25 00:20:32 CET 2008 > ivoras@ursaminor.cosmos:/usr/obj/usr/src/sys/URSAMINOR i386 > > >Description: > > A quirk has to be made so USB 2.0 (EHCI) works on CS5536 (embedded AMD > Geode companion chip) controller. > > >How-To-Repeat: > > Boot FreeBSD 7 or 8 on a suitable machine (e.g. fit-pc), observe the > message "ehci0: pre-2.0 USB rev". > > >Fix: > > Patch supplied. > > Patch attached with submission follows: > > --- patch.txt begins here --- > --- usb_/ehci_pci.c 2008-01-26 18:42:11.000000000 +0100 > +++ usb/ehci_pci.c 2008-01-26 18:50:20.000000000 +0100 > @@ -99,6 +99,8 @@ > /* AMD */ > #define PCI_EHCI_DEVICEID_8111 0x10227463 > static const char *ehci_device_8111 = "AMD 8111 USB 2.0 controller"; > +#define PCI_EHCI_DEVICEID_CS5536 0x20951022 > +static const char *ehci_device_cs5536 = "AMD CS5536 (Geode) USB 2.0 > controller"; > > /* ATI */ > #define PCI_EHCI_DEVICEID_SB200 0x43451002 > @@ -214,6 +216,8 @@ > return (ehci_device_m5239); > case PCI_EHCI_DEVICEID_8111: > return (ehci_device_8111); > + case PCI_EHCI_DEVICEID_CS5536: > + return (ehci_device_cs5536); > case PCI_EHCI_DEVICEID_SB200: > return (ehci_device_sb200); > case PCI_EHCI_DEVICEID_SB400: > @@ -293,6 +297,10 @@ > case PCI_USBREV_1_1: > sc->sc_bus.usbrev = USBREV_UNKNOWN; > device_printf(self, "pre-2.0 USB rev\n"); > + if (pci_get_devid(self) == PCI_EHCI_DEVICEID_CS5536) { > + device_printf(self, "Quirk for CS5536 USB 2.0 enabled\n"); > + break; > + } > return ENXIO; > case PCI_USBREV_2_0: > sc->sc_bus.usbrev = USBREV_2_0; > > --- patch.txt ends here --- > Hi, Do you know if the EHCI chip used is compliant to USBREV_2_0 ? --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Jan 26 20:40:06 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A6EE16A49E for ; Sat, 26 Jan 2008 20:40:06 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 05D3A13C474 for ; Sat, 26 Jan 2008 20:40:05 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1JIrop-0007ot-Em for freebsd-usb@freebsd.org; Sat, 26 Jan 2008 20:40:03 +0000 Received: from 89-172-58-9.adsl.net.t-com.hr ([89.172.58.9]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Jan 2008 20:40:03 +0000 Received: from ivoras by 89-172-58-9.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Jan 2008 20:40:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: Ivan Voras Date: Sat, 26 Jan 2008 21:39:21 +0100 Lines: 31 Message-ID: References: <200801262003.m0QK3EtF012574@www.freebsd.org> <200801262120.25261.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig29BC9E9490F009827B5A8EEC" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 89-172-58-9.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: <200801262120.25261.hselasky@c2i.net> X-Enigmail-Version: 0.95.6 Sender: news Subject: Re: usb/120017: CS5536 (AMD Geode) USB 2.0 quirk X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 20:40:06 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig29BC9E9490F009827B5A8EEC Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Hans Petter Selasky wrote: > Do you know if the EHCI chip used is compliant to USBREV_2_0 ? I have no exact knowledge of this (i.e. don't know if it's 100%=20 compliant in every way) but it works, recognizing and enabling USB 2.0=20 devices, with expected transfer rates. And it works fine in Linux without special patches. --------------enig29BC9E9490F009827B5A8EEC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHm5p5ldnAQVacBcgRAkq8AJ9CLYJo2K/vCPSlWejdEs6OGUotOACgo1bG rgRmIKl7IWpFlVP94qUuc7g= =oE8N -----END PGP SIGNATURE----- --------------enig29BC9E9490F009827B5A8EEC-- From owner-freebsd-usb@FreeBSD.ORG Sat Jan 26 20:43:30 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C0BC16A420 for ; Sat, 26 Jan 2008 20:43:30 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.186]) by mx1.freebsd.org (Postfix) with ESMTP id 5345313C45D for ; Sat, 26 Jan 2008 20:43:29 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so1070730rvb.43 for ; Sat, 26 Jan 2008 12:43:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; bh=X+OTlqbPFqSSrJlpXRw46QLX36upntyZ+WMcun7xP1c=; b=hTv02JBI1jrt2e7XcQrtMgC+lKQeHRrkqXRsbGxi0xXLiMpKpc7DEXrvZcarNz0/fT4Ote4kjEi3YTv2WYdrG5qtZvLos72o8y8OqlEawsTLRXuNXQ6nux0s9BieyP32tOxf2QeGDUQKGQ80OmbGlnuktOQihw4MjIQulpn2dfs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=dqfYs28tf2XLqpYWj/OWKMCGIMxA98GhND4nBiWDEkBcIfaTv+hTCXp7JNIyXBL4pjXP3DpBmevIDp9XTaLDPBnuUi2bmt3r15IJp7HGXzZdsBufajjRGz1I21zjHJE5zk4X8UVUM3v4vXlhR+wxxu44qzeJ6sE3qDFuaDFvmR0= Received: by 10.140.185.19 with SMTP id i19mr2366827rvf.296.1201378648088; Sat, 26 Jan 2008 12:17:28 -0800 (PST) Received: by 10.141.212.1 with HTTP; Sat, 26 Jan 2008 12:17:28 -0800 (PST) Message-ID: <9bbcef730801261217h4168f3b2n52e0e41c42698873@mail.gmail.com> Date: Sat, 26 Jan 2008 21:17:28 +0100 From: "Ivan Voras" Sender: ivoras@gmail.com To: FreeBSD-gnats-submit@freebsd.org, freebsd-usb@freebsd.org In-Reply-To: <200801262010.m0QKA2oc013805@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5314_3627713.1201378648116" References: <200801262003.m0QK3EtF012574@www.freebsd.org> <200801262010.m0QKA2oc013805@freefall.freebsd.org> X-Google-Sender-Auth: 2cb6891c32113151 Cc: Subject: Re: usb/120017: CS5536 (AMD Geode) USB 2.0 quirk X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 20:43:30 -0000 ------=_Part_5314_3627713.1201378648116 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline More correct patch attached :) ------=_Part_5314_3627713.1201378648116 Content-Type: text/plain; name=ehci_pci.c.patch.txt Content-Transfer-Encoding: base64 X-Attachment-Id: f_fbwlt9bo Content-Disposition: attachment; filename=ehci_pci.c.patch.txt LS0tIHVzYl8vZWhjaV9wY2kuYwkyMDA4LTAxLTI2IDE4OjQyOjExLjAwMDAwMDAwMCArMDEwMAor KysgdXNiL2VoY2lfcGNpLmMJMjAwOC0wMS0yNiAyMToxNToyOC4wMDAwMDAwMDAgKzAxMDAKQEAg LTk5LDYgKzk5LDggQEAKIC8qIEFNRCAqLwogI2RlZmluZSBQQ0lfRUhDSV9ERVZJQ0VJRF84MTEx CQkweDEwMjI3NDYzCiBzdGF0aWMgY29uc3QgY2hhciAqZWhjaV9kZXZpY2VfODExMSA9ICJBTUQg ODExMSBVU0IgMi4wIGNvbnRyb2xsZXIiOworI2RlZmluZSBQQ0lfRUhDSV9ERVZJQ0VJRF9DUzU1 MzYJMHgyMDk1MTAyMgorc3RhdGljIGNvbnN0IGNoYXIgKmVoY2lfZGV2aWNlX2NzNTUzNiA9ICJB TUQgQ1M1NTM2IChHZW9kZSkgVVNCIDIuMCBjb250cm9sbGVyIjsKIAogLyogQVRJICovCiAjZGVm aW5lIFBDSV9FSENJX0RFVklDRUlEX1NCMjAwCQkweDQzNDUxMDAyCkBAIC0yMTQsNiArMjE2LDgg QEAKIAkJcmV0dXJuIChlaGNpX2RldmljZV9tNTIzOSk7CiAJY2FzZSBQQ0lfRUhDSV9ERVZJQ0VJ RF84MTExOgogCQlyZXR1cm4gKGVoY2lfZGV2aWNlXzgxMTEpOworCWNhc2UgUENJX0VIQ0lfREVW SUNFSURfQ1M1NTM2OgorCQlyZXR1cm4gKGVoY2lfZGV2aWNlX2NzNTUzNik7CiAJY2FzZSBQQ0lf RUhDSV9ERVZJQ0VJRF9TQjIwMDoKIAkJcmV0dXJuIChlaGNpX2RldmljZV9zYjIwMCk7CiAJY2Fz ZSBQQ0lfRUhDSV9ERVZJQ0VJRF9TQjQwMDoKQEAgLTI5MSw4ICsyOTUsMTMgQEAKIAljYXNlIFBD SV9VU0JSRVZfUFJFXzFfMDoKIAljYXNlIFBDSV9VU0JSRVZfMV8wOgogCWNhc2UgUENJX1VTQlJF Vl8xXzE6Ci0JCXNjLT5zY19idXMudXNicmV2ID0gVVNCUkVWX1VOS05PV047CiAJCWRldmljZV9w cmludGYoc2VsZiwgInByZS0yLjAgVVNCIHJldlxuIik7CisJCWlmIChwY2lfZ2V0X2RldmlkKHNl bGYpID09IFBDSV9FSENJX0RFVklDRUlEX0NTNTUzNikgeworCQkJc2MtPnNjX2J1cy51c2JyZXYg PSBVU0JSRVZfMl8wOworCQkJZGV2aWNlX3ByaW50ZihzZWxmLCAiUXVpcmsgZm9yIENTNTUzNiBV U0IgMi4wIGVuYWJsZWRcbiIpOworCQkJYnJlYWs7CisJCX0KKwkJc2MtPnNjX2J1cy51c2JyZXYg PSBVU0JSRVZfVU5LTk9XTjsKIAkJcmV0dXJuIEVOWElPOwogCWNhc2UgUENJX1VTQlJFVl8yXzA6 CiAJCXNjLT5zY19idXMudXNicmV2ID0gVVNCUkVWXzJfMDsK ------=_Part_5314_3627713.1201378648116-- From owner-freebsd-usb@FreeBSD.ORG Sat Jan 26 20:50:03 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95BC716A417 for ; Sat, 26 Jan 2008 20:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8A36C13C43E for ; Sat, 26 Jan 2008 20:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0QKo3ft018855 for ; Sat, 26 Jan 2008 20:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0QKo3OO018854; Sat, 26 Jan 2008 20:50:03 GMT (envelope-from gnats) Date: Sat, 26 Jan 2008 20:50:03 GMT Message-Id: <200801262050.m0QKo3OO018854@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "Ivan Voras" Cc: Subject: Re: usb/120017: CS5536 (AMD Geode) USB 2.0 quirk X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ivan Voras List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 20:50:03 -0000 The following reply was made to PR usb/120017; it has been noted by GNATS. From: "Ivan Voras" To: FreeBSD-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Cc: Subject: Re: usb/120017: CS5536 (AMD Geode) USB 2.0 quirk Date: Sat, 26 Jan 2008 21:17:28 +0100 ------=_Part_5314_3627713.1201378648116 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline More correct patch attached :) ------=_Part_5314_3627713.1201378648116 Content-Type: text/plain; name=ehci_pci.c.patch.txt Content-Transfer-Encoding: base64 X-Attachment-Id: f_fbwlt9bo Content-Disposition: attachment; filename=ehci_pci.c.patch.txt LS0tIHVzYl8vZWhjaV9wY2kuYwkyMDA4LTAxLTI2IDE4OjQyOjExLjAwMDAwMDAwMCArMDEwMAor KysgdXNiL2VoY2lfcGNpLmMJMjAwOC0wMS0yNiAyMToxNToyOC4wMDAwMDAwMDAgKzAxMDAKQEAg LTk5LDYgKzk5LDggQEAKIC8qIEFNRCAqLwogI2RlZmluZSBQQ0lfRUhDSV9ERVZJQ0VJRF84MTEx CQkweDEwMjI3NDYzCiBzdGF0aWMgY29uc3QgY2hhciAqZWhjaV9kZXZpY2VfODExMSA9ICJBTUQg ODExMSBVU0IgMi4wIGNvbnRyb2xsZXIiOworI2RlZmluZSBQQ0lfRUhDSV9ERVZJQ0VJRF9DUzU1 MzYJMHgyMDk1MTAyMgorc3RhdGljIGNvbnN0IGNoYXIgKmVoY2lfZGV2aWNlX2NzNTUzNiA9ICJB TUQgQ1M1NTM2IChHZW9kZSkgVVNCIDIuMCBjb250cm9sbGVyIjsKIAogLyogQVRJICovCiAjZGVm aW5lIFBDSV9FSENJX0RFVklDRUlEX1NCMjAwCQkweDQzNDUxMDAyCkBAIC0yMTQsNiArMjE2LDgg QEAKIAkJcmV0dXJuIChlaGNpX2RldmljZV9tNTIzOSk7CiAJY2FzZSBQQ0lfRUhDSV9ERVZJQ0VJ RF84MTExOgogCQlyZXR1cm4gKGVoY2lfZGV2aWNlXzgxMTEpOworCWNhc2UgUENJX0VIQ0lfREVW SUNFSURfQ1M1NTM2OgorCQlyZXR1cm4gKGVoY2lfZGV2aWNlX2NzNTUzNik7CiAJY2FzZSBQQ0lf RUhDSV9ERVZJQ0VJRF9TQjIwMDoKIAkJcmV0dXJuIChlaGNpX2RldmljZV9zYjIwMCk7CiAJY2Fz ZSBQQ0lfRUhDSV9ERVZJQ0VJRF9TQjQwMDoKQEAgLTI5MSw4ICsyOTUsMTMgQEAKIAljYXNlIFBD SV9VU0JSRVZfUFJFXzFfMDoKIAljYXNlIFBDSV9VU0JSRVZfMV8wOgogCWNhc2UgUENJX1VTQlJF Vl8xXzE6Ci0JCXNjLT5zY19idXMudXNicmV2ID0gVVNCUkVWX1VOS05PV047CiAJCWRldmljZV9w cmludGYoc2VsZiwgInByZS0yLjAgVVNCIHJldlxuIik7CisJCWlmIChwY2lfZ2V0X2RldmlkKHNl bGYpID09IFBDSV9FSENJX0RFVklDRUlEX0NTNTUzNikgeworCQkJc2MtPnNjX2J1cy51c2JyZXYg PSBVU0JSRVZfMl8wOworCQkJZGV2aWNlX3ByaW50ZihzZWxmLCAiUXVpcmsgZm9yIENTNTUzNiBV U0IgMi4wIGVuYWJsZWRcbiIpOworCQkJYnJlYWs7CisJCX0KKwkJc2MtPnNjX2J1cy51c2JyZXYg PSBVU0JSRVZfVU5LTk9XTjsKIAkJcmV0dXJuIEVOWElPOwogCWNhc2UgUENJX1VTQlJFVl8yXzA6 CiAJCXNjLT5zY19idXMudXNicmV2ID0gVVNCUkVWXzJfMDsK ------=_Part_5314_3627713.1201378648116-- From owner-freebsd-usb@FreeBSD.ORG Sat Jan 26 21:20:05 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58DD816A468 for ; Sat, 26 Jan 2008 21:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4DBBF13C46E for ; Sat, 26 Jan 2008 21:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0QLK4nn021354 for ; Sat, 26 Jan 2008 21:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0QLK4O3021353; Sat, 26 Jan 2008 21:20:04 GMT (envelope-from gnats) Date: Sat, 26 Jan 2008 21:20:04 GMT Message-Id: <200801262120.m0QLK4O3021353@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/120017: CS5536 (AMD Geode) USB 2.0 quirk X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2008 21:20:05 -0000 The following reply was made to PR usb/120017; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Ivan Voras , freebsd-gnats-submit@freebsd.org Subject: Re: usb/120017: CS5536 (AMD Geode) USB 2.0 quirk Date: Sat, 26 Jan 2008 21:20:23 +0100 On Saturday 26 January 2008, Ivan Voras wrote: > >Number: 120017 > >Category: usb > >Synopsis: CS5536 (AMD Geode) USB 2.0 quirk > >Confidential: no > >Severity: serious > >Priority: medium > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Sat Jan 26 20:10:02 UTC 2008 > >Closed-Date: > >Last-Modified: > >Originator: Ivan Voras > >Release: 7-STABLE > >Organization: > >Environment: > > FreeBSD ursaminor.cosmos 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #3: Fri Jan > 25 00:20:32 CET 2008 > ivoras@ursaminor.cosmos:/usr/obj/usr/src/sys/URSAMINOR i386 > > >Description: > > A quirk has to be made so USB 2.0 (EHCI) works on CS5536 (embedded AMD > Geode companion chip) controller. > > >How-To-Repeat: > > Boot FreeBSD 7 or 8 on a suitable machine (e.g. fit-pc), observe the > message "ehci0: pre-2.0 USB rev". > > >Fix: > > Patch supplied. > > Patch attached with submission follows: > > --- patch.txt begins here --- > --- usb_/ehci_pci.c 2008-01-26 18:42:11.000000000 +0100 > +++ usb/ehci_pci.c 2008-01-26 18:50:20.000000000 +0100 > @@ -99,6 +99,8 @@ > /* AMD */ > #define PCI_EHCI_DEVICEID_8111 0x10227463 > static const char *ehci_device_8111 = "AMD 8111 USB 2.0 controller"; > +#define PCI_EHCI_DEVICEID_CS5536 0x20951022 > +static const char *ehci_device_cs5536 = "AMD CS5536 (Geode) USB 2.0 > controller"; > > /* ATI */ > #define PCI_EHCI_DEVICEID_SB200 0x43451002 > @@ -214,6 +216,8 @@ > return (ehci_device_m5239); > case PCI_EHCI_DEVICEID_8111: > return (ehci_device_8111); > + case PCI_EHCI_DEVICEID_CS5536: > + return (ehci_device_cs5536); > case PCI_EHCI_DEVICEID_SB200: > return (ehci_device_sb200); > case PCI_EHCI_DEVICEID_SB400: > @@ -293,6 +297,10 @@ > case PCI_USBREV_1_1: > sc->sc_bus.usbrev = USBREV_UNKNOWN; > device_printf(self, "pre-2.0 USB rev\n"); > + if (pci_get_devid(self) == PCI_EHCI_DEVICEID_CS5536) { > + device_printf(self, "Quirk for CS5536 USB 2.0 enabled\n"); > + break; > + } > return ENXIO; > case PCI_USBREV_2_0: > sc->sc_bus.usbrev = USBREV_2_0; > > --- patch.txt ends here --- > Hi, Do you know if the EHCI chip used is compliant to USBREV_2_0 ? --HPS