From owner-freebsd-usb@FreeBSD.ORG Sun Mar 13 04:19:29 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DCC1E16A4CF for ; Sun, 13 Mar 2005 04:19:29 +0000 (GMT) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BB4D43D39 for ; Sun, 13 Mar 2005 04:19:27 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id j2D4JNUQ016381 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 12 Mar 2005 20:19:24 -0800 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.10/Submit) id j2D4JNfL016379 for freebsd-usb@freebsd.org; Sat, 12 Mar 2005 20:19:23 -0800 X-Authentication-Warning: hosea.tallye.com: sttng359 set sender to lorenl@alzatex.com using -f Date: Sat, 12 Mar 2005 20:19:23 -0800 From: "Loren M. Lang" To: freebsd-usb@freebsd.org Message-ID: <20050313041923.GA16329@alzatex.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ibTvN161/egqYuK8" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C Subject: USB Mouse detected as a generic hid device. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 04:19:30 -0000 --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I have a Wireless USB Keyboard/Mouse Combo from Compaq. The actual id string says G Tech China USB Wireless mouse and keyboard. The keyboard is detected and works fine minus all of the extra multimedia keys, but the mouse doesn't work at all. The mouse is captured by the uhid driver and not the ums driver. I'd like to fix this, if possible, and send a patch in. The first thing I think I should do is look at the raw hid descriptor table and see what's different about it. Under windows xp, no special drivers were needed so I'm expecting it to not be too difficult from a regular usb mouse. What tools are available for extracting the raw descriptor tables from the usb device including all of the standard descriptors? I'd like something that can easily report as much detail as usbview for linux does, plus descriptors specific for hid devices. --=20 I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 =20 --ibTvN161/egqYuK8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCM79LbTXoRwEYo9IRArEiAJwIJQfynQF3eoUMLHEqn1RFV9aKqACeO/9K fwDZK+8ly+qpqwHxrOvnrYw= =GPpF -----END PGP SIGNATURE----- --ibTvN161/egqYuK8-- From owner-freebsd-usb@FreeBSD.ORG Sun Mar 13 05:05:07 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6497016A4CE for ; Sun, 13 Mar 2005 05:05:07 +0000 (GMT) Received: from web54003.mail.yahoo.com (web54003.mail.yahoo.com [206.190.36.227]) by mx1.FreeBSD.org (Postfix) with SMTP id DD26B43D31 for ; Sun, 13 Mar 2005 05:05:06 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: (qmail 18237 invoked by uid 60001); 13 Mar 2005 05:05:06 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=rb/n6K7qcpMv8nLX84Donpfezsbh8i2gWlgOpMkAw7rE4f2Sj4wQkI5IUH1FqL9Qxc5hMoNzVav8pq6Y6Vstsq4FvkLd5q0QTKQHFJGH7IMZYXZ4CeOvC8x2kPAQHRm7fcKzxhZ2InE0PDAHBqJb+AJ0H4L5CU/poNDLrtx3C68= ; Message-ID: <20050313050506.18235.qmail@web54003.mail.yahoo.com> Received: from [147.46.44.181] by web54003.mail.yahoo.com via HTTP; Sat, 12 Mar 2005 21:05:05 PST Date: Sat, 12 Mar 2005 21:05:05 -0800 (PST) From: Rob To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: 5.4: scbus & da in kernel config, umass as module: but no /dev/da* ? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 05:05:07 -0000 Hi, I'm running FreeBSD 5.4-PRERELEASE as of Thu Mar 10. I have following usb-related in my kernel config: device scbus device da device uhci device usb hoping that this provides enough 'basic' usb support for my usb-memory-stick. Indeed, I can load the umass module. If I'm not wrong, I must do following to access the usb-memory-stick: mount -t msdosfd /dev/da0s1 /mnt but there's no /dev/da* device. Someone told me to use 'device cam', but I don't think I need that, do I? When I plug the memory-stick in the usb port, I get in the console: umass0: Get Max Lun not supported (STALLED) da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-4 device da0: 1.000MB/s transfers da0: 122MB (249856 512 byte sectors: 64H 32S/T 122C) umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED [ last 3 lines repeated every two minutes or so ] What are these 'STALLED' messages about? When I then type: # 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 addr 2: full speed, self powered, config 1, i-Bead 100 MP3 Player(0x8008), Sigmatel(0x066f), rev 0.01 But still no /dev/da* devices! When I unplug the memory stick, I get in the console: umass0: at uhub0 port 2 (addr 2) disconnected (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry Opened disk da0 -> 5 umass0: detached Any idea what's wrong here? Thanks, Rob. __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ From owner-freebsd-usb@FreeBSD.ORG Sun Mar 13 06:43:17 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DB5216A4CE for ; Sun, 13 Mar 2005 06:43:17 +0000 (GMT) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD44843D53 for ; Sun, 13 Mar 2005 06:43:16 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id j2D6hCUQ017531 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 12 Mar 2005 22:43:13 -0800 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.10/Submit) id j2D6hCL5017529; Sat, 12 Mar 2005 22:43:12 -0800 X-Authentication-Warning: hosea.tallye.com: sttng359 set sender to lorenl@alzatex.com using -f Date: Sat, 12 Mar 2005 22:43:12 -0800 From: "Loren M. Lang" To: "Loren M. Lang" Message-ID: <20050313064312.GA16791@alzatex.com> References: <20050313041923.GA16329@alzatex.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Nq2Wo0NMKNjxTN9z" Content-Disposition: inline In-Reply-To: <20050313041923.GA16329@alzatex.com> User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C cc: freebsd-usb@freebsd.org Subject: Re: USB Mouse detected as a generic hid device. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 06:43:17 -0000 --Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 12, 2005 at 08:19:23PM -0800, Loren M. Lang wrote: > I have a Wireless USB Keyboard/Mouse Combo from Compaq. The actual id > string says G Tech China USB Wireless mouse and keyboard. The keyboard > is detected and works fine minus all of the extra multimedia keys, but > the mouse doesn't work at all. The mouse is captured by the uhid driver > and not the ums driver. I'd like to fix this, if possible, and send a > patch in. The first thing I think I should do is look at the raw hid > descriptor table and see what's different about it. Under windows xp, > no special drivers were needed so I'm expecting it to not be too > difficult from a regular usb mouse. What tools are available for > extracting the raw descriptor tables from the usb device including all > of the standard descriptors? I'd like something that can easily report > as much detail as usbview for linux does, plus descriptors specific for > hid devices. I couldn't find any already made tools for this, so I've been playing around with c and libusbhid to examine the keyboard/mouse combo and I think I've figured out the problem. This wireless combo appears as just a simple device with one interface (I think) and the report for the mouse and keyboard are combined together. Does freebsd support having keyboard and mouse events in the same report? If not, could I do something like catch all the events through uhid0 and inject them back into the kernel from a user-space program? The mouse is probably pretty simple due to moused, but I don't know how I'd inject the keyboard events. > --=20 > I sense much NT in you. > NT leads to Bluescreen. > Bluescreen leads to downtime. > Downtime leads to suffering. > NT is the path to the darkside. > Powerful Unix is. >=20 > Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc > Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 > =20 --=20 I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 =20 --Nq2Wo0NMKNjxTN9z Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCM+EAbTXoRwEYo9IRAl3FAJ43GuD1yxMrdYn1LTqDK+rXFTKzWQCeI0Xy OgTkyGFjfhSeEp41O3Os2aE= =JiL5 -----END PGP SIGNATURE----- --Nq2Wo0NMKNjxTN9z-- From owner-freebsd-usb@FreeBSD.ORG Sun Mar 13 10:57:50 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D90316A4CE for ; Sun, 13 Mar 2005 10:57:50 +0000 (GMT) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDDE343D1F for ; Sun, 13 Mar 2005 10:57:47 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id j2DAvcUQ019894 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 13 Mar 2005 02:57:39 -0800 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.10/Submit) id j2DAvcRY019892; Sun, 13 Mar 2005 02:57:38 -0800 X-Authentication-Warning: hosea.tallye.com: sttng359 set sender to lorenl@alzatex.com using -f Date: Sun, 13 Mar 2005 02:57:38 -0800 From: "Loren M. Lang" To: "Loren M. Lang" Message-ID: <20050313105738.GA19869@alzatex.com> References: <20050313041923.GA16329@alzatex.com> <20050313064312.GA16791@alzatex.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline In-Reply-To: <20050313064312.GA16791@alzatex.com> User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C cc: freebsd-usb@freebsd.org Subject: Re: USB Mouse detected as a generic hid device. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 10:57:50 -0000 --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 12, 2005 at 10:43:12PM -0800, Loren M. Lang wrote: > On Sat, Mar 12, 2005 at 08:19:23PM -0800, Loren M. Lang wrote: > > I have a Wireless USB Keyboard/Mouse Combo from Compaq. The actual id > > string says G Tech China USB Wireless mouse and keyboard. The keyboard > > is detected and works fine minus all of the extra multimedia keys, but > > the mouse doesn't work at all. The mouse is captured by the uhid driver > > and not the ums driver. I'd like to fix this, if possible, and send a > > patch in. The first thing I think I should do is look at the raw hid > > descriptor table and see what's different about it. Under windows xp, > > no special drivers were needed so I'm expecting it to not be too > > difficult from a regular usb mouse. What tools are available for > > extracting the raw descriptor tables from the usb device including all > > of the standard descriptors? I'd like something that can easily report > > as much detail as usbview for linux does, plus descriptors specific for > > hid devices. >=20 > I couldn't find any already made tools for this, so I've been playing > around with c and libusbhid to examine the keyboard/mouse combo and I > think I've figured out the problem. This wireless combo appears as just > a simple device with one interface (I think) and the report for the > mouse and keyboard are combined together. Does freebsd support having > keyboard and mouse events in the same report? If not, could I do > something like catch all the events through uhid0 and inject them back > into the kernel from a user-space program? The mouse is probably pretty > simple due to moused, but I don't know how I'd inject the keyboard > events. I just discovered vkbd, originally made to assist with bluetooth keyboards, but designed independent of bluetooth might do the job of letting me inject keyboard events into the kernel. Though this is probably more complicated then it should be. The ums and ukbd drivers should probably be written to work together instead. >=20 > > --=20 > > I sense much NT in you. > > NT leads to Bluescreen. > > Bluescreen leads to downtime. > > Downtime leads to suffering. > > NT is the path to the darkside. > > Powerful Unix is. > >=20 > > Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc > > Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 > > =20 >=20 >=20 >=20 > --=20 > I sense much NT in you. > NT leads to Bluescreen. > Bluescreen leads to downtime. > Downtime leads to suffering. > NT is the path to the darkside. > Powerful Unix is. >=20 > Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc > Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 > =20 --=20 I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 =20 --PNTmBPCT7hxwcZjr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCNByibTXoRwEYo9IRAqkBAJ4p0vsRc8tCKZJEVp3/+31zuE+UvgCfZ9f3 23J+S5oGgMGNemzm9Fpe5+4= =vlMe -----END PGP SIGNATURE----- --PNTmBPCT7hxwcZjr-- From owner-freebsd-usb@FreeBSD.ORG Sun Mar 13 16:35:32 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 883C516A4CE for ; Sun, 13 Mar 2005 16:35:32 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4774843D2D for ; Sun, 13 Mar 2005 16:35:31 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.3/8.13.1) with ESMTP id j2DGXhuu040171; Sun, 13 Mar 2005 09:33:47 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 13 Mar 2005 09:33:45 -0700 (MST) Message-Id: <20050313.093345.59654958.imp@bsdimp.com> To: lorenl@alzatex.com From: "M. Warner Losh" In-Reply-To: <20050313105738.GA19869@alzatex.com> References: <20050313041923.GA16329@alzatex.com> <20050313064312.GA16791@alzatex.com> <20050313105738.GA19869@alzatex.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: USB Mouse detected as a generic hid device. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 16:35:32 -0000 In message: <20050313105738.GA19869@alzatex.com> "Loren M. Lang" writes: : I just discovered vkbd, originally made to assist with bluetooth : keyboards, but designed independent of bluetooth might do the job of : letting me inject keyboard events into the kernel. Though this is : probably more complicated then it should be. The ums and ukbd drivers : should probably be written to work together instead. Many people hold a similar view, also that kbd and ukbd should work together. Or more precicely, there should be a better framework with which to plug together input and output devices in the kernel. Warner From owner-freebsd-usb@FreeBSD.ORG Sun Mar 13 17:03:35 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12EF716A4CE; Sun, 13 Mar 2005 17:03:35 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE30A43D39; Sun, 13 Mar 2005 17:03:34 +0000 (GMT) (envelope-from vs@FreeBSD.org) Received: from freefall.freebsd.org (vs@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2DH3YcD034832; Sun, 13 Mar 2005 17:03:34 GMT (envelope-from vs@freefall.freebsd.org) Received: (from vs@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2DH3Ycb034828; Sun, 13 Mar 2005 17:03:34 GMT (envelope-from vs) Date: Sun, 13 Mar 2005 17:03:34 GMT From: Volker Stolz Message-Id: <200503131703.j2DH3Ycb034828@freefall.freebsd.org> To: vs@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: usb/78371: Philips Wearable Audio Player (128) fails to attach X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 17:03:35 -0000 Synopsis: Philips Wearable Audio Player (128) fails to attach Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: vs Responsible-Changed-When: Sun Mar 13 17:02:47 GMT 2005 Responsible-Changed-Why: Usb-issue http://www.freebsd.org/cgi/query-pr.cgi?pr=78371 From owner-freebsd-usb@FreeBSD.ORG Sun Mar 13 19:02:54 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0876316A4CE for ; Sun, 13 Mar 2005 19:02:54 +0000 (GMT) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E50543D60 for ; Sun, 13 Mar 2005 19:02:53 +0000 (GMT) (envelope-from adoller@mac.com) Received: from mac.com (smtpin01-en2 [10.13.10.146]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id j2DJ2rKi001368 for ; Sun, 13 Mar 2005 11:02:53 -0800 (PST) Received: from [192.168.1.97] (pool-141-158-215-149.alt.east.verizon.net [141.158.215.149]) (authenticated bits=0) by mac.com (Xserve/smtpin01/MantshX 4.0) with ESMTP id j2DJ2p90002396 for ; Sun, 13 Mar 2005 11:02:52 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v619.2) Content-Transfer-Encoding: 7bit Message-Id: <0187aca93937cfe0f8796715c4d44ebc@mac.com> Content-Type: text/plain; charset=US-ASCII; format=flowed To: freebsd-usb@freebsd.org From: Andy Doller Date: Sun, 13 Mar 2005 14:02:49 -0500 X-Mailer: Apple Mail (2.619.2) Subject: ulpt and usb problems X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 19:02:54 -0000 I have been having consistent problem with USB and my HP 1320. It is constantly causing kernel panics on my print server. I have found RP 78208 which describes exactly the problem that I am having. http://www.freebsd.org/cgi/query-pr.cgi?pr=usb/78208 I am wondering what the status of this error is. I see there is a suggested intermediate fix, but I am unsure of how to apply/compile/install it or even if I should. Help and guidance would be appreciated. Thanks, Andy From owner-freebsd-usb@FreeBSD.ORG Sun Mar 13 21:20:06 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3EDF016A4CE for ; Sun, 13 Mar 2005 21:20:06 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E69243D3F for ; Sun, 13 Mar 2005 21:20:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2DLK5Fc066479 for ; Sun, 13 Mar 2005 21:20:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2DLK5j0066478; Sun, 13 Mar 2005 21:20:05 GMT (envelope-from gnats) Date: Sun, 13 Mar 2005 21:20:05 GMT Message-Id: <200503132120.j2DLK5j0066478@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Ian Dowse Subject: Re: usb/78208: ulpt page fault X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Ian Dowse List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 21:20:06 -0000 The following reply was made to PR usb/78208; it has been noted by GNATS. From: Ian Dowse To: Jan-Espen Pettersen Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: usb/78208: ulpt page fault Date: Sun, 13 Mar 2005 21:14:58 +0000 In message <200502281829.j1SIT6sb003645@endeavour.localnet.radiotube.org>, Jan- Espen Pettersen writes: >>Description: >I got this page fault trap just after printing via ulpt. The pages came out ju >st fine, which is why I think this problem is about handling EOF or close of t >ransaction with /dev/ulpt0. To me this looks like a timer (as the name *_tick) > which probably was not stopped in time, and therefore didn't have a valid xfe >r pointer to pass to the setup routine. These crashes has been going on for a >while, but I haven't been able to get crashdumps before recently when I starte >d to press Ctrl+Alt+F1 shortly after starting the print jobs. This looks like it could be caused by a known race condition in kernel timers. Is the problem easy to reproduce for you? If so, could you try the patch at http://people.freebsd.org/~iedowse/releng_5_callout.diff and see if it helps? Remove your patch to ulpt.c first. The above patch is a partial backport of some changes that went in to -CURRENT that fix some race conditions with Giant-locked kernel timers. Ian From owner-freebsd-usb@FreeBSD.ORG Mon Mar 14 00:12:37 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7ACC816A4CE for ; Mon, 14 Mar 2005 00:12:37 +0000 (GMT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 180B443D1D for ; Mon, 14 Mar 2005 00:12:37 +0000 (GMT) (envelope-from rodrigc@crodrigues.org) Received: from h00609772adf0.ne.client2.attbi.com ([66.30.114.143]) by comcast.net (rwcrmhc11) with ESMTP id <2005031400123301300oeu4be>; Mon, 14 Mar 2005 00:12:34 +0000 Received: from h00609772adf0.ne.client2.attbi.com (localhost [127.0.0.1]) j2E0Ca1H064315; Sun, 13 Mar 2005 19:12:42 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost)j2E0CUJm064314; Sun, 13 Mar 2005 19:12:30 -0500 (EST) (envelope-from rodrigc) Date: Sun, 13 Mar 2005 19:12:23 -0500 From: Craig Rodrigues To: Rob Message-ID: <20050314001223.GA64290@crodrigues.org> References: <20050313050506.18235.qmail@web54003.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050313050506.18235.qmail@web54003.mail.yahoo.com> User-Agent: Mutt/1.4.1i cc: freebsd-usb@freebsd.org Subject: Re: 5.4: scbus & da in kernel config, umass as module: but no /dev/da* ? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 00:12:37 -0000 On Sat, Mar 12, 2005 at 09:05:05PM -0800, Rob wrote: > umass0: Get Max Lun not supported (STALLED) Have a look at: http://lists.freebsd.org/pipermail/freebsd-usb/2004-December/000377.html and http://www.root.org/~nate/freebsd/quirks.html and see if you can find a "quirk" that makes your memory stick work. -- Craig Rodrigues rodrigc@crodrigues.org From owner-freebsd-usb@FreeBSD.ORG Mon Mar 14 11:01:35 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E17A716A4ED for ; Mon, 14 Mar 2005 11:01:34 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9764343D3F for ; Mon, 14 Mar 2005 11:01:34 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2EB1YvY090499 for ; Mon, 14 Mar 2005 11:01:34 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2EB1Xv0090492 for freebsd-usb@freebsd.org; Mon, 14 Mar 2005 11:01:33 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 14 Mar 2005 11:01:33 GMT Message-Id: <200503141101.j2EB1Xv0090492@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 11:01:35 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2001/12/12] kern/32713 usb [usb] mouse detaches from hub and doesnt f [2002/01/13] kern/33839 usb usb0: host controller halted (involving A f [2002/04/07] i386/36850 usb Page Fault using ppp with USB Modem [4.9] f [2002/06/24] kern/39805 usb 4.6R install panics with umass0 device co o [2002/07/19] kern/40792 usb signals lead to data loss on device ugen o [2002/12/10] kern/46176 usb umass causes kernel panic if device remov o [2002/12/19] i386/46371 usb USB controller cannot be initialized on I o [2002/12/29] kern/46618 usb USB (UHCI/ICH3) PALM connect/disconnect/c o [2003/02/17] kern/48359 usb SiS 5597/8 USB + uscanner breakage a [2003/03/02] kern/48849 usb Maxtor XT5000 causes panic in boot o [2003/03/05] kern/48952 usb uscanner0 hangs a [2003/03/20] kern/50149 usb Using Alcatel SpeedTouch results in "usb0 a [2003/08/14] kern/55587 usb null dereference in usbdi.c: usb_transfer o [2003/09/26] bin/57255 usb usbd and multi-function devices f [2003/12/11] kern/60131 usb [usb] Page fault on disconnect of USB dev s [2003/12/15] kern/60276 usb [usb] Kernel panic when plugging in USB ( o [2004/01/11] kern/61191 usb [usb] panic: USB vs. Serial problems o [2004/01/15] kern/61377 usb [kbd] usb keyboard not functional after b o [2004/01/20] kern/61627 usb [usb] [patch] New USB printer not support f [2004/01/23] kern/61804 usb [panic] panic with hitachi travelstar USB o [2004/01/24] kern/61841 usb [boot] 5.2 Boot freeze if memorybird (USB f [2004/01/30] kern/62088 usb [usb] Logitech Cordless/Optical Mouse not o [2004/01/30] kern/62123 usb [usb] LaCie 160GB USB drive umass: BBB re o [2004/02/23] i386/63251 usb [usb] USB stops working after 2nd APM sus o [2004/02/26] kern/63375 usb [patch] panic: unplugging USB devices pan o [2004/03/01] kern/63621 usb [usb] USB MemoryStick Reader stalls/crash o [2004/04/07] kern/65292 usb [panic] random page faults (usb-related?) o [2004/04/19] i386/65783 usb [panic] Panic when attaching card reader o [2004/07/13] kern/69006 usb [patch] Apple Cinema Display hangs USB po o [2004/08/30] kern/71155 usb [usb] misbehaving usb-printer hangs proce o [2004/09/27] kern/72119 usb Detaching USB Memory Stick w/o umount cau f [2004/10/11] i386/72497 usb WD USB Disk Panics -stable and 5.2.1 o [2004/10/29] kern/73295 usb Lock order reversal in USB code. o [2004/10/30] kern/73307 usb Kernel panics on USB disconnect o [2004/11/18] kern/74088 usb ohci ehci uhub: port disabled on connecti o [2005/01/08] usb/75941 usb system halted during booting due to ehci o [2005/01/13] usb/76204 usb panic while using usb attached modem o [2005/01/18] usb/76395 usb USB printer does not work, usbdevs says " o [2005/01/21] usb/76554 usb Panram "yoyo" USB MP3 player causes panic o [2005/01/21] usb/76555 usb PNY USB DISK 2.0 USB thumbdrive causes wo o [2005/01/25] usb/76684 usb Toshiba PDR-M4 camera connected via USB h o [2005/01/25] usb/76687 usb ugen USB_SET_TIMEOUT panics kernel when t o [2005/01/26] usb/76727 usb usb printing locks machine o [2005/01/30] usb/76847 usb ukbd panics on boot o [2005/02/06] usb/77184 usb kernel panic on USB device disconnect o [2005/02/09] usb/77294 usb ucom + ulpcom panic o [2005/02/09] usb/77315 usb unproperly detached (without unmounting) o [2005/02/16] usb/77604 usb Sluggish Logitch LX700 USB Mouse o [2005/02/28] usb/78208 usb ulpt page fault o [2005/03/04] usb/78426 usb Interrupts never come on EHCI pipes 50 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2001/09/30] conf/30929 usb [patch] use usbd to initialize USB ADSL m o [2001/12/09] kern/32652 usb [patch] A new ioctl to uscanner s [2001/12/09] ports/32653 usb Added patches to improve USB scanner supp f [2002/04/23] kern/37374 usb [PATCH] closing ums0 blocks with wmesg uh f [2002/05/04] conf/37732 usb usbd start in wrong place in /etc/rc in 4 o [2002/05/23] kern/38452 usb [usb] Logitech USB iFeel: device_probe_an o [2002/07/16] kern/40657 usb [usb] Logitech iFeel usb mouse will not a o [2002/07/24] kern/40948 usb [usb] USB HP CDW8200 does not work o [2002/08/07] kern/41415 usb [usb] [patch] Some USB scanners cannot ta f [2002/08/30] bin/42213 usb moused(8) seems to delay some mouse event f [2002/10/25] kern/44450 usb USB support FAILURE for device that was s o [2003/01/18] kern/47200 usb USB port is disabled when Kodak DX4900 is o [2003/02/06] kern/48014 usb [usb] moused fails to correctly identify o [2003/02/16] bin/48342 usb [PATCH] usbd dynamic device list. o [2003/03/19] kern/50110 usb [usb] Astra 2100U scanner being detected o [2003/05/08] kern/51958 usb [usb] [patch] update for urio driver o [2003/05/10] kern/52026 usb [usb] feature request: umass driver suppo f [2003/05/19] bin/52432 usb [sysinstall] drivers.flp won't load with o [2003/06/08] kern/53025 usb [PATCH] ugen does not allow O_NONBLOCK fo f [2003/09/19] kern/56999 usb FreeCom USB CD/RW problem on FreeBSD 5.1 o [2003/11/10] i386/59147 usb [usb] USB active extension cable not reco o [2003/11/11] kern/59169 usb [patch] ulpt is missing read operation o [2003/12/15] kern/60248 usb [patch] Problem with USB printer HP Laser o [2004/01/12] bin/61234 usb [usb] [patch] usbhidaction doesn't suppor o [2004/01/14] kern/61365 usb FreeBSD resets when I turn off monitor w/ o [2004/02/13] kern/62788 usb need quirks for Super Talent Flash USB 2. o [2004/03/04] kern/63779 usb [usb] USB-mass storage (USB to IDE Conver o [2004/03/06] kern/63837 usb [patch] USB: hid_is_collection() only loo o [2004/04/11] kern/65436 usb QUIRK: [patch] to add support for PNY Att o [2004/04/19] kern/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops o [2004/05/11] kern/66547 usb [usb] Palm Tungsten T USB does not initia o [2004/06/27] kern/68412 usb [usb] [patch] QUIRK: Philips KEY013 USB M o [2004/07/06] i386/68719 usb [usb] USB 2.0 mobil rack+ fat32 performan o [2004/08/16] kern/70523 usb [usb] [patch] umct sending/receiving wron o [2004/08/25] kern/70942 usb [usb] Genius Wireless USB mouse: moused d o [2004/09/06] kern/71416 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/06] kern/71417 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/07] kern/71455 usb [usb] Slow USB umass performance of 5.3 o [2004/09/11] kern/71605 usb [usb] [patch] umass doesn't recognize mul o [2004/10/05] kern/72344 usb [usb] [patch] QUIRK: Dane-Elec zMate 512 f [2004/10/06] i386/72380 usb [usb] USB does not work [dual Celeron Abi o [2004/10/23] i386/73056 usb [usb] Sun Microsystems Type 6 USB mouse n o [2004/11/02] i386/73421 usb [usb] USB not recgnized/working on Toshib o [2004/11/16] kern/73999 usb [usb] USB Freezes when a device is plugge o [2005/01/07] usb/75928 usb Cytronix SmartMedia card (SMC) reader has o [2005/01/19] usb/76461 usb disklabel of umass(4)-CAM(4)-da(4) not us o [2005/01/27] usb/76732 usb Mouse problems with USB KVM Switch o [2005/02/24] usb/78028 usb The system must tell users information of o [2005/03/03] usb/78371 usb Philips Wearable Audio Player (128) fails 49 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Mar 14 11:16:23 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6EC5716A4CE for ; Mon, 14 Mar 2005 11:16:23 +0000 (GMT) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C82243D39 for ; Mon, 14 Mar 2005 11:16:22 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id j2EBGIUQ015220 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 Mar 2005 03:16:18 -0800 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.10/Submit) id j2EBGIDt015218; Mon, 14 Mar 2005 03:16:18 -0800 X-Authentication-Warning: hosea.tallye.com: sttng359 set sender to lorenl@alzatex.com using -f Date: Mon, 14 Mar 2005 03:16:18 -0800 From: "Loren M. Lang" To: "Loren M. Lang" Message-ID: <20050314111618.GA15137@alzatex.com> References: <20050313041923.GA16329@alzatex.com> <20050313064312.GA16791@alzatex.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7JfCtLOvnd9MIVvH" Content-Disposition: inline In-Reply-To: <20050313064312.GA16791@alzatex.com> User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C cc: freebsd-usb@freebsd.org Subject: Re: USB Mouse detected as a generic hid device. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 11:16:23 -0000 --7JfCtLOvnd9MIVvH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 12, 2005 at 10:43:12PM -0800, Loren M. Lang wrote: > On Sat, Mar 12, 2005 at 08:19:23PM -0800, Loren M. Lang wrote: > > I have a Wireless USB Keyboard/Mouse Combo from Compaq. The actual id > > string says G Tech China USB Wireless mouse and keyboard. The keyboard > > is detected and works fine minus all of the extra multimedia keys, but > > the mouse doesn't work at all. The mouse is captured by the uhid driver > > and not the ums driver. I'd like to fix this, if possible, and send a > > patch in. The first thing I think I should do is look at the raw hid > > descriptor table and see what's different about it. Under windows xp, > > no special drivers were needed so I'm expecting it to not be too > > difficult from a regular usb mouse. What tools are available for > > extracting the raw descriptor tables from the usb device including all > > of the standard descriptors? I'd like something that can easily report > > as much detail as usbview for linux does, plus descriptors specific for > > hid devices. >=20 > I couldn't find any already made tools for this, so I've been playing > around with c and libusbhid to examine the keyboard/mouse combo and I > think I've figured out the problem. This wireless combo appears as just > a simple device with one interface (I think) and the report for the > mouse and keyboard are combined together. Does freebsd support having > keyboard and mouse events in the same report? If not, could I do > something like catch all the events through uhid0 and inject them back > into the kernel from a user-space program? The mouse is probably pretty > simple due to moused, but I don't know how I'd inject the keyboard > events. After some further analysis, I've discovered that I can read events from /dev/uhid0 even while the keyboard is controlling the console as /dev/ukbd0, and the only events coming through uhid0 are everything but the standard keyboard keycodes. Reading from uhid0 I see events for all my keyboards extra keys like volume control and sleep, but I also see all the events coming from my mouse including axes, wheel, and all five buttons on it. I wrote a script to parse this and now I have volume control working, but I need a way to inject the mouse events back in to the system. I'd like for the ums driver to read them directly, but I'm not sure how. My other option is to modify a new version of moused and use that to inject them. I don't need to worry about vkbd since my keyboard seems to work at the same time other events are coming in on uhid0. >=20 > > --=20 > > I sense much NT in you. > > NT leads to Bluescreen. > > Bluescreen leads to downtime. > > Downtime leads to suffering. > > NT is the path to the darkside. > > Powerful Unix is. > >=20 > > Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc > > Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 > > =20 >=20 >=20 >=20 > --=20 > I sense much NT in you. > NT leads to Bluescreen. > Bluescreen leads to downtime. > Downtime leads to suffering. > NT is the path to the darkside. > Powerful Unix is. >=20 > Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc > Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 > =20 --=20 I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 =20 --7JfCtLOvnd9MIVvH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCNXKCbTXoRwEYo9IRArJwAJ9LnA4/jRU3zBZUYCb7WlsWDId0lACfRu6b wuwd+qO7JjQtMsd2F0JRhlY= =8vFL -----END PGP SIGNATURE----- --7JfCtLOvnd9MIVvH-- From owner-freebsd-usb@FreeBSD.ORG Mon Mar 14 11:21:30 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA9F516A4CE for ; Mon, 14 Mar 2005 11:21:30 +0000 (GMT) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A04243D49 for ; Mon, 14 Mar 2005 11:21:30 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id j2EBLTUQ015256 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 14 Mar 2005 03:21:30 -0800 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.10/Submit) id j2EBLSUB015254 for freebsd-usb@freebsd.org; Mon, 14 Mar 2005 03:21:28 -0800 X-Authentication-Warning: hosea.tallye.com: sttng359 set sender to lorenl@alzatex.com using -f Date: Mon, 14 Mar 2005 03:21:28 -0800 From: "Loren M. Lang" To: freebsd-usb@freebsd.org Message-ID: <20050314112128.GB15137@alzatex.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QKdGvSO+nmPlgiQ/" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C Subject: uhid device file format X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 11:21:31 -0000 --QKdGvSO+nmPlgiQ/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm curious where the format of data coming in on uhid is. Are there any good documents on this other than the source code. Looking at freebsd.org, I don't see many technical documents describing the usb subsystem. It looks like the first byte is the report id from the hid descriptor, and following that are the bytes from the report. My usb keyboard/mouse combo provides three different reports on uhid0 according to the hid descriptor it provides. One report is a byte long, the other two are 4 bytes long, but each line I read is 10 bytes long. What are the other 5 bytes for? I'm been able to successfully decode the first five bytes and now I can read all the multimedia keys and mouse events so I'm wondering what is left. --=20 I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2 =20 --QKdGvSO+nmPlgiQ/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCNXO4bTXoRwEYo9IRAnJvAJ9yGhisSjorP69lcm8NuegbaLQnFgCdHNG5 fRPdOklin5lWo81m9Og/Qzw= =suTb -----END PGP SIGNATURE----- --QKdGvSO+nmPlgiQ/-- From owner-freebsd-usb@FreeBSD.ORG Mon Mar 14 23:00:09 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D58516A4CE for ; Mon, 14 Mar 2005 23:00:09 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05F1F43D3F for ; Mon, 14 Mar 2005 23:00:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2EN08bd084719 for ; Mon, 14 Mar 2005 23:00:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2EN08IE084718; Mon, 14 Mar 2005 23:00:08 GMT (envelope-from gnats) Date: Mon, 14 Mar 2005 23:00:08 GMT Message-Id: <200503142300.j2EN08IE084718@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Jan-Espen Pettersen Subject: Re: usb/78208: ulpt page fault X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jan-Espen Pettersen List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2005 23:00:09 -0000 The following reply was made to PR usb/78208; it has been noted by GNATS. From: Jan-Espen Pettersen To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: usb/78208: ulpt page fault Date: Mon, 14 Mar 2005 23:55:20 +0100 The problem is not easy to reproduce, since it doesn't always happen. (Which is normal for race conditions) It usually happens around close of the ulpt device after transmitting the print job to the printer. Then sometimes I get a crash just after the printer received the bits. (and it prints out just fine, while this system either just reboots (in X11 mode) or it drops to ddb (in console)) This means that I can't predict the error. I'll try the patch as soon as possible and see if it manages to print a few jobs. From owner-freebsd-usb@FreeBSD.ORG Tue Mar 15 02:01:10 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33D0016A4CE for ; Tue, 15 Mar 2005 02:01:10 +0000 (GMT) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 5596743D2D for ; Tue, 15 Mar 2005 02:01:09 +0000 (GMT) (envelope-from iedowse@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 15 Mar 2005 02:01:08 +0000 (GMT) To: Andy Doller In-Reply-To: Your message of "Sun, 13 Mar 2005 14:02:49 EST." <0187aca93937cfe0f8796715c4d44ebc@mac.com> Date: Tue, 15 Mar 2005 02:01:08 +0000 From: Ian Dowse Message-ID: <200503150201.aa61406@salmon.maths.tcd.ie> cc: freebsd-usb@freebsd.org Subject: Re: ulpt and usb problems X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 02:01:10 -0000 In message <0187aca93937cfe0f8796715c4d44ebc@mac.com>, Andy Doller writes: >I have been having consistent problem with USB and my HP 1320. It is >constantly causing kernel panics on my print server. I have found RP >78208 which describes exactly the problem that I am having. > >http://www.freebsd.org/cgi/query-pr.cgi?pr=usb/78208 > >I am wondering what the status of this error is. I see there is a >suggested intermediate fix, but I am unsure of how to >apply/compile/install it or even if I should. Help and guidance would >be appreciated. Hi, If possible, could you test the patch at http://people.freebsd.org/~iedowse/releng_5_callout.diff instead to see if it helps? I can give you instructions for installing it - firstly, are you running 5.3-RELEASE or -STABLE? If you're running -STABLE then just download the patch and run this command from the /usr/src directory: patch < /path/to/releng_5_callout.diff Then compile a new kernel, install it and reboot. Ian From owner-freebsd-usb@FreeBSD.ORG Tue Mar 15 17:43:43 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38D0F16A4CE; Tue, 15 Mar 2005 17:43:43 +0000 (GMT) Received: from harik.murex.com (mail.murex.com [194.98.239.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62E5E43D39; Tue, 15 Mar 2005 17:43:42 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from interscan.fr.murex.com (iscan.murex.fr [172.21.17.207] (may be forged)) by harik.murex.com with ESMTP id j2FHWobW022256; Tue, 15 Mar 2005 18:32:50 +0100 (CET) Received: from mxmail.murex.com (interscan.murex.fr [127.0.0.1]) by interscan.fr.murex.com (8.11.6/8.11.6) with ESMTP id j2FHrOf08881; Tue, 15 Mar 2005 18:53:27 +0100 Received: from mteterin.us.murex.com ([172.21.130.86]) by mxmail.murex.com with Microsoft SMTPSVC(6.0.3790.0); Tue, 15 Mar 2005 18:43:12 +0100 From: Mikhail Teterin Organization: Virtual Estates, Inc. To: questions@FreeBSD.org Date: Tue, 15 Mar 2005 12:43:19 -0500 User-Agent: KMail/1.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503151243.19596.mi+mx@aldan.algebra.com> X-OriginalArrivalTime: 15 Mar 2005 17:43:12.0618 (UTC) FILETIME=[75A744A0:01C52986] cc: usb@FreeBSD.org Subject: umass0 -- yes, daX -- no? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 17:43:43 -0000 Hello! I'm trying to access the file system on a usb memory key. When I insert it, however, kernel duly reports creation of umass0, but not the da1 (da0 is my ZIP drive). According to usbdevs -d, I have: addr 1: OHCI root hub, SiS uhub0 addr 2: Dell USB Memory Key, M-Systems umass0 addr 1: OHCI root hub, SiS uhub1 addr 1: OHCI root hub, SiS uhub2 It ought to be something obvious, but I can't see what it is :-( Thanks! -mi From owner-freebsd-usb@FreeBSD.ORG Wed Mar 16 00:32:57 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D59416A4CE for ; Wed, 16 Mar 2005 00:32:57 +0000 (GMT) Received: from ms-smtp-04.nyroc.rr.com (ms-smtp-04.nyroc.rr.com [24.24.2.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51D3743D5D for ; Wed, 16 Mar 2005 00:32:56 +0000 (GMT) (envelope-from akropel1@rochester.rr.com) Received: from mail.kroptech.com (cpe-24-93-20-125.rochester.res.rr.com [24.93.20.125])j2G0Wrpl029919 for ; Tue, 15 Mar 2005 19:32:53 -0500 (EST) Received: from pia (pia.kroptech.com [192.168.200.3]) by mail.kroptech.com (Postfix) with SMTP id 4D96811376E for ; Tue, 15 Mar 2005 19:37:03 -0500 (EST) Message-ID: <07f701c529bf$b0f05540$03c8a8c0@kroptech.com> From: "Adam Kropelin" To: Date: Tue, 15 Mar 2005 19:32:53 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Virus-Scanned: Symantec AntiVirus Scan Engine Subject: ugen & uhci hang on 5.3-RELEASE and 6.0-CURRENT X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 00:32:57 -0000 I'm the maintainer of the BSD USB driver for the apcupsd (APC UPS daemon) project. The driver makes extensive use of ugen and the USB_DO_REQUEST ioctl. Some users are experiencing a hang where the apcupsd process becomes unkillable and I've traced the problem to a USB_DO_REQUEST ioctl that never returns. The hang is very intermittent (it can happen after anywhere from tens to thousands of USB transfers) and seems to be timing dependent (enabling USB_DEBUG makes the condition much harder to trigger). I've managed to capture a USB_DEBUG trace that shows the failure condition and it seems to stem from a uhci error. After thousands of proper transfers, I see this... kernel: usbd_start_next: pipe=0xc1a83c00, xfer=0 kernel: usb_transfer_complete: pipe=0xc1f6cb80 xfer=0xc1a9d400 status=0 actlen=5 kernel: usb_transfer_complete: repeat=1 new head=0xc1a9d400 kernel: usb0: host controller process error kernel: usb0: host controller halted kernel: usb0 regs: cmd=0080, sts=0031, intr=000f, frnum=0528, flbase=1f2c9000, sof=0040, portsc1=05a5, portsc2=0580 kernel: intrs=43840 kernel: QH(0xc1a93f80) at 1f167f80: hlink=1f167fa2 elink=00000001 kernel: usbd_free_xfer: 0xc1f1c800 kernel: usbd_alloc_xfer() = 0xc1f1c800 kernel: usbd_transfer: xfer=0xc1f1c800, flags=6, pipe=0xc1a83c00, running=0 kernel: usbd_dump_queue: pipe=0xc1a83c00 kernel: usb_allocmem: large alloc 100 kernel: usb_block_allocmem: size=4096 align=1 kernel: usb_block_allocmem: free list size=4096 kernel: usb_insert_transfer: pipe=0xc1a83c00 running=0 timeout=0 kernel: usb_freemem: large free kernel: usb_block_freemem: size=4096 kernel: usbd_free_xfer: 0xc1f1c800 kernel: usbd_alloc_xfer() = 0xc1f1c800 kernel: usbd_transfer: xfer=0xc1f1c800, flags=6, pipe=0xc1a83c00, running=1 kernel: usbd_dump_queue: pipe=0xc1a83c00 kernel: xfer=0xc1f1c800 kernel: usb_allocmem: large alloc 100 kernel: usb_block_allocmem: size=4096 align=1 kernel: usb_block_allocmem: free list size=4096 kernel: usb_insert_transfer: pipe=0xc1a83c00 running=1 timeout=0 kernel: usb_event_thread: woke up kernel: usb_discover ...after which only the usb_event_thread and usb_discover messages continue. It appears that the hcd detects an error, another transfer is dispatched and never completes. apcupsd is unkillable at this point (sitting in kse_release). I've tested 5.3-RELEASE as well as 6.0-CURRENT. Any ideas? I'm willing to test patches or do whatever level of debugging is required. A lot of users are hitting this hang and I'd like to get them up and running again. --Adam From owner-freebsd-usb@FreeBSD.ORG Wed Mar 16 03:04:40 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98C4816A4CE; Wed, 16 Mar 2005 03:04:40 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42DC043D55; Wed, 16 Mar 2005 03:04:40 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.1) id j2G34F1q029309; Tue, 15 Mar 2005 21:04:15 -0600 (CST) (envelope-from dan) Date: Tue, 15 Mar 2005 21:04:15 -0600 From: Dan Nelson To: Mikhail Teterin Message-ID: <20050316030414.GA91721@dan.emsphone.com> References: <200503151243.19596.mi+mx@aldan.algebra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200503151243.19596.mi+mx@aldan.algebra.com> X-OS: FreeBSD 5.4-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.8i cc: usb@freebsd.org cc: questions@freebsd.org Subject: Re: umass0 -- yes, daX -- no? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 03:04:40 -0000 In the last episode (Mar 15), Mikhail Teterin said: > I'm trying to access the file system on a usb memory key. When I > insert it, however, kernel duly reports creation of umass0, but not > the da1 (da0 is my ZIP drive). > > According to usbdevs -d, I have: > > addr 1: OHCI root hub, SiS > uhub0 > addr 2: Dell USB Memory Key, M-Systems > umass0 You might have a device that's not known in umass's table. It looks like it needs to know the protocol before it will create a da* device; try editing /sys/dev/usb/usbdevs and adding a DISKONKEY3 entry (usbdevs -dv should print the hex IDs you need), and copy one of the existing DISKONKEY array entries in umass.c. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-usb@FreeBSD.ORG Wed Mar 16 14:03:48 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7259D16A4CE for ; Wed, 16 Mar 2005 14:03:48 +0000 (GMT) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0C6E43D1D for ; Wed, 16 Mar 2005 14:03:47 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-201-160.daxnet.no ([193.217.201.160] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 4.2.9) with ESMTP id 321269970; Wed, 16 Mar 2005 15:03:46 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Wed, 16 Mar 2005 15:04:34 +0100 User-Agent: KMail/1.7 References: <07f701c529bf$b0f05540$03c8a8c0@kroptech.com> In-Reply-To: <07f701c529bf$b0f05540$03c8a8c0@kroptech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503161504.36260.hselasky@c2i.net> Subject: Re: ugen & uhci hang on 5.3-RELEASE and 6.0-CURRENT X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 14:03:48 -0000 On Wednesday 16 March 2005 01:32, Adam Kropelin wrote: > > kernel: usbd_start_next: pipe=0xc1a83c00, xfer=0 > kernel: usb_transfer_complete: pipe=0xc1f6cb80 xfer=0xc1a9d400 status=0 > actlen=5 > kernel: usb_transfer_complete: repeat=1 new head=0xc1a9d400 > kernel: usb0: host controller process error > kernel: usb0: host controller halted > According to your logs, the USB driver stops after a device interrupt transfer. This might be an indication that the QH's must be dequeued from the schedule before they are updated. Could you have tried my USB driver and see if the problem goes away? Download the three files below into a new directory and type "make install" (to uninstall type "make deinstall") http://home.c2i.net/hselasky/isdn4bsd/privat/usb/Makefile http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.diff.bz2 http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.tar.bz2 Yours --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Mar 16 16:30:39 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6BB016A522; Wed, 16 Mar 2005 16:30:38 +0000 (GMT) Received: from harik.murex.com (mail.murex.com [194.98.239.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CCEC43D41; Wed, 16 Mar 2005 16:30:38 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from interscan.fr.murex.com (iscan.murex.fr [172.21.17.207] (may be forged)) by harik.murex.com with ESMTP id j2GGJYbW010323; Wed, 16 Mar 2005 17:19:34 +0100 (CET) Received: from mxmail.murex.com (interscan.murex.fr [127.0.0.1]) by interscan.fr.murex.com (8.11.6/8.11.6) with ESMTP id j2GGeEf09700; Wed, 16 Mar 2005 17:40:21 +0100 Received: from mteterin.us.murex.com ([172.21.130.86]) by mxmail.murex.com with Microsoft SMTPSVC(6.0.3790.0); Wed, 16 Mar 2005 17:29:53 +0100 From: Mikhail Teterin Organization: Virtual Estates, Inc. To: Dan Nelson Date: Wed, 16 Mar 2005 11:29:52 -0500 User-Agent: KMail/1.7.2 References: <200503151243.19596.mi+mx@aldan.algebra.com> <20050316030414.GA91721@dan.emsphone.com> In-Reply-To: <20050316030414.GA91721@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503161129.53065.mi+mx@aldan.algebra.com> X-OriginalArrivalTime: 16 Mar 2005 16:29:54.0074 (UTC) FILETIME=[625477A0:01C52A45] cc: usb@freebsd.org cc: questions@freebsd.org Subject: Re: umass0 -- yes, daX -- no? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 16:30:40 -0000 > In the last episode (Mar 15), Mikhail Teterin said: > > I'm trying to access the file system on a usb memory key. When I > > insert it, however, kernel duly reports creation of umass0, but not > > the da1 (da0 is my ZIP drive). > > > > According to usbdevs -d, I have: > > > > addr 1: OHCI root hub, SiS > > uhub0 > > addr 2: Dell USB Memory Key, M-Systems > > umass0 > > You might have a device that's not known in umass's table. It looks > like it needs to know the protocol before it will create a da* device; > try editing /sys/dev/usb/usbdevs and adding a DISKONKEY3 entry (usbdevs > -dv should print the hex IDs you need), and copy one of the existing > DISKONKEY array entries in umass.c. Thanks, I'll try. This is disheartening, however... I was pretty sure, anything, that support USB Mass Storage would work "out of the box" :-( -mi From owner-freebsd-usb@FreeBSD.ORG Wed Mar 16 18:10:05 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 63D7A16A4CE for ; Wed, 16 Mar 2005 18:10:05 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4956043D49 for ; Wed, 16 Mar 2005 18:10:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2GIA5hk084262 for ; Wed, 16 Mar 2005 18:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2GIA5Lc084261; Wed, 16 Mar 2005 18:10:05 GMT (envelope-from gnats) Date: Wed, 16 Mar 2005 18:10:05 GMT Message-Id: <200503161810.j2GIA5Lc084261@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Jonathan Fosburgh Subject: Re: usb/77604: Sluggish Logitch LX700 USB Mouse X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 16 Mar 2005 18:10:05 -0000 The following reply was made to PR usb/77604; it has been noted by GNATS. From: Jonathan Fosburgh To: freebsd-gnats-submit@freebsd.org, jonathan@fosburgh.org Cc: Subject: Re: usb/77604: Sluggish Logitch LX700 USB Mouse Date: Wed, 16 Mar 2005 12:01:13 -0600 --nextPart3754647.LXoUmuIBM4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Can someone look at this? =2D-=20 Jonathan Fosburgh AIX and Storage Administrator UT MD Anderson Cancer Center Houston, TX=20 --nextPart3754647.LXoUmuIBM4 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCOHRvqUvQmqp7omYRAoJYAJ9ZKnfSyUmESU5qIVA9Xtla2qwY8ACfSjqH Scb6plSGSluKPFDi4RdKfBI= =tJz+ -----END PGP SIGNATURE----- --nextPart3754647.LXoUmuIBM4-- From owner-freebsd-usb@FreeBSD.ORG Thu Mar 17 01:34:22 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A0F016A4CE for ; Thu, 17 Mar 2005 01:34:22 +0000 (GMT) Received: from ms-smtp-03.nyroc.rr.com (ms-smtp-03.nyroc.rr.com [24.24.2.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC54743D54 for ; Thu, 17 Mar 2005 01:34:21 +0000 (GMT) (envelope-from akropel1@rochester.rr.com) Received: from mail.kroptech.com (cpe-24-93-20-125.rochester.res.rr.com [24.93.20.125])j2H1YHP4006403; Wed, 16 Mar 2005 20:34:17 -0500 (EST) Received: from pia (pia.kroptech.com [192.168.200.3]) by mail.kroptech.com (Postfix) with SMTP id 808D311376E; Wed, 16 Mar 2005 20:38:35 -0500 (EST) Message-ID: <092001c52a91$6ec1b420$03c8a8c0@kroptech.com> From: "Adam Kropelin" To: , References: <07f701c529bf$b0f05540$03c8a8c0@kroptech.com> <200503161504.36260.hselasky@c2i.net> Date: Wed, 16 Mar 2005 20:34:16 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Virus-Scanned: Symantec AntiVirus Scan Engine Subject: Re: ugen & uhci hang on 5.3-RELEASE and 6.0-CURRENT X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 01:34:22 -0000 Hans Petter Selasky wrote: > On Wednesday 16 March 2005 01:32, Adam Kropelin wrote: >> >> kernel: usbd_start_next: pipe=0xc1a83c00, xfer=0 >> kernel: usb_transfer_complete: pipe=0xc1f6cb80 xfer=0xc1a9d400 >> status=0 actlen=5 >> kernel: usb_transfer_complete: repeat=1 new head=0xc1a9d400 >> kernel: usb0: host controller process error >> kernel: usb0: host controller halted >> > > According to your logs, the USB driver stops after a device interrupt > transfer. This might be an indication that the QH's must be dequeued > from the schedule before they are updated. > > Could you have tried my USB driver and see if the problem goes away? > > Download the three files below into a new directory and type > "make install" (to uninstall type "make deinstall") > http://home.c2i.net/hselasky/isdn4bsd/privat/usb/Makefile > http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.diff.bz2 > http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.tar.bz2 I gave your driver a run and it seems all of the USB_DO_REQUEST ioctls are now failing with EPERM. I am playing some games with transfer lengths that might have an affect on things. I've included the code I use for GetReport requests which documents the length munging. --Adam /* * Fetch a report from a device given an fd for the device's control * endpoint, the populated item structure describing the report, and * a data buffer in which to store the result. Returns report length * (in bytes) on success and -1 on failure. */ int hidu_get_report(int fd, hid_item_t* item, unsigned char* data) { int rc, len; struct usb_ctl_request req; unsigned char buf[100]; Dmsg4(200, "get_report: id=0x%02x, kind=%d, length=%d pos=%d\n", item->report_ID, item->kind, item->report_size, item->pos); #if 0 /* * Length is report size (in bits) rounded up to nearest * byte, plus one additional byte for the report tag. */ len = (item->report_size+7)/8+1; #else /* * Some reports seem to be longer than the above calculation says. * Either APC has bogus length fields in their descriptors or * libusbhid is buggy. The FreeBSD kernel corrupts its memory when * this happens, resulting in a panic shortly thereafter. Work around * the problem by using a plenty large buffer and letting the transfer * return less than was requested. */ len = sizeof(buf); #endif memset(buf, 0, sizeof(buf)); req.ucr_flags = USBD_SHORT_XFER_OK; req.ucr_actlen = 0; req.ucr_addr = 0; req.ucr_data = buf; req.ucr_request.bmRequestType = UT_READ_CLASS_INTERFACE; req.ucr_request.bRequest = UR_GET_REPORT; USETW(req.ucr_request.wValue, ((item->kind+1) << 8) | item->report_ID); USETW(req.ucr_request.wIndex, 0); USETW(req.ucr_request.wLength, len); Dmsg2(200, "get_report: wValue=0x%04x, wLength=%d\n", UGETW(req.ucr_request.wValue), UGETW(req.ucr_request.wLength)); rc = ioctl(fd, USB_DO_REQUEST, &req); if (rc) { Dmsg1(100, "Error getting report: %s\n", strerror(-rc)); return -1; } if (debug_level >= 300) { printf( "%02x: ", item->report_ID); for (rc=0; rc Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3FB616A4CE for ; Thu, 17 Mar 2005 17:43:04 +0000 (GMT) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDB4343D46 for ; Thu, 17 Mar 2005 17:43:03 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-230-185.daxnet.no ([193.217.230.185] verified) by mailfe05.swip.net (CommuniGate Pro SMTP 4.2.9) with ESMTP id 125964928; Thu, 17 Mar 2005 18:43:02 +0100 From: Hans Petter Selasky To: "Adam Kropelin" Date: Thu, 17 Mar 2005 18:43:50 +0100 User-Agent: KMail/1.7 References: <07f701c529bf$b0f05540$03c8a8c0@kroptech.com> <200503161504.36260.hselasky@c2i.net> <092001c52a91$6ec1b420$03c8a8c0@kroptech.com> In-Reply-To: <092001c52a91$6ec1b420$03c8a8c0@kroptech.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200503171843.52611.hselasky@c2i.net> cc: freebsd-usb@freebsd.org Subject: Re: ugen & uhci hang on 5.3-RELEASE and 6.0-CURRENT X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 17:43:05 -0000 On Thursday 17 March 2005 02:34, Adam Kropelin wrote: > Hans Petter Selasky wrote: > > On Wednesday 16 March 2005 01:32, Adam Kropelin wrote: > > I gave your driver a run and it seems all of the USB_DO_REQUEST ioctls are > now failing with EPERM. I am playing some games with transfer lengths that > might have an affect on things. I've included the code I use for GetReport > requests which documents the length munging. Sorry, there seems to be a little incompatibility issue. You need to add: #define USBD_SHORT_XFER_OK 0x0002 /* allow short reads */ to /sys/dev/usb2/usb.h Then cd /usr/src/include && make install Then recompile your software. Maybe I should keep USBD_SHORT_XFER_OK at the old value so upgrading won't be a problem ? Hope this helps. The ugen driver at /sys/dev/usb2/_ugen.c have a maximum length limit! Yours --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Mar 18 13:50:02 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB74416A4CF for ; Fri, 18 Mar 2005 13:50:02 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C065C43D39 for ; Fri, 18 Mar 2005 13:50:02 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2IDo2p6056928 for ; Fri, 18 Mar 2005 13:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2IDo2HP056927; Fri, 18 Mar 2005 13:50:02 GMT (envelope-from gnats) Resent-Date: Fri, 18 Mar 2005 13:50:02 GMT Resent-Message-Id: <200503181350.j2IDo2HP056927@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, Michael Wesemeyer Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1413D16A4CE for ; Fri, 18 Mar 2005 13:42:28 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id D764843D1D for ; Fri, 18 Mar 2005 13:42:27 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j2IDgRfe080209 for ; Fri, 18 Mar 2005 13:42:27 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j2IDgR6S080208; Fri, 18 Mar 2005 13:42:27 GMT (envelope-from nobody) Message-Id: <200503181342.j2IDgR6S080208@www.freebsd.org> Date: Fri, 18 Mar 2005 13:42:27 GMT From: Michael Wesemeyer To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: usb/78984: Creative MUVO umass failure X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 13:50:03 -0000 >Number: 78984 >Category: usb >Synopsis: Creative MUVO umass failure >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 18 13:50:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Michael Wesemeyer >Release: 5.4 PRERELEASE , 5.3 STABLE >Organization: >Environment: FreeBSD radioactivechew.wookiplanet 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #0: Sat Mar 12 15:14:08 CET 2005 bofh@radioactivechew.wookiplanet:/usr/obj/usr/src/sys/WOOKI i386 >Description: My Creative MUVO canī t be mounted since 5.3 With 5.2.1 there was no Problem umass0: Creative Tech NOMAD MuVo, rev 1.10/0.01, addr 2 usbd_setup_pipe: failed to start endpoint, IOERROR device_attach: umass0 attach returned 6 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri Mar 18 15:00:08 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C4D616A4CF for ; Fri, 18 Mar 2005 15:00:08 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4AD243D49 for ; Fri, 18 Mar 2005 15:00:07 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2IF07p3064150 for ; Fri, 18 Mar 2005 15:00:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2IF07Sa064149; Fri, 18 Mar 2005 15:00:07 GMT (envelope-from gnats) Resent-Date: Fri, 18 Mar 2005 15:00:07 GMT Resent-Message-Id: <200503181500.j2IF07Sa064149@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, Marc van Kempen Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 700C416A4CE for ; Fri, 18 Mar 2005 14:57:52 +0000 (GMT) Received: from amsfep17-int.chello.nl (amsfep17-int.chello.nl [213.46.243.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 303BC43D3F for ; Fri, 18 Mar 2005 14:57:51 +0000 (GMT) (envelope-from marc@bowtie.nl) Received: from e16014.upc-e.chello.nl ([213.93.16.14]) by amsfep19-int.chello.nlESMTP <20050318145542.XWLE1799.amsfep19-int.chello.nl@e16014.upc-e.chello.nl> for ; Fri, 18 Mar 2005 15:55:42 +0100 Received: from e16014.upc-e.chello.nl (localhost [127.0.0.1]) j2IEtfkv073611 for ; Fri, 18 Mar 2005 15:55:41 +0100 (CET) (envelope-from marc@e16014.upc-e.chello.nl) Received: (from marc@localhost) by e16014.upc-e.chello.nl (8.13.3/8.13.1/Submit) id j2IEtfQx073610; Fri, 18 Mar 2005 15:55:41 +0100 (CET) (envelope-from marc) Message-Id: <200503181455.j2IEtfQx073610@e16014.upc-e.chello.nl> Date: Fri, 18 Mar 2005 15:55:41 +0100 (CET) From: Marc van Kempen To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: usb/78986: crash when printing to usb connected printer X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Marc van Kempen List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 15:00:08 -0000 >Number: 78986 >Category: usb >Synopsis: crash when printing to usb connected printer >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 18 15:00:07 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Marc van Kempen >Release: FreeBSD 5.3-STABLE i386 >Organization: >Environment: System: FreeBSD e16014.upc-e.chello.nl 5.3-STABLE FreeBSD 5.3-STABLE #9: Fri Feb 25 10:54:15 CET 2005 marc@e107252.upc-e.chello.nl:/usr/obj/usr/ncvs/src/sys/JUNG i386 AMD Athlon XP 1500+ 1Gb Memory >Description: Every once in a while, printing to my Samsung ML-1510 laserprinter connected through usb will completely lock up the computer. >How-To-Repeat: Print several times until it locks up. The problem is that there doesn't seem to be a pattern to it. Here is a stacktrace: > ulpt0: Samsung Electronics Co., Ltd. Samsung ML-1510_700, rev 1.10/1.00, addr +3, iclass 7/1 > ulpt0: using bi-directional mode > > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x4c > fault code = supervisor read, page not present > instruction pointer = 0x8:0xc04e6be9 > stack pointer = 0x10:0xefe71b04 > frame pointer = 0x10:0xefe71b20 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 68367 (lpd) > trap number = 12 > panic: page fault > KDB: stack backtrace: > kdb_backtrace(100,c3bb6c80,10,efe71ac4,c) at kdb_backtrace+0x29 > panic(c06d3bfd,c07003ba,0,fffff,c33be79b) at panic+0xa8 > trap_fatal(efe71ac4,4c,c3bb6c80,c275ca8c,c) at trap_fatal+0x27c > trap_pfault(efe71ac4,0,4c) at trap_pfault+0x1cf > trap(18,10,10,0,c684e300) at trap+0x2ed > calltrap() at calltrap+0x5 > --- trap 0xc, eip = 0xc04e6be9, esp = 0xefe71b04, ebp = 0xefe71b20 --- > usb_transfer_complete(c2e22c00) at usb_transfer_complete+0xcd > uhci_abort_xfer(c2e22c00,6,efe71b5c,c04e6b03,c2e22c00) at uhci_abort_xfer+0xcf > uhci_device_bulk_abort(c2e22c00) at uhci_device_bulk_abort+0xd > usbd_ar_pipe(c684e300) at usbd_ar_pipe+0x1f > usbd_abort_pipe(c684e300,c5574a50,efe71ba4,c0500048,c074b258) at +usbd_abort_pipe+0xb > ulptclose(c074b258,2,2000,c3bb6c80,c071a400) at ulptclose+0x92 > spec_close(efe71bbc,efe71be4,c05958a4,efe71bbc,c07403a0) at spec_close+0x310 > spec_vnoperate(efe71bbc) at spec_vnoperate+0x13 > vn_close(c5574a50,2,c6850300,c3bb6c80,efe71c14) at vn_close+0x40 > vn_closefile(c2e47cc0,c3bb6c80) at vn_closefile+0xc2 > fdrop_locked(c2e47cc0,c3bb6c80,0,efe71ccc,c05189e7) at fdrop_locked+0xa4 > fdrop(c2e47cc0,c3bb6c80,c0740960,c6676948,0) at fdrop+0x41 > closef(c2e47cc0,c3bb6c80,0,c33be710,0) at closef+0x237 > close(c3bb6c80,efe71d14,1,0,292) at close+0x169 > syscall(2f,2f,2f,805a67f,805f080) at syscall+0x27b >Fix: No known fix. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri Mar 18 16:40:02 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 992F016A4CE for ; Fri, 18 Mar 2005 16:40:02 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DC0243D55 for ; Fri, 18 Mar 2005 16:40:02 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2IGe23G077522 for ; Fri, 18 Mar 2005 16:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2IGe2C1077521; Fri, 18 Mar 2005 16:40:02 GMT (envelope-from gnats) Resent-Date: Fri, 18 Mar 2005 16:40:02 GMT Resent-Message-Id: <200503181640.j2IGe2C1077521@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, David Richardson Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7870C16A4CE for ; Fri, 18 Mar 2005 16:32:33 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A8C543D66 for ; Fri, 18 Mar 2005 16:32:33 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j2IGWXNj006431 for ; Fri, 18 Mar 2005 16:32:33 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j2IGWW0Y006418; Fri, 18 Mar 2005 16:32:33 GMT (envelope-from nobody) Message-Id: <200503181632.j2IGWW0Y006418@www.freebsd.org> Date: Fri, 18 Mar 2005 16:32:33 GMT From: David Richardson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: usb/78989: please add USB keyboard support to install CD's X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 16:40:02 -0000 >Number: 78989 >Category: usb >Synopsis: please add USB keyboard support to install CD's >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Mar 18 16:40:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: David Richardson >Release: 5.3 >Organization: >Environment: >Description: I am trying to install from CD on a new computer that does not provide ps/2 keyboard ports, so usb keyboards are the only option. Looking at the man page for ukbd(4) says that such a configuration is not supported by default. It's kind of hard to do that first install without a keyboard :-) Thanks >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri Mar 18 21:34:11 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3896716A4CE; Fri, 18 Mar 2005 21:34:11 +0000 (GMT) Received: from skipjack.no-such-agency.net (skipjack.no-such-agency.net [64.142.114.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAD0143D46; Fri, 18 Mar 2005 21:34:10 +0000 (GMT) (envelope-from jpp@cloudview.com) Received: from skipjack.no-such-agency.net (localhost [127.0.0.1]) by skipjack.no-such-agency.net (Postfix) with ESMTP id 85E6B34D453; Fri, 18 Mar 2005 13:34:10 -0800 (PST) Received: from [192.168.2.120] (blackhole.no-such-agency.net [64.142.103.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by skipjack.no-such-agency.net (Postfix) with ESMTP id DC0A334D437; Fri, 18 Mar 2005 13:34:09 -0800 (PST) Message-ID: <423B4951.2070401@cloudview.com> Date: Fri, 18 Mar 2005 13:34:09 -0800 From: John Pettitt Organization: CloudView Photographic User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-usb@freebsd.org, freebsd-questions , freebsd-stable@freebsd.org X-Enigmail-Version: 0.90.1.1 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-AV-Checked: by skipjack Subject: USB disk hang - 5.4PRE - gstripe X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 21:34:11 -0000 I just upgraded a box to 5.4PRE and started experiencing regular system hangs at exactly 1AM - I traced it to BackupPC which was starting it's run at that time backing up to a gstripe set made from two 300GB USB disks. The first thing I assumed was that something in Samba or perl didn't like the 5.4 upgrade so I rebuilt my entire ports tree (portupgrade -fa) to be sure I had no old libs. It still fails. Next I moved the two drives out of their USB housings and put them on the IDE controller (disconnecting the CD burner to make space). It's working fine like that (all be it with disks hanging out the side of the machine). So it looks like USB is the culprit. A few data points: 1) It worked fine on 5.3 2) Motherboard is an Intel D845GVSR with a Celeron D 2.9Ghz and 512Mb Ram 3) USB disk interfaces are from a couple of WD external drives (although the drives are in fact Maxtor because I upgraded them WD boxes) 4) A single WD250GB disk also on USB seems to work fine it's only the stripe set that has a problem 5) When it fails the entire disk system locks (including IDE) but the machines keeps running until each process locks as it needs to talk to the disk 6) No meaningful syslog log entries Any ideas? From owner-freebsd-usb@FreeBSD.ORG Sat Mar 19 12:38:03 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3B6416A4CE; Sat, 19 Mar 2005 12:38:02 +0000 (GMT) Received: from swip.net (mailfe09.swip.net [212.247.155.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC85D43D2F; Sat, 19 Mar 2005 12:38:01 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-208-218.daxnet.no ([193.217.208.218] verified) by mailfe09.swip.net (CommuniGate Pro SMTP 4.2.9) with ESMTP id 112470651; Sat, 19 Mar 2005 13:37:59 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sat, 19 Mar 2005 13:38:49 +0100 User-Agent: KMail/1.7 References: <200503181342.j2IDgR6S080208@www.freebsd.org> In-Reply-To: <200503181342.j2IDgR6S080208@www.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200503191338.51073.hselasky@c2i.net> cc: Michael Wesemeyer cc: freebsd-gnats-submit@freebsd.org Subject: Re: usb/78984: Creative MUVO umass failure X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 12:38:03 -0000 On Friday 18 March 2005 14:42, Michael Wesemeyer wrote: > >Number: 78984 > >Category: usb > >Synopsis: Creative MUVO umass failure > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Fri Mar 18 13:50:02 GMT 2005 > >Closed-Date: > >Last-Modified: > >Originator: Michael Wesemeyer > >Release: 5.4 PRERELEASE , 5.3 STABLE > >Organization: > >Environment: > > FreeBSD radioactivechew.wookiplanet 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE > #0: Sat Mar 12 15:14:08 CET 2005 =20 > bofh@radioactivechew.wookiplanet:/usr/obj/usr/src/sys/WOOKI i386 > > >Description: > > My Creative MUVO can=B4 t be mounted since 5.3 With 5.2.1 there was no > Problem > > umass0: Creative Tech NOMAD MuVo, rev 1.10/0.01, addr 2 > usbd_setup_pipe: failed to start endpoint, IOERROR > device_attach: umass0 attach returned 6 > > >How-To-Repeat: > > > >Fix: > > > >Release-Note: > >Audit-Trail: > >Unformatted: > Could you try: In the file /sys/dev/usb/usb_subr.c, in the function=20 "usbd_setup_pipe" comment out the following lines: if (err && err !=3D USBD_STALLED && err !=3D USBD_TIMEOUT) { printf("usbd_setup_pipe: failed to start " "endpoint, %s\n", usbd_errstr(err)); return (err); } Or download the three files below into a new directory and type "make install" (to uninstall type "make deinstall") http://home.c2i.net/hselasky/isdn4bsd/privat/usb/Makefile http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.diff.bz2 http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.tar.bz2 Then recompile your kernel or USB module (/sys/modules/usb) depending on wh= at=20 you are using. I have seen a similar problem with my umass device. These devices expect=20 clearstall in combination with the reset command, and if one tries to=20 clearstall besides from that, device access will fail ! This suggests that= =20 clearstall shouldn't be run by default, but rather be optional. Yours =2D-HPS From owner-freebsd-usb@FreeBSD.ORG Sat Mar 19 12:40:05 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B666916A4CE for ; Sat, 19 Mar 2005 12:40:05 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7206043D3F for ; Sat, 19 Mar 2005 12:40:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2JCe5oW073955 for ; Sat, 19 Mar 2005 12:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2JCe5rw073954; Sat, 19 Mar 2005 12:40:05 GMT (envelope-from gnats) Date: Sat, 19 Mar 2005 12:40:05 GMT Message-Id: <200503191240.j2JCe5rw073954@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Subject: Re: usb/78984: Creative MUVO umass failure X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 12:40:05 -0000 The following reply was made to PR usb/78984; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Michael Wesemeyer , freebsd-gnats-submit@freebsd.org Subject: Re: usb/78984: Creative MUVO umass failure Date: Sat, 19 Mar 2005 13:38:49 +0100 On Friday 18 March 2005 14:42, Michael Wesemeyer wrote: > >Number: 78984 > >Category: usb > >Synopsis: Creative MUVO umass failure > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Fri Mar 18 13:50:02 GMT 2005 > >Closed-Date: > >Last-Modified: > >Originator: Michael Wesemeyer > >Release: 5.4 PRERELEASE , 5.3 STABLE > >Organization: > >Environment: > > FreeBSD radioactivechew.wookiplanet 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE > #0: Sat Mar 12 15:14:08 CET 2005 =20 > bofh@radioactivechew.wookiplanet:/usr/obj/usr/src/sys/WOOKI i386 > > >Description: > > My Creative MUVO can=B4 t be mounted since 5.3 With 5.2.1 there was no > Problem > > umass0: Creative Tech NOMAD MuVo, rev 1.10/0.01, addr 2 > usbd_setup_pipe: failed to start endpoint, IOERROR > device_attach: umass0 attach returned 6 > > >How-To-Repeat: > > > >Fix: > > > >Release-Note: > >Audit-Trail: > >Unformatted: > Could you try: In the file /sys/dev/usb/usb_subr.c, in the function=20 "usbd_setup_pipe" comment out the following lines: if (err && err !=3D USBD_STALLED && err !=3D USBD_TIMEOUT) { printf("usbd_setup_pipe: failed to start " "endpoint, %s\n", usbd_errstr(err)); return (err); } Or download the three files below into a new directory and type "make install" (to uninstall type "make deinstall") http://home.c2i.net/hselasky/isdn4bsd/privat/usb/Makefile http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.diff.bz2 http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.tar.bz2 Then recompile your kernel or USB module (/sys/modules/usb) depending on wh= at=20 you are using. I have seen a similar problem with my umass device. These devices expect=20 clearstall in combination with the reset command, and if one tries to=20 clearstall besides from that, device access will fail ! This suggests that= =20 clearstall shouldn't be run by default, but rather be optional. Yours =2D-HPS From owner-freebsd-usb@FreeBSD.ORG Sat Mar 19 15:50:05 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5FC316A4CE for ; Sat, 19 Mar 2005 15:50:05 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2E6A43D5D for ; Sat, 19 Mar 2005 15:50:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2JFo5oU096128 for ; Sat, 19 Mar 2005 15:50:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2JFo5FG096127; Sat, 19 Mar 2005 15:50:05 GMT (envelope-from gnats) Date: Sat, 19 Mar 2005 15:50:05 GMT Message-Id: <200503191550.j2JFo5FG096127@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Ian Dowse Subject: Re: usb/78986: crash when printing to usb connected printer X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Ian Dowse List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 15:50:06 -0000 The following reply was made to PR usb/78986; it has been noted by GNATS. From: Ian Dowse To: Marc van Kempen Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: usb/78986: crash when printing to usb connected printer Date: Sat, 19 Mar 2005 15:40:34 +0000 In message <200503181455.j2IEtfQx073610@e16014.upc-e.chello.nl>, Marc van Kempe n writes: >Every once in a while, printing to my Samsung ML-1510 laserprinter connected >through usb will completely lock up the computer. > >>How-To-Repeat: >Print several times until it locks up. The problem is that there doesn't >seem to be a pattern to it. Hi, could you try the following patch. There appears to be a race condition when aborting a USB transfer while the transfer is currently being timed out. This fixes only the UHCI case - there are probably similar problems with the other host controllers. Ian Index: uhci.c =================================================================== RCS file: /dump/FreeBSD-CVS/src/sys/dev/usb/uhci.c,v retrieving revision 1.154.2.4 diff -u -r1.154.2.4 uhci.c --- uhci.c 30 Jan 2005 01:00:10 -0000 1.154.2.4 +++ uhci.c 19 Mar 2005 15:29:50 -0000 @@ -646,6 +646,7 @@ UXFER(xfer)->iinfo.sc = sc; usb_init_task(&UXFER(xfer)->abort_task, uhci_timeout_task, xfer); + UXFER(xfer)->uhci_xfer_flags = 0; #ifdef DIAGNOSTIC UXFER(xfer)->iinfo.isdone = 1; xfer->busy_free = XFER_BUSY; @@ -1933,7 +1934,8 @@ void uhci_abort_xfer(usbd_xfer_handle xfer, usbd_status status) { - uhci_intr_info_t *ii = &UXFER(xfer)->iinfo; + struct uhci_xfer *uxfer = UXFER(xfer); + uhci_intr_info_t *ii = &uxfer->iinfo; struct uhci_pipe *upipe = (struct uhci_pipe *)xfer->pipe; uhci_softc_t *sc = (uhci_softc_t *)upipe->pipe.device->bus; uhci_soft_td_t *std; @@ -1956,9 +1958,28 @@ panic("uhci_abort_xfer: not in process context"); /* + * If an abort is already in progress then just wait for it to + * complete and return. + */ + if (uxfer->uhci_xfer_flags & UHCI_XFER_ABORTING) { + DPRINTFN(2, ("uhci_abort_xfer: already aborting\n")); + /* No need to wait if we're aborting from a timeout. */ + if (status == USBD_TIMEOUT) + return; + /* Override the status which might be USBD_TIMEOUT. */ + xfer->status = status; + DPRINTFN(2, ("uhci_abort_xfer: waiting for abort to finish\n")); + uxfer->uhci_xfer_flags |= UHCI_XFER_ABORTWAIT; + while (uxfer->uhci_xfer_flags & UHCI_XFER_ABORTING) + tsleep(&uxfer->uhci_xfer_flags, PZERO, "uhciaw", 0); + return; + } + + /* * Step 1: Make interrupt routine and hardware ignore xfer. */ s = splusb(); + uxfer->uhci_xfer_flags |= UHCI_XFER_ABORTING; xfer->status = status; /* make software ignore it */ usb_uncallout(xfer->timeout_handle, uhci_timeout, ii); usb_rem_task(xfer->pipe->device, &UXFER(xfer)->abort_task); @@ -1992,6 +2013,12 @@ #ifdef DIAGNOSTIC ii->isdone = 1; #endif + /* Do the wakeup first to avoid touching the xfer after the callback. */ + uxfer->uhci_xfer_flags &= ~UHCI_XFER_ABORTING; + if (uxfer->uhci_xfer_flags & UHCI_XFER_ABORTWAIT) { + uxfer->uhci_xfer_flags &= ~UHCI_XFER_ABORTWAIT; + wakeup(&uxfer->uhci_xfer_flags); + } usb_transfer_complete(xfer); splx(s); } Index: uhcivar.h =================================================================== RCS file: /dump/FreeBSD-CVS/src/sys/dev/usb/uhcivar.h,v retrieving revision 1.37.2.1 diff -u -r1.37.2.1 uhcivar.h --- uhcivar.h 30 Jan 2005 01:00:10 -0000 1.37.2.1 +++ uhcivar.h 19 Mar 2005 15:29:50 -0000 @@ -85,8 +85,12 @@ uhci_intr_info_t iinfo; struct usb_task abort_task; int curframe; + u_int32_t uhci_xfer_flags; }; +#define UHCI_XFER_ABORTING 0x0001 /* xfer is aborting. */ +#define UHCI_XFER_ABORTWAIT 0x0002 /* abort completion is being awaited. */ + #define UXFER(xfer) ((struct uhci_xfer *)(xfer)) /* From owner-freebsd-usb@FreeBSD.ORG Sat Mar 19 20:44:15 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA0FD16A4CE for ; Sat, 19 Mar 2005 20:44:15 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BE4A43D39 for ; Sat, 19 Mar 2005 20:44:15 +0000 (GMT) (envelope-from mahamkali@gmail.com) Received: by wproxy.gmail.com with SMTP id 50so575157wri for ; Sat, 19 Mar 2005 12:44:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=YgKrIeh/97elc76lWPWgwN9zWUPeBvla++fxhmU4G6A1PgLV8JI9lLi/1s7ljzxM5hGhe6vY4Dfd0JGzFqFNzbUSg3Z+dzIwy5tdALl1Lce2LbuYQbbxOuwPb6OIfDq8desGqkl0FXf2935adn3ETpKjKOKfH3pT8pqFS9peSP0= Received: by 10.54.35.69 with SMTP id i69mr2753950wri; Sat, 19 Mar 2005 12:44:14 -0800 (PST) Received: by 10.54.7.49 with HTTP; Sat, 19 Mar 2005 12:44:14 -0800 (PST) Message-ID: <5dd44c0405031912444eaa0ab1@mail.gmail.com> Date: Sat, 19 Mar 2005 14:44:14 -0600 From: Sivaprasad Mahamkali To: freebsd-usb@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: HP optical mouse not working.. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sivaprasad Mahamkali List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 20:44:16 -0000 Hi, I use FreeBSD 5.4-PRERELEASE on my desktop. I have everything working fine except my HP USB optical mouse. I've tried compiling different versions(5.3 release, present version ) but no use. I've enabled usbd and moused and here's my xorg.conf section for my mouse: --------------- Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/sysmouse" Option "Buttons" "5" Option "ZAxisMapping" "4 5" EndSection ---------------- and rc.conf section =============== moused_enable="YES" sshd_enable="YES" usbd_enable="YES" moused_flags="-z4" moused_port="/dev/psm0" moused_type="auto" -------------- can anyone help me figure out what's wrong and how to make use of my optical mouse. thanks in advance, S From owner-freebsd-usb@FreeBSD.ORG Sat Mar 19 21:12:06 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3455316A4CF for ; Sat, 19 Mar 2005 21:12:06 +0000 (GMT) Received: from mail.server-king.de (mail.server-king.de [83.136.132.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66A2F43D1D for ; Sat, 19 Mar 2005 21:12:04 +0000 (GMT) (envelope-from freebsd-usb@vosat.de) Received: from knast.server-king.de (danielt@localhost.server-king.de [127.0.0.1]) by mail.server-king.de (8.13.3/8.13.3) with ESMTP id j2JLC3Nq045655 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 19 Mar 2005 22:12:03 +0100 (CET) (envelope-from freebsd-usb@vosat.de) Received: (from danielt@localhost) by knast.server-king.de (8.13.3/8.13.3/Submit) id j2JLC3DJ045654 for freebsd-usb@freebsd.org; Sat, 19 Mar 2005 22:12:03 +0100 (CET) (envelope-from freebsd-usb@vosat.de) X-Authentication-Warning: knast.server-king.de: danielt set sender to freebsd-usb@vosat.de using -f Date: Sat, 19 Mar 2005 22:12:03 +0100 From: Danijel Tasov To: freebsd-usb@freebsd.org Message-ID: <20050319211203.GA44488@knast.server-king.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline X-OS: FreeBSD 5.3-RELEASE-p5 User-Agent: Mutt/1.5.6i Subject: uhub1: port 2, set config at addr 2 failed X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 21:12:06 -0000 --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I've build 5-STABLE today and tried to mount my Olympus C370. Because I cannot find the error message on Google with my setup, I tell you what happens: Mar 17 20:34:39 duplo kernel: uhub1: port 2, set config at addr 2 failed Mar 17 20:34:39 duplo kernel: uhub1: device problem (STALLED), disabling po= rt 2 uname -a says: FreeBSD duplo 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #6: Sat Mar 19 16:33:51= CET 2005 danielt@duplo:/usr/obj/usr/src/sys/DUPLO i386 USB related dmesg output: uhci0: port 0xc800-0xc81f irq 21 at device 16.0= on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xcc00-0xcc1f irq 21 at device 16.1= on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xd000-0xd01f irq 21 at device 16.2= on pci0 usb2: on uhci2 usb2: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3: port 0xd400-0xd41f irq 21 at device 16.3= on pci0 usb3: on uhci3 usb3: USB revision 1.0 uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered ehci0: mem 0xfebffc00-0xfebffcff irq 21 at = device 16.4 on pci0 ehci_pci_attach: companion usb0 ehci_pci_attach: companion usb1 ehci_pci_attach: companion usb2 ehci_pci_attach: companion usb3 usb4: EHCI version 1.0 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4: on ehci0 usb4: USB revision 2.0 uhub4: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub4: single transaction translator uhub4: 8 ports with 8 removable, self powered Please let me know if I can help in some way. -DaTa- --=20 Jabber: data@jabber.pilgerer.org ICQ: 84074839 E-Mail: dt@vosat.de () http://www.pilgerer.org/ - Die Kommunikations- und Kooperations- /\ plattform fuer UnixFans und alle die es werden wollen. ASCII RIBB= ON --G4iJoqBmSsgzjUCe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCPJWjWUSLpvlrHsMRAkiLAJ44vPpmv+e8xhQuFERJdx5Ju4s6EwCdEsuw DJmvvOBtpoFlV44kShQ2Nj8= =zGDp -----END PGP SIGNATURE----- --G4iJoqBmSsgzjUCe-- From owner-freebsd-usb@FreeBSD.ORG Sat Mar 19 22:38:03 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E726D16A4CE for ; Sat, 19 Mar 2005 22:38:03 +0000 (GMT) Received: from swip.net (mailfe10.tele2.se [212.247.155.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE3F143D48 for ; Sat, 19 Mar 2005 22:38:02 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-209-190.daxnet.no ([193.217.209.190] verified) by mailfe10.swip.net (CommuniGate Pro SMTP 4.2.9) with ESMTP id 115894398; Sat, 19 Mar 2005 23:38:00 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, Sivaprasad Mahamkali Date: Sat, 19 Mar 2005 23:38:49 +0100 User-Agent: KMail/1.7 References: <5dd44c0405031912444eaa0ab1@mail.gmail.com> In-Reply-To: <5dd44c0405031912444eaa0ab1@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503192338.51290.hselasky@c2i.net> Subject: Re: HP optical mouse not working.. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 22:38:04 -0000 On Saturday 19 March 2005 21:44, Sivaprasad Mahamkali wrote: > Hi, > I use FreeBSD 5.4-PRERELEASE on my desktop. I have everything > working fine except my HP USB optical mouse. I've tried compiling > different versions(5.3 release, present version ) but no use. I've > enabled usbd and moused and here's my xorg.conf section for my mouse: > --------------- > Section "InputDevice" > Identifier "Mouse0" > Driver "mouse" > Option "Protocol" "auto" > Option "Device" "/dev/sysmouse" > Option "Buttons" "5" > Option "ZAxisMapping" "4 5" > EndSection > ---------------- > and rc.conf section > =============== > moused_enable="YES" > sshd_enable="YES" > usbd_enable="YES" > moused_flags="-z4" > moused_port="/dev/psm0" > moused_type="auto" > -------------- > can anyone help me figure out what's wrong and how to make use of my > optical mouse. > > thanks in advance, > S What does the system (dmsg) say when you plug your USB mouse? If something like: ums0: 3 buttons and Z dir. the mouse should work right away. If nothing is displayed, make sure you have got USB loaded either into your kernel or like a module. _before_ plugging the USB mouse try: kldload usb kldload ums Yours --HPS