From owner-freebsd-usb@FreeBSD.ORG Sun Mar 4 00:38:27 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7BFB516A402 for ; Sun, 4 Mar 2007 00:38:27 +0000 (UTC) (envelope-from markhobden@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.225]) by mx1.freebsd.org (Postfix) with ESMTP id 3CB1C13C47E for ; Sun, 4 Mar 2007 00:38:27 +0000 (UTC) (envelope-from markhobden@gmail.com) Received: by wr-out-0506.google.com with SMTP id 55so1753613wri for ; Sat, 03 Mar 2007 16:38:26 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=Lr/hqq0aoquoomqmBE2vJZZnWI3mAw6s6VkGGfF+LBR2yJ13nyPpk+bhZ1lQ9lqpr3Yam3IVWy4K4cQx/rJA4dHwurUWWos3zuxsM0A2g/IvzXeShEuDPPQYu3/4By+CMgh+GLe0aUFqApGoILWjVTGzvrbPSeyejOphfBBr9JA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=mMlOwqLZ8ic/lAoI7kxp23Y9Ud1c/jGkaQ3yTwFIRQJkFm8O68Fv2bqSk3TX3jR5N5zeZvVp0VjoY76f2jNRUThrAc/WINz13sPJnPMth+D8CT4Nb4mWVKTzdakSOteQ1ZfQlL82evI1gU+RcI6/7GSNormW9gkeeSIwjsrFp+8= Received: by 10.114.133.1 with SMTP id g1mr795970wad.1172968705464; Sat, 03 Mar 2007 16:38:25 -0800 (PST) Received: by 10.114.144.17 with HTTP; Sat, 3 Mar 2007 16:38:25 -0800 (PST) Message-ID: Date: Sun, 4 Mar 2007 00:38:25 +0000 From: "Mark Hobden" To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-usb@freebsd.org Subject: For Review/Testing: uhidev(4) USB driver level for devices with multiple report ids X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Mar 2007 00:38:27 -0000 This was originally ported from NetBSD by Maxime Henrion (mux), more recently I have updated the patch and fixed a few bugs. Current http://www.terinea.co.uk/~mark/patches/uhidev-7-current-p1.diff Stable (slightly older, should still apply) http://www.terinea.co.uk/~mark/patches/uhidev-6-stable-p1.diff I have also created a patch the gets some Microsoft keyboard/mouse sets and Microsoft notebook mice working with the uhidev driver. Without this patch invalid offsets cause the report size to be incorrect. It could make more sense to change offsets in hid_get_item() instead though. I am sure there will be more device Id's I have missed if you know of any please email me so I can update the patch. For Current and 6-Stable (requires uhidev patch to be applied first) http://www.terinea.co.uk/~mark/patches/uhidev-add-ms.diff The only problem I know of only exists in -CURRENT and is not caused by this patch. On one of my machines since bus_dmamap_load() was introduced (May 28 05:27:09) when the keyboard driver calls usbd_set_report_async() to set the LEDs but nothing happens. If this happens for anyone else the easiest way around this is to change 'uhidev_set_report_async' to 'uhidev_set_report' which is somewhere around line 1406 of the patched ukbd.c but if kbdmux is disabled or not loaded this will cause a panic as it will try and sleep in an interrupt thread. I am currently working on a version for the "new" USB stack that I will post when it works. -- Mark From owner-freebsd-usb@FreeBSD.ORG Sun Mar 4 07:00:11 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8DA3316A403 for ; Sun, 4 Mar 2007 07:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 6D84713C428 for ; Sun, 4 Mar 2007 07:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2470BGM019193 for ; Sun, 4 Mar 2007 07:00:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2470BMm019181; Sun, 4 Mar 2007 07:00:11 GMT (envelope-from gnats) Resent-Date: Sun, 4 Mar 2007 07:00:11 GMT Resent-Message-Id: <200703040700.l2470BMm019181@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, "R.Mahmatkhanov" Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CE98F16A400 for ; Sun, 4 Mar 2007 07:00:07 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id B95C613C494 for ; Sun, 4 Mar 2007 07:00:07 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l24707RE022364 for ; Sun, 4 Mar 2007 07:00:07 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l24707NY022363; Sun, 4 Mar 2007 07:00:07 GMT (envelope-from nobody) Message-Id: <200703040700.l24707NY022363@www.freebsd.org> Date: Sun, 4 Mar 2007 07:00:07 GMT From: "R.Mahmatkhanov" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: usb/109838: [PATCH] Support for various CDMA-2000 USB-modems X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Mar 2007 07:00:11 -0000 >Number: 109838 >Category: usb >Synopsis: [PATCH] Support for various CDMA-2000 USB-modems >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Mar 04 07:00:10 GMT 2007 >Closed-Date: >Last-Modified: >Originator: R.Mahmatkhanov >Release: 6.2 >Organization: SkyLink >Environment: FreeBSD 6.2-STABLE i386 >Description: This patch adds out-of-the-box support (via UQ_ASSUME_CM_OVER_DATA quirk) following CDMA-2000 USB-modems: - Pantech-Curitel HX-550C - Pantech-Curitel HX-570B - Pantech-Curitel HX-575B - C-MOTECH CNU-550 - Ubiquam U-100 - Ubiquam U-105 - Ubiquam U-200 - RWT FCT-CDMA When patch is applyed, ttyU0 and cuaU0 devices in /dev will appeared, and we will able use them for dialing. >How-To-Repeat: Plug the any of this modems and check /dev for ttyU0 or cuaU0. >Fix: # cp usb_modems.patch /sys/dev/usb/ # cd /sys/dev/usb/ # patch < usb_modems.patch # cd /usr/src # make buildkernel && make installkernel && shutdown -r now Then plug in usb-modem, load needed modules according table located on http://happy-nation.by.ru/freebsd/cdma2000_modems_eng.pdf and use ppp.conf like this (it was taken from http://www.lissyara.su/?id=1311): # cat /etc/ppp/ppp.conf default: set log Phase Chat LCP IPCP CCP tun command disable pred1 deflate deflate24 protocomp acfcomp shortseq vj deny pred1 deflate deflate24 protocomp acfcomp shortseq vj set speed 115200 set timeout 160 enable dns skylink: set device /dev/ttyU0 set phone \#777 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \"\" AT OK-AT-OK ATE1Q0 OK \ \\dATDT\\T TIMEOUT 40 CONNECT" set login set authname mobile set authkey internet set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR That is all. Patch attached with submission follows: --- /sys/dev/usb/usbdevs Wed Feb 14 19:57:15 2007 +++ usbdevs Thu Feb 22 01:20:57 2007 @@ -518,6 +518,7 @@ vendor IMAGINATION 0x149a Imagination Technologies vendor CONCEPTRONIC 0x14b2 Conceptronic vendor SILICONPORTALS 0x1527 Silicon Portals +vendor UBIQUAM 0x1529 UBIQUAM Co., Ltd. vendor PNY 0x154b PNY vendor SOHOWARE 0x15e8 SOHOware vendor UMAX 0x1606 UMAX @@ -770,7 +771,8 @@ product CHICONY KB8933 0x0001 KB-8933 keyboard /* CMOTECH products */ -product CMOTECH CDMAMODEM 0x5141 CMOTECH CDMA Technologies USB modem +product CMOTECH CNU510 0x5141 CMOTECH CDMA Technologies USB modem +product CMOTECH CNU550 0x5543 CDMA 2000 1xRTT/1xEVDO USB modem /* Compaq products */ product COMPAQ PJB100 0x504a Personal Jukebox PJB100 @@ -806,6 +808,8 @@ product CTX EX1300 0x9999 Ex1300 hub /* Curitel products */ +product CURITEL HX550C 0x1101 CDMA 2000 1xRTT USB modem (HX-550C) +product CURITEL HX57XB 0x2101 CDMA 2000 1xRTT USB modem (HX-570/575B) product CURITEL PC5740 0x3701 Broadband wireless modem /* Cypress Semiconductor products */ @@ -1444,6 +1448,7 @@ product PUTERCOM UPA100 0x047e USB-1284 BRIDGE /* Qualcomm products */ +product QUALCOMM RWT_FCT 0x3100 RWT FCT-CDMA 2000 1xRTT modem product QUALCOMM CDMA_MSM 0x3196 CDMA Technologies MSM modem product QUALCOMM2 CDMA_MSM 0x6000 CDMA Technologies MSM phone @@ -1652,6 +1657,9 @@ /* TwinMOS */ product TWINMOS MDIV 0x1325 Memory Disk IV + +/* Ubiquam products */ +product UBIQUAM UALL 0x3100 CDMA 1xRTT USB Modem (U-100/105/200/300) /* Ultima products */ product ULTIMA 1200UBPLUS 0x4002 1200 UB Plus scanner --- /sys/dev/usb/usb_quirks.c Mon Jan 22 17:57:30 2007 +++ usb_quirks.c Thu Feb 22 01:17:08 2007 @@ -80,7 +80,12 @@ { USB_VENDOR_SILICONPORTALS, USB_PRODUCT_SILICONPORTALS_YAPPHONE, 0x100, { UQ_AU_INP_ASYNC }}, { USB_VENDOR_LOGITECH, USB_PRODUCT_LOGITECH_UN53B, ANY, { UQ_NO_STRINGS }}, - { USB_VENDOR_CMOTECH, USB_PRODUCT_CMOTECH_CDMAMODEM, ANY, { UQ_ASSUME_CM_OVER_DATA }}, + { USB_VENDOR_CMOTECH, USB_PRODUCT_CMOTECH_CNU510, ANY, { UQ_ASSUME_CM_OVER_DATA }}, + { USB_VENDOR_CMOTECH, USB_PRODUCT_CMOTECH_CNU550, ANY, { UQ_ASSUME_CM_OVER_DATA }}, + { USB_VENDOR_CURITEL, USB_PRODUCT_CURITEL_HX550C, ANY, { UQ_ASSUME_CM_OVER_DATA }}, + { USB_VENDOR_CURITEL, USB_PRODUCT_CURITEL_HX57XB, ANY, { UQ_ASSUME_CM_OVER_DATA }}, + { USB_VENDOR_UBIQUAM, USB_PRODUCT_UBIQUAM_UALL, ANY, { UQ_ASSUME_CM_OVER_DATA }}, + { USB_VENDOR_QUALCOMM, USB_PRODUCT_QUALCOMM_RWT_FCT, ANY, { UQ_ASSUME_CM_OVER_DATA }}, /* XXX These should have a revision number, but I don't know what they are. */ { USB_VENDOR_HP, USB_PRODUCT_HP_895C, ANY, { UQ_BROKEN_BIDIR }}, { USB_VENDOR_HP, USB_PRODUCT_HP_880C, ANY, { UQ_BROKEN_BIDIR }}, >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sun Mar 4 19:40:08 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A188816A401 for ; Sun, 4 Mar 2007 19:40:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 84B1713C461 for ; Sun, 4 Mar 2007 19:40:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l24Je8Iq067669 for ; Sun, 4 Mar 2007 19:40:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l24Je81P067668; Sun, 4 Mar 2007 19:40:08 GMT (envelope-from gnats) Date: Sun, 4 Mar 2007 19:40:08 GMT Message-Id: <200703041940.l24Je81P067668@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Jonathan Fosburgh Cc: Subject: Re: kern/92083: [ural] [panic] panic using WPA on ural NIC in 6.2-RELEASE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jonathan Fosburgh List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Mar 2007 19:40:08 -0000 The following reply was made to PR kern/92083; it has been noted by GNATS. From: Jonathan Fosburgh To: Sam Leffler Cc: Anders Nordby , bug-followup@freebsd.org Subject: Re: kern/92083: [ural] [panic] panic using WPA on ural NIC in 6.2-RELEASE Date: Sun, 4 Mar 2007 13:32:01 -0600 On Monday 12 February 2007 11:27, Sam Leffler wrote: > Jonathan Fosburgh wrote: > > The last I heard about any of this stuff your problems were related to > usb xfer stalls. If this no longer true then please provide me with a > recipe for recreating the issue. If it's a driver/net80211 issue I will > try to fix it. If it's in the usb subsystem it's unlikely I'm going to > pursue it. > I'm at a loss here. As far as i can tell, my kernel is compiled with=20 debugging symbols, etc, but when I try to analyze the core dumps I get I ge= t=20 mostly unusable garbage. For instance, on a very recent panic: `--# kgdb /usr/obj/usr/src/sys/vmbsd/kernel.debug /usr/crash/vmcore.6 kgdb: kvm_nlist(_stopped_cpus): kgdb: kvm_nlist(_stoppcbs): [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so:= =20 Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd". Unread portion of the kernel message buffer: =46atal trap 12: page fault while in kernel mode fault virtual address =3D 0x8 fault code =3D supervisor read data, page not present instruction pointer =3D 0x8:0xffffffff806e34be stack pointer =3D 0x10:0xffffffff92122b10 frame pointer =3D 0x10:0xffffffff92122b40 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 32 (irq21: uhci0 uhci*) trap number =3D 12 panic: page fault Uptime: 2h27m41s Physical memory: 504 MB Dumping 135 MB: 120 104 88 72 56 40 24 8 #0 doadump () at pcpu.h:172 172 pcpu.h: No such file or directory. in pcpu.h Running nm on the kernel and grepping for the instruction pointer I get=20 nothing useable, I wind up with a very large number of symbols. When I run= =20 where in the panic I get things like this: 0 doadump () at pcpu.h:172 #1 0x0000000000000004 in ?? () #2 0xffffffff80234dd9 in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:411 #3 0xffffffff802353be in panic (fmt=3D0xffffff001ebf12b0 "\200s=B7\036") at /usr/src/sys/kern/kern_shutdown.c:567 #4 0xffffffff80356a82 in trap_fatal (frame=3D0xffffffff92122a60, eva=3D8) at /usr/src/sys/amd64/amd64/trap.c:696 #5 0xffffffff80356df2 in trap_pfault (frame=3D0xffffffff92122a60, usermode= =3D0) at /usr/src/sys/amd64/amd64/trap.c:614 #6 0xffffffff80357085 in trap (frame=3D0xffffffff92122a60) at /usr/src/sys/amd64/amd64/trap.c:382 #7 0xffffffff80341b3e in calltrap () at /usr/src/sys/amd64/amd64/exception.S:169 #8 0xffffffff806e34be in ?? () #9 0xffffffff80a40ec0 in ?? () #10 0x0000000000000000 in ?? () #11 0xffffff000000d800 in ?? () #12 0xffffffff80a40000 in ?? () #13 0xffffffff92122b70 in ?? () =2D---------- #126 0x0000000000000000 in ?? () #127 0x0000000000000000 in ?? () #128 0x0000000000000000 in ?? () #129 0x0000000000000000 in ?? () #130 0x0000000000000000 in ?? () #131 0x0000000000000000 in ?? () #132 0x0000000000000000 in ?? () Cannot access memory at address 0xffffffff92123000 There are intermittant locations that give usable info, but not very much. = Is=20 there something else I need to do? From owner-freebsd-usb@FreeBSD.ORG Mon Mar 5 03:50:00 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 21B4C16A402 for ; Mon, 5 Mar 2007 03:50:00 +0000 (UTC) (envelope-from cesar.kuroiwa@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id ABB8013C481 for ; Mon, 5 Mar 2007 03:49:59 +0000 (UTC) (envelope-from cesar.kuroiwa@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so1046503ugh for ; Sun, 04 Mar 2007 19:49:58 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=HoaG+da3AF3ygSow4bPOSKNRdqUE/jdbHRdHjgVj3dgyl/WE8hDqAqzyWUUA0F0HyygpIjm4+77PGVcIhCf9BRjniQepD7y91piJxQ/tqVm9f+lSd2SsGaH6iJgCUIoKPZ6NooDT4hpbL6pcVj81i9iWWVPCnVf2CSgfd6Ky838= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=sfvGbNn16KWH++7timJbjlFaCAHCl+3fHAuwMuw6mrCYZv0WAiLCd6/TxcXNAg/WyZNxupSWch116HpWcPFQb05DbvHtQb+/yxeOGHtIY6TtsTGBL18c/38D1vAxX552Y2/8855ltluIxmYjhzxHCv1N/b7c6YHsT7o084Zmq0g= Received: by 10.114.133.1 with SMTP id g1mr1116664wad.1173066596920; Sun, 04 Mar 2007 19:49:56 -0800 (PST) Received: by 10.114.61.7 with HTTP; Sun, 4 Mar 2007 19:49:56 -0800 (PST) Message-ID: <65c972b10703041949i19235555m4cfc04803f012d97@mail.gmail.com> Date: Mon, 5 Mar 2007 00:49:56 -0300 From: "Cesar Kuroiwa" To: freebsd-current@freebsd.org, freebsd-usb@freebsd.org In-Reply-To: MIME-Version: 1.0 References: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: For Review/Testing: uhidev(4) USB driver level for devices with multiple report ids X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2007 03:50:00 -0000 2007/3/3, Mark Hobden : > > This was originally ported from NetBSD by Maxime Henrion (mux), more > recently > I have updated the patch and fixed a few bugs. > > Current > http://www.terinea.co.uk/~mark/patches/uhidev-7-current-p1.diff > > Stable (slightly older, should still apply) > http://www.terinea.co.uk/~mark/patches/uhidev-6-stable-p1.diff > > I have also created a patch the gets some Microsoft keyboard/mouse sets > and > Microsoft notebook mice working with the uhidev driver. Without this patch > invalid offsets cause the report size to be incorrect. It could make more > sense > to change offsets in hid_get_item() instead though. I am sure there will > be more > device Id's I have missed if you know of any please email me so I can > update > the patch. > > For Current and 6-Stable (requires uhidev patch to be applied first) > http://www.terinea.co.uk/~mark/patches/uhidev-add-ms.diff Hi there, I was a little unsure about which patch to use, so I recompiled world and kernel with this last one, and unfortunately, have to say it didn't work for me. My mouse is still showing no sign of life under FreeBSD... Did I do sth wrong then? Should I have applied both patches (" uhidev-6-stable-p1.diff" and "uhidev-add-ms.diff") since I am using 6-stable, to make it work. Thanx a lot for the help From owner-freebsd-usb@FreeBSD.ORG Mon Mar 5 05:24:32 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C117E16A400 for ; Mon, 5 Mar 2007 05:24:32 +0000 (UTC) (envelope-from achilov-rn@askd.ru) Received: from to-495.askd.ru (master.askd.ru [80.242.75.6]) by mx1.freebsd.org (Postfix) with ESMTP id 28A0F13C442 for ; Mon, 5 Mar 2007 05:24:31 +0000 (UTC) (envelope-from achilov-rn@askd.ru) Received: from to-495.askd.ru (IDENT:shelton@localhost.askd.ru [127.0.0.1]) by to-495.askd.ru (8.13.8/8.13.6) with ESMTP id l254xnBn044530 for ; Mon, 5 Mar 2007 10:59:49 +0600 (NOVT) (envelope-from achilov-rn@askd.ru) Received: from localhost (localhost [[UNIX: localhost]]) by to-495.askd.ru (8.13.8/8.13.6/Submit) id l254xlgI044529 for freebsd-usb@freebsd.org; Mon, 5 Mar 2007 10:59:47 +0600 (NOVT) (envelope-from achilov-rn@askd.ru) X-Authentication-Warning: to-495.askd.ru: shelton set sender to achilov-rn@askd.ru using -f From: "Rashid N. Achilov" Organization: =?koi8-r?b?7+/v?= "=?koi8-r?b?4fMt88nT1MXNwQ==?= =?koi8-r?b?IOvPzdDMxcvT?=" To: freebsd-usb@freebsd.org Date: Mon, 5 Mar 2007 10:59:47 +0600 User-Agent: KMail/1.9.5 References: <65c972b10703010951i4a883fc2xee317c2abd348641@mail.gmail.com> <200703021606.23874.markus@FreeBSD.org> In-Reply-To: <200703021606.23874.markus@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703051059.47491.achilov-rn@askd.ru> Subject: Re: Wireless usb mouse X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Achilov, Rashid" List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2007 05:24:32 -0000 On Friday 02 March 2007 21:06, Markus Brueffer wrote: > > You might however, if you are running 6.x, try the following kernel module: > http://people.freebsd.org/~markus/stuff/ums.ko I'm awaiting a new driver as air :-) I have FreeBSD and Windows at one box and should attach two mice to it - wireless USB Cenius TwinTouch Optical Value (from twin-box with similar USB wireless keyboard, but keyboard works well) for Windows and ordinary wired PS/2 BTC for FreeBSD. I'll take this and will test. -- With Best Regards. Rashid N. Achilov (RNA1-RIPE), Web: http://www.askd.ru/~shelton OOO "ACK" telecommunications administrator, e-mail: achilov-rn [at] askd.ru PGP: 83 CD E2 A7 37 4A D5 81 D6 D6 52 BF C9 2F 85 AF 97 BE CB 0A From owner-freebsd-usb@FreeBSD.ORG Mon Mar 5 09:59:09 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CF21F16A40D for ; Mon, 5 Mar 2007 09:59:09 +0000 (UTC) (envelope-from markhobden@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.236]) by mx1.freebsd.org (Postfix) with ESMTP id 5A42713C478 for ; Mon, 5 Mar 2007 09:59:09 +0000 (UTC) (envelope-from markhobden@gmail.com) Received: by wr-out-0506.google.com with SMTP id 55so2216418wri for ; Mon, 05 Mar 2007 01:59:08 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kRPThuWUlMW/LWipZXFhlJ4BmMMQ57c16FI3lvvPZXI/aW07qpfsCQF+o1ZjYyJhPn5xFZe+SURrxuePsUrJ2z1K1gyXlwVShSfSQfEFXIXvtK1GuxIZW+dsZ7b+QEa88i+2rrsHSGkudvXBL73fIjmWx77AmiIVukxEhTXaYq0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JFQdP37outKo8fSM5Wh0Vfz2sS7p6KR58TMFWlqApexYqHgVDkc+0leQly+9AN23ADoAGS2O1VolZ79DgZfuzu2WFtg32EDAL2LmMp3YiVdSIrcSVJm0MjmWsQW90gJOF8uVuB0sCIIM9VEX/f9cYrlX3OGHyDBq+JNrqrPIgaE= Received: by 10.115.93.16 with SMTP id v16mr1183527wal.1173088748380; Mon, 05 Mar 2007 01:59:08 -0800 (PST) Received: by 10.114.144.17 with HTTP; Mon, 5 Mar 2007 01:59:08 -0800 (PST) Message-ID: Date: Mon, 5 Mar 2007 09:59:08 +0000 From: "Mark Hobden" To: "Cesar Kuroiwa" In-Reply-To: <65c972b10703041949i19235555m4cfc04803f012d97@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <65c972b10703041949i19235555m4cfc04803f012d97@mail.gmail.com> Cc: freebsd-usb@freebsd.org Subject: Re: For Review/Testing: uhidev(4) USB driver level for devices with multiple report ids X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2007 09:59:09 -0000 On 05/03/07, Cesar Kuroiwa wrote: > Hi there, > I was a little unsure about which patch to use, so I recompiled world and > kernel with this last one, and unfortunately, have to say it didn't work for > me. My mouse is still showing no sign of life under FreeBSD... > Did I do sth wrong then? Should I have applied both patches (" > uhidev-6-stable-p1.diff" and "uhidev-add-ms.diff") since I am using > 6-stable, to make it work. You definitely need the uhidev-6-stable-p1.diff patch and if it is a Microsoft set it is very very likely you will need both, if the mouse behaves weirdly with both (doing things like trying to scroll up or down whenever you click a button) then I need to add your device ID to the second patch - I think you have to look for 'product=' in the output from the following command to get the device ID: devinfo -v | grep uhidev this will then get added to usbdevs and a quirk for the device gets added in usb_quirks.c Good luck! Mark From owner-freebsd-usb@FreeBSD.ORG Mon Mar 5 11:08:30 2007 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 221E716A41B for ; Mon, 5 Mar 2007 11:08:30 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 01AC413C4BA for ; Mon, 5 Mar 2007 11:08:30 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l25B8TEd037648 for ; Mon, 5 Mar 2007 11:08:29 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l25B8SPB037644 for freebsd-usb@FreeBSD.org; Mon, 5 Mar 2007 11:08:28 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 5 Mar 2007 11:08:28 GMT Message-Id: <200703051108.l25B8SPB037644@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2007 11:08:30 -0000 Current FreeBSD problem reports Critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa o usb/91629 usb usbd_abort_pipe() may result in infinite loop 2 problems total. Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/40792 usb signals lead to data loss on device ugen o usb/46176 usb [panic] umass causes kernel panic if device removed be o i386/46371 usb USB controller cannot be initialized on IBM Netfinity f usb/55555 usb [ums] system freezes with access to /dev/ums0 o bin/57255 usb usbd and multi-function devices o usb/62088 usb [usb] Logitech Cordless/Optical Mouse not working o usb/62309 usb [ugen] [panic] panic: ugen(4) driver o usb/63621 usb [usb] USB MemoryStick Reader stalls/crashes system o usb/69006 usb [patch] Apple Cinema Display hangs USB ports o usb/71155 usb [usb] misbehaving usb-printer hangs processes, causes o usb/73307 usb [panic] Kernel panics on USB disconnect o usb/74771 usb [umass] mounting write-protected umass device as read/ o usb/75705 usb [panic] da0 attach / Optio S4 (with backtrace) o usb/75797 usb 5.3-STABLE(2005 1/4) detect USB headset, But can not f f usb/76204 usb panic while using usb attached modem o usb/76395 usb USB printer does not work, usbdevs says "addr 0 should o usb/77184 usb kernel panic on USB device disconnect o usb/77294 usb ucom + ulpcom panic o usb/77940 usb [patch] [panic] insertion of usb keyboard panics syste f i386/78218 usb [kue] kue not detected on Sony PCG-F370 VAIO o usb/78989 usb please add USB keyboard support to install CD's o usb/79140 usb WD Firewire/USB Combo hangs under load on USB interfac o usb/79269 usb USB ohci da0 plug/unplug causes crashes and lockups. o usb/79287 usb UHCI hang after interrupt transfer o usb/79524 usb printing to Minolta PagePro 1[23]xxW via USB fails wit f usb/79656 usb [usb] RHSC interrupts lost o usb/79722 usb [usb] wrong alignments in ehci.h o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua f usb/80260 usb Travan USB tape drive fails to write o usb/80361 usb mounting of usb-stick fails o usb/80373 usb usb keyboard does not respond o usb/80829 usb possible panic when loading USB-modules o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/81308 usb [ugen] [patch] polling a ugen(4) control endpoint caus f usb/82198 usb Panic on attaching of ONKI N-338 USB MP3 player f usb/82272 usb Can not recognize Casio camera EX-Z40 as a umass devic o usb/82350 usb [usb] null pointer dereference in USB stack o usb/82520 usb Reboot when USL101 connected o usb/82569 usb [usb] USB mass storage plug/unplug causes system panic o usb/82660 usb EHCI: I/O stuck in state 'physrd'/panic o usb/83504 usb [usb] SpeedTouch USB stop working on recent current (a o usb/83563 usb [panic] Page Fault while detaching Mpman Usb device o usb/83677 usb [usb] usb controller often not detected (Sun W2100z) o usb/83756 usb Microsoft Intellimouse Explorer 4.0A doesn't work. o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84936 usb install - usb keyboard not recognized o usb/86031 usb need support usb nic rt2500 in my 5.4 STABLE o usb/86767 usb [usb] bogus "slice starts beyond end of the disk:..." o usb/87099 usb panic: ohci_add_done: addr 0x000d1bf0 not found o usb/87565 usb [PATCH] Support for Vodaphone 3G/UMTS cards o usb/88743 usb [hang] USB makes kernel hang at boot (regression in 6. o usb/88966 usb kldunload ucom.ko returns "Device busy" error. o usb/89003 usb LaCie Firewire drive not properly supported under 6.0 o usb/89218 usb flash disk o usb/89954 usb [usb] USB Disk driver race condition? f usb/89997 usb [umass] [panic] panic on iPod mini detach o usb/90162 usb [usb] [patch] Add support for the MS Wireless USB Mous o usb/90700 usb Kernel panic on connect/mount/use umass device o usb/91238 usb USB tape unit fails to write a second tape file to the o usb/91263 usb [patch] USB quirk needed for Logitec USB Hard disk LHD o usb/91283 usb booting very slow with usb devices connection (regress o usb/91538 usb Unable to print to EPSON CX3500 o usb/91906 usb FreeBSD hangs while booting with USB legacy support on o usb/92052 usb usbd causes defunct process with busy file-handle o kern/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92142 usb SET_ADDR_FAILED and SHORT_XFER errors from usb drivers o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/93155 usb /dev/ulpt0: device busy USB printer does not work o usb/93408 usb hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes choppy m f usb/93496 usb USB2.0 umass stalls on VIA o usb/93640 usb device ehci causes interrupt storm on this MSI amd64 m o usb/93828 usb ohci causes panic on boot (HP Pavillion d4100e) o usb/93949 usb ugen(4)-related repeatable kernel panic in 6.1-PRERELE o usb/94166 usb btx halted with a flashcard plugged o usb/94384 usb kernel panic with usb2 hardware o usb/94717 usb Reading from /dev/ulpt can break work of a UHCI hub o usb/94742 usb [umass] [patch] umass driver does not recognise YANO e o usb/94813 usb mounting write-protected umass device freezes computer o usb/94897 usb Kernel Panic when cleanly unmounting USB disk o usb/95131 usb Boot/setup process does not accept key strokes o usb/95348 usb USB keyboard unplug causes noise on screen o usb/95562 usb Write Stress in USB Mass drive cause: [vinvalbuf: dir o usb/95636 usb [boot] 5 minute delay at boot when using VT6205 based o usb/96120 usb USB mouse not always detected o usb/96224 usb [usb] mount_msdosfs cause page fault in syncer process o usb/96457 usb fatback on umass = reboot o usb/97286 usb MS Wireless Intellimouse Explorer 2.0 doesn't work o usb/99431 usb FreeBSD on MSI 6566E (Intel 845E motherboards) doesn't o usb/101096 usb USB WLAN occasionally causes kernel-panics during larg o usb/101752 usb [panic] 6.1-RELEASE kernel panic on usb device inserti o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/102096 usb /usr/sbin/usbd does not handle multiple devices in one o i386/103025 usb [USB] the wrong in USB device for freeBSD 6.1 and AMD o usb/104292 usb system lockup on forced umount of usb-storage device o usb/104830 usb system crashes when copying data to umass devices o usb/105186 usb USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 crashes box o usb/106615 usb uftdi module does not automatically load with the FTDI o usb/106648 usb USB Floppy on D1950 10 min Hang on Insert w/o Floppy D o usb/106832 usb USB HP printer is not detected by kernel when ACPI ena o usb/107101 usb [umass] [patch] Quirk for Denver MP3 player o usb/107116 usb [usb] panic while accessing usb msdos pccard o usb/107128 usb [usb] panic while accessing usb msdos flashkey o usb/107248 usb [PATCH] scsi_da.c quirk for Cowon iAUDIO X5 MP3 player o usb/107446 usb [umass] umass problems (usb and fw disks) o usb/107827 usb [panic] ohci_add_done addr not found o usb/107848 usb problem with samsung flash o usb/107924 usb usbd does not call detach o usb/108097 usb [usbgen] [patch] ADMtek 851X USB-to-LAN adapter o usb/108513 usb umass: Creative MuVo TX FM fails in 6.2-RELEASE (regre o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/109397 usb [panic] on boot from USB flash 113 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem s usb/32653 usb Added patches to improve USB scanner supportOB o usb/40948 usb [usb] USB HP CDW8200 does not work f usb/41415 usb [usb] [patch] Some USB scanners cannot talk to uscanne o usb/48342 usb [PATCH] usbd dynamic device list. o kern/51958 usb [usb] [patch] update for urio driver o kern/52026 usb [usb] feature request: umass driver support for InSyst o usb/53025 usb [ugen] [patch] ugen does not allow O_NONBLOCK for inte o usb/56095 usb [usb] [patch] QUIRK: Apacer Pen Drive fails to work o kern/59698 usb [kbd] [patch] Rework of ukbd HID to AT code translatio f usb/60248 usb [patch] Problem with USB printer HP LaserJet 1300 o usb/61234 usb [usb] [patch] usbhidaction(1) doesn't support using an o usb/63837 usb [uhid] [patch] USB: hid_is_collection() only looks for o kern/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops input on usb- o kern/66547 usb [usb] Palm Tungsten T USB does not initialize correctl o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/68412 usb [usb] [patch] QUIRK: Philips KEY013 USB MP3 player o usb/70523 usb [usb] [patch] umct sending/receiving wrong characters o usb/70942 usb [usb] Genius Wireless USB mouse: moused doesn't work c o usb/71416 usb [usb] Cryptoflex e-gate USB token (ugen0) detach is no o usb/71417 usb [usb] Cryptoflex e-gate USB token (ugen0) communicatio o usb/71455 usb [usb] Slow USB umass performance of 5.3 o usb/71605 usb [umass] [patch] umass doesn't recognize multiple slots o usb/72380 usb [usb] USB does not work [dual Celeron Abit] o usb/72732 usb [patch] Kyocera 7135 quirk. o usb/72733 usb Kyocera 7135 Palm OS connection problem. o usb/73056 usb [usb] Sun Microsystems Type 6 USB mouse not working in f usb/73553 usb [usb] Microsoft USB Internet Keyboard not recongized o usb/74211 usb USB flash drive causes CAM status 0x4 on 4.10Release f usb/74358 usb [umass] unplugging at boot time an umass device crashe o usb/74453 usb Q-lity CD-RW USB ECW-043 (ScanLogic SL11R chipset) doe o usb/74557 usb imation 500mb usb key can only be written halfway on f o usb/74609 usb [usb] [patch] allowing cdma modems to work at full spe o usb/74849 usb [usb] [patch] Samsung SPH-i500 does not attach properl o usb/74880 usb [usb] [patch] Samsung N400 cellphone/acm fails to atac o kern/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75800 usb ucom1: init failed STALLED error in time of sync with o usb/75928 usb Cytronix SmartMedia card (SMC) reader has problems whe o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76732 usb Mouse problems with USB KVM Switch f usb/78371 usb Philips Wearable Audio Player (128) fails to attach f usb/78984 usb Creative MUVO umass failure o usb/79723 usb [usb] prepare for high speed isochronous transfers o usb/79725 usb [usb] [patch] USB device speed is not double-checked o usb/79893 usb [umass] [patch] new usbdevs/umass quirks derived from o usb/80010 usb [aue] [patch] add support for the AEI USB to LAN adapt f usb/80420 usb atapicam stops iPod functionality f usb/80773 usb "usbd_get_string()" could have taken a length paramete o usb/80774 usb have "usbd_find_desc" in line with the other "usbd_fin o usb/80776 usb [udav] UDAV device driver shouldn't use usb_add_task o usb/80777 usb usb_rem_task() should wait for callback to complete? o usb/80854 usb suggestion for new iface-no-probe mechanism o usb/80935 usb uvisor.c is not work with CLIE TH55. o usb/81191 usb Support for Curitel HX-550C USB modem to 5.4 RELEASE. f usb/81621 usb external hd hangs under load on ehci o usb/82436 usb [patch] USL101 Host-to-Host bridge support on FreeBSD o usb/83022 usb ALI USB 2.0 EHCI Controller is not detected o usb/83863 usb Communication problem between opensc/openct via USB wi o usb/85067 usb Cannot attach ScanJet 4300C to usb device o usb/85992 usb [uhid] [patch] USB stops working when trying to read f o usb/86195 usb [patch] allow USB Ethernet Adaptor "ELECOM LD-USB20" t o usb/86298 usb Known good USB mouse won't work with correct settings o usb/86438 usb Fix for non-working iPod over USB is in NetBSD CVS o usb/87224 usb Cannot mount USB Zip750 o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/88408 usb axe0 read PHY failed o usb/88939 usb Fix cheapy Myson USB-IDE adapter f usb/89087 usb usb external harddrive hangs with BBB reset failed, TI f usb/91191 usb HP LaserJet 1020 (USB printer) not recognized f usb/91516 usb [umass] umass0 problems, with Freecom Classic SL Hard o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91811 usb Compact Flash in HP Photosmart 2610 return " Medium n o usb/91896 usb Serial Number of USB Memory Sticks is not passed throu o usb/92306 usb [quirk] [patch] Support for iRiver U10 USB media playe o usb/92403 usb [uplcom] uplcom.c needs new entry for 4.00 revision of o usb/92852 usb Vertical scroll not working properly on A4Tech WOP-49 f usb/93011 usb HP ScanJet 6200C & uscanner problem o usb/93389 usb Digital Camera Pentax S60 don't work o usb/93872 usb [patch] SCSI quirk required for ELTA 8061 OL USB memor o usb/94132 usb USB QUIRK for CENTURY EX35QUAT disk enclosure f usb/94147 usb doesn't recognise my USB keyboard o usb/94148 usb Make if_cdce work with ARM linux handhelds o usb/94311 usb [ugen][PATCH] allow interrupt IN transactions to be af o usb/94439 usb [patch] Add support for JNC MP3 Player o usb/94946 usb [uhub][patch] code dynamic status size for status chan o usb/95037 usb USB disk didnt recognized on hot-plug. o usb/95173 usb [usb] cannot mount external usb harddisk VIA Technolog o usb/95241 usb Patch to add USB ID for OEM Pharos 360 GPS o usb/95803 usb Add support for AnyData ADU-E100H o usb/95805 usb Add Support for Siemens ES75 modem o usb/96381 usb [patch] add a quirk table entry for a flash ram usb st p usb/96546 usb [usb] [patch] Add support (quirk) for EasyMP3 EM732X U o usb/96714 usb Update uvisor to support the Fossil Abacus Wrist PDA o usb/97175 usb USB cardreader hangs system o usb/97472 usb [patch] add support for Olympus C150,D390 o usb/98343 usb BBB reset failed errors with Creative Muvo MP3 player; o usb/99419 usb external usb harddrive slow to accept o usb/99538 usb [kbd] while using USB keyboard default params of atkbd o usb/100746 usb [kbd] system does not boot due to USB keyboard problem o usb/101757 usb [patch] uhid.4: correct structure field names to match o usb/101761 usb [patch] usb.h: increase maximal size of report descrip o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/102976 usb Casio Exilim Digital Camera cause panic o usb/103046 usb [patch] ulpt event driven I/O with select(2) and nonbl o usb/103289 usb USB 2.0 problems on AMD LX-800 CPU and CS-5536 chipset o usb/103418 usb [usb] [patch] usbhidctl: add ability to write output a o usb/103917 usb USB driver reports "Addr 0 should never happen" o usb/104290 usb QUIRK: TOSHIBA DVD-RAM drive (libretto DVD Dock) o usb/104352 usb [ural] ural driver doesnt work o usb/104645 usb QUIRK: Rave C-201 MP3 player o usb/105065 usb SATA - USB Bridge o usb/105361 usb Kernel panic during unmounting mass storage (Creative o usb/105518 usb epson perfection 3490 usb scanner def o usb/106041 usb FreeBSD does not recognise Mustek BearPaw 2400TA usb s o usb/106070 usb devd recognizes ucom, but ttyU is the device actually o usb/106462 usb Motorola U6 PEBL not recognized by system via USB [pat o usb/106538 usb [patch] Can not burn DVD on Sony DRX-820UL external US o usb/106621 usb [usb] DLINK DUB-E100 support broken o usb/106861 usb [PATCH]: usbdevs update: Add product ACER Zeevo BT-500 o usb/107243 usb [patch] Apacer USB Flash Drive quirk o usb/107388 usb [PATCH] Add utoppy device from NetBSD o usb/107496 usb USB device problem on RELENG_6_2 (SHORT_XFER) (regress o usb/107526 usb Patch to support the Crystalfontz CFA-635 20x4 USB LCD o usb/107642 usb [patch]Ralink Technology RT2501USB/RT2601USB chipset d o kern/107665 usb [usb] [patch] uscanner support for epson stylus DX5050 o usb/107701 usb usbd ignores "detach" o usb/107935 usb [uplcom] panic while accessing /dev/cuaU0 o usb/108056 usb Mouse gets powered off during device probe when plugge o usb/108344 usb kernel with atausb panics when unplugging USB Flash o usb/108427 usb QUIRK-SAMSUNG MP0402H o usb/108509 usb Freebsd hang at startup after ehci0 detected (CD Loade o usb/108810 usb quirk for I/O Magic USB flash drive "Giga Bank" o usb/109613 usb Unsupported USB-Serial Controller for Sagem Mobile Pho o usb/109838 usb [PATCH] Support for various CDMA-2000 USB-modems 134 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Mar 5 22:35:48 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A950C16A404 for ; Mon, 5 Mar 2007 22:35:48 +0000 (UTC) (envelope-from cesar.kuroiwa@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id 6575913C478 for ; Mon, 5 Mar 2007 22:35:48 +0000 (UTC) (envelope-from cesar.kuroiwa@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so1474852ana for ; Mon, 05 Mar 2007 14:35:47 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=SprIkc7Z0fXQAsQ11Db8n9XPpK6ma4xY1lMJRMn/pv9Zh001N2lv9Z8X1CDKuvgloiulfPFVJONwoBiYzy7UkTVyumn5pnkZLrh0ilXRM3VNTGIPxFwitplfOGWNA97Y0ITnXNQJLAOrXVI6yBFsq0I4Q7lwtXHBigK9kiYinHE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=BUDZF+XaUqq5VjFuYBRTS6NRTuimGISIuSbcpr+3pqVXLOhlR2lI97OJJ/eTlneXSLxVHLYfn+Z9jlGEpeIByLwWVqIO8U3BBIWf56iNtFHkamvaD17D3jMXhTdrkTCs2H3V5SobUFSjiWBigq7Hk3/jtd3ANBmX9NZzQf1/tpc= Received: by 10.114.75.1 with SMTP id x1mr393698waa.1173134147067; Mon, 05 Mar 2007 14:35:47 -0800 (PST) Received: by 10.114.61.7 with HTTP; Mon, 5 Mar 2007 14:35:46 -0800 (PST) Message-ID: <65c972b10703051435k712d3a3ci35886b322a601ce8@mail.gmail.com> Date: Mon, 5 Mar 2007 19:35:46 -0300 From: "Cesar Kuroiwa" To: "Mark Hobden" In-Reply-To: MIME-Version: 1.0 References: <65c972b10703041949i19235555m4cfc04803f012d97@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-usb@freebsd.org Subject: Re: For Review/Testing: uhidev(4) USB driver level for devices with multiple report ids X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2007 22:35:48 -0000 > > You definitely need the uhidev-6-stable-p1.diff patch and if it is a > Microsoft > set it is very very likely you will need both, if the mouse behaves > weirdly with > both (doing things like trying to scroll up or down whenever you click a > button) > then I need to add your device ID to the second patch - I think you have > to look > for 'product=' in the output from the following command to get the device > ID: > > devinfo -v | grep uhidev > > this will then get added to usbdevs and a quirk for the device gets added > in > usb_quirks.c > Hi, I'm happy to say that I've great progress thanks to those patches. My mouse is finally working! The movement is ok and the clicking is fairly good. The issue now, like you said, is this little scrolling when I click the left button. Also, it seems like holding the button down has no effect at all, since I can't drag any window. Below is the output of my uhidev devinfo: uhidev0 pnpinfo vendor=0x045e product=0x009d devclass=0x00 devsubclass=0x00 release=0x0041 sernum="" intclass=0x03 intsubclass=0x01 at port=0 interface=0 uhidev1 pnpinfo vendor=0x045e product=0x009d devclass=0x00 devsubclass=0x00 release=0x0041 sernum="" intclass=0x03 intsubclass=0x00 at port=0 interface=1 Once again, thanx a lot for the help From owner-freebsd-usb@FreeBSD.ORG Mon Mar 5 23:21:54 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 64E1216A401 for ; Mon, 5 Mar 2007 23:21:54 +0000 (UTC) (envelope-from markhobden@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.227]) by mx1.freebsd.org (Postfix) with ESMTP id 1810E13C428 for ; Mon, 5 Mar 2007 23:21:53 +0000 (UTC) (envelope-from markhobden@gmail.com) Received: by wr-out-0506.google.com with SMTP id 55so2565740wri for ; Mon, 05 Mar 2007 15:21:53 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=KR5vS7qP427dau2AJwIdjJbXmycQu/9FZi4jzhKixSe/qGjBJgS+fHVfyIOWOm9f32gK5nKBze/NyZxSjl1WTfpStnNb5KtqtIBPiTpD2oEb46ezVMX9mFRnU3EUontaGc71Btn+laQO7Z0JOlOgi1gnT9A/fXUyVtQndr7OoeY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=AWqcFQx1E9teBOtkQcVn+oRIeJjmhFWWKde79ujg/H8K2NdV/3TzmMNk4y+WmzmwbdkmW4YQIU123hSa0MuvJ0xoJTp2Itpg9D/8AmnTqjgL2RMck+yIRZVN+vVp3Xv1mMkarxaiSctuxNPrtW0w3ZgVZarzDGCyzpHRqtv4i1o= Received: by 10.114.137.2 with SMTP id k2mr1488002wad.1173136912741; Mon, 05 Mar 2007 15:21:52 -0800 (PST) Received: by 10.114.144.17 with HTTP; Mon, 5 Mar 2007 15:21:52 -0800 (PST) Message-ID: Date: Mon, 5 Mar 2007 23:21:52 +0000 From: "Mark Hobden" To: "Cesar Kuroiwa" In-Reply-To: <65c972b10703051435k712d3a3ci35886b322a601ce8@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_144793_21527285.1173136912687" References: <65c972b10703041949i19235555m4cfc04803f012d97@mail.gmail.com> <65c972b10703051435k712d3a3ci35886b322a601ce8@mail.gmail.com> Cc: freebsd-usb@freebsd.org Subject: Re: For Review/Testing: uhidev(4) USB driver level for devices with multiple report ids X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2007 23:21:54 -0000 ------=_Part_144793_21527285.1173136912687 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 05/03/07, Cesar Kuroiwa wrote: > > Hi, I'm happy to say that I've great progress thanks to those patches. My > mouse is finally working! > The movement is ok and the clicking is fairly good. > The issue now, like you said, is this little scrolling when I click the left > button. Also, it seems like holding the button down has no effect at all, > since I can't drag any window. Great, you are almost there now! I have updated the patch on the website with your device. But to save you having to revert the last patch I have also attached a patch that will just add in your device id that can just be applied on top of what you have now. Mark ------=_Part_144793_21527285.1173136912687 Content-Type: text/x-patch; name=add-0x009d-quirk.diff; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: base64 X-Attachment-Id: f_eyxj6dcb Content-Disposition: attachment; filename="add-0x009d-quirk.diff" ZGlmZiAtdSBzeXMvZGV2L3VzYi91c2JkZXZzIHN5cy9kZXYvdXNiL3VzYmRldnMKLS0tIHN5cy9k ZXYvdXNiL3VzYmRldnMJMTggRmViIDIwMDcgMDA6MjY6NDEgLTAwMDAKKysrIHN5cy9kZXYvdXNi L3VzYmRldnMJMTggRmViIDIwMDcgMDA6MjY6NDEgLTAwMDAKQEAgLTEyNjEsNiArMTI2MSw3IEBA CiBwcm9kdWN0IE1JQ1JPU09GVCBNTjExMAkJMHgwMDdhCTEwLzEwMCBVU0IgTklDCiBwcm9kdWN0 IE1JQ1JPU09GVCBXTE5PVEVCT09LCTB4MDBiOQlXaXJlbGVzcyBOb3RlYm9vayBPcHRpY2FsIE1v dXNlCiBwcm9kdWN0IE1JQ1JPU09GVCBXTE5PVEVCT09LMgkweDAwZTEJV2lyZWxlc3MgTm90ZWJv b2sgT3B0aWNhbCBNb3VzZQorcHJvZHVjdCBNSUNST1NPRlQgV0xPRFIyMQkweDAwOWQJV2lyZWxl c3MgT3B0aWNhbCBEZXNrdG9wIFJlY2lldmVyIDIuMQogcHJvZHVjdCBNSUNST1NPRlQgV0xPRFIy MgkweDAwZTMJV2lyZWxlc3MgT3B0aWNhbCBEZXNrdG9wIFJlY2lldmVyIDIuMgogcHJvZHVjdCBN SUNST1NPRlQgV0xPRFIzMQkweDAwZjkJV2lyZWxlc3MgT3B0aWNhbCBEZXNrdG9wIFJlY2lldmVy IDMuMQogCmRpZmYgLXUgc3lzL2Rldi91c2IvdXNiX3F1aXJrcy5jIHN5cy9kZXYvdXNiL3VzYl9x dWlya3MuYwotLS0gc3lzL2Rldi91c2IvdXNiX3F1aXJrcy5jCTE4IEZlYiAyMDA3IDAwOjI2OjQw IC0wMDAwCisrKyBzeXMvZGV2L3VzYi91c2JfcXVpcmtzLmMJMTggRmViIDIwMDcgMDA6MjY6NDAg LTAwMDAKQEAgLTgxLDYgKzgxLDcgQEAKICAgIAkJCQkJCSAgICAweDEwMCwgeyBVUV9BVV9JTlBf QVNZTkMgfX0sCiAgeyBVU0JfVkVORE9SX01JQ1JPU09GVCwgVVNCX1BST0RVQ1RfTUlDUk9TT0ZU X1dMTk9URUJPT0ssIEFOWSwgeyBVUV9NU19CQURfQ0xBU1MgfX0sCiAgeyBVU0JfVkVORE9SX01J Q1JPU09GVCwgVVNCX1BST0RVQ1RfTUlDUk9TT0ZUX1dMTk9URUJPT0syLCBBTlksIHsgVVFfTVNf QkFEX0NMQVNTIH19LAorIHsgVVNCX1ZFTkRPUl9NSUNST1NPRlQsIFVTQl9QUk9EVUNUX01JQ1JP U09GVF9XTE9EUjIxLCBBTlksIHsgVVFfTVNfQkFEX0NMQVNTIH19LAogIHsgVVNCX1ZFTkRPUl9N SUNST1NPRlQsIFVTQl9QUk9EVUNUX01JQ1JPU09GVF9XTE9EUjIyLCBBTlksIHsgVVFfTVNfQkFE X0NMQVNTIH19LAogIHsgVVNCX1ZFTkRPUl9NSUNST1NPRlQsIFVTQl9QUk9EVUNUX01JQ1JPU09G VF9XTE9EUjMxLCBBTlksIHsgVVFfTVNfQkFEX0NMQVNTIH19LAogIHsgVVNCX1ZFTkRPUl9MT0dJ VEVDSCwgVVNCX1BST0RVQ1RfTE9HSVRFQ0hfVU41M0IsIEFOWSwgeyBVUV9OT19TVFJJTkdTIH19 LAo= ------=_Part_144793_21527285.1173136912687-- From owner-freebsd-usb@FreeBSD.ORG Tue Mar 6 03:20:09 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 038BC16A409 for ; Tue, 6 Mar 2007 03:20:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id B82E713C481 for ; Tue, 6 Mar 2007 03:20:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l263K8ql003438 for ; Tue, 6 Mar 2007 03:20:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l263K8aG003437; Tue, 6 Mar 2007 03:20:08 GMT (envelope-from gnats) Resent-Date: Tue, 6 Mar 2007 03:20:08 GMT Resent-Message-Id: <200703060320.l263K8aG003437@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, Maurice Castro Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B00F716A400 for ; Tue, 6 Mar 2007 03:11:20 +0000 (UTC) (envelope-from maurice@sphinx.clari.net.au) Received: from sphinx.clari.net.au (sphinx.clari.net.au [203.8.14.117]) by mx1.freebsd.org (Postfix) with ESMTP id 0B11513C48E for ; Tue, 6 Mar 2007 03:11:19 +0000 (UTC) (envelope-from maurice@sphinx.clari.net.au) Received: from sphinx.clari.net.au (localhost.clari.net.au [127.0.0.1]) by sphinx.clari.net.au (8.13.3/8.13.3) with ESMTP id l262s2sF026722 for ; Tue, 6 Mar 2007 13:54:02 +1100 (EST) (envelope-from maurice@sphinx.clari.net.au) Received: (from maurice@localhost) by sphinx.clari.net.au (8.13.3/8.13.3/Submit) id l262s2Yt026721; Tue, 6 Mar 2007 13:54:02 +1100 (EST) (envelope-from maurice) Message-Id: <200703060254.l262s2Yt026721@sphinx.clari.net.au> Date: Tue, 6 Mar 2007 13:54:02 +1100 (EST) From: Maurice Castro To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/109959: usb_interrupt_read does not respect timeout X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Maurice Castro List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2007 03:20:09 -0000 >Number: 109959 >Category: usb >Synopsis: usb_interrupt_read does not respect timeout >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Mar 06 03:20:08 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Maurice Castro >Release: FreeBSD 5.4-RELEASE i386 >Organization: Clarinet Internet Solutions >Environment: System: FreeBSD sphinx.clari.net.au 5.4-RELEASE FreeBSD 5.4-RELEASE #1: Wed Nov 30 11:05:23 EST 2005 mjb@sphinx.clari.net.au:/work/src/sys/i386/compile/sphinx i386 All version of FreeBSD (and other BSDs) since 5.4 (possibly earlier) >Description: Requesting a timeout on usb_interrupt_read has no effect. This results in hanging reads for libusb. >How-To-Repeat: In particular, the port sysutils/nut-usb will hang on initialising a Powerware 3105 UPS. >Fix: --- ugen.c.orig Tue Mar 6 13:36:15 2007 +++ ugen.c Tue Mar 6 09:56:20 2007 @@ -740,11 +740,17 @@ } sce->state |= UGEN_ASLP; DPRINTFN(5, ("ugenread: sleep on %p\n", sce)); - error = tsleep(sce, PZERO | PCATCH, "ugenri", 0); + error = tsleep(sce, PZERO | PCATCH, "ugenri", sce->timeout); sce->state &= ~UGEN_ASLP; DPRINTFN(5, ("ugenread: woke, error=%d\n", error)); if (sc->sc_dying) error = EIO; + /* we timed out - return 0 bytes */ + if (error == EAGAIN) + { + error = 0; + break; + } if (error) break; } >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Tue Mar 6 03:22:51 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A5D2A16A401 for ; Tue, 6 Mar 2007 03:22:51 +0000 (UTC) (envelope-from cesar.kuroiwa@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 3787E13C491 for ; Tue, 6 Mar 2007 03:22:50 +0000 (UTC) (envelope-from cesar.kuroiwa@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so52666ugh for ; Mon, 05 Mar 2007 19:22:50 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=NJcDYLMUPLsAeCVcSION2IGfDDLccikQ/14Inf7vhOKg6np6k1gKSo4wv6OUo7KPoStrmQ7f5AuR1XaWiWYuXYunhneOzNnwCIF58nySZTDbtpgnIACRRbs4jjDs9cq9xtiK7WOsMJG6HDlhDnldQ79KOEy7uUs8Bnmjpb3tVnI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=sIieRyF096DcQNBU2pv2/TIryjHxh9cOUNaK5OO0FkMd4UKwPmf7nCp2XNkNJwqw3lH6q72IIQtubzN85zTVCBebCVhWg5vBy26NUC8bvl36MgmAP71iccKJOwb8G/MGyiZE7fiIPIrpg062S2JoHuYKqE+bDSB9cQ0Z4YWeib0= Received: by 10.114.202.15 with SMTP id z15mr1573320waf.1173151369191; Mon, 05 Mar 2007 19:22:49 -0800 (PST) Received: by 10.114.61.7 with HTTP; Mon, 5 Mar 2007 19:22:49 -0800 (PST) Message-ID: <65c972b10703051922l33d91c99o8290790c2af046ed@mail.gmail.com> Date: Tue, 6 Mar 2007 00:22:49 -0300 From: "Cesar Kuroiwa" To: "Mark Hobden" In-Reply-To: MIME-Version: 1.0 References: <65c972b10703041949i19235555m4cfc04803f012d97@mail.gmail.com> <65c972b10703051435k712d3a3ci35886b322a601ce8@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-usb@freebsd.org Subject: Re: For Review/Testing: uhidev(4) USB driver level for devices with multiple report ids X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2007 03:22:51 -0000 > > Great, you are almost there now! I have updated the patch on the website > with your device. But to save you having to revert the last patch I have > also attached a patch that will just add in your device id that can just > be > applied on top of what you have now. Thanks a lot. It's now all working just fine! From owner-freebsd-usb@FreeBSD.ORG Tue Mar 6 20:50:09 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E5C0416A409 for ; Tue, 6 Mar 2007 20:50:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 9128013C4A8 for ; Tue, 6 Mar 2007 20:50:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l26Ko9PT099698 for ; Tue, 6 Mar 2007 20:50:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l26Ko98j099697; Tue, 6 Mar 2007 20:50:09 GMT (envelope-from gnats) Date: Tue, 6 Mar 2007 20:50:09 GMT Message-Id: <200703062050.l26Ko98j099697@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Jonathan Fosburgh Cc: Subject: Re: kern/92083: [ural] [panic] panic using WPA on ural NIC in 6.2-RELEASE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jonathan Fosburgh List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2007 20:50:10 -0000 The following reply was made to PR kern/92083; it has been noted by GNATS. From: Jonathan Fosburgh To: Sam Leffler Cc: Anders Nordby , bug-followup@freebsd.org Subject: Re: kern/92083: [ural] [panic] panic using WPA on ural NIC in 6.2-RELEASE Date: Tue, 6 Mar 2007 14:47:15 -0600 On Monday 12 February 2007 11:27, Sam Leffler wrote: > > The last I heard about any of this stuff your problems were related to > usb xfer stalls. If this no longer true then please provide me with a > recipe for recreating the issue. If it's a driver/net80211 issue I will > try to fix it. If it's in the usb subsystem it's unlikely I'm going to > pursue it. > I finally obtained what may be a useful kernel panic. I recompiled with the wlan/ural stuff in-kernel versus as modules (can someone put together, in one place, how to debug a kernel with modules? There is documentation in a few places, but it is geared to developers, and not end-users. That is fine for -CURRENT, but the issue is the same on -STABLE and the mainline releases.) So far I have captured one dump with this configuration. I will see if it crashes anymore throughout the day before I switch over to a working configuration. To reiterate: ural0: on uh ub7 ural0: MAC/BBP RT2570 (rev 0x05), RF RT2526 ural0: using obsoleted if_watchdog interface ural0: Ethernet address: 00:d0:41:a1:09:78 ural0: if_start running deferred for Giant and FreeBSD asgard.fosburgh.org 7.0-CURRENT FreeBSD 7.0-CURRENT #34: Tue Mar 6 08:07:37 CST 2007 toor@asgard.fosburgh.org:/usr/obj/usr/src/sys/vmbsd amd64 When configuring the NIC using wep in ifconfig, it is stable. When using wpa_supplicant (even in WEP-mode) the driver is unstable and panics the system. It does not appear to be under any particular load condition. I often find the system has rebooted while I have been away and there is no particular network load above background that I am aware of (emails being received, etc). Here is the panic: --# kgdb kernel.debug /usr/crash/vmcore.9 kgdb: kvm_nlist(_stopped_cpus): kgdb: kvm_nlist(_stoppcbs): [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd". Unread portion of the kernel message buffer: Fatal trap 12: page fault while in kernel mode fault virtual address = 0x8 fault code = supervisor read data, page not present instruction pointer = 0x8:0xffffffff802ee415 stack pointer = 0x10:0xffffffff9212ba70 frame pointer = 0x10:0x0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 33 (irq21: uhci0 uhci*) trap number = 12 panic: page fault Uptime: 5h13m37s Physical memory: 504 MB Dumping 78 MB: 63 47 31 15 #0 doadump () at pcpu.h:141 141 __asm __volatile("movq %%gs:0,%0" : "=r" (td)); where: #0 doadump () at pcpu.h:141 #1 0x0000000000000004 in ?? () #2 0xffffffff80243519 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409 #3 0xffffffff80243afe in panic (fmt=0xffffff001ebf1560 "") at /usr/src/sys/kern/kern_shutdown.c:563 #4 0xffffffff8037e022 in trap_fatal (frame=0xffffffff9212b9c0, eva=8) at /usr/src/sys/amd64/amd64/trap.c:696 #5 0xffffffff8037e392 in trap_pfault (frame=0xffffffff9212b9c0, usermode=0) at /usr/src/sys/amd64/amd64/trap.c:614 #6 0xffffffff8037e625 in trap (frame=0xffffffff9212b9c0) at /usr/src/sys/amd64/amd64/trap.c:382 #7 0xffffffff80368fae in calltrap () at /usr/src/sys/amd64/amd64/exception.S:169 #8 0xffffffff802ee415 in ieee80211_free_node (ni=0x0) at /usr/src/sys/net80211/ieee80211_node.c:1602 #9 0xffffffff801cb131 in ural_txeof (xfer=0x0, priv=0xffffffff80a40ec0, status=USBD_NORMAL_COMPLETION) at /usr/src/sys/dev/usb/if_ural.c:890 #10 0xffffffff801e1ca3 in usb_transfer_complete (xfer=0xffffff000099d000) at /usr/src/sys/dev/usb/usbdi.c:983 #11 0xffffffff801c46db in ehci_softintr (v=0x0) at /usr/src/sys/dev/usb/ehci.c:872 #12 0xffffffff801c30d9 in ehci_intr1 (sc=0xffffff000094c000) at /usr/src/sys/dev/usb/ehci.c:591 #13 0xffffffff8022e28d in ithread_loop (arg=0xffffff0000945780) at /usr/src/sys/kern/kern_intr.c:682 #14 0xffffffff8022cd79 in fork_exit ( callout=0xffffffff8022e150 , arg=0xffffff0000945780, frame=0xffffffff9212bc90) at /usr/src/sys/kern/kern_fork.c:814 #15 0xffffffff8036931e in fork_trampoline () at /usr/src/sys/amd64/amd64/exception.S:397 #16 0x0000000000000000 in ?? () #17 0x0000000000000000 in ?? () #18 0x0000000000000001 in ?? () #19 0x0000000000000000 in ?? () #20 0x0000000000000000 in ?? () #21 0x0000000000000000 in ?? () #22 0x0000000000000000 in ?? () #23 0x0000000000000000 in ?? () #24 0x0000000000000000 in ?? () #25 0x0000000000000000 in ?? () #26 0x0000000000000000 in ?? () #27 0x0000000000000000 in ?? () #28 0x0000000000000000 in ?? () #29 0x0000000000000000 in ?? () #30 0x0000000000000000 in ?? () #31 0x0000000000000000 in ?? () #32 0x0000000000000000 in ?? () #33 0x0000000000000000 in ?? () #34 0x0000000000000000 in ?? () #35 0x0000000000000000 in ?? () #36 0x0000000000000000 in ?? () #37 0x0000000000000000 in ?? () #38 0x0000000000000000 in ?? () #39 0x0000000000000000 in ?? () #40 0x0000000000800000 in ?? () #41 0xffffff001ebf1560 in ?? () #42 0x0000000000000000 in ?? () #43 0x0000000000000001 in ?? () #44 0x0000000000000000 in ?? () #45 0xffffff0016929810 in ?? () #46 0xffffffff9212bbc8 in ?? () #47 0xffffff001ebf1560 in ?? () #48 0xffffffff8025faf0 in sched_switch (td=0xffffff0000945780, newtd=0x0, flags=0) at /usr/src/sys/kern/sched_ule.c:1472 #49 0x0000000000000000 in ?? () #50 0x0000000000000000 in ?? () #51 0x0000000000000000 in ?? () #52 0x0000000000000000 in ?? () #53 0x0000000000000000 in ?? () #54 0x0000000000000000 in ?? () #55 0x0000000000000000 in ?? () #56 0x0000000000000000 in ?? () #57 0x0000000000000000 in ?? () #58 0x0000000000000000 in ?? () #59 0x0000000000000000 in ?? () #60 0x0000000000000000 in ?? () #61 0x0000000000000000 in ?? () #62 0x0000000000000000 in ?? () #63 0x0000000000000000 in ?? () #64 0x0000000000000000 in ?? () #65 0x0000000000000000 in ?? () #66 0x0000000000000000 in ?? () #67 0x0000000000000000 in ?? () #68 0x0000000000000000 in ?? () #69 0x0000000000000000 in ?? () #70 0x0000000000000000 in ?? () #71 0x0000000000000000 in ?? () #72 0x0000000000000000 in ?? () #73 0x0000000000000000 in ?? () #74 0x0000000000000000 in ?? () #75 0x0000000000000000 in ?? () #76 0x0000000000000000 in ?? () #77 0x0000000000000000 in ?? () #78 0x0000000000000000 in ?? () #79 0x0000000000000000 in ?? () #80 0x0000000000000000 in ?? () #81 0x0000000000000000 in ?? () #82 0x0000000000000000 in ?? () #83 0x0000000000000000 in ?? () #84 0x0000000000000000 in ?? () #85 0x0000000000000000 in ?? () #86 0x0000000000000000 in ?? () #87 0x0000000000000000 in ?? () #88 0x0000000000000000 in ?? () #89 0x0000000000000000 in ?? () #90 0x0000000000000000 in ?? () #91 0x0000000000000000 in ?? () #92 0x0000000000000000 in ?? () #93 0x0000000000000000 in ?? () #94 0x0000000000000000 in ?? () #95 0x0000000000000000 in ?? () #96 0x0000000000000000 in ?? () #97 0x0000000000000000 in ?? () #98 0x0000000000000000 in ?? () #99 0x0000000000000000 in ?? () #100 0x0000000000000000 in ?? () #101 0x0000000000000000 in ?? () #102 0x0000000000000000 in ?? () #103 0x0000000000000000 in ?? () #104 0x0000000000000000 in ?? () #105 0x0000000000000000 in ?? () #106 0x0000000000000000 in ?? () #107 0x0000000000000000 in ?? () #108 0x0000000000000000 in ?? () #109 0x0000000000000000 in ?? () #110 0x0000000000000000 in ?? () #111 0x0000000000000000 in ?? () #112 0x0000000000000000 in ?? () #113 0x0000000000000000 in ?? () #114 0x0000000000000000 in ?? () #115 0x0000000000000000 in ?? () #116 0x0000000000000000 in ?? () #117 0x0000000000000000 in ?? () #118 0x0000000000000000 in ?? () #119 0x0000000000000000 in ?? () #120 0x0000000000000000 in ?? () #121 0x0000000000000000 in ?? () #122 0x0000000000000000 in ?? () Cannot access memory at address 0xffffffff9212c000 The instruction pointer matches to: #8 0xffffffff802ee415 in ieee80211_free_node (ni=0x0) at /usr/src/sys/net80211/ieee80211_node.c:1602 Line 1602 is an open brace. Here is the section of the file, starting at line 1597: 1597 #ifdef IEEE80211_DEBUG_REFCNT 1598 ieee80211_free_node_debug(struct ieee80211_node *ni, const char *func, i nt line) 1599 #else 1600 ieee80211_free_node(struct ieee80211_node *ni) 1601 #endif 1602 { 1603 struct ieee80211_node_table *nt = ni->ni_table; 1604 1605 #ifdef IEEE80211_DEBUG_REFCNT 1606 IEEE80211_DPRINTF(ni->ni_ic, IEEE80211_MSG_NODE, 1607 "%s (%s:%u) %p<%s> refcnt %d\n", __func__, func, line, n i, 1608 ether_sprintf(ni->ni_macaddr), ieee80211_node_refcnt(ni )-1); 1609 #endif 1610 if (nt != NULL) { 1611 IEEE80211_NODE_LOCK(nt); 1612 if (ieee80211_node_dectestref(ni)) { 1613 /* 1614 * Last reference, reclaim state. 1615 */ 1616 _ieee80211_free_node(ni); 1617 } else if (ieee80211_node_refcnt(ni) == 1 && 1618 nt->nt_keyixmap != NULL) { 1619 ieee80211_keyix keyix; 1620 /* 1621 * Check for a last reference in the key mapping table. 1622 */ 1623 keyix = ni->ni_ucastkey.wk_rxkeyix; 1624 if (keyix < nt->nt_keyixmax && 1625 nt->nt_keyixmap[keyix] == ni) { 1626 IEEE80211_DPRINTF(ni->ni_ic, IEEE80211_M SG_NODE, 1627 "%s: %p<%s> clear key map entry", __func__, 1628 ni, ether_sprintf(ni->ni_macaddr)); 1629 nt->nt_keyixmap[keyix] = NULL; 1630 ieee80211_node_decref(ni); /* XXX needed ? */ 1631 _ieee80211_free_node(ni); 1632 } 1633 } 1634 IEEE80211_NODE_UNLOCK(nt); 1635 } else { 1636 if (ieee80211_node_dectestref(ni)) 1637 _ieee80211_free_node(ni); 1638 } 1639 } From owner-freebsd-usb@FreeBSD.ORG Wed Mar 7 11:30:04 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9011D16A401 for ; Wed, 7 Mar 2007 11:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 707CF13C48E for ; Wed, 7 Mar 2007 11:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l27BU4j9069045 for ; Wed, 7 Mar 2007 11:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l27BU4uK069044; Wed, 7 Mar 2007 11:30:04 GMT (envelope-from gnats) Resent-Date: Wed, 7 Mar 2007 11:30:04 GMT Resent-Message-Id: <200703071130.l27BU4uK069044@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, Maurice Castro Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B6C3316A402 for ; Wed, 7 Mar 2007 11:20:06 +0000 (UTC) (envelope-from maurice@sphinx.clari.net.au) Received: from sphinx.clari.net.au (sphinx.clari.net.au [203.8.14.117]) by mx1.freebsd.org (Postfix) with ESMTP id 3AAC913C4A3 for ; Wed, 7 Mar 2007 11:20:05 +0000 (UTC) (envelope-from maurice@sphinx.clari.net.au) Received: from sphinx.clari.net.au (localhost.clari.net.au [127.0.0.1]) by sphinx.clari.net.au (8.13.3/8.13.3) with ESMTP id l27BK3CG042085 for ; Wed, 7 Mar 2007 22:20:03 +1100 (EST) (envelope-from maurice@sphinx.clari.net.au) Received: (from maurice@localhost) by sphinx.clari.net.au (8.13.3/8.13.3/Submit) id l27BK2fu042084; Wed, 7 Mar 2007 22:20:02 +1100 (EST) (envelope-from maurice) Message-Id: <200703071120.l27BK2fu042084@sphinx.clari.net.au> Date: Wed, 7 Mar 2007 22:20:02 +1100 (EST) From: Maurice Castro To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/110031: usb_interrupt_read does not respect timeout X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Maurice Castro List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Mar 2007 11:30:04 -0000 >Number: 110031 >Category: usb >Synopsis: usb_interrupt_read does not respect timeout >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 07 11:30:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Maurice Castro >Release: FreeBSD 5.4-RELEASE i386 >Organization: Clarinet Internet Solutions >Environment: System: FreeBSD sphinx.clari.net.au 5.4-RELEASE FreeBSD 5.4-RELEASE #1: Wed Nov 30 11:05:23 EST 2005 mjb@sphinx.clari.net.au:/work/src/sys/i386/compile/sphinx i386 All versions of Freebsd since at least 5.4. >Description: The usb_interrupt_read does not timeout when timout is requested with ioctl. This behaviour is not compatible with the behaviour expected by libusb. Libusb expects to get back a zero length read after a timeout. >How-To-Repeat: The bcmxcp_usb driver in ports sysutils/nut-usb hangs without the patch. >Fix: This pr is a duplicate of usb/109959 because it appears to be inaccessible. This patch relates to the same problem described in usb/94311, however, the patch contained in that PR is not compatible with the existing libusb's expectations. The following patch is applied to src/sys/dev/usb/ugen.c --- ugen.c.orig Tue Mar 6 13:36:15 2007 +++ ugen.c Tue Mar 6 09:56:20 2007 @@ -740,11 +740,17 @@ } sce->state |= UGEN_ASLP; DPRINTFN(5, ("ugenread: sleep on %p\n", sce)); - error = tsleep(sce, PZERO | PCATCH, "ugenri", 0); + error = tsleep(sce, PZERO | PCATCH, "ugenri", sce->timeout); sce->state &= ~UGEN_ASLP; DPRINTFN(5, ("ugenread: woke, error=%d\n", error)); if (sc->sc_dying) error = EIO; + /* we timed out - return 0 bytes */ + if (error == EAGAIN) + { + error = 0; + break; + } if (error) break; } >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu Mar 8 16:50:01 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 793E616A400 for ; Thu, 8 Mar 2007 16:50:01 +0000 (UTC) (envelope-from jwalsh@atl.lmco.com) Received: from enterprise.atl.lmco.com (mail.atl.external.lmco.com [192.35.37.50]) by mx1.freebsd.org (Postfix) with ESMTP id 5112C13C4A5 for ; Thu, 8 Mar 2007 16:50:01 +0000 (UTC) (envelope-from jwalsh@atl.lmco.com) Received: from [166.17.242.101] (brielle [166.17.242.101]) by enterprise.atl.lmco.com (Postfix) with ESMTP id 87976C198; Thu, 8 Mar 2007 11:31:40 -0500 (EST) Message-ID: <45F03A6C.2070304@atl.lmco.com> Date: Thu, 08 Mar 2007 11:31:40 -0500 From: Jonathan Walsh User-Agent: Thunderbird 1.5.0.8 (X11/20061025) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: jwalsh@atl.lmco.com Subject: FreeBSD Hang on Optiplex 320 (problem number 91906 question) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Mar 2007 16:50:01 -0000 I am trying to install FreeBSD6.2 on an Optiplex 320, after Googling a bit I see that several other people have has similar problems with USB keyboards causing a hang on boot if plugged in. If I leave the keyboard unplugged during that phase of the boot up, then plug it in afterwards, booting completes but they keyboard does not work. These are exactly the same symptoms as reported by others. I see there was a bug report about the issue submitted in January, #91906. I was wondering if there was any idea on if/when this issue would be resolved, or even if there is work ongoing on a fix at this time. Thanks, -Jonathan Walsh Associate Member Engineering Staff Lockheed Martin Advanced Technology Laboratories From owner-freebsd-usb@FreeBSD.ORG Fri Mar 9 09:30:04 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 41E3E16A404 for ; Fri, 9 Mar 2007 09:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 1C9A013C461 for ; Fri, 9 Mar 2007 09:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l299U3rs089233 for ; Fri, 9 Mar 2007 09:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l299U3f7089232; Fri, 9 Mar 2007 09:30:03 GMT (envelope-from gnats) Resent-Date: Fri, 9 Mar 2007 09:30:03 GMT Resent-Message-Id: <200703090930.l299U3f7089232@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, Maurice Castro Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B342116A401 for ; Fri, 9 Mar 2007 09:28:29 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 9C7A013C46B for ; Fri, 9 Mar 2007 09:28:29 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l299SS2k077669 for ; Fri, 9 Mar 2007 09:28:28 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l299SSgR077668; Fri, 9 Mar 2007 09:28:28 GMT (envelope-from nobody) Message-Id: <200703090928.l299SSgR077668@www.freebsd.org> Date: Fri, 9 Mar 2007 09:28:28 GMT From: Maurice Castro To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: usb/110122: usb_interrupt_read does not respect timeout X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2007 09:30:04 -0000 >Number: 110122 >Category: usb >Synopsis: usb_interrupt_read does not respect timeout >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 09 09:30:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Maurice Castro >Release: 6.2-Release etc >Organization: Clarinet Internet Solutions >Environment: FreeBSD mud.clari.net.au 6.2-RC1 FreeBSD 6.2-RC1 #2: Tue Mar 6 09:56:42 EST 2007 root@mud.clari.net.au:/usr/src/sys/i386/compile/USB i386 >Description: usb_interrupt_read does not respect timeouts. This is necessary for the correct operation of libusb. The attached patch returns a zero length read after a timeout. This is consistent with the behaviour expected by libusb. This PR replaces to broken reports: usb/109959 usb/110031 The problem exists in all versions of FreeBSD up to 6.2 and possibly NetBSD and OpenBSD. >How-To-Repeat: The problem is easily reproduced. The bcmxcp_usb driver freezes on initialisation without the patch as the call to usb_interrupt_read never returns. >Fix: The patch applies src/sys/dev/usb/ugen.c Patch attached with submission follows: --- ugen.c.orig Tue Mar 6 13:36:15 2007 +++ ugen.c Tue Mar 6 09:56:20 2007 @@ -740,11 +740,17 @@ } sce->state |= UGEN_ASLP; DPRINTFN(5, ("ugenread: sleep on %p\n", sce)); - error = tsleep(sce, PZERO | PCATCH, "ugenri", 0); + error = tsleep(sce, PZERO | PCATCH, "ugenri", sce->timeout); sce->state &= ~UGEN_ASLP; DPRINTFN(5, ("ugenread: woke, error=%d\n", error)); if (sc->sc_dying) error = EIO; + /* we timed out - return 0 bytes */ + if (error == EAGAIN) + { + error = 0; + break; + } if (error) break; } >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri Mar 9 21:41:36 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8A75C16A401 for ; Fri, 9 Mar 2007 21:41:36 +0000 (UTC) (envelope-from marc+freebsdusb@milestonerdl.com) Received: from tandem.milestonerdl.com (tandem.milestonerdl.com [204.107.138.1]) by mx1.freebsd.org (Postfix) with ESMTP id 53C3313C4A7 for ; Fri, 9 Mar 2007 21:41:36 +0000 (UTC) (envelope-from marc+freebsdusb@milestonerdl.com) Received: from tandem.milestonerdl.com (localhost [127.0.0.1]) by tandem.milestonerdl.com (8.13.8/8.13.8) with ESMTP id l29KrMq9025816 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NOT) for ; Fri, 9 Mar 2007 14:53:22 -0600 (CST) (envelope-from marc+freebsdusb@milestonerdl.com) Received: (from marc@localhost) by tandem.milestonerdl.com (8.13.8/8.13.6/Submit) id l29KqXr5025814 for freebsd-usb@freebsd.org; Fri, 9 Mar 2007 14:52:33 -0600 (CST) (envelope-from marc+freebsdusb@milestonerdl.com) Date: Fri, 9 Mar 2007 14:52:33 -0600 (CST) From: marc+freebsdusb@milestonerdl.com Message-Id: <200703092052.l29KqXr5025814@tandem.milestonerdl.com> X-Authentication-Warning: tandem.milestonerdl.com: marc set sender to marc+freebsdusb@milestonerdl.com using -f X-Virus-Scanned: by amavisd-new To: undisclosed-recipients:; X-Mailman-Approved-At: Fri, 09 Mar 2007 22:44:12 +0000 Subject: CanoScan N650U / xsane /FreeBSD 6.2-CURRENT X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2007 21:41:36 -0000 I am trying to get a Cannon CanoScan N 650U working on FreeBSD 6.2-CURRENT. The scanner SEEMS to be seen, but normal VS root shows a difference. As a mortal User: $ sane-find-scanner -q found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0 As root lap# sane-find-scanner -q found USB scanner (vendor=0x04a9, product=0x2206) at /dev/uscanner0 lap# scanimage -L No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation lap# kldstat Id Refs Address Size Name 1 17 0xc0400000 714dc4 kernel 2 2 0xc0b15000 22c48 sound.ko 3 1 0xc0b38000 9958 snd_uaudio.ko 4 1 0xc0b42000 598bc acpi.ko 5 2 0xc376b000 9000 ibcs2.ko 6 1 0xc3776000 3000 ibcs2_coff.ko 7 2 0xc3779000 16000 linux.ko 8 1 0xc39df000 3000 daemon_saver.ko 9 1 0xc3dea000 6000 linprocfs.ko lap# Xsane configs $ grep -v ^# /usr/local/etc/sane.d/plustek.conf | grep -v option device /dev/uscanner0 usb 0x04a9 0x2206 $ grep plustek /usr/local/etc/sane.d/dll.conf plustek #plustek_pp $ So what did I miss?