From owner-freebsd-usb@FreeBSD.ORG Sun Jan 8 15:58:20 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3A98106566C for ; Sun, 8 Jan 2012 15:58:20 +0000 (UTC) (envelope-from freebsd@chillt.de) Received: from dd28124.kasserver.com (dd28124.kasserver.com [85.13.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id 586BD8FC0C for ; Sun, 8 Jan 2012 15:58:20 +0000 (UTC) Received: from taiko.lan (82.131.56.111.cable.starman.ee [82.131.56.111]) by dd28124.kasserver.com (Postfix) with ESMTPSA id BE2FE1D8004D; Sun, 8 Jan 2012 16:58:18 +0100 (CET) Message-ID: <4F09BD0E.5090606@chillt.de> Date: Sun, 08 Jan 2012 17:58:06 +0200 From: Bartosz Fabianowski User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111227 Thunderbird/9.0 MIME-Version: 1.0 To: Hans Petter Selasky , freebsd-current@freebsd.org, freebsd-usb@freebsd.org, poyopoyo@puripuri.plala.or.jp References: <4EF9D06C.9060501@chillt.de> <201201031726.03885.hselasky@c2i.net> <4F03317D.6080702@chillt.de> <201201031815.32624.hselasky@c2i.net> <86r4zagqyv.wl%sf@FreeBSD.org> In-Reply-To: <86r4zagqyv.wl%sf@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: umass regression 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, 08 Jan 2012 15:58:20 -0000 Interesting timing. I am just in the middle of a debug session to try and debug this. I know nothing about umass and/or SCSI, so it is all one big learning experience for me. Here is what I am seeing (snippets from [1]): * SCSI command "REPORT LUNS" is sent: 55 53 42 43 03 00 00 00 18 00 00 00 80 00 0C A0 00 00 00 00 00 00 00 00 18 00 00 00 00 00 00 * List of LUNs is received: 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 This list contains exactly two LUNs, 0 and 1. The list is then processed by scsi_xpt.c. After reading the first entry, LUN 0 is scanned and da0 created. Then, the next entry is read. And something seems to go wrong here. The debug output I get is: cam_debug: next lun to try at index 1 is 0 IMHO, this should not be. The entry at index 1 is LUN 1, not LUN 0. It seems that instead of scanning LUN 0 and LUN 1, the code ends up scanning LUN 0 twice. I have no idea why though. - Bartosz From owner-freebsd-usb@FreeBSD.ORG Sun Jan 8 15:59:18 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54D88106566B for ; Sun, 8 Jan 2012 15:59:18 +0000 (UTC) (envelope-from freebsd@chillt.de) Received: from dd28124.kasserver.com (dd28124.kasserver.com [85.13.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id BA0B88FC08 for ; Sun, 8 Jan 2012 15:59:17 +0000 (UTC) Received: from taiko.lan (82.131.56.111.cable.starman.ee [82.131.56.111]) by dd28124.kasserver.com (Postfix) with ESMTPSA id B47C81D805D1; Sun, 8 Jan 2012 16:59:16 +0100 (CET) Message-ID: <4F09BD48.10808@chillt.de> Date: Sun, 08 Jan 2012 17:59:04 +0200 From: Bartosz Fabianowski User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111227 Thunderbird/9.0 MIME-Version: 1.0 To: Hans Petter Selasky , freebsd-current@freebsd.org, freebsd-usb@freebsd.org, poyopoyo@puripuri.plala.or.jp References: <4EF9D06C.9060501@chillt.de> <201201031726.03885.hselasky@c2i.net> <4F03317D.6080702@chillt.de> <201201031815.32624.hselasky@c2i.net> <86r4zagqyv.wl%sf@FreeBSD.org> <4F09BD0E.5090606@chillt.de> In-Reply-To: <4F09BD0E.5090606@chillt.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: umass regression 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, 08 Jan 2012 15:59:18 -0000 I managed to snip out the link I was referring to, here it is: [1] http://www.fabianowski.eu/garmin_dakota_20_attach.usbdump From owner-freebsd-usb@FreeBSD.ORG Sun Jan 8 15:21:31 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34734106566B; Sun, 8 Jan 2012 15:21:31 +0000 (UTC) (envelope-from sf@FreeBSD.org) Received: from msa02b.plala.or.jp (msa02.plala.or.jp [IPv6:2400:7800:0:5010::2]) by mx1.freebsd.org (Postfix) with ESMTP id 780A58FC12; Sun, 8 Jan 2012 15:21:30 +0000 (UTC) Received: from i58-94-79-87.s02.a026.ap.plala.or.jp ([58.94.79.87]) by msa02b.plala.or.jp with ESMTP id <20120108152129.MEVV16800.msa02b.plala.or.jp@i58-94-79-87.s02.a026.ap.plala.or.jp>; Mon, 9 Jan 2012 00:21:29 +0900 Date: Mon, 09 Jan 2012 00:21:28 +0900 Message-ID: <86r4zagqyv.wl%sf@FreeBSD.org> From: poyopoyo@puripuri.plala.or.jp To: Hans Petter Selasky In-Reply-To: <201201031815.32624.hselasky@c2i.net> References: <4EF9D06C.9060501@chillt.de> <201201031726.03885.hselasky@c2i.net> <4F03317D.6080702@chillt.de> <201201031815.32624.hselasky@c2i.net> Mail-Followup-To: Hans Petter Selasky , Bartosz Fabianowski , freebsd-current@freebsd.org, freebsd-usb@freebsd.org User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29qGyQoRCtXGyhC?=) APEL/10.8 Emacs/23.3 (amd64-portbld-freebsd9.9) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-VirusScan: Outbound; msa02b; Mon, 9 Jan 2012 00:21:29 +0900 X-Mailman-Approved-At: Sun, 08 Jan 2012 16:39:20 +0000 Cc: Bartosz Fabianowski , freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: umass regression 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, 08 Jan 2012 15:21:31 -0000 At Tue, 3 Jan 2012 18:15:32 +0100, Hans Petter Selasky wrote: > The following transaction shows that the device supports two luns. I suspect > that there is a miscommunication between UMASS and CAM layer. Hi, I have posted about the same issue some days ago to -scsi@. http://docs.FreeBSD.org/cgi/mid.cgi?86r4zkx50t.wl%poyopoyo To: FreeBSD-scsi@FreeBSD.org Subject: Garmin Edge705: LUN1 of umass device not recognized I follow your suspicion as I figured out this regression happened at r208911, modification to LUN discovery code. -- kuro From owner-freebsd-usb@FreeBSD.ORG Sun Jan 8 16:55:25 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3241B1065673; Sun, 8 Jan 2012 16:55:25 +0000 (UTC) (envelope-from freebsd@chillt.de) Received: from dd28124.kasserver.com (dd28124.kasserver.com [85.13.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id E392A8FC13; Sun, 8 Jan 2012 16:55:24 +0000 (UTC) Received: from taiko.lan (82.131.56.111.cable.starman.ee [82.131.56.111]) by dd28124.kasserver.com (Postfix) with ESMTPSA id 947681D801F4; Sun, 8 Jan 2012 17:55:23 +0100 (CET) Message-ID: <4F09CA6E.5090802@chillt.de> Date: Sun, 08 Jan 2012 18:55:10 +0200 From: Bartosz Fabianowski User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111227 Thunderbird/9.0 MIME-Version: 1.0 To: Hans Petter Selasky , freebsd-current@freebsd.org, freebsd-usb@freebsd.org, poyopoyo@puripuri.plala.or.jp References: <4EF9D06C.9060501@chillt.de> <201201031726.03885.hselasky@c2i.net> <4F03317D.6080702@chillt.de> <201201031815.32624.hselasky@c2i.net> <86r4zagqyv.wl%sf@FreeBSD.org> <4F09BD0E.5090606@chillt.de> In-Reply-To: <4F09BD0E.5090606@chillt.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: umass regression 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, 08 Jan 2012 16:55:25 -0000 Looking into this further, I think that the issue is down to Garmin devices supplying incorrect information. In reply to the SCSI INQUIRY command, the HISUP bit is not set. This means that single level LUN structure is used (which appears to be all that FreeBSD supports anyway). Consequently, the second LUN should be of the form: 00 01 00 00 00 00 00 00 Instead, the device reports a second LUN of: 00 00 00 00 00 00 00 01 This is invalid as it uses all four addressing levels, not the single level LUN structure. I think a quirk will be needed here, for example one that ignores the list entries and looks at the length of the list only, assuming that for a list of length n, the LUNs will be 0, 1, 2, ..., n - 1. - Bartosz From owner-freebsd-usb@FreeBSD.ORG Sun Jan 8 19:07:12 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEFB0106566B; Sun, 8 Jan 2012 19:07:12 +0000 (UTC) (envelope-from freebsd@chillt.de) Received: from dd28124.kasserver.com (dd28124.kasserver.com [85.13.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id 6BA8E8FC0C; Sun, 8 Jan 2012 19:07:12 +0000 (UTC) Received: from taiko.lan (82.131.56.111.cable.starman.ee [82.131.56.111]) by dd28124.kasserver.com (Postfix) with ESMTPSA id F34981D80297; Sun, 8 Jan 2012 20:07:10 +0100 (CET) Message-ID: <4F09E951.4080703@chillt.de> Date: Sun, 08 Jan 2012 21:06:57 +0200 From: Bartosz Fabianowski User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111227 Thunderbird/9.0 MIME-Version: 1.0 To: Hans Petter Selasky , freebsd-current@freebsd.org, freebsd-usb@freebsd.org, poyopoyo@puripuri.plala.or.jp References: <4EF9D06C.9060501@chillt.de> <201201031726.03885.hselasky@c2i.net> <4F03317D.6080702@chillt.de> <201201031815.32624.hselasky@c2i.net> <86r4zagqyv.wl%sf@FreeBSD.org> <4F09BD0E.5090606@chillt.de> <4F09CA6E.5090802@chillt.de> In-Reply-To: <4F09CA6E.5090802@chillt.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: umass regression 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, 08 Jan 2012 19:07:12 -0000 Replying to myself one last time, the kind of quirk I was thinking of actually does exist already. It is called CAM_QUIRK_NORPTLUNS. Enabling this quirk fixes the issue for me - both LUNs are detected and two umass devices appear. I submitted a patch in the following PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=163932 Thanks for the pointers and discussion that led to this solution. - Bartosz From owner-freebsd-usb@FreeBSD.ORG Sun Jan 8 20:25:41 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C1AA10657B5; Sun, 8 Jan 2012 20:25:41 +0000 (UTC) (envelope-from poyopoyo@puripuri.plala.or.jp) Received: from msa04a.plala.or.jp (msa04.plala.or.jp [IPv6:2400:7800:0:5010::4]) by mx1.freebsd.org (Postfix) with ESMTP id C23FC8FC08; Sun, 8 Jan 2012 20:25:40 +0000 (UTC) Received: from i219-167-119-49.s02.a026.ap.plala.or.jp ([219.167.119.49]) by msa04b.plala.or.jp with ESMTP id <20120108201400.ERLP10746.msa04b.plala.or.jp@i219-167-119-49.s02.a026.ap.plala.or.jp>; Mon, 9 Jan 2012 05:14:00 +0900 Date: Mon, 09 Jan 2012 05:14:00 +0900 Message-ID: <86d3aukl4n.wl%poyopoyo@puripuri.plala.or.jp> From: poyopoyo@puripuri.plala.or.jp To: Bartosz Fabianowski In-Reply-To: <4F09E951.4080703@chillt.de> References: <4EF9D06C.9060501@chillt.de> <201201031726.03885.hselasky@c2i.net> <4F03317D.6080702@chillt.de> <201201031815.32624.hselasky@c2i.net> <86r4zagqyv.wl%sf@FreeBSD.org> <4F09BD0E.5090606@chillt.de> <4F09CA6E.5090802@chillt.de> <4F09E951.4080703@chillt.de> Mail-Followup-To: Bartosz Fabianowski , Hans Petter Selasky , freebsd-current@freebsd.org, freebsd-usb@freebsd.org, poyopoyo@puripuri.plala.or.jp User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29qGyQoRCtXGyhC?=) APEL/10.8 Emacs/23.3 (amd64-portbld-freebsd9.9) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-VirusScan: Outbound; msa04b; Mon, 9 Jan 2012 05:14:01 +0900 X-Mailman-Approved-At: Mon, 09 Jan 2012 01:16:10 +0000 Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: umass regression 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, 08 Jan 2012 20:25:41 -0000 At Sun, 08 Jan 2012 21:06:57 +0200, Bartosz Fabianowski wrote: > > Replying to myself one last time, the kind of quirk I was thinking of > actually does exist already. It is called CAM_QUIRK_NORPTLUNS. Enabling > this quirk fixes the issue for me - both LUNs are detected and two umass > devices appear. > > I submitted a patch in the following PR: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=163932 Hi, I now aware of why my da1 did not appear once I tried this quirk the other day; I set it FIXED device. It should be REMOVABLE device as yours. ugen0.5: at usbus0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x4000 umass0:10:0:-1: Attached to scbus10 da0 at umass-sim0 bus 0 scbus10 target 0 lun 0 da0: Removable Direct Access SCSI-5 device da0: 1.000MB/s transfers da0: 976MB (1998848 512 byte sectors: 64H 32S/T 976C) da1 at umass-sim0 bus 0 scbus10 target 0 lun 1 da1: Removable Direct Access SCSI-5 device da1: 1.000MB/s transfers da1: 1910MB (3911680 512 byte sectors: 255H 63S/T 243C) > Thanks for the pointers and discussion that led to this solution. Thank you very much. Great analysis. -- kuro From owner-freebsd-usb@FreeBSD.ORG Mon Jan 9 11:07:16 2012 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D6D7106566C for ; Mon, 9 Jan 2012 11:07:16 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4A7408FC0A for ; Mon, 9 Jan 2012 11:07:16 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q09B7Gug042346 for ; Mon, 9 Jan 2012 11:07:16 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q09B7FVC042344 for freebsd-usb@FreeBSD.org; Mon, 9 Jan 2012 11:07:15 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 9 Jan 2012 11:07:15 GMT Message-Id: <201201091107.q09B7FVC042344@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jan 2012 11:07:16 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/163732 usb Patch for BUFFALO WLI-UC-GNM (USB WLAN) o usb/163328 usb Hardware o kern/163091 usb [panic] Fatal trap 12: page fault while in kernel mode o usb/162712 usb added device on if_run. o usb/162306 usb usb devices cant get address asignation, no memories, o usb/162054 usb usbdump just hangs on 9.0-RC1 o usb/161793 usb poor EHCI usb2 i/o performance o usb/160911 usb The usb flash drive JetFlash Transcend 16GB 1100 doesn o usb/160436 usb ucom wedges machine on parity error ? o usb/160299 usb MicroSDHC-to-USB adapters do not work in FreeBSD 8.x o usb/160192 usb [install] Installation from USB-Stick doesn't find the o usb/159274 usb USB 3.0 Etron EJ168A does not work. f usb/159191 usb [fusefs-ntfs] write on fusefs-ntfs mounted partition r o usb/157376 usb LaCie USB disk not recognized o usb/157074 usb [boot] [usb8] vfs_mountroot_ask is called when no usb o usb/156898 usb [keyboard] usb keyboard does not work while boot (ps2 o usb/156735 usb Need Quirk for Goflex USB Disk Drives o usb/156725 usb USB stack stall cause complete system input loss o usb/156596 usb [ehci] Extremely high interrupt rate on ehci/uhci IRQ1 o usb/156000 usb rum(4) Fatal trap 18: integer divide fault while in ke o usb/155996 usb NanoBSD not booted as Disk o usb/155784 usb Problem with Transcend StoreJet 25M3 (2AJ1) on Asus M2 o usb/154710 usb [ugen] Conexant USB Modem is not working in 8.x. In 7. o usb/154506 usb [umass] Copying dir with large files makes FreeBSD loa o usb/154192 usb [umass] In Garmin Oregon GPS, only the first umass dev o i386/153851 usb [keyboard] keyboard issues on new Intel Mother boards. o usb/153703 usb [keyboard] My USB keyboard can not be used in 8-STABLE o usb/153609 usb [zyd] [panic] kernel: Fatal trap 12: page fault while o usb/153149 usb [umass] USB stick quirk regression [regression] o usb/152075 usb [usb8] [ehci] [request] Add quirk for CS5536 USB o usb/150892 usb [zyd] Whenever network contacted in any shape, way or o usb/150189 usb [run] [usb8] [patch] if_run appears to corrupt IP traf p usb/149934 usb [patch] [usb8] Transcend JetFlash V85 poor performance p usb/149900 usb [uftdi] [patch] FreeBSD 8.1 uftdi patch to support usb p usb/149764 usb [u3g] [patch] usbdevs update: Huawei K3765 3G modem o usb/149283 usb [uftdi] avrdude unable to talk to Arduino board (via u o usb/149162 usb [ural] ASUS WL-167g doesn't work in 8.1 (continue of 1 s usb/148702 usb [usb8] [request] IO DATA USB-RSAQ5 support on FreeBSD- o usb/148080 usb usbconfig(8) sometimes does not turn off the device o usb/147516 usb [umass] [usb67] kernel unable to deal with Olympus USB o i386/147475 usb [install] FreeBSD 8.x does not install on ASUS K8N4-E p usb/146871 usb [usbdevs] [usb8] [patch] provide descriprive string fo o usb/146840 usb [hang] FreeBSD 7.2 / 7.3 / 8.0 hang at startup after e o usb/146153 usb [axe] [usb8] Hosts in network doesn't receive any pack f usb/146054 usb [urtw] [usb8] urtw driver potentially out of date f usb/145513 usb [usb8] New USB stack: no new devices after forced usb p usb/145455 usb [usb8] [patch] USB debug support cannot be disabled o usb/145415 usb [umass] [usb8] USB card reader does not create slices a usb/145184 usb GENERIC can't mount root from USB on Asus EEE o usb/145165 usb [keyboard] [usb8] ukbd_set_leds_callback: error=USB_ER f kern/144938 usb [keyboard] [boot] Boot Failure with Apple (MB869LL/A) o usb/144387 usb [run] [panic] if_run panic o usb/144043 usb [umass] [usb8] USB DLT tape drive throws random errors a usb/143790 usb [boot] [cam] can not boot from usb hdd f usb/143620 usb [cdce] [usb8] the module if_cdce doesn't support my Op f usb/143294 usb [usb8] copying process stops at some time (10 - 50 sec o usb/143286 usb [ukbd] [usb8] [boot] boot failures on RELENG_8 system p usb/143186 usb [usbdevs] [usb8] [patch] add USB device IDs for Google a usb/143139 usb [umass] [usb8] [patch] Quirk for Century EX35SW4_SB4 J p usb/143045 usb [umass] [usb8] [patch] mounting Fujitsu 2600Z camera d o usb/142991 usb [uftdi] [usb67] [patch] Patch to add Crystalfontz 533 f usb/142989 usb [usb8] canon eos 50D attaches but detaches after few s f usb/142957 usb [umass] [usb8] [patch] patch for USB disk SYNCHRONIZE o usb/142719 usb [urtw] [usb8] AirLive WL-1600USB (RTL8187L chipset) fa o usb/142713 usb [usb67] [panic] Kernel Panik when connecting an IPhone f usb/142276 usb [umass] [usb8] Cache Synchronization Error with Olympu o usb/142229 usb [ums] [usb8] [hang] connecting a USB mouse to a Dell P f usb/141680 usb [uath] [usb8] Netgear WG111T not working with uath dri o usb/141664 usb [pcm] [usb8] Logitech USB microphone failure [regressi o usb/141474 usb [boot] [usb8] FreeBSD 8.0 can not install from USB CDR o usb/141327 usb [ukbd] [usb67] USB kbd not working with 7.1+PAE on IBM o usb/141212 usb [ukbd] [usb8] ukbd_set_leds_callback:700: error=USB_ER o kern/141011 usb [usb8] Encrypted root, geli password at boot; enter ke o usb/140920 usb [install] [usb8] USB based install fails on 8.0-RELEAS o usb/140893 usb [urtw] [usb8] WPA2 not working on rtl8187b o kern/140849 usb [ums] [usb8] USB mouse doesn't work under FreeBSD 8.0- a usb/140810 usb [uftdi] [usb8] 8.X copy and paste problem / tty overfl o usb/140477 usb [umass] [usb8] [patch] allow boot-time attachment of d o usb/140236 usb [msdosfs] [usb8] Labels wiped on external Journaled US o usb/140160 usb [usb8] [acpi] USB ports are no longer "active" after A s usb/139990 usb [panic] [patch] [usb67] Kernel frequently panics after o usb/139243 usb [uhci] [usb67] unplug prolific USB serial -> uhci_abor f usb/138882 usb [ohci] [panic] [usb67] Can't install FreeBSD 7.2 due t o usb/138798 usb [boot] [usb8] 8.0-BETA4 can't boot from USB flash driv o usb/138659 usb [usb8][uftdi] driver broken in RELENG_8/CURRENT o usb/138175 usb [usb67] [boot] System cannot boot, when USB reader wit o usb/138124 usb [snd_uaudio] [usb8] Axed uaudio functionality in the u o usb/138119 usb [usb67] [usb8] MultiBay CDROM (probably on USB bus) is f usb/137872 usb [usb67] [boot] slow booting on usb flash drive o usb/137806 usb [ukbd] [usb67] USB keyboard doesn't work until it's un o usb/137763 usb [usb67][ukbd] Logitech wireless keyboard media keys no o usb/137377 usb [usb8] request support for Huawei E180 o usb/137341 usb [usb8][rum] driver if_rum doesn't work at all and thro f usb/137190 usb [usb8][patch] inhibit spurious button releases for som o usb/137189 usb [usb8][patch] create and use sysctl nodes for HID repo p usb/137188 usb [usb8][patch] correctly handle USB report descriptors o usb/137129 usb [ums] [usb8] SteelSeries Ikari USB laser mouse not att o usb/135938 usb [aue] [usb67] aue driver only passes traffic in promis o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa o usb/135206 usb machine reboots when inserted USB device f usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/134950 usb Lowering DTR for USB-modem via ubsa is not possible o usb/134299 usb Kernel Panic plugging in MF626 USB UMTS Stick u3g o usb/134193 usb System freeze on usb MP3 player insertion o usb/134085 usb [umass] Adding usb quirk for Sony USB flash drive o usb/133989 usb [usb8] [ukbd] USB keyboard dead at mountroot> prompt o usb/133712 usb [ural] [patch] RE: Fixed an issue with ural(4) that wa o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb [rum] driver not working properly in hostap mode o usb/132594 usb USB subsystem causes page fault and crashes o usb/132080 usb [patch] [usb] [rum] [panic] Kernel panic after NOMEM c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130230 usb [patch] [quirk] [usb67] [usb] [cam] [umass] Samsung El o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [usb8] DVD drive detects as 'da' device f usb/129766 usb [usb] [panic] plugging in usb modem HUAWEI E226 panics o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb67] [patch] uaudio is not full duplex p usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive o usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/127926 usb [boot] USB Timeout during bootup s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should o usb/127342 usb [boot] [panic] enabling usb keyboard and mouse support o usb/127248 usb [ucom] panic while uplcom devices attach and detach o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c o usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d f usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o kern/124130 usb [usb] gmirror fails to start usb devices that were pre o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa s usb/122819 usb [usb67] [patch] Patch to provide dynamic additions to o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121275 usb [boot] [panic] FreeBSD fails to boot with usb legacy s o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS f usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [snd_uaudio] [patch] Not possible to record with Plant o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a p usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [usb67] [usb8] [umass] [patch] Problem with connection o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113060 usb [usb67] [ulpt] [patch] Samsung printer not working in o usb/110856 usb [usb67] [ugen] [patch] interrupt in msgs are truncated o usb/107827 usb [usb67] [ohci] [panic] ohci_add_done addr not found o usb/107388 usb [usb67] [usb8] [new driver] [patch] add utoppy device o usb/106041 usb [usb67] [usb8] [request] FreeBSD does not recognise Mu s usb/103917 usb [usb67] [uhub] USB driver reports "Addr 0 should never o usb/103418 usb [usb67] [usb8] [patch] [request] usbhidctl(8) add abil o usb/103046 usb [usb67] [ulpt] [patch] ulpt event driven I/O with sele o usb/100746 usb [usb67] [ukbd] system does not boot due to USB keyboar o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o kern/99200 usb [usb67] SMP-Kernel crashes reliably when Bluetooth con o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg f usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. f usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails f usb/80040 usb [sound] [hang] Use of sound mixer causes system freeze o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/78984 usb [umass] [patch] Creative MUVO umass failure f usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device f usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for f usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) f usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 297 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Jan 9 23:46:55 2012 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E9B91065678 for ; Mon, 9 Jan 2012 23:46:55 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id E668F8FC12 for ; Mon, 9 Jan 2012 23:46:54 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 23B8B7300A; Tue, 10 Jan 2012 00:48:02 +0100 (CET) Date: Tue, 10 Jan 2012 00:48:02 +0100 From: Luigi Rizzo To: usb@freebsd.org Message-ID: <20120109234802.GA82361@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: wacom and x11 and webcamd 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, 09 Jan 2012 23:46:55 -0000 i recently decided to check how well the wacom tablets are supported under FreeBSD-x11. This post is mostly a followup to http://lists.freebsd.org/pipermail/freebsd-usb/2011-October/010681.html and tries to give extra information on how to address common problems. In short, recent webcamd versions implement a linux module which makes the tablet available as /dev/input/event0 so you don't need any specific usb driver. In turn, xorg uses the wacom_drv.so module to access these events and convert them to a suitable format. I used the webcamd version from Hans' tree svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b/trunk/ports which is currently at version 3.2.0.1 , and the inputwacom patches at http://people.freebsd.org/~nox/tmp/inputwacom.patch The patch applies cleanly; at build time you should leave the usb support not selected (because uwacom does not compile and probably it is not necessary, either). I also left HAL disabled in building inputwacom, following a comment in the original post. Before running /usr/local/etc/rc.d/wacom onesetup remember to set wacom_porttype="usb" # lowercase, not uppercase) wacom_types="stylus eraser" in /etc/rc.conf and also replace "/dev/event0" with "/dev/input/event0" in /usr/local/etc/rc.d/wacom so that the correct entries are created in xorg.conf The proper sequence of actions is the following: - connect the tablet to the USB port (I tried a recent Bamboo touch and an old Wacom FT-0405 (Volito); both worked). The tablet identifies as a USB mouse and a uhid device. The mouse is possibly picked up by moused, so you should either kill moused on the tablet, or make sure that it is not recognised, or the events from the mouse will interfere with those from wacom_drv - start webcamd (either manually or automatically) . This creates /dev/input/event0 which is accessed by wacom_drv - start the X server. The tablet should be recognised and work in absolute coordinates. I found that by default the table is way too sensitive to pressure, so just approaching the tablet with the pen triggers a button pressure. You can set the threshold with the following user command (within X): xsetwacom --set stylus threshold 200 # range is 0..2047 I think you can also set the value from within xorg.conf Hope this helps... cheers luigi From owner-freebsd-usb@FreeBSD.ORG Tue Jan 10 09:45:09 2012 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C638106564A for ; Tue, 10 Jan 2012 09:45:09 +0000 (UTC) (envelope-from freebsd@chillt.de) Received: from dd28124.kasserver.com (dd28124.kasserver.com [85.13.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id 112868FC0C for ; Tue, 10 Jan 2012 09:45:08 +0000 (UTC) Received: from taiko.lan (82.131.56.111.cable.starman.ee [82.131.56.111]) by dd28124.kasserver.com (Postfix) with ESMTPSA id 5887C1D80097; Tue, 10 Jan 2012 10:29:55 +0100 (CET) Message-ID: <4F0C0504.7010608@chillt.de> Date: Tue, 10 Jan 2012 11:29:40 +0200 From: Bartosz Fabianowski User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111227 Thunderbird/9.0 MIME-Version: 1.0 To: Luigi Rizzo References: <20120109234802.GA82361@onelab2.iet.unipi.it> In-Reply-To: <20120109234802.GA82361@onelab2.iet.unipi.it> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: usb@freebsd.org Subject: Re: wacom and x11 and webcamd 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, 10 Jan 2012 09:45:09 -0000 > (because uwacom does not compile and probably it is not necessary, > either). Sadly, this is true. I did most of the changes required to make uwacom work with FreeBSD 8/9/10 but never quite finished that work. Real life and my PhD just got in the way too much :(. I noticed that webcamd supports the Linux Wacom driver now as well and have been wanting to try this out myself. I am especially curious whether it supports multiple input devices properly (stylus, eraser, puck, all via the same /dev/input/event0). If so, this should give FreeBSD the same level of Wacom tablet support as Linux has, out of the box, without the need for a dedicated driver. - Bartosz From owner-freebsd-usb@FreeBSD.ORG Tue Jan 10 20:11:51 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id B0AD51065672; Tue, 10 Jan 2012 20:11:51 +0000 (UTC) Date: Tue, 10 Jan 2012 20:11:51 +0000 From: Alexander Best To: freebsd-fs@freebsd.org, freebsd-usb@freebsd.org Message-ID: <20120110201151.GA23484@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Cc: Subject: issue with usb hdd and SU+J 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, 10 Jan 2012 20:11:51 -0000 can somebody help me with this issue? i'm running HEAD on amd64: 1) connect my usb hdd 2) mount it (/mnt/wd) 3) don't access it for a few hours 4) ls /mnt/wd returns nothing; doing ls or pwd from /mnt/wd returns ENXIO 5) unmount /mnt/wd succeeds 6) mount /mnt/wd fails then i did fsck /mnt/wd three times to be sure the drive didn't contain any errors: otaku% fsck /dev/ufs/wd ** /dev/ufs/wd USE JOURNAL? [yn] y ** SU+J Recovering /dev/ufs/wd ** Reading 33554432 byte journal from inode 4. RECOVER? [yn] y ** Building recovery table. ** Resolving unreferenced inode list. ** Processing journal entries. WRITE CHANGES? [yn] y ** 4 journal records in 1024 bytes for 12.50% utilization ** Freed 0 inodes (0 dirs) 0 blocks, and 0 frags. ***** FILE SYSTEM MARKED CLEAN ***** otaku% fsck /dev/ufs/wd ** /dev/ufs/wd USE JOURNAL? [yn] y ** SU+J Recovering /dev/ufs/wd Journal timestamp does not match fs mount time ** Skipping journal, falling through to full fsck ** Last Mounted on /mnt/wd ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 1420 files, 170686465 used, 69659704 free (304 frags, 8707425 blocks, 0.0% fragmentation) ***** FILE SYSTEM IS CLEAN ***** ***** FILE SYSTEM WAS MODIFIED ***** otaku% fsck /dev/ufs/wd ** /dev/ufs/wd USE JOURNAL? [yn] y ** SU+J Recovering /dev/ufs/wd Journal timestamp does not match fs mount time ** Skipping journal, falling through to full fsck ** Last Mounted on /mnt/wd ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 1420 files, 170686465 used, 69659704 free (304 frags, 8707425 blocks, 0.0% fragmentation) ***** FILE SYSTEM IS CLEAN ***** ***** FILE SYSTEM WAS MODIFIED ***** ...i found this umass error in my dmesg: (probe0:umass-sim0:0:0:1): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:1): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:1): SCSI status: Check Condition (probe0:umass-sim0:0:0:1): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code) ...and this lor witness warning: lock order reversal: 1st 0xfffffe006fb4fbd8 ufs (ufs) @ /usr/subversion-src/sys/kern/vfs_mount.c:1209 2nd 0xfffffe000dbaedb8 syncer (syncer) @ /usr/subversion-src/sys/kern/vfs_subr.c:2279 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b kdb_backtrace() at kdb_backtrace+0x39 witness_checkorder() at witness_checkorder+0x6c5 __lockmgr_args() at __lockmgr_args+0x382 vop_stdlock() at vop_stdlock+0x3c VOP_LOCK1_APV() at VOP_LOCK1_APV+0x42 _vn_lock() at _vn_lock+0x43 vputx() at vputx+0x140 dounmount() at dounmount+0x27f sys_unmount() at sys_unmount+0x251 amd64_syscall() at amd64_syscall+0x1f8 Xfast_syscall() at Xfast_syscall+0xfb --- syscall (22, FreeBSD ELF64, sys_unmount), rip = 0x80088ab8c, rsp = 0x7fffffffd2b8, rbp = 0x800c09098 --- cheers. alex ps: camcontrol devlist reports: at scbus0 target 0 lun 0 (pass0,ada0) at scbus1 target 0 lun 0 (pass1,ada1) at scbus2 target 0 lun 0 (pass2,cd0) at scbus6 target 0 lun 0 (da0,pass3) at scbus6 target 0 lun 1 (pass4) unfortunately camcontrol identify won't work with {da0,pass3,pass4}. nothing gets output and echo $? returns 1. this is the dmesg output when the drive gets attached: ugen3.3: at usbus3 umass0: on usbus3 da0 at umass-sim0 bus 0 scbus6 target 0 lun 0 da0: Fixed Direct Access SCSI-6 device da0: 40.000MB/s transfers da0: 953837MB (1953458176 512 byte sectors: 255H 63S/T 121597C) From owner-freebsd-usb@FreeBSD.ORG Thu Jan 12 18:00:33 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2DED1065673 for ; Thu, 12 Jan 2012 18:00:33 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7543B8FC12 for ; Thu, 12 Jan 2012 18:00:33 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0CI0XR2033066 for ; Thu, 12 Jan 2012 18:00:33 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0CI0XsZ033065; Thu, 12 Jan 2012 18:00:33 GMT (envelope-from gnats) Resent-Date: Thu, 12 Jan 2012 18:00:33 GMT Resent-Message-Id: <201201121800.q0CI0XsZ033065@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, Mike Marcos Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72A12106566B for ; Thu, 12 Jan 2012 17:59:30 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 61ECB8FC0C for ; Thu, 12 Jan 2012 17:59:30 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q0CHxUfX089773 for ; Thu, 12 Jan 2012 17:59:30 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q0CHxUhw089772; Thu, 12 Jan 2012 17:59:30 GMT (envelope-from nobody) Message-Id: <201201121759.q0CHxUhw089772@red.freebsd.org> Date: Thu, 12 Jan 2012 17:59:30 GMT From: Mike Marcos To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/164058: Lexar 8GB USB flash drive doesn't work by default 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, 12 Jan 2012 18:00:33 -0000 >Number: 164058 >Category: usb >Synopsis: Lexar 8GB USB flash drive doesn't work by default >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 12 18:00:33 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Mike Marcos >Release: 9.0-RELEASE >Organization: >Environment: FreeBSD goofy 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:15:25 UTC 2012 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Same issue as in usb/160911 ### dmesg after pugging in the usb stick ugen1.3: at usbus1 umass0: on usbus1 umass0: SCSI over Bulk-Only; quirks = 0x0100 umass0:2:0:-1: Attached to scbus2 No device was created. usbconfig: ugen1.3: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON >How-To-Repeat: plug in Lexar FireFly 8GB USB Stick >Fix: usbconfig -d 1.3 add_quirk UQ_MSC_NO_SYNC_CACHE usbconfig -d 1.3 reset then dmesg: da2 at umass-sim0 bus 0 scbus2 target 0 lun 0 da2: Removable Direct Access SCSI-0 device da2: 40.000MB/s transfers da2: 7648MB (15663104 512 byte sectors: 255H 63S/T 974C) >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri Jan 13 17:10:08 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3F571065673 for ; Fri, 13 Jan 2012 17:10:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 93E7F8FC13 for ; Fri, 13 Jan 2012 17:10:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0DHA8Hw002140 for ; Fri, 13 Jan 2012 17:10:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0DHA8cc002139; Fri, 13 Jan 2012 17:10:08 GMT (envelope-from gnats) Resent-Date: Fri, 13 Jan 2012 17:10:08 GMT Resent-Message-Id: <201201131710.q0DHA8cc002139@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, Mykhaylo Yehorov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C59A11065678 for ; Fri, 13 Jan 2012 17:05:29 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id B245C8FC17 for ; Fri, 13 Jan 2012 17:05:29 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q0DH5TaD030021 for ; Fri, 13 Jan 2012 17:05:29 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q0DH5Tko030020; Fri, 13 Jan 2012 17:05:29 GMT (envelope-from nobody) Message-Id: <201201131705.q0DH5Tko030020@red.freebsd.org> Date: Fri, 13 Jan 2012 17:05:29 GMT From: Mykhaylo Yehorov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/164090: [umodem] [patch] Add sysctl with ucom unit number 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, 13 Jan 2012 17:10:08 -0000 >Number: 164090 >Category: usb >Synopsis: [umodem] [patch] Add sysctl with ucom unit number >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jan 13 17:10:08 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Mykhaylo Yehorov >Release: FreeBSD 9.0-RELEASE >Organization: >Environment: FreeBSD atom.lan29.local 9.0-RELEASE FreeBSD 9.0-RELEASE #7: Fri Jan 13 15:18:21 EET 2012 mika@atom.lan29.local:/usr/obj/usr/src/sys/MINI_KVA384 i386 >Description: Now there is no easy way to determine which tty device file is used by an umodem device. With the following patch the umodem driver will create sysctl node dev.umodem.X.ucom. This sysctl will be helpful in devd scripts. >How-To-Repeat: >Fix: Patch attached with submission follows: --- orig/sys/dev/usb/serial/umodem.c 2011-11-11 06:20:22.000000000 +0200 +++ sys/dev/usb/serial/umodem.c 2012-01-03 13:06:14.371630639 +0200 @@ -169,6 +169,8 @@ uint8_t sc_cm_over_data; uint8_t sc_cm_cap; /* CM capabilities */ uint8_t sc_acm_cap; /* ACM capabilities */ + + int ucom_unit; }; static device_probe_t umodem_probe; @@ -412,6 +414,13 @@ } ucom_set_pnpinfo_usb(&sc->sc_super_ucom, dev); + sc->ucom_unit = sc->sc_super_ucom.sc_unit; + + SYSCTL_ADD_INT(device_get_sysctl_ctx(dev), + SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), + OID_AUTO, "ucom", CTLFLAG_RD, + &sc->ucom_unit, -1, "Attached ucom unit number"); + return (0); detach: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri Jan 13 20:56:21 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 02EFF106566C for ; Fri, 13 Jan 2012 20:56:21 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.c2i.net [212.247.154.34]) by mx1.freebsd.org (Postfix) with ESMTP id 56FBB8FC0A for ; Fri, 13 Jan 2012 20:56:19 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.4.2) with ESMTPA id 228659150; Fri, 13 Jan 2012 21:56:16 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 13 Jan 2012 21:54:01 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <201201131705.q0DH5Tko030020@red.freebsd.org> In-Reply-To: <201201131705.q0DH5Tko030020@red.freebsd.org> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201201132154.01815.hselasky@c2i.net> Cc: freebsd-gnats-submit@freebsd.org Subject: Re: usb/164090: [umodem] [patch] Add sysctl with ucom unit number 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, 13 Jan 2012 20:56:21 -0000 On Friday 13 January 2012 18:05:29 Mykhaylo Yehorov wrote: > >Number: 164090 > >Category: usb > >Synopsis: [umodem] [patch] Add sysctl with ucom unit number > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: change-request > >Submitter-Id: current-users > >Arrival-Date: Fri Jan 13 17:10:08 UTC 2012 > >Closed-Date: > >Last-Modified: > >Originator: Mykhaylo Yehorov > >Release: FreeBSD 9.0-RELEASE > >Organization: > > >Environment: > FreeBSD atom.lan29.local 9.0-RELEASE FreeBSD 9.0-RELEASE #7: Fri Jan 13 > 15:18:21 EET 2012 > mika@atom.lan29.local:/usr/obj/usr/src/sys/MINI_KVA384 i386 > > >Description: > Now there is no easy way to determine which tty device file is used by an > umodem device. With the following patch the umodem driver will create > sysctl node dev.umodem.X.ucom. This sysctl will be helpful in devd > scripts. > > >How-To-Repeat: > > >Fix: > Patch attached with submission follows: > > --- orig/sys/dev/usb/serial/umodem.c 2011-11-11 06:20:22.000000000 +0200 > +++ sys/dev/usb/serial/umodem.c 2012-01-03 13:06:14.371630639 +0200 > @@ -169,6 +169,8 @@ > uint8_t sc_cm_over_data; > uint8_t sc_cm_cap; /* CM capabilities */ > uint8_t sc_acm_cap; /* ACM capabilities */ > + > + int ucom_unit; > }; > > static device_probe_t umodem_probe; > @@ -412,6 +414,13 @@ > } > ucom_set_pnpinfo_usb(&sc->sc_super_ucom, dev); > > + sc->ucom_unit = sc->sc_super_ucom.sc_unit; > + > + SYSCTL_ADD_INT(device_get_sysctl_ctx(dev), > + SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), > + OID_AUTO, "ucom", CTLFLAG_RD, > + &sc->ucom_unit, -1, "Attached ucom unit number"); > + > return (0); > Hi, Could you patch ucom_set_pnpinfo_usb() instead, so that such a sysctl is created for all ucom devices, not only umodem? Can you explain a bit more how you use this information in your scripts? --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Jan 13 21:10:13 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15E5B106566B for ; Fri, 13 Jan 2012 21:10:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DEA308FC12 for ; Fri, 13 Jan 2012 21:10:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0DLACdw021922 for ; Fri, 13 Jan 2012 21:10:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0DLACkm021921; Fri, 13 Jan 2012 21:10:12 GMT (envelope-from gnats) Date: Fri, 13 Jan 2012 21:10:12 GMT Message-Id: <201201132110.q0DLACkm021921@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/164090: [umodem] [patch] Add sysctl with ucom unit number X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2012 21:10:13 -0000 The following reply was made to PR usb/164090; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Mykhaylo Yehorov , freebsd-gnats-submit@freebsd.org Subject: Re: usb/164090: [umodem] [patch] Add sysctl with ucom unit number Date: Fri, 13 Jan 2012 21:54:01 +0100 On Friday 13 January 2012 18:05:29 Mykhaylo Yehorov wrote: > >Number: 164090 > >Category: usb > >Synopsis: [umodem] [patch] Add sysctl with ucom unit number > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: change-request > >Submitter-Id: current-users > >Arrival-Date: Fri Jan 13 17:10:08 UTC 2012 > >Closed-Date: > >Last-Modified: > >Originator: Mykhaylo Yehorov > >Release: FreeBSD 9.0-RELEASE > >Organization: > > >Environment: > FreeBSD atom.lan29.local 9.0-RELEASE FreeBSD 9.0-RELEASE #7: Fri Jan 13 > 15:18:21 EET 2012 > mika@atom.lan29.local:/usr/obj/usr/src/sys/MINI_KVA384 i386 > > >Description: > Now there is no easy way to determine which tty device file is used by an > umodem device. With the following patch the umodem driver will create > sysctl node dev.umodem.X.ucom. This sysctl will be helpful in devd > scripts. > > >How-To-Repeat: > > >Fix: > Patch attached with submission follows: > > --- orig/sys/dev/usb/serial/umodem.c 2011-11-11 06:20:22.000000000 +0200 > +++ sys/dev/usb/serial/umodem.c 2012-01-03 13:06:14.371630639 +0200 > @@ -169,6 +169,8 @@ > uint8_t sc_cm_over_data; > uint8_t sc_cm_cap; /* CM capabilities */ > uint8_t sc_acm_cap; /* ACM capabilities */ > + > + int ucom_unit; > }; > > static device_probe_t umodem_probe; > @@ -412,6 +414,13 @@ > } > ucom_set_pnpinfo_usb(&sc->sc_super_ucom, dev); > > + sc->ucom_unit = sc->sc_super_ucom.sc_unit; > + > + SYSCTL_ADD_INT(device_get_sysctl_ctx(dev), > + SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), > + OID_AUTO, "ucom", CTLFLAG_RD, > + &sc->ucom_unit, -1, "Attached ucom unit number"); > + > return (0); > Hi, Could you patch ucom_set_pnpinfo_usb() instead, so that such a sysctl is created for all ucom devices, not only umodem? Can you explain a bit more how you use this information in your scripts? --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Jan 14 10:19:05 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A2211065670; Sat, 14 Jan 2012 10:19:05 +0000 (UTC) (envelope-from yehorov@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 436558FC12; Sat, 14 Jan 2012 10:19:04 +0000 (UTC) Received: by qcse15 with SMTP id e15so1030753qcs.13 for ; Sat, 14 Jan 2012 02:19:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2rodWVBvPbN86LcjNy3E/+x9CtpoLAucf354wMPCI94=; b=Ibps1tGh1vrZFuBgxprjPYgFrQA91hDrVD9KQcFSS3UVMiIkIBEzFQa+rYLIilr8yb hWwkKffgCnQUrd5VcMINq/9WEr+Wuf8AdZRCrSIgLQHpF/mggbuwrEwmRnCdFwo1Spcs 6jJWhfNgJzwm1FVWjzt4owumlndnIuY4K/imA= MIME-Version: 1.0 Received: by 10.229.77.86 with SMTP id f22mr1706967qck.17.1326534667693; Sat, 14 Jan 2012 01:51:07 -0800 (PST) Received: by 10.224.196.66 with HTTP; Sat, 14 Jan 2012 01:51:07 -0800 (PST) In-Reply-To: <201201132154.01815.hselasky@c2i.net> References: <201201131705.q0DH5Tko030020@red.freebsd.org> <201201132154.01815.hselasky@c2i.net> Date: Sat, 14 Jan 2012 11:51:07 +0200 Message-ID: From: Mykhaylo Yehorov To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 Cc: freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/164090: [umodem] [patch] Add sysctl with ucom unit number X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jan 2012 10:19:05 -0000 On Fri, Jan 13, 2012 at 22:54, Hans Petter Selasky wrote: > > Hi, > > Could you patch ucom_set_pnpinfo_usb() instead, so that such a sysctl is > created for all ucom devices, not only umodem? I guess it will be necessary to remove a sysctl oid from a parent sysctl tree before destroying ucom structures. It's would be better to do in ucom_detach() but now there is no a pointer to a parent device structure from there. Now all drivers that use ucom pass a pointer to parent softc structure to ucom_attach(). Is there any reason for this? May be it's would be more useful to pass a pointer to a parent device structure. > Can you explain a bit more how you use this information in your scripts? I've got a gps receiver and a mobile phone that supported by the umodem driver. I can attach its in any order. So I use sysctl to generate gpsd and ppp configs with appropriate values of serial port. -- Mykhaylo Yehorov From owner-freebsd-usb@FreeBSD.ORG Sat Jan 14 10:20:15 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C9962106566B for ; Sat, 14 Jan 2012 10:20:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B80958FC14 for ; Sat, 14 Jan 2012 10:20:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0EAKF9i092945 for ; Sat, 14 Jan 2012 10:20:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0EAKFUa092944; Sat, 14 Jan 2012 10:20:15 GMT (envelope-from gnats) Date: Sat, 14 Jan 2012 10:20:15 GMT Message-Id: <201201141020.q0EAKFUa092944@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Mykhaylo Yehorov Cc: Subject: Re: usb/164090: [umodem] [patch] Add sysctl with ucom unit number X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mykhaylo Yehorov List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jan 2012 10:20:15 -0000 The following reply was made to PR usb/164090; it has been noted by GNATS. From: Mykhaylo Yehorov To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: usb/164090: [umodem] [patch] Add sysctl with ucom unit number Date: Sat, 14 Jan 2012 11:51:07 +0200 On Fri, Jan 13, 2012 at 22:54, Hans Petter Selasky wrote: > > Hi, > > Could you patch ucom_set_pnpinfo_usb() instead, so that such a sysctl is > created for all ucom devices, not only umodem? I guess it will be necessary to remove a sysctl oid from a parent sysctl tree before destroying ucom structures. It's would be better to do in ucom_detach() but now there is no a pointer to a parent device structure from there. Now all drivers that use ucom pass a pointer to parent softc structure to ucom_attach(). Is there any reason for this? May be it's would be more useful to pass a pointer to a parent device structure. > Can you explain a bit more how you use this information in your scripts? I've got a gps receiver and a mobile phone that supported by the umodem driver. I can attach its in any order. So I use sysctl to generate gpsd and ppp configs with appropriate values of serial port. -- Mykhaylo Yehorov From owner-freebsd-usb@FreeBSD.ORG Sat Jan 14 10:47:21 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEE831065670; Sat, 14 Jan 2012 10:47:21 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.c2i.net [212.247.155.2]) by mx1.freebsd.org (Postfix) with ESMTP id 4C7498FC0C; Sat, 14 Jan 2012 10:47:20 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe09.swip.net (CommuniGate Pro SMTP 5.4.2) with ESMTPA id 53781729; Sat, 14 Jan 2012 11:47:18 +0100 From: Hans Petter Selasky To: Mykhaylo Yehorov Date: Sat, 14 Jan 2012 11:45:05 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <201201131705.q0DH5Tko030020@red.freebsd.org> <201201132154.01815.hselasky@c2i.net> In-Reply-To: X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201201141145.05813.hselasky@c2i.net> Cc: freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/164090: [umodem] [patch] Add sysctl with ucom unit number X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jan 2012 10:47:22 -0000 On Saturday 14 January 2012 10:51:07 Mykhaylo Yehorov wrote: > On Fri, Jan 13, 2012 at 22:54, Hans Petter Selasky wrote: > > Hi, > > > > Could you patch ucom_set_pnpinfo_usb() instead, so that such a sysctl is > > created for all ucom devices, not only umodem? > > I guess it will be necessary to remove a sysctl oid from a parent > sysctl tree before destroying ucom structures. > It's would be better to do in ucom_detach() but now there is no a > pointer to a parent device structure from there. > > Now all drivers that use ucom pass a pointer to parent softc structure > to ucom_attach(). > Is there any reason for this? > May be it's would be more useful to pass a pointer to a parent device > structure. > > > Can you explain a bit more how you use this information in your scripts? > > I've got a gps receiver and a mobile phone that supported by the umodem > driver. I can attach its in any order. > So I use sysctl to generate gpsd and ppp configs with appropriate > values of serial port. Ok, I see. And you cannot use the information passed through devd by ucom_set_pnpinfo_usb()? --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Jan 14 10:50:20 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B144D106564A for ; Sat, 14 Jan 2012 10:50:20 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9FC718FC12 for ; Sat, 14 Jan 2012 10:50:20 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0EAoKwb047351 for ; Sat, 14 Jan 2012 10:50:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0EAoKiI047345; Sat, 14 Jan 2012 10:50:20 GMT (envelope-from gnats) Date: Sat, 14 Jan 2012 10:50:20 GMT Message-Id: <201201141050.q0EAoKiI047345@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/164090: [umodem] [patch] Add sysctl with ucom unit number X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jan 2012 10:50:20 -0000 The following reply was made to PR usb/164090; it has been noted by GNATS. From: Hans Petter Selasky To: Mykhaylo Yehorov Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: usb/164090: [umodem] [patch] Add sysctl with ucom unit number Date: Sat, 14 Jan 2012 11:45:05 +0100 On Saturday 14 January 2012 10:51:07 Mykhaylo Yehorov wrote: > On Fri, Jan 13, 2012 at 22:54, Hans Petter Selasky wrote: > > Hi, > > > > Could you patch ucom_set_pnpinfo_usb() instead, so that such a sysctl is > > created for all ucom devices, not only umodem? > > I guess it will be necessary to remove a sysctl oid from a parent > sysctl tree before destroying ucom structures. > It's would be better to do in ucom_detach() but now there is no a > pointer to a parent device structure from there. > > Now all drivers that use ucom pass a pointer to parent softc structure > to ucom_attach(). > Is there any reason for this? > May be it's would be more useful to pass a pointer to a parent device > structure. > > > Can you explain a bit more how you use this information in your scripts? > > I've got a gps receiver and a mobile phone that supported by the umodem > driver. I can attach its in any order. > So I use sysctl to generate gpsd and ppp configs with appropriate > values of serial port. Ok, I see. And you cannot use the information passed through devd by ucom_set_pnpinfo_usb()? --HPS