From owner-freebsd-usb@FreeBSD.ORG Sun Mar 11 00:50:08 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0489116A402 for ; Sun, 11 Mar 2007 00:50:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id EABFB13C467 for ; Sun, 11 Mar 2007 00:50:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2B0o7dd076650 for ; Sun, 11 Mar 2007 00:50:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2B0o7Vs076649; Sun, 11 Mar 2007 00:50:07 GMT (envelope-from gnats) Date: Sun, 11 Mar 2007 00:50:07 GMT Message-Id: <200703110050.l2B0o7Vs076649@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Jonathan Fosburgh Cc: Subject: Re: usb/107642: [patch]Ralink Technology RT2501USB/RT2601USB chipset driver X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jonathan Fosburgh List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Mar 2007 00:50:08 -0000 The following reply was made to PR usb/107642; it has been noted by GNATS. From: Jonathan Fosburgh To: bug-followup@freebsd.org, valera@chikalov.dp.ua Cc: Subject: Re: usb/107642: [patch]Ralink Technology RT2501USB/RT2601USB chipset driver Date: Sat, 10 Mar 2007 18:45:18 -0600 I am trying to compile this on -CURRENT and I am receiving the following in rum: `--# make Warning: Object directory not changed from original /usr/src/sys/modules/rum :> opt_bdg.h :> opt_usb.h awk -f @/tools/makeobjops.awk @/kern/device_if.m -h awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h awk -f @/tools/usbdevs2h.awk @/dev/usb/usbdevs -h cc -O2 -pipe -march=athlon64 -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I- -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -c /usr/src/sys/modules/rum/../../dev/usb/if_rum.c /usr/src/sys/modules/rum/../../dev/usb/if_rum.c: In function `rum_attachhook': /usr/src/sys/modules/rum/../../dev/usb/if_rum.c:246: warning: assignment discards qualifiers from pointer target type /usr/src/sys/modules/rum/../../dev/usb/if_rum.c:254: warning: int format, different type arg (arg 4) *** Error code 1 Stop in /usr/src/sys/modules/rum. I would hope if I could figure out where I am picking up the -Werror from I could get it to build, but I would assume others have made it build correctly on -CURRENT, so I should think it would compile fine. I have a Novatech nv-902w adapter that is currently working on the ural driver, but wpa crashes it. According to what I have seen in Linux forums it is a 2570 chipset, so I wonder if this driver might be more appropriate. From owner-freebsd-usb@FreeBSD.ORG Sun Mar 11 01:00:18 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D5BE016A400 for ; Sun, 11 Mar 2007 01:00:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id C472E13C441 for ; Sun, 11 Mar 2007 01:00:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2B10IxI077000 for ; Sun, 11 Mar 2007 01:00:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2B10IZd076999; Sun, 11 Mar 2007 01:00:18 GMT (envelope-from gnats) Date: Sun, 11 Mar 2007 01:00:18 GMT Message-Id: <200703110100.l2B10IZd076999@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Jonathan Fosburgh Cc: Subject: Re: kern/92083: [ural] [panic] panic using WPA on ural NIC in 6.2-RELEASE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jonathan Fosburgh List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Mar 2007 01:00:19 -0000 The following reply was made to PR kern/92083; it has been noted by GNATS. From: Jonathan Fosburgh To: Anders Nordby Cc: bug-followup@freebsd.org, Sam Leffler Subject: Re: kern/92083: [ural] [panic] panic using WPA on ural NIC in 6.2-RELEASE Date: Sat, 10 Mar 2007 18:54:51 -0600 On Sunday 11 February 2007 13:36:39 Anders Nordby wrote: > Hi, > > Just been trying the same thing in 6.2-RELEASE, with the same hardware. > > It seems the same bug still occurs, the stack trace looks very similar. > Everytime I try do do a cvsup of the ports tree, the system panics. > > stream# uname -a > FreeBSD stream.localnet 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Tue Feb 6 > 22:09:01 CET 2007 root@stream.localnet:/usr/obj/usr/src/sys/STREAM > i386 Check out usb/107642. That PR was created for what appears to be the same hardware you originally reported in this PR. Could it be we actually need the if_rum driver instead of ural? Does your link light work on your NIC? It does not work on mine in the FreeBSD driver (ural) but it does under Linux. Granted, maybe this driver does not light the link light, but I have no other ralink adapters with which to compare. From owner-freebsd-usb@FreeBSD.ORG Sun Mar 11 01:16:19 2007 Return-Path: X-Original-To: usb@freebsd.org Delivered-To: freebsd-usb@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 98A5B16A400 for ; Sun, 11 Mar 2007 01:16:19 +0000 (UTC) (envelope-from SRS1=9bbd7c853beab7edd3ea8f4229f2106d80e99e11=es.net==9bbd7c853beab7edd3ea8f4229f2106d80e99e11=270=es.net=oberman@es.net) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.freebsd.org (Postfix) with ESMTP id 8369113C46B for ; Sun, 11 Mar 2007 01:16:19 +0000 (UTC) (envelope-from SRS1=9bbd7c853beab7edd3ea8f4229f2106d80e99e11=es.net==9bbd7c853beab7edd3ea8f4229f2106d80e99e11=270=es.net=oberman@es.net) Received: from postal4.es.net (postal4.es.net [198.124.252.66]) by postal1.es.net (Postal Node 1) with ESMTP (SSL) id QEP57016 for ; Sat, 10 Mar 2007 17:04:16 -0800 Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by postal4.es.net (Postal Node 4) with ESMTP (SSL) id QEP03215 for ; Sat, 10 Mar 2007 17:04:15 -0800 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 691C845053 for ; Sat, 10 Mar 2007 17:04:13 -0800 (PST) To: usb@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1173575052_91676P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Sat, 10 Mar 2007 17:04:12 -0800 From: "Kevin Oberman" Message-Id: <20070311010413.691C845053@ptavv.es.net> Cc: Subject: Problems with USB devices connecting to UHCI instead of EHCI 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, 11 Mar 2007 01:16:19 -0000 --==_Exmh_1173575052_91676P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline If I load umass after plugging in a disk or flash fob, it will be connected as a UHCI device. If I load umass and then connect the device, it is properly connected as EHCI. When connected as a UHCI device, it is too slow to be useful. Looks like a race condition as the EHCI is the last USB device probed. I suspect that the disk is already connected to a UHCI device before an EHCI device is found. uhci0: port 0x1800-0x181f irq 11 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x1820-0x183f irq 11 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x1840-0x185f irq 11 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: on uhci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered uhci3: port 0x1860-0x187f irq 11 at device 29.3 on pci0 uhci3: [GIANT-LOCKED] uhci3: [ITHREAD] usb3: on uhci3 usb3: USB revision 1.0 uhub3: on usb3 uhub3: 2 ports with 2 removable, self powered ehci0: mem 0xb0000000-0xb00003ff irq 11 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb4: EHCI version 1.0 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4: on ehci0 usb4: USB revision 2.0 uhub4: on usb4 uhub4: 8 ports with 8 removable, self powered Any idea if this is fixable? Not a huge problem, but an annoying one. Will the new USB system (hopefully coming soon) deal with this? -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 --==_Exmh_1173575052_91676P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: Exmh version 2.5 06/03/2002 iD8DBQFF81WMkn3rs5h7N1ERAimjAJ4h8cWn+TEi/gMM5IxtAICj3hrkbwCglFg0 56z3yzhq9ss3zElH9aEhXTU= =A1cj -----END PGP SIGNATURE----- --==_Exmh_1173575052_91676P-- From owner-freebsd-usb@FreeBSD.ORG Sun Mar 11 12:29:26 2007 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C849B16A402 for ; Sun, 11 Mar 2007 12:29:26 +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 4F72213C45A for ; Sun, 11 Mar 2007 12:29:26 +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 l2BCJGcR022661; Sun, 11 Mar 2007 13:19:16 +0100 (CET) (envelope-from marc@abigail.blackend.org) Received: from gothic.blackend.org (localhost.blackend.org [127.0.0.1]) by gothic.blackend.org (8.13.8/8.13.8) with ESMTP id l2BCKnWr001635; Sun, 11 Mar 2007 13:20:49 +0100 (CET) (envelope-from marc@gothic.blackend.org) Received: (from marc@localhost) by gothic.blackend.org (8.13.8/8.13.8/Submit) id l2BCKmEU001634; Sun, 11 Mar 2007 13:20:48 +0100 (CET) (envelope-from marc) Date: Sun, 11 Mar 2007 13:20:48 +0100 From: Marc Fonvieille To: marc+freebsdusb@milestonerdl.com Message-ID: <20070311122048.GC975@gothic.blackend.org> References: <200703092052.l29KqXr5025814@tandem.milestonerdl.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200703092052.l29KqXr5025814@tandem.milestonerdl.com> X-Useless-Header: blackend.org X-Operating-System: FreeBSD 6.2-STABLE User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-usb@FreeBSD.org Subject: Re: CanoScan N650U / xsane /FreeBSD 6.2-CURRENT 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, 11 Mar 2007 12:29:26 -0000 On Fri, Mar 09, 2007 at 02:52:33PM -0600, marc+freebsdusb@milestonerdl.com wrote: > I am trying to get a Cannon CanoScan N 650U working on FreeBSD 6.2-CURRENT. > > The scanner SEEMS to be seen, but normal VS root shows a difference. > > As a mortal User: > > $ sane-find-scanner -q > found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0 > > > As root > lap# sane-find-scanner -q > found USB scanner (vendor=0x04a9, product=0x2206) at /dev/uscanner0 > lap# scanimage -L > > No scanners were identified. If you were expecting something different, > check that the scanner is plugged in, turned on and detected by the > sane-find-scanner tool (if appropriate). Please read the documentation > > > lap# kldstat > Id Refs Address Size Name > 1 17 0xc0400000 714dc4 kernel > 2 2 0xc0b15000 22c48 sound.ko > 3 1 0xc0b38000 9958 snd_uaudio.ko > 4 1 0xc0b42000 598bc acpi.ko > 5 2 0xc376b000 9000 ibcs2.ko > 6 1 0xc3776000 3000 ibcs2_coff.ko > 7 2 0xc3779000 16000 linux.ko > 8 1 0xc39df000 3000 daemon_saver.ko > 9 1 0xc3dea000 6000 linprocfs.ko > lap# > > Xsane configs > > $ grep -v ^# /usr/local/etc/sane.d/plustek.conf | grep -v option > device /dev/uscanner0 > usb 0x04a9 0x2206 > $ grep plustek /usr/local/etc/sane.d/dll.conf > plustek > #plustek_pp > $ You should read http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/scanners.html -- Marc From owner-freebsd-usb@FreeBSD.ORG Sun Mar 11 18:20:04 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1F4C116A404 for ; Sun, 11 Mar 2007 18:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 2853613C458 for ; Sun, 11 Mar 2007 18:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2BIK38p085976 for ; Sun, 11 Mar 2007 18:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2BIK3nw085975; Sun, 11 Mar 2007 18:20:03 GMT (envelope-from gnats) Resent-Date: Sun, 11 Mar 2007 18:20:03 GMT Resent-Message-Id: <200703111820.l2BIK3nw085975@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, Calle Englund Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DC12316A400 for ; Sun, 11 Mar 2007 18:19:07 +0000 (UTC) (envelope-from calle@discord.bofh.se) Received: from aftermath.home.discord.bofh.se (1-1-12-3a.lk.lk.bostream.se [82.183.141.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3FBE613C458 for ; Sun, 11 Mar 2007 18:19:07 +0000 (UTC) (envelope-from calle@discord.bofh.se) Received: by aftermath.home.discord.bofh.se (Postfix, from userid 500) id 77ECC40D6; Sun, 11 Mar 2007 18:57:44 +0100 (CET) Message-Id: <20070311175744.77ECC40D6@aftermath.home.discord.bofh.se> Date: Sun, 11 Mar 2007 18:57:44 +0100 (CET) From: Calle Englund To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/110197: Sony PSP umass device does not detach from EHCI port X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Calle Englund List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Mar 2007 18:20:04 -0000 >Number: 110197 >Category: usb >Synopsis: Sony PSP umass device does not detach from EHCI port >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 11 18:20:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Calle Englund >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD aftermath.home.discord.bofh.se 6.2-STABLE FreeBSD 6.2-STABLE #3: Fri Mar 9 19:02:51 CET 2007 root@aftermath.home.discord.bofh.se:/usr/obj/usr/src/sys/AFTERMATH i386 The problem was also seen in at least FreeBSD 6.1 % cat /sys/i386/conf/AFTERMATH.diff --- GENERIC Fri Dec 29 18:34:50 2006 +++ AFTERMATH Fri Mar 9 17:01:15 2007 @@ -69,6 +69,7 @@ # ATA and ATAPI devices device ata +device atapicam device atadisk # ATA disk drives device ataraid # ATA RAID drives device atapicd # ATAPI CDROM drives uhci0: port 0x48c0-0x48df irq 10 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x48e0-0x48ff irq 5 at d evice 29.1 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x4c00-0x4c1f irq 5 at d evice 29.2 on pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered ehci0: mem 0xa0000000-0xa00003ff i rq 5 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub3: 6 ports with 6 removable, self powered >Description: When a Sony Playstation Portable is detached from an EHCI USB port, the associated device tree lingers and that USB port is unresponsive until a device has been plugged into another USB port. Then the detach of the original PSP umass device tree occurs and the port again responds to devices being plugged into it. >How-To-Repeat: *** Enter USB Connection in PSP. PSP: Connect a USB cable. *** Plug PSP into USB port. PSP: USB Mode New lines in dmesg: umass0: Sony PSP Type A, rev 2.00/1.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 958MB (1963008 512 byte sectors: 64H 32S/T 958C) % usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 addr 2: full speed, self powered, config 1, Bluetooth by hp(0x0086), ACTIONTEC(0x049f), rev 8.02 Controller /dev/usb3: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 addr 2: high speed, self powered, config 1, PSP Type A(0x01c8), Sony(0x054c), rev 1.00 port 6 powered *** Unplug PSP from USB port. PSP: Connect a USB cable. Nothing new in dmesg. % usbdevs -v ... Controller /dev/usb3: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 addr 2: high speed, self powered, config 1, product 0x01c8(0x01c8), vendor 0x054c(0x054c), rev 1.00 port 6 powered The port still reports a device present, but the Product/Vendor codes are not translated to text anymore. *** Plug PSP back into the same USB port. PSP: USB Mode Nothing new in dmesg. % usbdevs -v ... Controller /dev/usb3: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 addr 2: high speed, self powered, config 1, product 0x01c8(0x01c8), vendor 0x054c(0x054c), rev 1.00 port 6 powered *** Unplug PSP and plug back into another USB port. PSP: Connect a USB cable. PSP: USB Mode. New lines in dmesg: umass1: Sony PSP Type A, rev 2.00/1.00, addr 3 umass0: at uhub3 port 5 (addr 2) disconnected <<< (da0:umass-sim0:0:0:0): lost device <<< (da0:umass-sim0:0:0:0): removing device entry <<< umass0: detached <<< da0 at umass-sim1 bus 1 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 958MB (1963008 512 byte sectors: 64H 32S/T 958C) The disconnect of the previous device tree occurs! (<<< above) % usbdevs -v ... Controller /dev/usb3: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 addr 3: high speed, self powered, config 1, PSP Type A(0x01c8), Sony(0x054c), rev 1.00 port 3 powered port 4 powered port 5 powered port 6 powered Port 5 is no longer reported as occupied. Doing the same operaions with other umass devices works as expected. Disabling EHCI so the PSP attaches to the UHCI ports instead also works as expected >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sun Mar 11 18:25:38 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CE79D16A403 for ; Sun, 11 Mar 2007 18:25:38 +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 6E33613C4B0 for ; Sun, 11 Mar 2007 18:25:38 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe09.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 266588194; Sun, 11 Mar 2007 19:25:36 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sun, 11 Mar 2007 19:25:14 +0100 User-Agent: KMail/1.9.5 References: <20070311010413.691C845053@ptavv.es.net> In-Reply-To: <20070311010413.691C845053@ptavv.es.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703111925.14525.hselasky@c2i.net> Cc: Kevin Oberman Subject: Re: Problems with USB devices connecting to UHCI instead of EHCI 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, 11 Mar 2007 18:25:38 -0000 On Sunday 11 March 2007 02:04, Kevin Oberman wrote: > If I load umass after plugging in a disk or flash fob, it will be > connected as a UHCI device. If I load umass and then connect the device, > it is properly connected as EHCI. When connected as a UHCI device, it is > too slow to be useful. > > Looks like a race condition as the EHCI is the last USB device probed. I > suspect that the disk is already connected to a UHCI device before an > EHCI device is found. > > uhci0: port > 0x1800-0x181f irq 11 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] > uhci0: [ITHREAD] > usb0: on uhci0 > usb0: USB revision 1.0 > uhub0: on usb0 > uhub0: 2 ports with 2 removable, self powered > uhci1: port > 0x1820-0x183f irq 11 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] > uhci1: [ITHREAD] > usb1: on uhci1 > usb1: USB revision 1.0 > uhub1: on usb1 > uhub1: 2 ports with 2 removable, self powered > uhci2: port > 0x1840-0x185f irq 11 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] > uhci2: [ITHREAD] > usb2: on uhci2 > usb2: USB revision 1.0 > uhub2: on usb2 > uhub2: 2 ports with 2 removable, self powered > uhci3: port > 0x1860-0x187f irq 11 at device 29.3 on pci0 uhci3: [GIANT-LOCKED] > uhci3: [ITHREAD] > usb3: on uhci3 > usb3: USB revision 1.0 > uhub3: on usb3 > uhub3: 2 ports with 2 removable, self powered > ehci0: mem 0xb0000000-0xb00003ff > irq 11 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] > ehci0: [ITHREAD] > usb4: EHCI version 1.0 > usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 > usb4: on ehci0 > usb4: USB revision 2.0 > uhub4: on usb4 > uhub4: 8 ports with 8 removable, self powered > > Any idea if this is fixable? Not a huge problem, but an annoying > one. Will the new USB system (hopefully coming soon) deal with this? It might have something to do with the probe order. Did you try the new USB stack. I recommend you install it on 6-stable, because on 7-current it needs some small patches to compile, due to some changes in the kernel API lately. --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Mar 11 20:16:16 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1407716A401 for ; Sun, 11 Mar 2007 20:16:16 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from smtp1.yandex.ru (smtp1.yandex.ru [213.180.223.87]) by mx1.freebsd.org (Postfix) with ESMTP id 6BF7113C484 for ; Sun, 11 Mar 2007 20:16:15 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from [195.151.56.190] ([195.151.56.190]:56781 "EHLO [195.151.56.190]" smtp-auth: "cvs-src" TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S2077224AbXCKUBr (ORCPT ); Sun, 11 Mar 2007 23:01:47 +0300 X-Comment: RFC 2476 MSA function at smtp1.yandex.ru logged sender identity as: cvs-src Message-ID: <45F48C54.4040900@yandex.ru> Date: Sun, 11 Mar 2007 23:10:12 +0000 From: cvs-src User-Agent: Thunderbird 1.5.0.9 (X11/20070128) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: multipart/mixed; boundary="------------070707000702030604050809" Subject: [PATCH] Support for various CDMA-2000 USB-modems (Please, consider to commit) 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, 11 Mar 2007 20:16:16 -0000 This is a multi-part message in MIME format. --------------070707000702030604050809 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Good day. Some time ago i had post this as PR 109838 (http://www.freebsd.org/cgi/query-pr.cgi?pr=usb/109838) but there is some problem: when i try to see it, i getting "No PRs Matched Query" response all of the time, so i decide to post it here. When we connecting any of this USB-modems/mobile phones (all of them uses USB-to-COM interface cable): - Pantech-Curitel HX-550C - Pantech-Curitel HX-570B - Pantech-Curitel HX-575B - C-MOTECH CNU-550 - Ubiquam U-100 - Ubiquam U-105 - Ubiquam U-200 - RWT FCT-CDMA and load all the needed modules (ucom/umodem/uplcom), we don't get nor /dev/ttyU0, nor /dev/cuaU0. So, we can't dialing and get to internet. All that we have it's a messages from kernel like this: kernel: ucom0: data interface 1, has CM over data, has break So, i've add quirks [UQ_ASSUME_CM_OVER_DATA] for all of this phones/modems and it works well. How to test: 1. Apply the patch attached # cp usb_modems.patch /sys/dev/usb/ # cd /sys/dev/usb/ # patch < usb_modems.patch 2. Then rebuild kernel # cd /usr/src # make buildkernel && make installkernel && shutdown -r now 3. After reboot, plug in one of those modems. 4. Load needed kernel modules according table located on http://happy-nation.by.ru/freebsd/cdma2000_modems_eng.pdf (ucom and umodem are most common) - at this stage you will see that ttyU0 and cuaU0 appeared in /dev. 5. Create /etc/ppp/ppp.conf like this (it was taken from http://www.lissyara.su/?id=1311): # cat /etc/ppp/ppp.conf default: set log Phase Chat LCP IPCP CCP tun command disable pred1 deflate deflate24 protocomp acfcomp shortseq vj deny pred1 deflate deflate24 protocomp acfcomp shortseq vj set speed 115200 set timeout 160 enable dns skylink: set device /dev/ttyU0 set phone \#777 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \"\" AT OK-AT-OK ATE1Q0 OK \ \\dATDT\\T TIMEOUT 40 CONNECT" set login set authname mobile set authkey internet set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR 6. Try to dial # ppp -ddial skylink That is all. Please cc me in the response, because i don't subscribed on freebsd-usb@ --------------070707000702030604050809 Content-Type: text/x-patch; name="usb_modems.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="usb_modems.patch" --- /sys/dev/usb/usbdevs Wed Feb 14 19:57:15 2007 +++ usbdevs Thu Feb 22 01:20:57 2007 @@ -518,6 +518,7 @@ vendor IMAGINATION 0x149a Imagination Technologies vendor CONCEPTRONIC 0x14b2 Conceptronic vendor SILICONPORTALS 0x1527 Silicon Portals +vendor UBIQUAM 0x1529 UBIQUAM Co., Ltd. vendor PNY 0x154b PNY vendor SOHOWARE 0x15e8 SOHOware vendor UMAX 0x1606 UMAX @@ -770,7 +771,8 @@ product CHICONY KB8933 0x0001 KB-8933 keyboard /* CMOTECH products */ -product CMOTECH CDMAMODEM 0x5141 CMOTECH CDMA Technologies USB modem +product CMOTECH CNU510 0x5141 CMOTECH CDMA Technologies USB modem +product CMOTECH CNU550 0x5543 CDMA 2000 1xRTT/1xEVDO USB modem /* Compaq products */ product COMPAQ PJB100 0x504a Personal Jukebox PJB100 @@ -806,6 +808,8 @@ product CTX EX1300 0x9999 Ex1300 hub /* Curitel products */ +product CURITEL HX550C 0x1101 CDMA 2000 1xRTT USB modem (HX-550C) +product CURITEL HX57XB 0x2101 CDMA 2000 1xRTT USB modem (HX-570/575B) product CURITEL PC5740 0x3701 Broadband wireless modem /* Cypress Semiconductor products */ @@ -1444,6 +1448,7 @@ product PUTERCOM UPA100 0x047e USB-1284 BRIDGE /* Qualcomm products */ +product QUALCOMM RWT_FCT 0x3100 RWT FCT-CDMA 2000 1xRTT modem product QUALCOMM CDMA_MSM 0x3196 CDMA Technologies MSM modem product QUALCOMM2 CDMA_MSM 0x6000 CDMA Technologies MSM phone @@ -1652,6 +1657,9 @@ /* TwinMOS */ product TWINMOS MDIV 0x1325 Memory Disk IV + +/* Ubiquam products */ +product UBIQUAM UALL 0x3100 CDMA 1xRTT USB Modem (U-100/105/200/300) /* Ultima products */ product ULTIMA 1200UBPLUS 0x4002 1200 UB Plus scanner --- /sys/dev/usb/usb_quirks.c Mon Jan 22 17:57:30 2007 +++ usb_quirks.c Thu Feb 22 01:17:08 2007 @@ -80,7 +80,12 @@ { USB_VENDOR_SILICONPORTALS, USB_PRODUCT_SILICONPORTALS_YAPPHONE, 0x100, { UQ_AU_INP_ASYNC }}, { USB_VENDOR_LOGITECH, USB_PRODUCT_LOGITECH_UN53B, ANY, { UQ_NO_STRINGS }}, - { USB_VENDOR_CMOTECH, USB_PRODUCT_CMOTECH_CDMAMODEM, ANY, { UQ_ASSUME_CM_OVER_DATA }}, + { USB_VENDOR_CMOTECH, USB_PRODUCT_CMOTECH_CNU510, ANY, { UQ_ASSUME_CM_OVER_DATA }}, + { USB_VENDOR_CMOTECH, USB_PRODUCT_CMOTECH_CNU550, ANY, { UQ_ASSUME_CM_OVER_DATA }}, + { USB_VENDOR_CURITEL, USB_PRODUCT_CURITEL_HX550C, ANY, { UQ_ASSUME_CM_OVER_DATA }}, + { USB_VENDOR_CURITEL, USB_PRODUCT_CURITEL_HX57XB, ANY, { UQ_ASSUME_CM_OVER_DATA }}, + { USB_VENDOR_UBIQUAM, USB_PRODUCT_UBIQUAM_UALL, ANY, { UQ_ASSUME_CM_OVER_DATA }}, + { USB_VENDOR_QUALCOMM, USB_PRODUCT_QUALCOMM_RWT_FCT, ANY, { UQ_ASSUME_CM_OVER_DATA }}, /* XXX These should have a revision number, but I don't know what they are. */ { USB_VENDOR_HP, USB_PRODUCT_HP_895C, ANY, { UQ_BROKEN_BIDIR }}, { USB_VENDOR_HP, USB_PRODUCT_HP_880C, ANY, { UQ_BROKEN_BIDIR }}, --------------070707000702030604050809-- From owner-freebsd-usb@FreeBSD.ORG Sun Mar 11 20:27:41 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5E93C16A401 for ; Sun, 11 Mar 2007 20:27:41 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe10.swip.net [212.247.155.33]) by mx1.freebsd.org (Postfix) with ESMTP id CD2EC13C45D for ; Sun, 11 Mar 2007 20:27:40 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe10.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 266470670; Sun, 11 Mar 2007 21:27:38 +0100 From: Hans Petter Selasky To: "Kevin Oberman" Date: Sun, 11 Mar 2007 21:27:16 +0100 User-Agent: KMail/1.9.5 References: <20070311201947.C5B4845053@ptavv.es.net> In-Reply-To: <20070311201947.C5B4845053@ptavv.es.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703112127.16489.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: Problems with USB devices connecting to UHCI instead of EHCI 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, 11 Mar 2007 20:27:41 -0000 On Sunday 11 March 2007 21:19, Kevin Oberman wrote: > > From: Hans Petter Selasky > > Date: Sun, 11 Mar 2007 19:25:14 +0100 > > > > On Sunday 11 March 2007 02:04, Kevin Oberman wrote: > > > If I load umass after plugging in a disk or flash fob, it will be > > > connected as a UHCI device. If I load umass and then connect the > > > device, it is properly connected as EHCI. When connected as a UHCI > > > device, it is too slow to be useful. > > > > > > Looks like a race condition as the EHCI is the last USB device probed. > > > I suspect that the disk is already connected to a UHCI device before an > > > EHCI device is found. > > > > > > uhci0: port > > > 0x1800-0x181f irq 11 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] > > > uhci0: [ITHREAD] > > > usb0: on uhci0 > > > usb0: USB revision 1.0 > > > uhub0: on usb0 > > > uhub0: 2 ports with 2 removable, self powered > > > uhci1: port > > > 0x1820-0x183f irq 11 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] > > > uhci1: [ITHREAD] > > > usb1: on uhci1 > > > usb1: USB revision 1.0 > > > uhub1: on usb1 > > > uhub1: 2 ports with 2 removable, self powered > > > uhci2: port > > > 0x1840-0x185f irq 11 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] > > > uhci2: [ITHREAD] > > > usb2: on uhci2 > > > usb2: USB revision 1.0 > > > uhub2: on usb2 > > > uhub2: 2 ports with 2 removable, self powered > > > uhci3: port > > > 0x1860-0x187f irq 11 at device 29.3 on pci0 uhci3: [GIANT-LOCKED] > > > uhci3: [ITHREAD] > > > usb3: on uhci3 > > > usb3: USB revision 1.0 > > > uhub3: on usb3 > > > uhub3: 2 ports with 2 removable, self powered > > > ehci0: mem > > > 0xb0000000-0xb00003ff irq 11 at device 29.7 on pci0 ehci0: > > > [GIANT-LOCKED] > > > ehci0: [ITHREAD] > > > usb4: EHCI version 1.0 > > > usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 > > > usb4: on ehci0 > > > usb4: USB revision 2.0 > > > uhub4: on usb4 > > > uhub4: 8 ports with 8 removable, self powered > > > > > > Any idea if this is fixable? Not a huge problem, but an annoying > > > one. Will the new USB system (hopefully coming soon) deal with this? > > > > It might have something to do with the probe order. Did you try the new > > USB stack. I recommend you install it on 6-stable, because on 7-current > > it needs some small patches to compile, due to some changes in the kernel > > API lately. > > Yes, I suspect the probe order is significant, but the only system I use > USB devices on is my laptop and I really don't want to roll it back to > stable. > > I can continue to work around it until you have a set of current patches > for me to try. I'm really anxious to try out the new stack as I am > hoping it will make USB behave better in terma of power management on my > laptop. That's why i don't build USB into my kernel, but just load it > when I need it. > > I don't normally read usb@, so I may drop you a note in a couple of > weeks to see if the stack has been updated for current. > If you install the SVN version of my USB stack, and you are running the latest 7-CURRENT, then you need to patch the following by hand: Insert a NULL argument, to all bus_setup_intr() functions you find under /sys/dev/usb/, like shown below ? error = bus_setup_intr(dev, sc->sc_irq_res, INTR_TYPE_TTY, - si_intr, sc, &ih); + NULL, si_intr, sc, &ih); That's it. Then it should compile. --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Mar 11 20:32:45 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2036A16A403 for ; Sun, 11 Mar 2007 20:32:45 +0000 (UTC) (envelope-from SRS1=c2cc9a3d6eb37ce18e8206dff96b5f92f456eb70=es.net==c2cc9a3d6eb37ce18e8206dff96b5f92f456eb70=271=es.net=oberman@es.net) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.freebsd.org (Postfix) with ESMTP id 0BC5D13C480 for ; Sun, 11 Mar 2007 20:32:45 +0000 (UTC) (envelope-from SRS1=c2cc9a3d6eb37ce18e8206dff96b5f92f456eb70=es.net==c2cc9a3d6eb37ce18e8206dff96b5f92f456eb70=271=es.net=oberman@es.net) Received: from postal4.es.net (postal4.es.net [198.124.252.66]) by postal1.es.net (Postal Node 1) with ESMTP (SSL) id QYE29847 for ; Sun, 11 Mar 2007 13:19:47 -0800 Received: from postal2.es.net (postal2.es.net [198.128.3.206]) by postal4.es.net (Postal Node 4) with ESMTP (SSL) id QYE75046 for ; Sun, 11 Mar 2007 13:19:46 -0800 Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP (SSL) id QYE84345; Sun, 11 Mar 2007 13:19:45 -0800 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id C5B4845053; Sun, 11 Mar 2007 13:19:47 -0700 (PDT) To: Hans Petter Selasky In-Reply-To: Your message of "Sun, 11 Mar 2007 19:25:14 BST." <200703111925.14525.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1173644387_18269P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Sun, 11 Mar 2007 13:19:47 -0700 From: "Kevin Oberman" Message-Id: <20070311201947.C5B4845053@ptavv.es.net> Cc: freebsd-usb@freebsd.org Subject: Re: Problems with USB devices connecting to UHCI instead of EHCI 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, 11 Mar 2007 20:32:45 -0000 --==_Exmh_1173644387_18269P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > From: Hans Petter Selasky > Date: Sun, 11 Mar 2007 19:25:14 +0100 > > On Sunday 11 March 2007 02:04, Kevin Oberman wrote: > > If I load umass after plugging in a disk or flash fob, it will be > > connected as a UHCI device. If I load umass and then connect the device, > > it is properly connected as EHCI. When connected as a UHCI device, it is > > too slow to be useful. > > > > Looks like a race condition as the EHCI is the last USB device probed. I > > suspect that the disk is already connected to a UHCI device before an > > EHCI device is found. > > > > uhci0: port > > 0x1800-0x181f irq 11 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] > > uhci0: [ITHREAD] > > usb0: on uhci0 > > usb0: USB revision 1.0 > > uhub0: on usb0 > > uhub0: 2 ports with 2 removable, self powered > > uhci1: port > > 0x1820-0x183f irq 11 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] > > uhci1: [ITHREAD] > > usb1: on uhci1 > > usb1: USB revision 1.0 > > uhub1: on usb1 > > uhub1: 2 ports with 2 removable, self powered > > uhci2: port > > 0x1840-0x185f irq 11 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] > > uhci2: [ITHREAD] > > usb2: on uhci2 > > usb2: USB revision 1.0 > > uhub2: on usb2 > > uhub2: 2 ports with 2 removable, self powered > > uhci3: port > > 0x1860-0x187f irq 11 at device 29.3 on pci0 uhci3: [GIANT-LOCKED] > > uhci3: [ITHREAD] > > usb3: on uhci3 > > usb3: USB revision 1.0 > > uhub3: on usb3 > > uhub3: 2 ports with 2 removable, self powered > > ehci0: mem 0xb0000000-0xb00003ff > > irq 11 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] > > ehci0: [ITHREAD] > > usb4: EHCI version 1.0 > > usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 > > usb4: on ehci0 > > usb4: USB revision 2.0 > > uhub4: on usb4 > > uhub4: 8 ports with 8 removable, self powered > > > > Any idea if this is fixable? Not a huge problem, but an annoying > > one. Will the new USB system (hopefully coming soon) deal with this? > > It might have something to do with the probe order. Did you try the new USB > stack. I recommend you install it on 6-stable, because on 7-current it needs > some small patches to compile, due to some changes in the kernel API lately. Yes, I suspect the probe order is significant, but the only system I use USB devices on is my laptop and I really don't want to roll it back to stable. I can continue to work around it until you have a set of current patches for me to try. I'm really anxious to try out the new stack as I am hoping it will make USB behave better in terma of power management on my laptop. That's why i don't build USB into my kernel, but just load it when I need it. I don't normally read usb@, so I may drop you a note in a couple of weeks to see if the stack has been updated for current. Thanks! -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 --==_Exmh_1173644387_18269P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: Exmh version 2.5 06/03/2002 iD8DBQFF9GRjkn3rs5h7N1ERAhT0AJ42XO+6jkNNda+3RRhvupZTWQKm7ACeIuUq OXhxo99igkFYRMCXmCvoRf0= =5T+F -----END PGP SIGNATURE----- --==_Exmh_1173644387_18269P-- From owner-freebsd-usb@FreeBSD.ORG Sun Mar 11 23:15:52 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D5AA716A400 for ; Sun, 11 Mar 2007 23:15:52 +0000 (UTC) (envelope-from probsd@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.234]) by mx1.freebsd.org (Postfix) with ESMTP id 9913513C458 for ; Sun, 11 Mar 2007 23:15:52 +0000 (UTC) (envelope-from probsd@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so1402897wxc for ; Sun, 11 Mar 2007 16:15:52 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type; b=UCzlxQIIxv5mmBEceXz6XL3UhrD0iV4IcePFy14QRmFuFEx6kAQTzLZ1DFwpZi7rSqgi0npWgFcDgDCRUGaV023qwTEbDbvVWRh+9h5lf34i4aoOTBw9RVZbEYj1UnBKQAefKTAN+kb2VJKyx/OWtcHFni7Hkg6DdUZi9I6sneg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:mime-version:content-type; b=ek3pC3z6VvywkEJQk3NALpcfYxKXhamhTlIqa9oSJ04aCIuaIsbyjnjeIdX5xnihhGvHvoipx73SDLxJBdLwmE1EYXqmGh/wTmoMvnGUHLWEXHuIYT0vefl6s9MIaRjfqdcnUPbfHT9k/iBiJCdwIgnPuCDJ3TM1gBGj9+SyFIU= Received: by 10.70.38.12 with SMTP id l12mr9017343wxl.1173654951888; Sun, 11 Mar 2007 16:15:51 -0700 (PDT) Received: by 10.100.95.7 with HTTP; Sun, 11 Mar 2007 16:15:51 -0700 (PDT) Message-ID: <483316d70703111615l5f3e6ccev62aed0947c351655@mail.gmail.com> Date: Sun, 11 Mar 2007 18:15:51 -0500 From: "Rick Mullis" To: "Hans Petter Selasky" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-usb@freebsd.org Subject: USB error 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, 11 Mar 2007 23:15:53 -0000 Hi Hans, I have been using and testing your new usb and today I have been getting an error. First of all I am using amd64 with the Intel DG965RY mainboard, dou core 2 prcessor with 4 gb of ram. After discussing a problem with you, you recommended I insert NULL in all of the files that have bus_setup_intr which ended up being 3 files "ehci_pci.c, ohci_pci.c and uhci_pci.c" and that fixed the problem until today when I svn the latest src from you and the latest 7-current src and recompiled. Below is the last few lines before error. cc -c -O -pipe -march=nocona -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror /usr/src/sys/dev/uart/uart_tty.c cc -c -O -pipe -march=nocona -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror /usr/src/sys/dev/usb/ehci.c *** Error code 1 Stop in /usr/obj/usr/src/sys/MAIN. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Any and all help is, as always, greatly appreciated. Thanks, Rick From owner-freebsd-usb@FreeBSD.ORG Sun Mar 11 23:24:24 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 500A016A406 for ; Sun, 11 Mar 2007 23:24:24 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id DB33D13C448 for ; Sun, 11 Mar 2007 23:24:23 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe03.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 443030901; Mon, 12 Mar 2007 00:24:22 +0100 From: Hans Petter Selasky To: "Rick Mullis" Date: Mon, 12 Mar 2007 00:23:59 +0100 User-Agent: KMail/1.9.5 References: <483316d70703111615l5f3e6ccev62aed0947c351655@mail.gmail.com> In-Reply-To: <483316d70703111615l5f3e6ccev62aed0947c351655@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703120023.59555.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB error 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, 11 Mar 2007 23:24:24 -0000 On Monday 12 March 2007 00:15, Rick Mullis wrote: > Hi Hans, > > I have been using and testing your new usb and today I have been getting an > error. First of all I am using amd64 with the Intel DG965RY mainboard, dou > core 2 prcessor with 4 gb of ram. After discussing a problem with you, you > recommended I insert NULL in all of the files that have bus_setup_intr > which ended up being 3 files "ehci_pci.c, ohci_pci.c and uhci_pci.c" and > that fixed the problem until today when I svn the latest src from you and > the latest 7-current src and recompiled. Below is the last few lines before > error. > > cc -c -O -pipe -march=nocona -std=c99 -g -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > -Winline -Wcast-qual -Wundef -fformat-extensions -nostdinc -I- -I. > -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common > -finline-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -mcmodel=kernel -mno-red-zone -mfpmath=387 > -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float > -fno-asynchronous-unwind-tables -ffreestanding -Werror > /usr/src/sys/dev/uart/uart_tty.c > cc -c -O -pipe -march=nocona -std=c99 -g -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > -Winline -Wcast-qual -Wundef -fformat-extensions -nostdinc -I- -I. > -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common > -finline-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -mcmodel=kernel -mno-red-zone -mfpmath=387 > -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float > -fno-asynchronous-unwind-tables -ffreestanding -Werror > /usr/src/sys/dev/usb/ehci.c > *** Error code 1 > Did you do things in this order: 1) cvsup 2) svn update 3) make S=../src package 4) make install 5) build new kernel --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Mar 11 23:55:41 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EE1B516A404 for ; Sun, 11 Mar 2007 23:55:41 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.freebsd.org (Postfix) with ESMTP id 914A613C45E for ; Sun, 11 Mar 2007 23:55:41 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe01.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 416323340; Mon, 12 Mar 2007 00:55:40 +0100 From: Hans Petter Selasky To: "Rick Mullis" , freebsd-usb@freebsd.org Date: Mon, 12 Mar 2007 00:55:17 +0100 User-Agent: KMail/1.9.5 References: <483316d70703111636x16c0ed15v6f77ea6aa60f8d87@mail.gmail.com> In-Reply-To: <483316d70703111636x16c0ed15v6f77ea6aa60f8d87@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703120055.17764.hselasky@c2i.net> Cc: Subject: Re: USB 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, 11 Mar 2007 23:55:42 -0000 On Monday 12 March 2007 00:36, Rick Mullis wrote: > /usr/src/sys/sys/systm.h They defined msleep() like this: +#define msleep(chan, mtx, pri, wmesg, timo) \ + _sleep((chan), &(mtx)->mtx_object, (pri), (wmesg), (timo)) Arg. Well, I think the new _sleep() has the same problem like the old one. It doesn't take Giant as a sleeping mutex argument. Try definition msleep() like this in /sys/dev/usb/usb_port.h: #undef msleep #define msleep(i,m,p,w,t) _sleep(i,(((m) == &Giant) ? NULL : &(m)->mtx_object),p,w,t) --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Mar 12 11:08:42 2007 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5A7F016A482 for ; Mon, 12 Mar 2007 11:08:42 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 4972E13C4C2 for ; Mon, 12 Mar 2007 11:08:42 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2CB8g2Y065245 for ; Mon, 12 Mar 2007 11:08:42 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2CB8enx065241 for freebsd-usb@FreeBSD.org; Mon, 12 Mar 2007 11:08:40 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 12 Mar 2007 11:08:40 GMT Message-Id: <200703121108.l2CB8enx065241@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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, 12 Mar 2007 11:08:42 -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/40792 usb signals lead to data loss on device ugen 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 f usb/55555 usb [ums] system freezes with access to /dev/ums0 o bin/57255 usb usbd and multi-function devices o usb/62088 usb [usb] Logitech Cordless/Optical Mouse not working o usb/62309 usb [ugen] [panic] panic: ugen(4) driver 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 f usb/76204 usb panic while using usb attached modem o usb/76395 usb USB printer does not work, usbdevs says "addr 0 should o usb/77184 usb kernel panic on USB device disconnect o usb/77294 usb ucom + ulpcom panic o usb/77940 usb [patch] [panic] insertion of usb keyboard panics syste f i386/78218 usb [kue] kue not detected on Sony PCG-F370 VAIO o usb/78989 usb please add USB keyboard support to install CD's o usb/79140 usb WD Firewire/USB Combo hangs under load on USB interfac o usb/79269 usb USB ohci da0 plug/unplug causes crashes and lockups. o usb/79287 usb UHCI hang after interrupt transfer o usb/79524 usb printing to Minolta PagePro 1[23]xxW via USB fails wit f 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 f usb/80260 usb Travan USB tape drive fails to write o usb/80361 usb mounting of usb-stick fails o usb/80373 usb usb keyboard does not respond o usb/80829 usb possible panic when loading USB-modules o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/81308 usb [ugen] [patch] polling a ugen(4) control endpoint caus f usb/82198 usb Panic on attaching of ONKI N-338 USB MP3 player f usb/82272 usb Can not recognize Casio camera EX-Z40 as a umass devic o usb/82350 usb [usb] null pointer dereference in USB stack o usb/82520 usb Reboot when USL101 connected o usb/82569 usb [usb] USB mass storage plug/unplug causes system panic o usb/82660 usb EHCI: I/O stuck in state 'physrd'/panic o usb/83504 usb [usb] SpeedTouch USB stop working on recent current (a 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 Microsoft Intellimouse Explorer 4.0A doesn't work. 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/84936 usb install - usb keyboard not recognized o usb/86031 usb need support usb nic rt2500 in my 5.4 STABLE o usb/86767 usb [usb] bogus "slice starts beyond end of the disk:..." o usb/87099 usb panic: ohci_add_done: addr 0x000d1bf0 not found o usb/87565 usb [PATCH] Support for Vodaphone 3G/UMTS cards o usb/88743 usb [hang] USB makes kernel hang at boot (regression in 6. o usb/88966 usb kldunload ucom.ko returns "Device busy" error. o usb/89003 usb LaCie Firewire drive not properly supported under 6.0 o usb/89218 usb flash disk o usb/89954 usb [usb] USB Disk driver race condition? f usb/89997 usb [umass] [panic] panic on iPod mini detach o usb/90162 usb [usb] [patch] Add support for the MS Wireless USB Mous o usb/90700 usb Kernel panic on connect/mount/use umass device o usb/91238 usb USB tape unit fails to write a second tape file to the o usb/91263 usb [patch] USB quirk needed for Logitec USB Hard disk LHD o usb/91283 usb booting very slow with usb devices connection (regress o usb/91538 usb Unable to print to EPSON CX3500 o usb/91906 usb FreeBSD hangs while booting with USB legacy support on o usb/92052 usb usbd causes defunct process with busy file-handle o kern/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 /dev/ulpt0: device busy USB printer does not work o usb/93408 usb hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes choppy m f usb/93496 usb USB2.0 umass stalls on VIA o usb/93640 usb device ehci causes interrupt storm on this MSI amd64 m o usb/93828 usb ohci causes panic on boot (HP Pavillion d4100e) o usb/93949 usb ugen(4)-related repeatable kernel panic in 6.1-PRERELE o usb/94166 usb btx halted with a flashcard plugged o usb/94384 usb kernel panic with usb2 hardware o usb/94717 usb Reading from /dev/ulpt can break work of a UHCI hub o usb/94742 usb [umass] [patch] umass driver does not recognise YANO e o usb/94813 usb mounting write-protected umass device freezes computer o usb/94897 usb Kernel Panic when cleanly unmounting USB disk o usb/95131 usb Boot/setup process does not accept key strokes o usb/95348 usb USB keyboard unplug causes noise on screen o usb/95562 usb Write Stress in USB Mass drive cause: [vinvalbuf: dir o usb/95636 usb [boot] 5 minute delay at boot when using VT6205 based o usb/96120 usb USB mouse not always detected o usb/96224 usb [usb] mount_msdosfs cause page fault in syncer process o usb/96457 usb fatback on umass = reboot o usb/97286 usb MS Wireless Intellimouse Explorer 2.0 doesn't work o usb/99431 usb FreeBSD on MSI 6566E (Intel 845E motherboards) doesn't o usb/101096 usb USB WLAN occasionally causes kernel-panics during larg o usb/101752 usb [panic] 6.1-RELEASE kernel panic on usb device inserti o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/102096 usb /usr/sbin/usbd does not handle multiple devices in one o i386/103025 usb [USB] the wrong in USB device for freeBSD 6.1 and AMD o usb/104292 usb system lockup on forced umount of usb-storage device o usb/104830 usb system crashes when copying data to umass devices o usb/105186 usb USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 crashes box o usb/106615 usb uftdi module does not automatically load with the FTDI o usb/106648 usb USB Floppy on D1950 10 min Hang on Insert w/o Floppy D o usb/106832 usb USB HP printer is not detected by kernel when ACPI ena o usb/107101 usb [umass] [patch] Quirk for Denver MP3 player o usb/107116 usb [usb] panic while accessing usb msdos pccard o usb/107128 usb [usb] panic while accessing usb msdos flashkey o usb/107248 usb [PATCH] scsi_da.c quirk for Cowon iAUDIO X5 MP3 player 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 problem with samsung flash o usb/107924 usb usbd does not call detach o usb/108097 usb [usbgen] [patch] ADMtek 851X USB-to-LAN adapter o usb/108513 usb umass: Creative MuVo TX FM fails in 6.2-RELEASE (regre 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/109959 usb usb_interrupt_read does not respect timeout o usb/110031 usb usb_interrupt_read does not respect timeout o usb/110122 usb usb_interrupt_read does not respect timeout 116 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem s usb/32653 usb Added patches to improve USB scanner supportOB o usb/40948 usb [usb] USB HP CDW8200 does not work f usb/41415 usb [usb] [patch] Some USB scanners cannot talk to uscanne o usb/48342 usb [PATCH] usbd dynamic device list. o kern/51958 usb [usb] [patch] update for urio driver o kern/52026 usb [usb] feature request: umass driver support for InSyst o usb/53025 usb [ugen] [patch] ugen does not allow O_NONBLOCK for inte o usb/56095 usb [usb] [patch] QUIRK: Apacer Pen Drive fails to work o kern/59698 usb [kbd] [patch] Rework of ukbd HID to AT code translatio f usb/60248 usb [patch] Problem with USB printer HP LaserJet 1300 o usb/61234 usb [usb] [patch] usbhidaction(1) doesn't support using an o usb/63837 usb [uhid] [patch] USB: hid_is_collection() only looks for o kern/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops input on usb- o kern/66547 usb [usb] Palm Tungsten T USB does not initialize correctl o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/68412 usb [usb] [patch] QUIRK: Philips KEY013 USB MP3 player o usb/70523 usb [usb] [patch] umct sending/receiving wrong characters o usb/70942 usb [usb] Genius Wireless USB mouse: moused doesn't work c o usb/71416 usb [usb] Cryptoflex e-gate USB token (ugen0) detach is no o usb/71417 usb [usb] Cryptoflex e-gate USB token (ugen0) communicatio o usb/71455 usb [usb] Slow USB umass performance of 5.3 o usb/71605 usb [umass] [patch] umass doesn't recognize multiple slots o usb/72380 usb [usb] USB does not work [dual Celeron Abit] o usb/72732 usb [patch] Kyocera 7135 quirk. o usb/72733 usb Kyocera 7135 Palm OS connection problem. o usb/73056 usb [usb] Sun Microsystems Type 6 USB mouse not working in f usb/73553 usb [usb] Microsoft USB Internet Keyboard not recongized o usb/74211 usb USB flash drive causes CAM status 0x4 on 4.10Release f usb/74358 usb [umass] unplugging at boot time an umass device crashe o usb/74453 usb Q-lity CD-RW USB ECW-043 (ScanLogic SL11R chipset) doe o usb/74557 usb imation 500mb usb key can only be written halfway on f o usb/74609 usb [usb] [patch] allowing cdma modems to work at full spe o usb/74849 usb [usb] [patch] Samsung SPH-i500 does not attach properl o usb/74880 usb [usb] [patch] Samsung N400 cellphone/acm fails to atac o kern/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75800 usb ucom1: init failed STALLED error in time of sync with 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/76732 usb Mouse problems with USB KVM Switch f usb/78371 usb Philips Wearable Audio Player (128) fails to attach f usb/78984 usb Creative MUVO umass failure o usb/79723 usb [usb] prepare for high speed isochronous transfers o usb/79725 usb [usb] [patch] USB device speed is not double-checked o usb/79893 usb [umass] [patch] new usbdevs/umass quirks derived from o usb/80010 usb [aue] [patch] add support for the AEI USB to LAN adapt f usb/80420 usb atapicam stops iPod functionality f usb/80773 usb "usbd_get_string()" could have taken a length paramete o usb/80774 usb have "usbd_find_desc" in line with the other "usbd_fin 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.c is not work with CLIE TH55. o usb/81191 usb Support for Curitel HX-550C USB modem to 5.4 RELEASE. f usb/81621 usb external hd hangs under load on ehci o usb/82436 usb [patch] USL101 Host-to-Host bridge support on FreeBSD o usb/83022 usb ALI USB 2.0 EHCI Controller is not detected o usb/83863 usb Communication problem between opensc/openct via USB wi o usb/85067 usb Cannot attach ScanJet 4300C to usb device o usb/85992 usb [uhid] [patch] USB stops working when trying to read f o usb/86195 usb [patch] allow USB Ethernet Adaptor "ELECOM LD-USB20" t o usb/86298 usb Known good USB mouse won't work with correct settings o usb/86438 usb Fix for non-working iPod over USB is in NetBSD CVS o usb/87224 usb Cannot mount USB Zip750 o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/88408 usb axe0 read PHY failed o usb/88939 usb Fix cheapy Myson USB-IDE adapter f usb/89087 usb usb external harddrive hangs with BBB reset failed, TI f usb/91191 usb HP LaserJet 1020 (USB printer) not recognized f usb/91516 usb [umass] umass0 problems, with Freecom Classic SL Hard 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/92306 usb [quirk] [patch] Support for iRiver U10 USB media playe o usb/92403 usb [uplcom] uplcom.c needs new entry for 4.00 revision of o usb/92852 usb Vertical scroll not working properly on A4Tech WOP-49 f usb/93011 usb HP ScanJet 6200C & uscanner problem o usb/93389 usb Digital Camera Pentax S60 don't work o usb/93872 usb [patch] SCSI quirk required for ELTA 8061 OL USB memor o usb/94132 usb USB QUIRK for CENTURY EX35QUAT disk enclosure f usb/94147 usb doesn't recognise my USB keyboard o usb/94148 usb Make if_cdce work with ARM linux handhelds o usb/94311 usb [ugen][PATCH] allow interrupt IN transactions to be af o usb/94439 usb [patch] Add support for JNC MP3 Player o usb/94946 usb [uhub][patch] code dynamic status size for status chan o usb/95037 usb USB disk didnt recognized on hot-plug. o usb/95173 usb [usb] cannot mount external usb harddisk VIA Technolog o usb/95241 usb Patch to add USB ID for OEM Pharos 360 GPS o usb/95803 usb Add support for AnyData ADU-E100H o usb/95805 usb Add Support for Siemens ES75 modem o usb/96381 usb [patch] add a quirk table entry for a flash ram usb st p usb/96546 usb [usb] [patch] Add support (quirk) for EasyMP3 EM732X U o usb/96714 usb Update uvisor to support the Fossil Abacus Wrist PDA o usb/97175 usb USB cardreader hangs system o usb/97472 usb [patch] add support for Olympus C150,D390 o usb/98343 usb BBB reset failed errors with Creative Muvo MP3 player; o usb/99419 usb external usb harddrive slow to accept 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/101757 usb [patch] uhid.4: correct structure field names to match 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/102976 usb Casio Exilim Digital Camera cause panic o usb/103046 usb [patch] ulpt event driven I/O with select(2) and nonbl 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 QUIRK: TOSHIBA DVD-RAM drive (libretto DVD Dock) o usb/104352 usb [ural] ural driver doesnt work o usb/104645 usb QUIRK: Rave C-201 MP3 player o usb/105065 usb SATA - USB Bridge o usb/105361 usb Kernel panic during unmounting mass storage (Creative o usb/105518 usb epson perfection 3490 usb scanner def o usb/106041 usb FreeBSD does not recognise Mustek BearPaw 2400TA usb s o usb/106070 usb devd recognizes ucom, but ttyU is the device actually o usb/106462 usb Motorola U6 PEBL not recognized by system via USB [pat o usb/106538 usb [patch] Can not burn DVD on Sony DRX-820UL external US o usb/106621 usb [usb] DLINK DUB-E100 support broken o usb/106861 usb [PATCH]: usbdevs update: Add product ACER Zeevo BT-500 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/107526 usb Patch to support the Crystalfontz CFA-635 20x4 USB LCD o usb/107642 usb [patch]Ralink Technology RT2501USB/RT2601USB chipset d o kern/107665 usb [usb] [patch] uscanner support for epson stylus DX5050 o usb/107701 usb usbd ignores "detach" o usb/107935 usb [uplcom] panic while accessing /dev/cuaU0 o usb/108056 usb Mouse gets powered off during device probe when plugge o usb/108344 usb kernel with atausb panics when unplugging USB Flash o usb/108427 usb QUIRK-SAMSUNG MP0402H o usb/108509 usb Freebsd hang at startup after ehci0 detected (CD Loade o usb/108810 usb quirk for I/O Magic USB flash drive "Giga Bank" o usb/109613 usb Unsupported USB-Serial Controller for Sagem Mobile Pho o usb/109838 usb [PATCH] Support for various CDMA-2000 USB-modems o usb/110197 usb Sony PSP umass device does not detach from EHCI port 135 problems total. From owner-freebsd-usb@FreeBSD.ORG Tue Mar 13 00:22:38 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EF32116A46B; Tue, 13 Mar 2007 00:22:38 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 4B24813C457; Tue, 13 Mar 2007 00:22:38 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2D0MaGQ023405; Tue, 13 Mar 2007 00:22:36 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2D0MZGg023401; Tue, 13 Mar 2007 00:22:35 GMT (envelope-from linimon) Date: Tue, 13 Mar 2007 00:22:35 GMT From: Mark Linimon Message-Id: <200703130022.l2D0MZGg023401@freefall.freebsd.org> To: maurice@sphinx.clari.net.au, linimon@FreeBSD.org, freebsd-usb@FreeBSD.org Cc: Subject: Re: usb/109959: usb_interrupt_read does not respect timeout 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, 13 Mar 2007 00:22:39 -0000 Synopsis: usb_interrupt_read does not respect timeout State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Tue Mar 13 00:22:13 UTC 2007 State-Changed-Why: Superseded by usb/110031. http://www.freebsd.org/cgi/query-pr.cgi?pr=109959 From owner-freebsd-usb@FreeBSD.ORG Thu Mar 15 18:50:04 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2591416A401 for ; Thu, 15 Mar 2007 18:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 0624813C44B for ; Thu, 15 Mar 2007 18:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2FIo38n090033 for ; Thu, 15 Mar 2007 18:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2FIo3nb090032; Thu, 15 Mar 2007 18:50:03 GMT (envelope-from gnats) Resent-Date: Thu, 15 Mar 2007 18:50:03 GMT Resent-Message-Id: <200703151850.l2FIo3nb090032@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, "Rui Paulo" Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1F2D816A402 for ; Thu, 15 Mar 2007 18:49:08 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from hu-out-0506.google.com (hu-out-0506.google.com [72.14.214.225]) by mx1.freebsd.org (Postfix) with ESMTP id 9333E13C465 for ; Thu, 15 Mar 2007 18:49:07 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by hu-out-0506.google.com with SMTP id 38so2030552huc for ; Thu, 15 Mar 2007 11:49:06 -0700 (PDT) Received: by 10.114.158.1 with SMTP id g1mr374904wae.1173982862171; Thu, 15 Mar 2007 11:21:02 -0700 (PDT) Received: by 10.114.130.11 with HTTP; Thu, 15 Mar 2007 11:21:01 -0700 (PDT) Message-Id: Date: Thu, 15 Mar 2007 18:21:01 +0000 From: "Rui Paulo" Sender: rpaulo@gmail.com To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: usb/110349: Support for USB mouses with W axis and inverted Z axis 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, 15 Mar 2007 18:50:04 -0000 >Number: 110349 >Category: usb >Synopsis: Support for USB mouses with W axis and inverted Z axis >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Mar 15 18:50:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Rui Paulo >Release: FreeBSD 7.0-CURRENT i386 >Organization: N/A >Environment: System: FreeBSD macbook.local 7.0-CURRENT FreeBSD 7.0-CURRENT #15: Thu Mar 15 01:26:27 WET 2007 rpaulo@macbook.local:/usr/obj/usr/src/sys/MACBOOK i386 >Description: FreeBSD lacks the NetBSD changes in sys/dev/usb/ums.c that make USB mouses with W axis (horizontal scroll) work (like the Apple Mighty mouse). This patch also makes USB mouses with inverted Z Axis work. Note that to make the W axis work, one has to make sysmouse understand it and teach it too to X11. >How-To-Repeat: Plug a Apple Mighty Mouse. You'll notice that the horizontal scroll is mapped to the vertical scroll. >Fix: The following patch syncs ums.c with NetBSD (only the Z Axis differences were done): Index: ums.c =================================================================== RCS file: /home/ncvs/src/sys/dev/usb/ums.c,v retrieving revision 1.83 diff -u -p -r1.83 ums.c --- ums.c 17 Jan 2007 03:50:45 -0000 1.83 +++ ums.c 15 Mar 2007 15:36:35 -0000 @@ -104,7 +104,7 @@ struct ums_softc { u_char *sc_ibuf; u_int8_t sc_iid; int sc_isize; - struct hid_location sc_loc_x, sc_loc_y, sc_loc_z, sc_loc_t; + struct hid_location sc_loc_x, sc_loc_y, sc_loc_z, sc_loc_t, sc_loc_w; struct hid_location *sc_loc_btn; usb_callout_t callout_handle; /* for spurious button ups */ @@ -116,6 +116,7 @@ struct ums_softc { #define UMS_Z 0x01 /* z direction available */ #define UMS_SPUR_BUT_UP 0x02 /* spurious button up events */ #define UMS_T 0x04 /* aa direction available (tilt) */ +#define UMS_REVZ 0x08 /* Z-axis is reversed */ int nbuttons; #define MAX_BUTTONS 31 /* chosen because sc_buttons is int */ @@ -209,7 +210,7 @@ USB_ATTACH(ums) usbd_status err; char devinfo[1024]; u_int32_t flags; - int i; + int i, wheel; struct hid_location loc_btn; sc->sc_disconnected = 1; @@ -266,14 +267,44 @@ USB_ATTACH(ums) USB_ATTACH_ERROR_RETURN; } - /* try to guess the Z activator: first check Z, then WHEEL */ - if (hid_locate(desc, size, HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_Z), - hid_input, &sc->sc_loc_z, &flags) || - hid_locate(desc, size, HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_WHEEL), - hid_input, &sc->sc_loc_z, &flags) || - hid_locate(desc, size, HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_TWHEEL), - hid_input, &sc->sc_loc_z, &flags)) { + /* Try the wheel first as the Z activator since it's tradition. */ + wheel = hid_locate(desc, size, HID_USAGE2(HUP_GENERIC_DESKTOP, + HUG_WHEEL), + hid_input, &sc->sc_loc_z, &flags); + + if (wheel) { + if ((flags & MOUSE_FLAGS_MASK) != MOUSE_FLAGS) { + printf("\n%s: Wheel report 0x%04x not supported\n", + device_get_nameunit(sc->sc_dev), flags); + sc->sc_loc_z.size = 0; /* Bad Z coord, ignore it */ + } else { + sc->flags |= UMS_Z; + if (!(uaa->vendor == USB_VENDOR_APPLE && + uaa->product == USB_PRODUCT_APPLE_OPTICALM)) { + /* Some wheels need the Z axis reversed. */ + sc->flags |= UMS_REVZ; + } + + } + /* + * We might have both a wheel and Z direction, if so put + * put the Z on the W coordinate. + */ + if (hid_locate(desc, size, HID_USAGE2(HUP_GENERIC_DESKTOP, + HUG_Z), + hid_input, &sc->sc_loc_w, &flags)) { + if ((flags & MOUSE_FLAGS_MASK) != MOUSE_FLAGS) { + printf("\n%s: Z report 0x%04x not supported\n", + device_get_nameunit(sc->sc_dev), flags); + sc->sc_loc_w.size = 0; /* Bad Z, ignore */ + } + } + } else if (hid_locate(desc, size, HID_USAGE2(HUP_GENERIC_DESKTOP, + HUG_Z), + hid_input, &sc->sc_loc_z, &flags)) { if ((flags & MOUSE_FLAGS_MASK) != MOUSE_FLAGS) { + printf("\n%s: Z report 0x%04x not supported\n", + device_get_nameunit(sc->sc_dev), flags); sc->sc_loc_z.size = 0; /* Bad Z coord, ignore it */ } else { sc->flags |= UMS_Z; @@ -424,7 +455,7 @@ ums_intr(xfer, addr, status) { struct ums_softc *sc = addr; u_char *ibuf; - int dx, dy, dz, dt; + int dx, dy, dz, dw, dt; int buttons = 0; int i; @@ -474,6 +505,9 @@ ums_intr(xfer, addr, status) dx = hid_get_data(ibuf, &sc->sc_loc_x); dy = -hid_get_data(ibuf, &sc->sc_loc_y); dz = -hid_get_data(ibuf, &sc->sc_loc_z); + dw = hid_get_data(ibuf, &sc->sc_loc_w); + if (sc->flags & UMS_REVZ) + dz = -dz; if (sc->flags & UMS_T) dt = -hid_get_data(ibuf, &sc->sc_loc_t); else @@ -482,16 +516,17 @@ ums_intr(xfer, addr, status) if (hid_get_data(ibuf, &sc->sc_loc_btn[i])) buttons |= (1 << UMS_BUT(i)); - if (dx || dy || dz || dt || (sc->flags & UMS_Z) + if (dx || dy || dz || dt || dw || (sc->flags & UMS_Z) || buttons != sc->status.button) { - DPRINTFN(5, ("ums_intr: x:%d y:%d z:%d t:%d buttons:0x%x\n", - dx, dy, dz, dt, buttons)); + DPRINTFN(5, ("ums_intr: x:%d y:%d z:%d w:%d t:%d buttons:0x%x\n", + dx, dy, dz, dw, dt, buttons)); sc->status.button = buttons; sc->status.dx += dx; sc->status.dy += dy; sc->status.dz += dz; - /* sc->status.dt += dt;*/ /* no way to export this yet */ + /* sc->status.dt += dt; */ /* no way to export this yet */ + /* sc->status.dw += dw; */ /* idem */ /* Discard data in case of full buffer */ if (sc->qcount == sizeof(sc->qbuf)) { Index: usbdevs =================================================================== RCS file: /home/ncvs/src/sys/dev/usb/usbdevs,v retrieving revision 1.288 diff -u -p -r1.288 usbdevs --- usbdevs 27 Feb 2007 22:27:53 -0000 1.288 +++ usbdevs 15 Mar 2007 15:36:36 -0000 @@ -688,6 +688,7 @@ product APPLE IPOD_07 0x1207 iPod '07' product APPLE IPOD_08 0x1208 iPod '08' product APPLE IPODVIDEO 0x1209 iPod Video product APPLE IPODNANO 0x120a iPod Nano +product APPLE OPTICALM 0x0304 Apple Optical USB Mouse /* Arkmicro Technologies */ product ARKMICRO ARK3116 0x0232 ARK3116 Serial @@ -1491,6 +1492,7 @@ product PRIMAX COMFORT 0x4d01 Comfort product PRIMAX MOUSEINABOX 0x4d02 Mouse-in-a-Box product PRIMAX PCGAUMS1 0x4d04 Sony PCGA-UMS1 + /* Prolific products */ product PROLIFIC PL2301 0x0000 PL2301 Host-Host interface product PROLIFIC PL2302 0x0001 PL2302 Host-Host interface >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu Mar 15 21:10:06 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 979FF16A406 for ; Thu, 15 Mar 2007 21:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 7938413C455 for ; Thu, 15 Mar 2007 21:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2FLA6cR008413 for ; Thu, 15 Mar 2007 21:10:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2FLA6WV008412; Thu, 15 Mar 2007 21:10:06 GMT (envelope-from gnats) Resent-Date: Thu, 15 Mar 2007 21:10:06 GMT Resent-Message-Id: <200703152110.l2FLA6WV008412@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, Rui Paulo Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A5A6E16A401 for ; Thu, 15 Mar 2007 21:04:43 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 97A6013C45E for ; Thu, 15 Mar 2007 21:04:43 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l2FL4hCn020800 for ; Thu, 15 Mar 2007 21:04:43 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l2FL4hMV020799; Thu, 15 Mar 2007 21:04:43 GMT (envelope-from nobody) Message-Id: <200703152104.l2FL4hMV020799@www.freebsd.org> Date: Thu, 15 Mar 2007 21:04:43 GMT From: Rui Paulo To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: usb/110357: Support for USB mouses with W axis and inverted Z axis 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, 15 Mar 2007 21:10:06 -0000 >Number: 110357 >Category: usb >Synopsis: Support for USB mouses with W axis and inverted Z axis >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Mar 15 21:10:05 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Rui Paulo >Release: FreeBSD 7.0-CURRENT i386 >Organization: >Environment: System: FreeBSD macbook.local 7.0-CURRENT FreeBSD 7.0-CURRENT #15: Thu Mar 15 01:26:27 WET 2007 rpaulo@macbook.local:/usr/obj/usr/src/sys/MACBOOK i386 >Description: FreeBSD lacks the NetBSD changes in sys/dev/usb/ums.c that make USB mouses with W axis (horizontal scroll) work (like the Apple Mighty mouse). This patch also makes USB mouses with inverted Z Axis work. Note that to make the W axis work, one has to make sysmouse understand it and teach it too to X11. >How-To-Repeat: Plug a Apple Mighty Mouse. You'll notice that the horizontal scroll is mapped to the vertical scroll. >Fix: The attached patch syncs ums.c with NetBSD (only the Z Axis differences were done). Patch attached with submission follows: Index: ums.c =================================================================== RCS file: /home/ncvs/src/sys/dev/usb/ums.c,v retrieving revision 1.83 diff -u -p -r1.83 ums.c --- ums.c 17 Jan 2007 03:50:45 -0000 1.83 +++ ums.c 15 Mar 2007 15:36:35 -0000 @@ -104,7 +104,7 @@ struct ums_softc { u_char *sc_ibuf; u_int8_t sc_iid; int sc_isize; - struct hid_location sc_loc_x, sc_loc_y, sc_loc_z, sc_loc_t; + struct hid_location sc_loc_x, sc_loc_y, sc_loc_z, sc_loc_t, sc_loc_w; struct hid_location *sc_loc_btn; usb_callout_t callout_handle; /* for spurious button ups */ @@ -116,6 +116,7 @@ struct ums_softc { #define UMS_Z 0x01 /* z direction available */ #define UMS_SPUR_BUT_UP 0x02 /* spurious button up events */ #define UMS_T 0x04 /* aa direction available (tilt) */ +#define UMS_REVZ 0x08 /* Z-axis is reversed */ int nbuttons; #define MAX_BUTTONS 31 /* chosen because sc_buttons is int */ @@ -209,7 +210,7 @@ USB_ATTACH(ums) usbd_status err; char devinfo[1024]; u_int32_t flags; - int i; + int i, wheel; struct hid_location loc_btn; sc->sc_disconnected = 1; @@ -266,14 +267,44 @@ USB_ATTACH(ums) USB_ATTACH_ERROR_RETURN; } - /* try to guess the Z activator: first check Z, then WHEEL */ - if (hid_locate(desc, size, HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_Z), - hid_input, &sc->sc_loc_z, &flags) || - hid_locate(desc, size, HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_WHEEL), - hid_input, &sc->sc_loc_z, &flags) || - hid_locate(desc, size, HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_TWHEEL), - hid_input, &sc->sc_loc_z, &flags)) { + /* Try the wheel first as the Z activator since it's tradition. */ + wheel = hid_locate(desc, size, HID_USAGE2(HUP_GENERIC_DESKTOP, + HUG_WHEEL), + hid_input, &sc->sc_loc_z, &flags); + + if (wheel) { + if ((flags & MOUSE_FLAGS_MASK) != MOUSE_FLAGS) { + printf("\n%s: Wheel report 0x%04x not supported\n", + device_get_nameunit(sc->sc_dev), flags); + sc->sc_loc_z.size = 0; /* Bad Z coord, ignore it */ + } else { + sc->flags |= UMS_Z; + if (!(uaa->vendor == USB_VENDOR_APPLE && + uaa->product == USB_PRODUCT_APPLE_OPTICALM)) { + /* Some wheels need the Z axis reversed. */ + sc->flags |= UMS_REVZ; + } + + } + /* + * We might have both a wheel and Z direction, if so put + * put the Z on the W coordinate. + */ + if (hid_locate(desc, size, HID_USAGE2(HUP_GENERIC_DESKTOP, + HUG_Z), + hid_input, &sc->sc_loc_w, &flags)) { + if ((flags & MOUSE_FLAGS_MASK) != MOUSE_FLAGS) { + printf("\n%s: Z report 0x%04x not supported\n", + device_get_nameunit(sc->sc_dev), flags); + sc->sc_loc_w.size = 0; /* Bad Z, ignore */ + } + } + } else if (hid_locate(desc, size, HID_USAGE2(HUP_GENERIC_DESKTOP, + HUG_Z), + hid_input, &sc->sc_loc_z, &flags)) { if ((flags & MOUSE_FLAGS_MASK) != MOUSE_FLAGS) { + printf("\n%s: Z report 0x%04x not supported\n", + device_get_nameunit(sc->sc_dev), flags); sc->sc_loc_z.size = 0; /* Bad Z coord, ignore it */ } else { sc->flags |= UMS_Z; @@ -424,7 +455,7 @@ ums_intr(xfer, addr, status) { struct ums_softc *sc = addr; u_char *ibuf; - int dx, dy, dz, dt; + int dx, dy, dz, dw, dt; int buttons = 0; int i; @@ -474,6 +505,9 @@ ums_intr(xfer, addr, status) dx = hid_get_data(ibuf, &sc->sc_loc_x); dy = -hid_get_data(ibuf, &sc->sc_loc_y); dz = -hid_get_data(ibuf, &sc->sc_loc_z); + dw = hid_get_data(ibuf, &sc->sc_loc_w); + if (sc->flags & UMS_REVZ) + dz = -dz; if (sc->flags & UMS_T) dt = -hid_get_data(ibuf, &sc->sc_loc_t); else @@ -482,16 +516,17 @@ ums_intr(xfer, addr, status) if (hid_get_data(ibuf, &sc->sc_loc_btn[i])) buttons |= (1 << UMS_BUT(i)); - if (dx || dy || dz || dt || (sc->flags & UMS_Z) + if (dx || dy || dz || dt || dw || (sc->flags & UMS_Z) || buttons != sc->status.button) { - DPRINTFN(5, ("ums_intr: x:%d y:%d z:%d t:%d buttons:0x%x\n", - dx, dy, dz, dt, buttons)); + DPRINTFN(5, ("ums_intr: x:%d y:%d z:%d w:%d t:%d buttons:0x%x\n", + dx, dy, dz, dw, dt, buttons)); sc->status.button = buttons; sc->status.dx += dx; sc->status.dy += dy; sc->status.dz += dz; - /* sc->status.dt += dt;*/ /* no way to export this yet */ + /* sc->status.dt += dt; */ /* no way to export this yet */ + /* sc->status.dw += dw; */ /* idem */ /* Discard data in case of full buffer */ if (sc->qcount == sizeof(sc->qbuf)) { Index: usbdevs =================================================================== RCS file: /home/ncvs/src/sys/dev/usb/usbdevs,v retrieving revision 1.288 diff -u -p -r1.288 usbdevs --- usbdevs 27 Feb 2007 22:27:53 -0000 1.288 +++ usbdevs 15 Mar 2007 15:36:36 -0000 @@ -688,6 +688,7 @@ product APPLE IPOD_07 0x1207 iPod '07' product APPLE IPOD_08 0x1208 iPod '08' product APPLE IPODVIDEO 0x1209 iPod Video product APPLE IPODNANO 0x120a iPod Nano +product APPLE OPTICALM 0x0304 Apple Optical USB Mouse /* Arkmicro Technologies */ product ARKMICRO ARK3116 0x0232 ARK3116 Serial @@ -1491,6 +1492,7 @@ product PRIMAX COMFORT 0x4d01 Comfort product PRIMAX MOUSEINABOX 0x4d02 Mouse-in-a-Box product PRIMAX PCGAUMS1 0x4d04 Sony PCGA-UMS1 + /* Prolific products */ product PROLIFIC PL2301 0x0000 PL2301 Host-Host interface product PROLIFIC PL2302 0x0001 PL2302 Host-Host interface >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri Mar 16 12:50:10 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C8BF916A402 for ; Fri, 16 Mar 2007 12:50:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 9F6B113C448 for ; Fri, 16 Mar 2007 12:50:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2GCoA8R037954 for ; Fri, 16 Mar 2007 12:50:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2GCoAn9037953; Fri, 16 Mar 2007 12:50:10 GMT (envelope-from gnats) Date: Fri, 16 Mar 2007 12:50:10 GMT Message-Id: <200703161250.l2GCoAn9037953@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Rui Paulo Cc: Subject: Re: usb/110349: Support for USB mouses with W axis and inverted Z axis X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rui Paulo List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2007 12:50:10 -0000 The following reply was made to PR usb/110349; it has been noted by GNATS. From: Rui Paulo To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/110349: Support for USB mouses with W axis and inverted Z axis Date: Fri, 16 Mar 2007 12:25:48 +0000 Please close. Duplicate of #110357. -- Rui Paulo | PGP: F0E4 C7C7 1653 79B7 78DC DD73 64FA B2C6 CF45 1F84 From owner-freebsd-usb@FreeBSD.ORG Fri Mar 16 13:58:35 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3030C16A401; Fri, 16 Mar 2007 13:58:35 +0000 (UTC) (envelope-from markus@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 02EEE13C4B8; Fri, 16 Mar 2007 13:58:35 +0000 (UTC) (envelope-from markus@FreeBSD.org) Received: from freefall.freebsd.org (markus@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2GDwYj4048541; Fri, 16 Mar 2007 13:58:34 GMT (envelope-from markus@freefall.freebsd.org) Received: (from markus@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2GDwYUI048537; Fri, 16 Mar 2007 13:58:34 GMT (envelope-from markus) Date: Fri, 16 Mar 2007 13:58:34 GMT From: Markus Brueffer Message-Id: <200703161358.l2GDwYUI048537@freefall.freebsd.org> To: rpaulo@fnop.net, markus@FreeBSD.org, freebsd-usb@FreeBSD.org Cc: Subject: Re: usb/110349: Support for USB mouses with W axis and inverted Z axis 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, 16 Mar 2007 13:58:35 -0000 Synopsis: Support for USB mouses with W axis and inverted Z axis State-Changed-From-To: open->closed State-Changed-By: markus State-Changed-When: Fri Mar 16 13:58:08 UTC 2007 State-Changed-Why: Duplicate of usb/110357 http://www.freebsd.org/cgi/query-pr.cgi?pr=110349 From owner-freebsd-usb@FreeBSD.ORG Fri Mar 16 13:59:37 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7376E16A401; Fri, 16 Mar 2007 13:59:37 +0000 (UTC) (envelope-from markus@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 4C75413C457; Fri, 16 Mar 2007 13:59:37 +0000 (UTC) (envelope-from markus@FreeBSD.org) Received: from freefall.freebsd.org (markus@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2GDxbSk048585; Fri, 16 Mar 2007 13:59:37 GMT (envelope-from markus@freefall.freebsd.org) Received: (from markus@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2GDxbxA048581; Fri, 16 Mar 2007 13:59:37 GMT (envelope-from markus) Date: Fri, 16 Mar 2007 13:59:37 GMT From: Markus Brueffer Message-Id: <200703161359.l2GDxbxA048581@freefall.freebsd.org> To: markus@FreeBSD.org, freebsd-usb@FreeBSD.org, markus@FreeBSD.org Cc: Subject: Re: usb/110357: Support for USB mouses with W axis and inverted Z axis 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, 16 Mar 2007 13:59:37 -0000 Synopsis: Support for USB mouses with W axis and inverted Z axis Responsible-Changed-From-To: freebsd-usb->markus Responsible-Changed-By: markus Responsible-Changed-When: Fri Mar 16 13:59:07 UTC 2007 Responsible-Changed-Why: I'll handle this http://www.freebsd.org/cgi/query-pr.cgi?pr=110357 From owner-freebsd-usb@FreeBSD.ORG Sat Mar 17 15:04:55 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DD93F16A400 for ; Sat, 17 Mar 2007 15:04:55 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 3A34D13C483 for ; Sat, 17 Mar 2007 15:04:54 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: (qmail invoked by alias); 17 Mar 2007 14:38:14 -0000 X-Provags-ID: V01U2FsdGVkX183I/wfrW0344W66yGz7nyjyDg3Q8/tfrOOBdX/hb vYOz7W6/uzdjIK From: Stefan Ehmann To: Martin Dieringer Date: Sat, 17 Mar 2007 15:38:13 +0100 User-Agent: KMail/1.9.6 References: <200703120143.28799.shoesoft@gmx.net> <200703171319.38994.shoesoft@gmx.net> <20070317134038.Q900@thinkpad.dieringer.dyndns.org> In-Reply-To: <20070317134038.Q900@thinkpad.dieringer.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703171538.14510.shoesoft@gmx.net> X-Y-GMX-Trusted: 0 Cc: freebsd-usb@freebsd.org Subject: usb firmware download (Was: Re: M-Audio Transit experiments) 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, 17 Mar 2007 15:04:55 -0000 Redirecting this from freebsd-multimedia to freebsd-usb: Short synopsis: Using a modified version of madfuload (http://usb-midi-fw.sourceforge.net/) I'm able to upload the firmware to my M-Audio Transit usb sound card using /dev/ugen0. The problem is that the device doesn't get recognized as snd_uaudio device unless I kldunload/kldload usb. On linux, madfuload does some kind of usbdevfs reset but I haven't found an equivalent on FreeBSD. What's the proper way of doing this? On Saturday 17 March 2007 13:42:34 Martin Dieringer wrote: > I added this entry in usbd.conf: > > device "M-Audio Transit, firmware download" > vendor 0x0763 > product 0x2806 > release 0x0100 > attach "if ! kldstat -n snd_uaudio > /dev/null 2>&1 ; then kldload > snd_uaudio; fi" > attach "/usr/local/sbin/madfuload -l -3 -f > /usr/local/lib/madfuload/ma006100.bin -D /dev/${DEVNAME}" > > > but the device won't show up. How does it work with usio for example? I think usbd only handles automatically execution of commands if a specific device is detected. So in this case the firmware is loaded but that doesn't eliminate the need for re-attaching the device as snd_uaudio device.