From owner-freebsd-usb@FreeBSD.ORG Sun May 22 17:00:28 2011 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 E25011065673 for ; Sun, 22 May 2011 17:00:28 +0000 (UTC) (envelope-from cwhiteh@onetel.com) Received: from woodbine.london.02.net (woodbine.london.02.net [87.194.255.145]) by mx1.freebsd.org (Postfix) with ESMTP id A3B1F8FC0A for ; Sun, 22 May 2011 17:00:28 +0000 (UTC) Received: from muji2.config (93.97.24.219) by woodbine.london.02.net (8.5.133) id 4D8CD8C901784494 for freebsd-usb@freebsd.org; Sun, 22 May 2011 18:00:27 +0100 Message-ID: <4DD9412A.9050500@onetel.com> Date: Sun, 22 May 2011 18:00:26 +0100 From: Chris Whitehouse User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.9) Gecko/20100924 Thunderbird/3.1.4 MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <4DD4FC0A.6060609@onetel.com> In-Reply-To: <4DD4FC0A.6060609@onetel.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Initio INIC-1511 - USB to PATA Bridge X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2011 17:00:29 -0000 On 19/05/2011 12:16, Chris Whitehouse wrote: > Hi, I was wondering if anyone knows if this chip is supported. It is > used in an external usb dvd drive. If it is not supported is it likely > that I could submit some details and get support added? > > I don't have one yet I'm thinking of buying one and trying to gauge the > probability that it will work before I buy. > > thanks > > Chris Hi does anyone have any words of wisdom on this? Or should I be looking for the info elsewhere? thanks Chris From owner-freebsd-usb@FreeBSD.ORG Sun May 22 18:35:07 2011 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 09F4C106564A for ; Sun, 22 May 2011 18:35:07 +0000 (UTC) (envelope-from trevor.l.blackwell@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id B608D8FC0C for ; Sun, 22 May 2011 18:35:06 +0000 (UTC) Received: by ywf7 with SMTP id 7so2363863ywf.13 for ; Sun, 22 May 2011 11:35:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=uNR4P+zVTqkVKTU9vxW3SbUqn84nygur9t+Db281Z2E=; b=g75wpQ8v3DxI4EYMFMG4HZ3ayVLut762mTqxuLjerlEx0sliZA/zkndDmuwLCoMxJj J1jpZB0cyBNWk43SoeyDcpAqK8X0SsW24JSXhpobHO1H9ZHKoaCKz6LrVjp78X/182+m /DN0rNdF1eVVomCt7SQT3px+Xgi0GGUkPSlK8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=dYG/JiLW1jR/NcTsZA4JN8VtFhkgbtcTwt3Oai6tRpaC5f6wQHgisL+8nnAgkIjUXr keWvPHv5SefQ5YVgNF43/mJL6O3BUjM1Jl+nYo8+KIDKciUv3ex7X9dZ0XhMcixj3oXY smA6+T9Fvz2QGj/MDIBbJ145IjVnY1+YW6cJo= MIME-Version: 1.0 Received: by 10.236.153.202 with SMTP id f50mr1857037yhk.253.1306089305832; Sun, 22 May 2011 11:35:05 -0700 (PDT) Sender: trevor.l.blackwell@gmail.com Received: by 10.236.95.175 with HTTP; Sun, 22 May 2011 11:35:05 -0700 (PDT) In-Reply-To: <201105201344.35918.hselasky@c2i.net> References: <201105051009.55454.hselasky@c2i.net> <201105201344.35918.hselasky@c2i.net> Date: Sun, 22 May 2011 11:35:05 -0700 X-Google-Sender-Auth: 9C2h_irvD3bO_B1m902Wb3HyD1k Message-ID: From: Trevor Blackwell To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-usb@freebsd.org Subject: Re: Clearing stalls: usbd_xfer_set_stall vs usbd_do_clear_stall_callback 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, 22 May 2011 18:35:07 -0000 I decided to handle it at user level, so I added a sysctl to count stall or timeout errors during a clear-stall transaction. When that counter goes up by >= 5 counts in 5 seconds, the user-level daemon does a clear-TT transaction against the hub (using libusb20). If that doesn't solve it, it closes all USB devices and resets the hub. On Fri, May 20, 2011 at 4:44 AM, Hans Petter Selasky wrote: > On Thursday 05 May 2011 10:09:55 Hans Petter Selasky wrote: > > On Thursday 05 May 2011 09:15:09 Trevor Blackwell wrote: > > > 8.2-STABLE. I'm willing to run whatever. > > > > > > I suspect the problem I'm having is the same as this: > > > http://kerneltrap.org/mailarchive/linux-usb/2009/5/15/5761363 > > > > > > I can manually kick it out of the wedged state by sending a RESET_TT > > > transaction to the hub with usbconfig -d ugen1.3 do_request 0x23 0x09 > > > 0x0000 0x0001 0 > > > > > > (UT_WRITE_CLASS_OTHER, UR_RESET_TT) > > > > > > I'm working on adding code to do this. My current hack is to do it from > > > uhub_explore. When my driver tries to do a clear-stall and gets a > timeout > > > error from the clear-stall, it sets a flag on the parent_hs_hub to > > > request a RESET_TT. uhub_explore notices the flag and does it. > > > > > > Possibly I could also add it to usb_do_clear_stall_callback, but I > don't > > > think I can call usb_do_request from inside a callback. > > > > > > Any suggestions? > > > > Hi, > > > > I think it is best to do this from the root HUB thread, then the > operation > > gets properly serialised. Then the clear-stalls requests will simply be > > pending until normal operation is established. > > > > Could a control endpoint timeout in general imply that the parent High > > Speed HUB, if any, should be reset? > > > > --HPS > > Any updates on this issue? > > --HPS > -- Trevor Blackwell trevor@anybots.com 650 776 7870 From owner-freebsd-usb@FreeBSD.ORG Sun May 22 20:57:01 2011 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 798C51065675 for ; Sun, 22 May 2011 20:57:01 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from thalia-smout.broadpark.no (thalia-smout.broadpark.no [80.202.8.21]) by mx1.freebsd.org (Postfix) with ESMTP id 354608FC0A for ; Sun, 22 May 2011 20:57:01 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from terra-smin.broadpark.no ([80.202.8.13]) by thalia-smout.broadpark.no (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with ESMTP id <0LLM00H2O7IZY580@thalia-smout.broadpark.no> for freebsd-usb@FreeBSD.org; Sun, 22 May 2011 22:56:59 +0200 (CEST) Received: from kg-v2.kg4.no ([84.48.120.215]) by terra-smin.broadpark.no (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with SMTP id <0LLM00BH57IZW3G0@terra-smin.broadpark.no> for freebsd-usb@FreeBSD.org; Sun, 22 May 2011 22:56:59 +0200 (CEST) Date: Sun, 22 May 2011 22:56:59 +0200 From: Torfinn Ingolfsen To: freebsd-usb@FreeBSD.org Message-id: <20110522225659.50ca7b04.torfinn.ingolfsen@broadpark.no> In-reply-to: <4DD9412A.9050500@onetel.com> References: <4DD4FC0A.6060609@onetel.com> <4DD9412A.9050500@onetel.com> X-Mailer: Sylpheed 3.1.0 (GTK+ 2.22.1; amd64-portbld-freebsd8.1) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Cc: Subject: Re: Initio INIC-1511 - USB to PATA Bridge X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2011 20:57:01 -0000 On Sun, 22 May 2011 18:00:26 +0100 Chris Whitehouse wrote: > On 19/05/2011 12:16, Chris Whitehouse wrote: > > Hi, I was wondering if anyone knows if this chip is supported. It is > > used in an external usb dvd drive. If it is not supported is it likely > > that I could submit some details and get support added? > > > > I don't have one yet I'm thinking of buying one and trying to gauge the > > probability that it will work before I buy. > > > > thanks > > > > Chris > > Hi does anyone have any words of wisdom on this? Or should I be looking > for the info elsewhere? >From the specs, it looks like a standard usb mass storage device to me. It "should" work, but YMMV. Googling for "freebsd Initio INIC-1511" doesn't give any good answers. Unless you can find someone which has tried this device with FreeBSD, getting confirmation might be troublesome. HTH -- Torfinn From owner-freebsd-usb@FreeBSD.ORG Mon May 23 11:07:10 2011 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 ADB7D1065674 for ; Mon, 23 May 2011 11:07:10 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9CFD08FC2D for ; Mon, 23 May 2011 11:07:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4NB7Aha051836 for ; Mon, 23 May 2011 11:07:10 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4NB7AOg051834 for freebsd-usb@FreeBSD.org; Mon, 23 May 2011 11:07:10 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 23 May 2011 11:07:10 GMT Message-Id: <201105231107.p4NB7AOg051834@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, 23 May 2011 11:07:10 -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/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/155663 usb [usbdevs] [patch] Add support for Supertop Nano 1GB US o usb/155496 usb [usb][patch] support BUFFALO WLI-U2-SG54HG wireless o usb/154753 usb [usbdevs] [patch] Support for Qualcomm USB modem/stora 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/153599 usb [usbdevs] [patch] Feiya Elango USB MicroSD reader sync 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/149528 usb [zyd] Wireless USB stick not detected - vendor id 0x08 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 o 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 o 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 o usb/141777 usb [usb8] [usbdevs] [rum] [patch] Support usbdevs / rum(4 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 a usb/139598 usb [umass] [usb8] CAM reports "xptioctl: put "device pass o usb/139243 usb [uhci] [usb67] unplug prolific USB serial -> uhci_abor a usb/138904 usb [rum] [panic] [usb67] unpluging USB wifi card panics s 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 s usb/138570 usb [usb67] [panic] USB mass device panics current 7.2-STA 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 o 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 p usb/136761 usb [usbdevs][usb67][patch] Teach usbdevs / u3g(4) about H 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/135348 usb [umass] [patch] USB Drive Hangs with ZFS (JMicron USB2 o usb/135206 usb machine reboots when inserted USB device f usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/135182 usb UMASS quirk - Olympus FE20 camera 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 p usb/131123 usb [patch] [usb67] re-add UQ_ASSUME_CM_OVER_DATA USB quir 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/127222 usb [ohci] Regression in 7.0 usb storage generic driver 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 o 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/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic 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 f usb/121232 usb [usb67] [panic] USB CardBus card removal causes reboot 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/119481 usb [hang] FreeBSD not responding after connecting USB-Mas 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 p usb/116699 usb [usb] [usb67] USB HID devices do not initialize at sys 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 o usb/105361 usb [usb67] [panic] Kernel panic during unmounting mass st 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 p usb/101775 usb [usb67] [libusbhid] [patch] possible error in report d o usb/101761 usb [usb67] [patch] [request] usb.h: increase maximal size 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 s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen 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 s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a 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/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy 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. o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me 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/76732 usb [ums] Mouse problems with USB KVM Switch 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/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl 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/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction 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 o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans 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 314 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon May 23 19:39:40 2011 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 EF7E0106566B for ; Mon, 23 May 2011 19:39:40 +0000 (UTC) (envelope-from cwhiteh@onetel.com) Received: from honeysuckle.london.02.net (honeysuckle.london.02.net [87.194.255.144]) by mx1.freebsd.org (Postfix) with ESMTP id 83C148FC0A for ; Mon, 23 May 2011 19:39:40 +0000 (UTC) Received: from muji2.config (93.97.24.219) by honeysuckle.london.02.net (8.5.133) id 4DA2FC0B00F62809 for freebsd-usb@freebsd.org; Mon, 23 May 2011 20:39:38 +0100 Message-ID: <4DDAB7FA.3060401@onetel.com> Date: Mon, 23 May 2011 20:39:38 +0100 From: Chris Whitehouse User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.9) Gecko/20100924 Thunderbird/3.1.4 MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <4DD4FC0A.6060609@onetel.com> <4DD9412A.9050500@onetel.com> <20110522225659.50ca7b04.torfinn.ingolfsen@broadpark.no> In-Reply-To: <20110522225659.50ca7b04.torfinn.ingolfsen@broadpark.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Initio INIC-1511 - USB to PATA Bridge X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2011 19:39:41 -0000 On 22/05/2011 21:56, Torfinn Ingolfsen wrote: > On Sun, 22 May 2011 18:00:26 +0100 > Chris Whitehouse wrote: > >> On 19/05/2011 12:16, Chris Whitehouse wrote: >>> Hi, I was wondering if anyone knows if this chip is supported. It is >>> used in an external usb dvd drive. If it is not supported is it likely >>> that I could submit some details and get support added? >>> >>> I don't have one yet I'm thinking of buying one and trying to gauge the >>> probability that it will work before I buy. >>> >>> thanks >>> >>> Chris >> >> Hi does anyone have any words of wisdom on this? Or should I be looking >> for the info elsewhere? > >> From the specs, it looks like a standard usb mass storage device to me. > It "should" work, but YMMV. > Googling for "freebsd Initio INIC-1511" doesn't give any good answers. > > Unless you can find someone which has tried this device with FreeBSD, > getting confirmation might be troublesome. > HTH Thanks for the reply, I think I will get one and try it out. Chris From owner-freebsd-usb@FreeBSD.ORG Tue May 24 21:19:33 2011 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 A691F106566C for ; Tue, 24 May 2011 21:19:33 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4D24B8FC08 for ; Tue, 24 May 2011 21:19:33 +0000 (UTC) Received: by gyg13 with SMTP id 13so3574423gyg.13 for ; Tue, 24 May 2011 14:19:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:content-type:content-transfer-encoding; bh=ONJ2dfe69tDMfYDY+eOmgt8AK/d4cJhhZRDZw46Ja3U=; b=vzKic1yikU98YS5U5rhSvjGIyZ16gA1ZUaOBb5x4tEr/AXQiYOhjp8+Loi4EOmi5Y8 S/bj98fg4sY8SGY0yJkMOrU/i0I6DDWDkQxgtoV9u9D5v15vrZ/Bq0Dz4zrciG23shk7 tnnsN4sbO1gRk3yWwBQtUkg+TwuyoFo4rSKoM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=Z2bwHTKN5ZDCgt7MFapKMO+SgX5OUtCECnDuGwU56dN8xvgTmQBWzKmTUpPPedXdEv cOs0uIQUlXEdwgSJoAXm2lLtk5Lk57YH0r6Hnj6LFHp6ldq7yxN5+iBkF7RxyxZ7HLOY JC7RHJMDHq0VYUPYfXVZGS7k+73d0N6ZxXDvI= Received: by 10.236.201.233 with SMTP id b69mr5268157yho.468.1306271972412; Tue, 24 May 2011 14:19:32 -0700 (PDT) Received: from argus.electron-tube.net (desm-44-169.dsl.netins.net [167.142.44.169]) by mx.google.com with ESMTPS id 65sm3399705yhl.85.2011.05.24.14.19.31 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 May 2011 14:19:31 -0700 (PDT) Message-ID: <4DDC20DF.6060805@gmail.com> Date: Tue, 24 May 2011 16:19:27 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100911) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-drivers@freebsd.org Subject: traditional syscalls with DRIVER_MODULE ???? 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, 24 May 2011 21:19:33 -0000 i'm in the process of both learning the driver interface and writing a usb driver for a multimedia product. i'm kind of stuck here, as i'm seeing two distinct, and possibly mutually exclusive interfaces here. the test framework i'm currently using is the DRIVER_MODULE macro, but it lacks the traditional syscalls provided by cdevsw (in particular, i'm wanting open, close, poll, read, and write). if i add such an interface to the current DRIVER_MODULE version, how would i go about *NOT* having DRIVER_MODULE create the devfs entries? i would prefer to have the devfs entries handled by make_dev, so to have access to the desired syscalls. the only thing in the usb framework using the cdevsw framework seems to be usb_dev.c, but it seems to be an abstraction, and not an end-device in the sense that i'm doing. any tips? any pointers? i've done a grep, and found that there is no existing driver that uses DRIVER_MODULE with any *_read, *_write, or *_close. i can do the job with ioctls, but doing so would rule out select in userland code, and for the interrupt endpoints, i would rather have a poll and read interface that allows for select(2) and read(2). also, i would like to thank hans selasky for the pointer to his meetbsd/krakow presentation on the usb stack, i did learn a couple of new things about capabilities from it, but it lacked the detail i'm looking for. jim From owner-freebsd-usb@FreeBSD.ORG Tue May 24 21:24:18 2011 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 C10421065675 for ; Tue, 24 May 2011 21:24:18 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.c2i.net [212.247.154.66]) by mx1.freebsd.org (Postfix) with ESMTP id 25C9E8FC08 for ; Tue, 24 May 2011 21:24:17 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=0KkIQGagYCvnrzE3Z2Lmid87OPdbX6VLcZYwAuLMZ50= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=kWWxOIFCDSEA:10 a=WQU8e4WWZSUA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=e9o6qIhPbQBSJ5zuZXYA:9 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 131357557; Tue, 24 May 2011 23:24:16 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 24 May 2011 23:23:02 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <4DDC20DF.6060805@gmail.com> In-Reply-To: <4DDC20DF.6060805@gmail.com> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq,NwSZ4V" =?iso-8859-1?q?=7CLR=2E+tj=7Dg5=0A=09=25V?=,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( =?iso-8859-1?q?=0A=09=3AAuzV9=3A=2EhESm-x4h240C=609=3Dw?= MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105242323.02572.hselasky@c2i.net> Cc: freebsd-drivers@freebsd.org Subject: Re: traditional syscalls with DRIVER_MODULE ???? 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, 24 May 2011 21:24:18 -0000 On Tuesday 24 May 2011 23:19:27 Jim Bryant wrote: > the only thing in the usb framework using the cdevsw framework seems to > be usb_dev.c, but it seems to be an abstraction, and not an end-device > in the sense that i'm doing. Hi, This framework is for USB devices only and can create any character device. This abstraction has additional code to be detach safe with regard to the USB device being unplugged. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue May 24 21:25:31 2011 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 724F4106566B for ; Tue, 24 May 2011 21:25:31 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.c2i.net [212.247.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id BA1538FC20 for ; Tue, 24 May 2011 21:25:30 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=NvrFngl24Vvwb7eBef0tfsytOWEnP/WlkqxQrRnklhk= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=kWWxOIFCDSEA:10 a=WQU8e4WWZSUA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=VrRaG_UlQmsBQoRoqskA:9 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 130288785; Tue, 24 May 2011 23:25:29 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 24 May 2011 23:24:15 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <4DDC20DF.6060805@gmail.com> In-Reply-To: <4DDC20DF.6060805@gmail.com> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq,NwSZ4V" =?iso-8859-1?q?=7CLR=2E+tj=7Dg5=0A=09=25V?=,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( =?iso-8859-1?q?=0A=09=3AAuzV9=3A=2EhESm-x4h240C=609=3Dw?= MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105242324.15541.hselasky@c2i.net> Cc: freebsd-drivers@freebsd.org Subject: Re: traditional syscalls with DRIVER_MODULE ???? 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, 24 May 2011 21:25:31 -0000 On Tuesday 24 May 2011 23:19:27 Jim Bryant wrote: > if i add such an interface to the current DRIVER_MODULE version, how > would i go about NOT having DRIVER_MODULE create the devfs entries? i > would prefer to have the devfs entries handled by make_dev, so to have > access to the desired syscalls. Look at /sys/dev/usb/serial/ulpt.c For a simple example. More abstract: "cd /usr/ports/multimedia/cuse4bsd" and "man libusb20" --HPS From owner-freebsd-usb@FreeBSD.ORG Tue May 24 21:48:44 2011 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 80DF5106566C for ; Tue, 24 May 2011 21:48:44 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (unknown [IPv6:2001:44b8:7c07:5581:266:e1ff:fe0c:8f16]) by mx1.freebsd.org (Postfix) with ESMTP id 253B38FC0C for ; Tue, 24 May 2011 21:48:42 +0000 (UTC) Received: from [128.39.150.177] ([128.39.150.177]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id p4OLmVaP009458 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 25 May 2011 07:18:33 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Tue, 24 May 2011 23:48:30 +0200 To: freebsd-usb@freebsd.org Message-Id: <91D613ED-CA0F-41BF-AD53-2FD42529DCF8@gsoft.com.au> Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-Spam-Score: -0.272 () BAYES_00,RDNS_NONE X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Subject: USB driver locking 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, 24 May 2011 21:48:44 -0000 Hi, I have a Cypress FX2 based USB interface board connected to our radar = data acquisition chassis. It is used for configuring the hardware and = getting data back to the PC. I wrote a driver which is a very skinny wrapper around the (very handy) = usb_fifo device node code. I have several end points, all bulk. 2 are for serial comms, 2 for a low = speed control bus and 1 for high speed data back to the PC. The PC sends 10-250 byte packets out to modules on the serial bus and = gets replies (after a 10-500 msec) of a similar size. The low speed control bus is driven by the FX2 and the PC sends it 3 = byte packets which is processes to read/write on the control bus, then = sends a 3 byte packet back. I find that my application has rare problems where it does not get a = reply from the micro to a control bus packet, or perhaps the micro = doesn't receive it (I need to add a sequence number or similar to my = protocol to try and detect it I think). I found that this problem happens much less rarely (less than once a = day) on a UP machine than on an SMP one. Given that I am wondering if it is some sort of locking issue, and if = anyone has seen anything similar? I can supply the driver code if anyone is interested :) Thanks. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C From owner-freebsd-usb@FreeBSD.ORG Wed May 25 07:34:30 2011 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 4527F106566B for ; Wed, 25 May 2011 07:34:30 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id C61B78FC15 for ; Wed, 25 May 2011 07:34:29 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=upTJuTb3ngPPUUVVSPoyO7jwIWz3rzPtkQxI490l6Ks= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=WQU8e4WWZSUA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=ymuYxwlvqn1zWDPLLngA:9 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 129782038; Wed, 25 May 2011 09:34:26 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Wed, 25 May 2011 09:33:13 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <91D613ED-CA0F-41BF-AD53-2FD42529DCF8@gsoft.com.au> In-Reply-To: <91D613ED-CA0F-41BF-AD53-2FD42529DCF8@gsoft.com.au> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105250933.13255.hselasky@c2i.net> Cc: Subject: Re: USB driver locking X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 07:34:30 -0000 On Tuesday 24 May 2011 23:48:30 Daniel O'Connor wrote: > I find that my application has rare problems where it does not get a reply > from the micro to a control bus packet, or perhaps the micro doesn't > receive it (I need to add a sequence number or similar to my protocol to > try and detect it I think). There was a data toggle issue fixed with the EHCI recently, which triggers depending on hardware timing. Are you running the latest 8-stable or 9- current. There is also a new utility called usbdump, which can be used to figure out what is going on. --HPS From owner-freebsd-usb@FreeBSD.ORG Wed May 25 07:48:16 2011 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 A6AFD1065670 for ; Wed, 25 May 2011 07:48:16 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (unknown [IPv6:2001:44b8:7c07:5581:266:e1ff:fe0c:8f16]) by mx1.freebsd.org (Postfix) with ESMTP id 514CB8FC12 for ; Wed, 25 May 2011 07:48:14 +0000 (UTC) Received: from [192.168.42.215] (maarsy.rocketrange.no [128.39.153.30]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id p4P7lpBo087681 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 25 May 2011 17:17:55 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: "Daniel O'Connor" In-Reply-To: <201105250933.13255.hselasky@c2i.net> Date: Wed, 25 May 2011 09:47:50 +0200 Content-Transfer-Encoding: 7bit Message-Id: <99FAD844-DDC8-4C3D-8117-0887CB893728@gsoft.com.au> References: <91D613ED-CA0F-41BF-AD53-2FD42529DCF8@gsoft.com.au> <201105250933.13255.hselasky@c2i.net> To: Hans Petter Selasky X-Mailer: Apple Mail (2.1084) X-Spam-Score: -1.5 () BAYES_00 X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Cc: freebsd-usb@freebsd.org Subject: Re: USB driver locking X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 07:48:16 -0000 On 25/05/2011, at 9:33, Hans Petter Selasky wrote: > On Tuesday 24 May 2011 23:48:30 Daniel O'Connor wrote: >> I find that my application has rare problems where it does not get a reply >> from the micro to a control bus packet, or perhaps the micro doesn't >> receive it (I need to add a sequence number or similar to my protocol to >> try and detect it I think). > > There was a data toggle issue fixed with the EHCI recently, which triggers > depending on hardware timing. Are you running the latest 8-stable or 9- This one? http://svnweb.freebsd.org/base?view=revision&revision=219845 I have that as I am running 219926 > current. There is also a new utility called usbdump, which can be used to > figure out what is going on. I am running 9-current (in production for my sins..) usbdump is useful but consumes too much CPU at my data rate :( -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C From owner-freebsd-usb@FreeBSD.ORG Wed May 25 07:53:09 2011 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 DFD52106564A for ; Wed, 25 May 2011 07:53:09 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.c2i.net [212.247.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id 68DDF8FC13 for ; Wed, 25 May 2011 07:53:08 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=NvrFngl24Vvwb7eBef0tfsytOWEnP/WlkqxQrRnklhk= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=WQU8e4WWZSUA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=6I5d2MoRAAAA:8 a=upffHem1In66ggoEKqwA:9 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 130445374; Wed, 25 May 2011 09:53:07 +0200 From: Hans Petter Selasky To: "Daniel O'Connor" Date: Wed, 25 May 2011 09:51:53 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <91D613ED-CA0F-41BF-AD53-2FD42529DCF8@gsoft.com.au> <201105250933.13255.hselasky@c2i.net> <99FAD844-DDC8-4C3D-8117-0887CB893728@gsoft.com.au> In-Reply-To: <99FAD844-DDC8-4C3D-8117-0887CB893728@gsoft.com.au> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105250951.53498.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB driver locking X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 07:53:10 -0000 On Wednesday 25 May 2011 09:47:50 Daniel O'Connor wrote: > On 25/05/2011, at 9:33, Hans Petter Selasky wrote: > > On Tuesday 24 May 2011 23:48:30 Daniel O'Connor wrote: > >> I find that my application has rare problems where it does not get a > >> reply from the micro to a control bus packet, or perhaps the micro > >> doesn't receive it (I need to add a sequence number or similar to my > >> protocol to try and detect it I think). > > > > There was a data toggle issue fixed with the EHCI recently, which > > triggers depending on hardware timing. Are you running the latest > > 8-stable or 9- > > This one? > http://svnweb.freebsd.org/base?view=revision&revision=219845 Yes. > I have that as I am running 219926 > > > current. There is also a new utility called usbdump, which can be used to > > figure out what is going on. > > I am running 9-current (in production for my sins..) > > usbdump is useful but consumes too much CPU at my data rate :( You probably need an USB analyzer to figure out the real problem. Have you tried to start usbdump only once the problem happens? --HPS From owner-freebsd-usb@FreeBSD.ORG Wed May 25 07:55:10 2011 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 482B5106564A for ; Wed, 25 May 2011 07:55:10 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (unknown [IPv6:2001:44b8:7c07:5581:266:e1ff:fe0c:8f16]) by mx1.freebsd.org (Postfix) with ESMTP id 418578FC08 for ; Wed, 25 May 2011 07:55:08 +0000 (UTC) Received: from [192.168.42.215] (maarsy.rocketrange.no [128.39.153.30]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id p4P7snR4087923 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 25 May 2011 17:24:53 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: "Daniel O'Connor" In-Reply-To: <201105250951.53498.hselasky@c2i.net> Date: Wed, 25 May 2011 09:54:49 +0200 Content-Transfer-Encoding: 7bit Message-Id: References: <91D613ED-CA0F-41BF-AD53-2FD42529DCF8@gsoft.com.au> <201105250933.13255.hselasky@c2i.net> <99FAD844-DDC8-4C3D-8117-0887CB893728@gsoft.com.au> <201105250951.53498.hselasky@c2i.net> To: Hans Petter Selasky X-Mailer: Apple Mail (2.1084) X-Spam-Score: -1.5 () BAYES_00 X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Cc: freebsd-usb@freebsd.org Subject: Re: USB driver locking X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 07:55:10 -0000 On 25/05/2011, at 9:51, Hans Petter Selasky wrote: >>> current. There is also a new utility called usbdump, which can be used to >>> figure out what is going on. >> >> I am running 9-current (in production for my sins..) >> >> usbdump is useful but consumes too much CPU at my data rate :( > > You probably need an USB analyzer to figure out the real problem. Have you > tried to start usbdump only once the problem happens? I'll try and cook something up to run it when the problem happens. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C From owner-freebsd-usb@FreeBSD.ORG Wed May 25 08:51:56 2011 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 5E766106564A for ; Wed, 25 May 2011 08:51:56 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) by mx1.freebsd.org (Postfix) with ESMTP id B51348FC1A for ; Wed, 25 May 2011 08:51:55 +0000 (UTC) Received: from julian-mac.elischer.org (home-nat.elischer.org [67.100.89.137]) (authenticated bits=0) by vps1.elischer.org (8.14.4/8.14.4) with ESMTP id p4P8Pi9G047019 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 25 May 2011 01:25:46 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <4DDCBD0C.2060002@freebsd.org> Date: Wed, 25 May 2011 01:25:48 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: "Daniel O'Connor" References: <91D613ED-CA0F-41BF-AD53-2FD42529DCF8@gsoft.com.au> <201105250933.13255.hselasky@c2i.net> <99FAD844-DDC8-4C3D-8117-0887CB893728@gsoft.com.au> <201105250951.53498.hselasky@c2i.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: USB driver locking X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 08:51:56 -0000 On 5/25/11 12:54 AM, Daniel O'Connor wrote: > On 25/05/2011, at 9:51, Hans Petter Selasky wrote: >>>> current. There is also a new utility called usbdump, which can be used to >>>> figure out what is going on. >>> I am running 9-current (in production for my sins..) >>> >>> usbdump is useful but consumes too much CPU at my data rate :( >> You probably need an USB analyzer to figure out the real problem. Have you >> tried to start usbdump only once the problem happens? > I'll try and cook something up to run it when the problem happens. hans and Daniel, I suggest you put some KTR points into the driver and trace some crucial information using that. it is capable of keeping up with very fast stuff with small disturbance. Just the basic info.. you get 5 x 64 bit arguments. (or is it 6?) which is enough space for quite a bit of stuff to be logged. > -- > Daniel O'Connor software and network engineer > for Genesis Software - http://www.gsoft.com.au > "The nice thing about standards is that there > are so many of them to choose from." > -- Andrew Tanenbaum > GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C > > > > > > > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > From owner-freebsd-usb@FreeBSD.ORG Wed May 25 15:01:36 2011 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 5F9A9106566C; Wed, 25 May 2011 15:01:36 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 75C838FC18; Wed, 25 May 2011 15:01:35 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id SAA29835; Wed, 25 May 2011 18:01:25 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <4DDD19C4.6090705@FreeBSD.org> Date: Wed, 25 May 2011 18:01:24 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110504 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: "Shah, Vishal" References: <86FB7D63AF95574BB762C0C3E1F269150D8B14AB@RTPMVEXC1-PRD.hq.netapp.com> In-Reply-To: <86FB7D63AF95574BB762C0C3E1F269150D8B14AB@RTPMVEXC1-PRD.hq.netapp.com> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: "Ranaweera, Samantha" , "Faylor, Christopher" , Hans Petter Selasky , freebsd-usb@FreeBSD.org Subject: Re: System hang in USB umass module while processing panic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 15:01:36 -0000 on 19/05/2011 22:27 Shah, Vishal said the following: > In FreeBSD 8 USB driver, commands are asynchronously sent from umass layer onto > the wire, in other words, multiple threads are involved before the command is > sent from the umass layer all the way to the wire. Since the usb_proc is not > scheduled current process keeps waiting for the command to complete, hence the > hang. Is this a known issue? If yes, is there a fix available? Are there any > plans of adding a synchronous path to send the command to the device? Any > information regarding this issue is much appreciated. >From your description this sounds like a problem in USB driver. I am not an expert in USB code, looks like some polling prodding would have to be added there (if it's not there yet). Hans Petter may be a better contact for this issue. I am not sure if I can help you more. -- Andriy Gapon From owner-freebsd-usb@FreeBSD.ORG Wed May 25 15:22:29 2011 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 8C06C106564A for ; Wed, 25 May 2011 15:22:29 +0000 (UTC) (envelope-from hselasky@freebsd.org) Received: from swip.net (mailfe03.c2i.net [212.247.154.66]) by mx1.freebsd.org (Postfix) with ESMTP id 18DDF8FC08 for ; Wed, 25 May 2011 15:22:28 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=0KkIQGagYCvnrzE3Z2Lmid87OPdbX6VLcZYwAuLMZ50= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=4j0xZboyc7kA:10 a=dBRESv0yCI8A:10 a=N659UExz7-8A:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=9V2TONt1Lu6oPUjB0NEA:9 a=pILNOxqGKmIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 131752424; Wed, 25 May 2011 17:12:24 +0200 Received-SPF: softfail receiver=mailfe03.swip.net; client-ip=188.126.198.129; envelope-from=hselasky@freebsd.org From: Hans Petter Selasky To: Andriy Gapon Date: Wed, 25 May 2011 17:11:09 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <86FB7D63AF95574BB762C0C3E1F269150D8B14AB@RTPMVEXC1-PRD.hq.netapp.com> <4DDD19C4.6090705@FreeBSD.org> In-Reply-To: <4DDD19C4.6090705@FreeBSD.org> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Message-Id: <201105251711.09594.hselasky@freebsd.org> Cc: "Shah, Vishal" , "Ranaweera, Samantha" , "Faylor, Christopher" , "freebsd-usb@FreeBSD.org" Subject: Re: System hang in USB umass module while processing panic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 15:22:29 -0000 On Wednesday 25 May 2011 17:01:24 Andriy Gapon wrote: > on 19/05/2011 22:27 Shah, Vishal said the following: > > In FreeBSD 8 USB driver, commands are asynchronously sent from umass > > layer onto the wire, in other words, multiple threads are involved > > before the command is sent from the umass layer all the way to the wire. > > Since the usb_proc is not scheduled current process keeps waiting for > > the command to complete, hence the hang. Is this a known issue? If yes, > > is there a fix available? Are there any plans of adding a synchronous > > path to send the command to the device? Any information regarding this > > issue is much appreciated. > > From your description this sounds like a problem in USB driver. > I am not an expert in USB code, looks like some polling prodding would have > to be added there (if it's not there yet). Hans Petter may be a better > contact for this issue. > I am not sure if I can help you more. Hi, The umass driver is being polled during panic. If some command is hanging on a USB device then USB cannot do anything about it. Only the CAM layer can abort the SCSI command, because the USB layer doesn't know if it is the dump device or not? Sometimes the command timeouts are rather longs so waiting until the command times out might work to get a core dump. --HPS From owner-freebsd-usb@FreeBSD.ORG Wed May 25 17:37:07 2011 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 E4246106564A; Wed, 25 May 2011 17:37:06 +0000 (UTC) (envelope-from Vishal.Shah@netapp.com) Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by mx1.freebsd.org (Postfix) with ESMTP id B68B98FC08; Wed, 25 May 2011 17:37:06 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.65,268,1304319600"; d="scan'208";a="550727477" Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx2-out.netapp.com with ESMTP; 25 May 2011 10:37:06 -0700 Received: from sacrsexc1-prd.hq.netapp.com (sacrsexc1-prd.hq.netapp.com [10.99.115.27]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id p4PHb6WS014129; Wed, 25 May 2011 10:37:06 -0700 (PDT) Received: from rtprsexc2-prd.hq.netapp.com ([10.100.161.115]) by sacrsexc1-prd.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 25 May 2011 10:37:06 -0700 Received: from RTPMVEXC1-PRD.hq.netapp.com ([10.100.161.112]) by rtprsexc2-prd.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 25 May 2011 13:37:04 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 25 May 2011 13:37:01 -0400 Message-ID: <86FB7D63AF95574BB762C0C3E1F269150D986E24@RTPMVEXC1-PRD.hq.netapp.com> In-Reply-To: <201105251711.09594.hselasky@freebsd.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: System hang in USB umass module while processing panic Thread-Index: Acwa7jbrK8VCBUzkSRGAWPHQOAiyCQAEjr6w References: <86FB7D63AF95574BB762C0C3E1F269150D8B14AB@RTPMVEXC1-PRD.hq.netapp.com> <4DDD19C4.6090705@FreeBSD.org> <201105251711.09594.hselasky@freebsd.org> From: "Shah, Vishal" To: "Hans Petter Selasky" , "Andriy Gapon" X-OriginalArrivalTime: 25 May 2011 17:37:04.0922 (UTC) FILETIME=[5CE3CFA0:01CC1B02] Cc: "Ranaweera, Samantha" , "Faylor, Christopher" , "freebsd-usb@FreeBSD.org" Subject: RE: System hang in USB umass module while processing panic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 17:37:07 -0000 Hi Hans Petter, Thanks for looking into this. The command is not hanging on a USB device. The issue is, command never reaches the USB device. As I understand it, after receiving the command from the upper layers, umass layer will just enqueue the xfer at the USBD layer. And then usb_proc process is supposed to take the xfer from the queue and give it to the EHCI layer. When the system panics and gets into the uni-processor environment, the current process issues a SYNCHRONIZE_CACHE command keeps polling the umass layer for the completion of that xfer, and won't leave the single running CPU. For this reason, the usb_proc is never scheduled after that and the xfer never reaches the USB device.=20 Thanks, Vishal -----Original Message----- From: Hans Petter Selasky [mailto:hselasky@freebsd.org]=20 Sent: Wednesday, May 25, 2011 8:11 AM To: Andriy Gapon Cc: Shah, Vishal; freebsd-usb@FreeBSD.org; Ranaweera, Samantha; Faylor, Christopher Subject: Re: System hang in USB umass module while processing panic On Wednesday 25 May 2011 17:01:24 Andriy Gapon wrote: > on 19/05/2011 22:27 Shah, Vishal said the following: > > In FreeBSD 8 USB driver, commands are asynchronously sent from umass > > layer onto the wire, in other words, multiple threads are involved > > before the command is sent from the umass layer all the way to the wire. > > Since the usb_proc is not scheduled current process keeps waiting for > > the command to complete, hence the hang. Is this a known issue? If yes, > > is there a fix available? Are there any plans of adding a synchronous > > path to send the command to the device? Any information regarding this > > issue is much appreciated. >=20 > From your description this sounds like a problem in USB driver. > I am not an expert in USB code, looks like some polling prodding would have > to be added there (if it's not there yet). Hans Petter may be a better > contact for this issue. > I am not sure if I can help you more. Hi, The umass driver is being polled during panic. If some command is hanging on a=20 USB device then USB cannot do anything about it. Only the CAM layer can abort=20 the SCSI command, because the USB layer doesn't know if it is the dump device=20 or not? Sometimes the command timeouts are rather longs so waiting until the=20 command times out might work to get a core dump. --HPS From owner-freebsd-usb@FreeBSD.ORG Wed May 25 17:46:00 2011 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 654AB106566C; Wed, 25 May 2011 17:46:00 +0000 (UTC) (envelope-from hselasky@freebsd.org) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id AA8E08FC0C; Wed, 25 May 2011 17:45:59 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=EsGlCpMeIw85Gy1IHWHJoTo3ieATU4tNmYze/bSqBec= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=4j0xZboyc7kA:10 a=dBRESv0yCI8A:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=b5XoorI1gUE5tkVxrq8A:9 a=Q5NtXNl_RcwuxCAGZRUA:7 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 131419313; Wed, 25 May 2011 19:45:57 +0200 Received-SPF: softfail receiver=mailfe07.swip.net; client-ip=188.126.198.129; envelope-from=hselasky@freebsd.org From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Wed, 25 May 2011 19:44:43 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <86FB7D63AF95574BB762C0C3E1F269150D8B14AB@RTPMVEXC1-PRD.hq.netapp.com> <201105251711.09594.hselasky@freebsd.org> <86FB7D63AF95574BB762C0C3E1F269150D986E24@RTPMVEXC1-PRD.hq.netapp.com> In-Reply-To: <86FB7D63AF95574BB762C0C3E1F269150D986E24@RTPMVEXC1-PRD.hq.netapp.com> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105251944.43080.hselasky@freebsd.org> Cc: "Shah, Vishal" , "Ranaweera, Samantha" , "Faylor, Christopher" , Andriy Gapon Subject: Re: System hang in USB umass module while processing panic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 17:46:00 -0000 On Wednesday 25 May 2011 19:37:01 Shah, Vishal wrote: > Hi Hans Petter, > > Thanks for looking into this. > The command is not hanging on a USB device. The issue is, command never > reaches the USB device. As I understand it, after receiving the command > from the upper layers, umass layer will just enqueue the xfer at the > USBD layer. And then usb_proc process is supposed to take the xfer from > the queue and give it to the EHCI layer. When the system panics and gets > into the uni-processor environment, the current process issues a > SYNCHRONIZE_CACHE command keeps polling the umass layer for the > completion of that xfer, and won't leave the single running CPU. For > this reason, the usb_proc is never scheduled after that and the xfer > never reaches the USB device. > > Thanks, > Vishal Hi, In UNI processor mode the following function will be called, which will poll the transfers (at the side of the USB processes): static void umass_cam_poll(struct cam_sim *sim) { struct umass_softc *sc = (struct umass_softc *)sim->softc; if (sc == UMASS_GONE) return; DPRINTF(sc, UDMASS_SCSI, "CAM poll\n"); usbd_transfer_poll(sc->sc_xfer, UMASS_T_MAX); } If the umass_cam_poll() is not called, then any pending SCSI commands will not complete. However, if the panic triggers inside the USB stack, this might not work like expected. --HPS From owner-freebsd-usb@FreeBSD.ORG Wed May 25 19:03:11 2011 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 3523B106566B; Wed, 25 May 2011 19:03:11 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id CC9898FC17; Wed, 25 May 2011 19:03:10 +0000 (UTC) Received: by gyg13 with SMTP id 13so4082819gyg.13 for ; Wed, 25 May 2011 12:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=ag/0guOxoa5Do0k29gG/3XU8Gtu0r6GheQ/ld78rrf0=; b=NRYT5EcfNg9/ZFGzTdNHQ4xrIV/o8j/WLP4W5PIux/lOecKs5O5WP1WotqYTgTN2YS KOH1to79x7cQvYA/uFzwtKIiVgmRkWhwtU6TG011FhK5znsCQDgwc/U/jJ+Z9rYHfWdk 3L06lYcDEpH+Ek/ax36DsbkCqP7TZXmuvnnCQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=bphQSTpX5MMEUq4xgTlWvF3vg1X/1e/7/0gOx2mdiTTaKv/tpBQLqG8eKcTdsrf6Ka GDTu15LJUSg0Y8CjJgGY5tOCIz7PWBw+ipuph5dShPkYTNR9rPy40UjpIerzD58lGe0v P8/sciHNqSauLsOtr/2WR4G3V6WXhr1nuogS8= Received: by 10.236.191.200 with SMTP id g48mr7003420yhn.437.1306350190030; Wed, 25 May 2011 12:03:10 -0700 (PDT) Received: from argus.electron-tube.net (desm-44-169.dsl.netins.net [167.142.44.169]) by mx.google.com with ESMTPS id f2sm79954ani.19.2011.05.25.12.02.57 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 May 2011 12:03:08 -0700 (PDT) Message-ID: <4DDD5245.3040500@gmail.com> Date: Wed, 25 May 2011 14:02:29 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100911) MIME-Version: 1.0 To: Hans Petter Selasky References: <4DDC20DF.6060805@gmail.com> <201105242324.15541.hselasky@c2i.net> In-Reply-To: <201105242324.15541.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-drivers@freebsd.org, freebsd-usb@freebsd.org Subject: Re: traditional syscalls with DRIVER_MODULE ???? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 19:03:11 -0000 do start_read/stop_read and start_write/stop_write map directly to the userland read(2) and write(2) calls? i had looked at this previously, and am a bit confused on if the above is correct. even if they are the direct interface to read(2)/write(2), the issue of a poll method for select(2) still exists... grepping all DRIVER_MODULE usages comes up with only two poll methods: powerpc/powermac/pmu.c: DEVMETHOD(adb_hb_controller_poll, pmu_poll), powerpc/powermac/cuda.c: DEVMETHOD(adb_hb_controller_poll, cuda_poll), and those are unhelpful. usb_fifo_methods doesn't seem to have a poll, how would i go about this? select(2) is a more familiar interface for application programmers to use for this purpose, instead of using an ioctl for the same functionality in a way that is not compatible with select(2). please excuse me if these are newbie questions, but, i'm still in the learning process. i can do this if there is a way to prevent DRIVER_MODULE from creating the devfs nodes, and instead do this in a hybrid way using DRIVER_MODULE and make_dev(9), which has the exact traditional functionality i want in this. any ideas? two of the three device nodes this driver will create will require read(2)/select(2) interfaces visible to userland, and the third driver will require write(2) visible to userland. the question is: is there a way to use DRIVER_MODULE, which seems necessary for usbdi, yet create the devfs nodes using make_dev/cdevsw? i would prefer to not have DRIVER_MODULE create the device nodes. am i missing something? i again apologize for the newbie questions... jim Hans Petter Selasky wrote: > On Tuesday 24 May 2011 23:19:27 Jim Bryant wrote: > >> if i add such an interface to the current DRIVER_MODULE version, how >> would i go about NOT having DRIVER_MODULE create the devfs entries? i >> would prefer to have the devfs entries handled by make_dev, so to have >> access to the desired syscalls. >> > > Look at /sys/dev/usb/serial/ulpt.c > > For a simple example. > > More abstract: > > "cd /usr/ports/multimedia/cuse4bsd" and "man libusb20" > > --HPS > > From owner-freebsd-usb@FreeBSD.ORG Wed May 25 19:34:41 2011 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 0ED7610656EA; Wed, 25 May 2011 19:34:41 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id 58EF28FC1A; Wed, 25 May 2011 19:34:39 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=EsGlCpMeIw85Gy1IHWHJoTo3ieATU4tNmYze/bSqBec= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=kWWxOIFCDSEA:10 a=WQU8e4WWZSUA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=zXwiK2_UkJisIPLbFaQA:9 a=Wyg7-9KaIBhVjG6LOEUA:7 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 131463937; Wed, 25 May 2011 21:34:37 +0200 From: Hans Petter Selasky To: Jim Bryant Date: Wed, 25 May 2011 21:33:23 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <4DDC20DF.6060805@gmail.com> <201105242324.15541.hselasky@c2i.net> <4DDD5245.3040500@gmail.com> In-Reply-To: <4DDD5245.3040500@gmail.com> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105252133.23321.hselasky@c2i.net> Cc: freebsd-drivers@freebsd.org, freebsd-usb@freebsd.org Subject: Re: traditional syscalls with DRIVER_MODULE ???? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 19:34:41 -0000 Hi, On Wednesday 25 May 2011 21:02:29 Jim Bryant wrote: > do start_read/stop_read and start_write/stop_write map directly to the > userland read(2) and write(2) calls? No, but they are called from these calls. The idea is that you use the FIFO mechanism already present there when moving data, and poll() will be automatically handled. Probably that is not suitable for your purpose? > i had looked at this previously, and am a bit confused on if the above > is correct. > > even if they are the direct interface to read(2)/write(2), the issue of > a poll method for select(2) still exists... > > grepping all DRIVER_MODULE usages comes up with only two poll methods: > > powerpc/powermac/pmu.c: DEVMETHOD(adb_hb_controller_poll, > pmu_poll), > powerpc/powermac/cuda.c: DEVMETHOD(adb_hb_controller_poll, > cuda_poll), > > and those are unhelpful. > > please excuse me if these are newbie questions, but, i'm still in the > learning process. It is OK to ask questions :-) > > i can do this if there is a way to prevent DRIVER_MODULE from creating > the devfs nodes, and instead do this in a hybrid way using DRIVER_MODULE > and make_dev(9), which has the exact traditional functionality i want in > this. any ideas? Why can't you create the node when you receive a device_attach event? > two of the three device nodes this driver will create > will require read(2)/select(2) interfaces visible to userland, and the > third driver will require write(2) visible to userland. > the question is: is there a way to use DRIVER_MODULE, which seems > necessary for usbdi, yet create the devfs nodes using make_dev/cdevsw? > i would prefer to not have DRIVER_MODULE create the device nodes. DRIVER_MODULE() only will create devices if you have a load function which does so. It is only called once! --HPS From owner-freebsd-usb@FreeBSD.ORG Thu May 26 11:10:33 2011 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 8B90E1065673 for ; Thu, 26 May 2011 11:10:33 +0000 (UTC) (envelope-from cwhiteh@onetel.com) Received: from honeysuckle.london.02.net (honeysuckle.london.02.net [87.194.255.144]) by mx1.freebsd.org (Postfix) with ESMTP id 29D378FC14 for ; Thu, 26 May 2011 11:10:32 +0000 (UTC) Received: from muji2.config (93.97.24.219) by honeysuckle.london.02.net (8.5.133) id 4DA2FC0B01047CC7 for freebsd-usb@freebsd.org; Thu, 26 May 2011 12:10:31 +0100 Message-ID: <4DDE3527.1080908@onetel.com> Date: Thu, 26 May 2011 12:10:31 +0100 From: Chris Whitehouse User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.9) Gecko/20100924 Thunderbird/3.1.4 MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <4DD4FC0A.6060609@onetel.com> <4DD9412A.9050500@onetel.com> <20110522225659.50ca7b04.torfinn.ingolfsen@broadpark.no> <4DDAB7FA.3060401@onetel.com> In-Reply-To: <4DDAB7FA.3060401@onetel.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Initio INIC-1511 - USB to PATA Bridge X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2011 11:10:33 -0000 On 23/05/2011 20:39, Chris Whitehouse wrote: > On 22/05/2011 21:56, Torfinn Ingolfsen wrote: >> On Sun, 22 May 2011 18:00:26 +0100 >> Chris Whitehouse wrote: >> >>> On 19/05/2011 12:16, Chris Whitehouse wrote: >>>> Hi, I was wondering if anyone knows if this chip is supported. It is >>>> used in an external usb dvd drive. If it is not supported is it likely >>>> that I could submit some details and get support added? >>>> >>>> I don't have one yet I'm thinking of buying one and trying to gauge the >>>> probability that it will work before I buy. >>>> >>>> thanks >>>> >>>> Chris >>> >>> Hi does anyone have any words of wisdom on this? Or should I be looking >>> for the info elsewhere? >> >>> From the specs, it looks like a standard usb mass storage device to me. >> It "should" work, but YMMV. >> Googling for "freebsd Initio INIC-1511" doesn't give any good answers. >> >> Unless you can find someone which has tried this device with FreeBSD, >> getting confirmation might be troublesome. >> HTH > > Thanks for the reply, I think I will get one and try it out. > > Chris It does work. Chris From owner-freebsd-usb@FreeBSD.ORG Thu May 26 21:28:42 2011 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 D66F2106564A; Thu, 26 May 2011 21:28:42 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 430608FC16; Thu, 26 May 2011 21:28:41 +0000 (UTC) Received: by gwb15 with SMTP id 15so612796gwb.13 for ; Thu, 26 May 2011 14:28:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=sMXIGAQYRZcqj6EJbh+QDc3mUdIlZlOW/hxvI222B68=; b=MWcfm5XbcCbfs01g4DjRDN5nJf9Tp1Y45h0PNfjCk5Ceco2CwI9kBbjOFMOiklyemw kuUGRpl2A23aHFr+/VT/Hi7D3mkHrN0l2sOTpXEwIa6Dp+686hiYaYZgw2/zD7CPWFEG M51lkA86DxlnC8gZiwWdxQJrbC9lbqsd9RBTA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=JYP/TLktpP7eTBavGy8IyKgiLmSQPfX81UnQhiKoDnRncfqgeCOyYuc5Wt6bjKK+dZ eVAqxGxy0GkhnzXO+qGKa9lzKIq12BGJifwiaIfBM7KuH17yiKOerFI/f8NDI3LK0ORV P0trcT9jlC1wupphWUv8w9QTH6bO3kUQl6/JM= Received: by 10.146.248.19 with SMTP id v19mr1336053yah.25.1306445321351; Thu, 26 May 2011 14:28:41 -0700 (PDT) Received: from argus.electron-tube.net (desm-44-169.dsl.netins.net [167.142.44.169]) by mx.google.com with ESMTPS id b25sm955071anb.46.2011.05.26.14.28.39 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 May 2011 14:28:40 -0700 (PDT) Message-ID: <4DDD7ED9.90500@gmail.com> Date: Wed, 25 May 2011 17:12:41 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100911) MIME-Version: 1.0 To: Hans Petter Selasky References: <4DDC20DF.6060805@gmail.com> <201105242324.15541.hselasky@c2i.net> <4DDD5245.3040500@gmail.com> <201105252133.23321.hselasky@c2i.net> In-Reply-To: <201105252133.23321.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-drivers@freebsd.org, freebsd-usb@freebsd.org Subject: Re: traditional syscalls with DRIVER_MODULE ???? 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, 26 May 2011 21:28:43 -0000 excuse me while i pull my head out of my posterior... yup. it wasn't DRIVER_MODULE() doing it... it was the usb_fifo_attach.... i think i'm back on the right track now... thanks for pointing me in the right direction. Hans Petter Selasky wrote: > Hi, > > On Wednesday 25 May 2011 21:02:29 Jim Bryant wrote: > >> do start_read/stop_read and start_write/stop_write map directly to the >> userland read(2) and write(2) calls? >> > > No, but they are called from these calls. The idea is that you use the FIFO > mechanism already present there when moving data, and poll() will be > automatically handled. Probably that is not suitable for your purpose? > > >> i had looked at this previously, and am a bit confused on if the above >> is correct. >> >> even if they are the direct interface to read(2)/write(2), the issue of >> a poll method for select(2) still exists... >> >> grepping all DRIVER_MODULE usages comes up with only two poll methods: >> >> powerpc/powermac/pmu.c: DEVMETHOD(adb_hb_controller_poll, >> pmu_poll), >> powerpc/powermac/cuda.c: DEVMETHOD(adb_hb_controller_poll, >> cuda_poll), >> >> and those are unhelpful. >> >> > > >> please excuse me if these are newbie questions, but, i'm still in the >> learning process. >> > > It is OK to ask questions :-) > > >> i can do this if there is a way to prevent DRIVER_MODULE from creating >> the devfs nodes, and instead do this in a hybrid way using DRIVER_MODULE >> and make_dev(9), which has the exact traditional functionality i want in >> this. any ideas? >> > > Why can't you create the node when you receive a device_attach event? > > >> two of the three device nodes this driver will create >> will require read(2)/select(2) interfaces visible to userland, and the >> third driver will require write(2) visible to userland. >> > > >> the question is: is there a way to use DRIVER_MODULE, which seems >> necessary for usbdi, yet create the devfs nodes using make_dev/cdevsw? >> i would prefer to not have DRIVER_MODULE create the device nodes. >> > > DRIVER_MODULE() only will create devices if you have a load function which > does so. It is only called once! > > --HPS > > From owner-freebsd-usb@FreeBSD.ORG Sat May 28 01:20:09 2011 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 795EA106566B for ; Sat, 28 May 2011 01:20:09 +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 3DA838FC12 for ; Sat, 28 May 2011 01:20:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4S1K9Jc071587 for ; Sat, 28 May 2011 01:20:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4S1K9qB071586; Sat, 28 May 2011 01:20:09 GMT (envelope-from gnats) Resent-Date: Sat, 28 May 2011 01:20:09 GMT Resent-Message-Id: <201105280120.p4S1K9qB071586@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, John Levine Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81FFA106564A for ; Sat, 28 May 2011 01:13:32 +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 719A58FC15 for ; Sat, 28 May 2011 01:13:32 +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 p4S1DWoG081580 for ; Sat, 28 May 2011 01:13:32 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p4S1DWgM081572; Sat, 28 May 2011 01:13:32 GMT (envelope-from nobody) Message-Id: <201105280113.p4S1DWgM081572@red.freebsd.org> Date: Sat, 28 May 2011 01:13:32 GMT From: John Levine To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/157376: LaCie USB disk not recognized 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, 28 May 2011 01:20:09 -0000 >Number: 157376 >Category: usb >Synopsis: LaCie USB disk not recognized >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 28 01:20:08 UTC 2011 >Closed-Date: >Last-Modified: >Originator: John Levine >Release: 8.2-RELEASE >Organization: I.E.C.C. >Environment: FreeBSD joyce.lan 8.2-RELEASE FreeBSD 8.2-RELEASE #2: Tue Apr 19 19:25:59 EDT 2011 johnl@joyce.lan:/usr/obj/usr/src/sys/JOYCE amd64 >Description: This is an ordinary USB disk. I'm pretty sure it worked on 7.2. When I plug it in, I see this. ugen3.6: at usbus3 (disconnected) uhub_reattach_port: could not allocate new device The disk is fine. Here's what a Linux box sees: T: Bus=01 Lev=02 Prnt=02 Port=03 Cnt=03 Dev#= 7 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=059f ProdID=0351 Rev=00.00 S: Manufacturer=LaCie S: Product=LaCie Hard Drive USB S: SerialNumber=10000E0003AAADFC C: #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=2mA I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage Did it perhaps fall out of some device table? >How-To-Repeat: Plug in the disk. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sat May 28 07:20:52 2011 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 0D94D1065673; Sat, 28 May 2011 07:20:52 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.c2i.net [212.247.154.226]) by mx1.freebsd.org (Postfix) with ESMTP id 5B8378FC12; Sat, 28 May 2011 07:20:50 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=PvOwS0pD1JWuCk2fMyCiv7x8TRi/oBifOus6FmFACNc= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=27OR0y9NYBUA:10 a=WQU8e4WWZSUA:10 a=Q9fys5e9bTEA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=PZ0f9VZ6DqH3jPU4fmEA:9 a=HloGCn68Ck4UO0XruMQA:7 a=PUjeQqilurYA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 132935876; Sat, 28 May 2011 09:20:48 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sat, 28 May 2011 09:19:30 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <201105280113.p4S1DWgM081572@red.freebsd.org> In-Reply-To: <201105280113.p4S1DWgM081572@red.freebsd.org> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201105280919.31288.hselasky@c2i.net> Cc: John Levine , freebsd-gnats-submit@freebsd.org Subject: Re: usb/157376: LaCie USB disk not recognized 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, 28 May 2011 07:20:52 -0000 On Saturday 28 May 2011 03:13:32 John Levine wrote: > >Number: 157376 > >Category: usb > >Synopsis: LaCie USB disk not recognized > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Sat May 28 01:20:08 UTC 2011 > >Closed-Date: > >Last-Modified: > >Originator: John Levine > >Release: 8.2-RELEASE > > >Organization: > I.E.C.C. > > >Environment: > FreeBSD joyce.lan 8.2-RELEASE FreeBSD 8.2-RELEASE #2: Tue Apr 19 19:25:59 > EDT 2011 johnl@joyce.lan:/usr/obj/usr/src/sys/JOYCE amd64 > > >Description: > This is an ordinary USB disk. I'm pretty sure it worked on 7.2. When I plug > it in, I see this. > > ugen3.6: at usbus3 (disconnected) > uhub_reattach_port: could not allocate new device Can you send a bit more of the dmesg? Can you tell me if your device is connected directly through the HC on the mainboard or through an external/internal HUB? --HPS From owner-freebsd-usb@FreeBSD.ORG Sat May 28 07:30:15 2011 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 7751B106564A for ; Sat, 28 May 2011 07:30: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 67E868FC13 for ; Sat, 28 May 2011 07:30:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4S7UF6O032008 for ; Sat, 28 May 2011 07:30:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4S7UFnM032003; Sat, 28 May 2011 07:30:15 GMT (envelope-from gnats) Date: Sat, 28 May 2011 07:30:15 GMT Message-Id: <201105280730.p4S7UFnM032003@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/157376: LaCie USB disk not recognized 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, 28 May 2011 07:30:15 -0000 The following reply was made to PR usb/157376; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: John Levine , freebsd-gnats-submit@freebsd.org Subject: Re: usb/157376: LaCie USB disk not recognized Date: Sat, 28 May 2011 09:19:30 +0200 On Saturday 28 May 2011 03:13:32 John Levine wrote: > >Number: 157376 > >Category: usb > >Synopsis: LaCie USB disk not recognized > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Sat May 28 01:20:08 UTC 2011 > >Closed-Date: > >Last-Modified: > >Originator: John Levine > >Release: 8.2-RELEASE > > >Organization: > I.E.C.C. > > >Environment: > FreeBSD joyce.lan 8.2-RELEASE FreeBSD 8.2-RELEASE #2: Tue Apr 19 19:25:59 > EDT 2011 johnl@joyce.lan:/usr/obj/usr/src/sys/JOYCE amd64 > > >Description: > This is an ordinary USB disk. I'm pretty sure it worked on 7.2. When I plug > it in, I see this. > > ugen3.6: at usbus3 (disconnected) > uhub_reattach_port: could not allocate new device Can you send a bit more of the dmesg? Can you tell me if your device is connected directly through the HC on the mainboard or through an external/internal HUB? --HPS From owner-freebsd-usb@FreeBSD.ORG Sat May 28 08:40:59 2011 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 94E8F106566B; Sat, 28 May 2011 08:40:59 +0000 (UTC) (envelope-from kevlo@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6DDE08FC12; Sat, 28 May 2011 08:40:59 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4S8exel012437; Sat, 28 May 2011 08:40:59 GMT (envelope-from kevlo@freefall.freebsd.org) Received: (from kevlo@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4S8exXb012398; Sat, 28 May 2011 08:40:59 GMT (envelope-from kevlo) Date: Sat, 28 May 2011 08:40:59 GMT Message-Id: <201105280840.p4S8exXb012398@freefall.freebsd.org> To: jintxo@hotmail.com, kevlo@FreeBSD.org, freebsd-usb@FreeBSD.org From: kevlo@FreeBSD.org Cc: Subject: Re: usb/149528: [zyd] Wireless USB stick not detected - vendor id 0x083a device id 0x4505 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, 28 May 2011 08:40:59 -0000 Synopsis: [zyd] Wireless USB stick not detected - vendor id 0x083a device id 0x4505 State-Changed-From-To: open->closed State-Changed-By: kevlo State-Changed-When: Sat May 28 08:40:22 UTC 2011 State-Changed-Why: Already committed in HEAD http://www.freebsd.org/cgi/query-pr.cgi?pr=149528 From owner-freebsd-usb@FreeBSD.ORG Sat May 28 14:37:17 2011 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 A41D0106564A; Sat, 28 May 2011 14:37:17 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id EC3F68FC08; Sat, 28 May 2011 14:37:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mailfe01.swip.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 X-TFF-CGPSA-Version: 1.7 X-T2-CGPSA-Filter: Scanned X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=yYqb1Ndwz7LWRCrQG5Ocftr83lrAPRCEYBUdXOV8g40= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=27OR0y9NYBUA:10 a=WQU8e4WWZSUA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=3DW5ysfuAAAA:8 a=QR-laIvFEAPAN6fju40A:9 a=wPNLvfGTeEIA:10 a=2SAumGWBsQEA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 133585125; Sat, 28 May 2011 16:37:13 +0200 From: Hans Petter Selasky To: "Hostmaster" Date: Sat, 28 May 2011 16:35:57 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <201105280113.p4S1DWgM081572@red.freebsd.org> <201105280919.31288.hselasky@c2i.net> In-Reply-To: X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105281635.57055.hselasky@c2i.net> Cc: freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/157376: LaCie USB disk not recognized 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, 28 May 2011 14:37:17 -0000 On Saturday 28 May 2011 16:26:03 Hostmaster wrote: > >> This is an ordinary USB disk. I'm pretty sure it worked on 7.2. When I > >> plug it in, I see this. > >> > >> ugen3.6: at usbus3 (disconnected) > >> uhub_reattach_port: could not allocate new device > > > > Can you send a bit more of the dmesg? > > Those two lines are all it says. It says nothing when I unplug the disk. > > > Can you tell me if your device is connected directly through the HC on > > the mainboard or through an external/internal HUB? > > It's a laptop, plugged directly into a connector on the side of the > computer. > > Regards, > John Levine, hostmaster@iecc.com > (and hostmaster of about 100 other domains) Can you compile a kernel with "options USB_DEBUG" and try again? --HPS From owner-freebsd-usb@FreeBSD.ORG Sat May 28 14:40:03 2011 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 387E51065670 for ; Sat, 28 May 2011 14:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 23F3B8FC08 for ; Sat, 28 May 2011 14:40:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4SEe2X3037829 for ; Sat, 28 May 2011 14:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4SEe2HB037828; Sat, 28 May 2011 14:40:02 GMT (envelope-from gnats) Date: Sat, 28 May 2011 14:40:02 GMT Message-Id: <201105281440.p4SEe2HB037828@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/157376: LaCie USB disk not recognized 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, 28 May 2011 14:40:03 -0000 The following reply was made to PR usb/157376; it has been noted by GNATS. From: Hans Petter Selasky To: "Hostmaster" Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: usb/157376: LaCie USB disk not recognized Date: Sat, 28 May 2011 16:35:57 +0200 On Saturday 28 May 2011 16:26:03 Hostmaster wrote: > >> This is an ordinary USB disk. I'm pretty sure it worked on 7.2. When I > >> plug it in, I see this. > >> > >> ugen3.6: at usbus3 (disconnected) > >> uhub_reattach_port: could not allocate new device > > > > Can you send a bit more of the dmesg? > > Those two lines are all it says. It says nothing when I unplug the disk. > > > Can you tell me if your device is connected directly through the HC on > > the mainboard or through an external/internal HUB? > > It's a laptop, plugged directly into a connector on the side of the > computer. > > Regards, > John Levine, hostmaster@iecc.com > (and hostmaster of about 100 other domains) Can you compile a kernel with "options USB_DEBUG" and try again? --HPS From owner-freebsd-usb@FreeBSD.ORG Sat May 28 14:52:45 2011 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 76AB11065670 for ; Sat, 28 May 2011 14:52:45 +0000 (UTC) (envelope-from prvs=01223fedce=hostmaster@iecc.com) Received: from gal.iecc.com (gal.iecc.com [64.57.183.53]) by mx1.freebsd.org (Postfix) with ESMTP id 0BF4D8FC14 for ; Sat, 28 May 2011 14:52:44 +0000 (UTC) Received: (qmail 47261 invoked from network); 28 May 2011 14:26:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:references:mime-version:content-type:vbr-info:user-agent:cleverness; s=b89c.4de105fb.k1105; i=johnl@submit.iecc.com; bh=8TWGAr3Ggk2LxcSVuRSRfXJ7UDVq7DVg0IpZqk55wZc=; b=MwASGuURQt+89H79nSErzIMy+rhusG5/Q07VfA8cL07pF4d1YWkhz+eIhvi75tfplVCTOhM4XM3mMzKs6pd0M8D+SL4lPohgr9xRcPJKx03C34HEQk+6bAl6fxu/tcMnNO3jgidJzluxjYhBtWV3UK/8jolNvG/wP/3dB+RSWHs= VBR-Info: md=iecc.com; mc=all; mv=dwl.spamhaus.org Received: (ofmipd johnl@64.57.183.62) with (DHE-RSA-AES256-SHA encrypted) SMTP; 28 May 2011 14:25:41 -0000 Date: 28 May 2011 10:26:03 -0400 Message-ID: From: "Hostmaster" To: "Hans Petter Selasky" In-Reply-To: <201105280919.31288.hselasky@c2i.net> References: <201105280113.p4S1DWgM081572@red.freebsd.org> <201105280919.31288.hselasky@c2i.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) Cleverness: None detected MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/157376: LaCie USB disk not recognized 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, 28 May 2011 14:52:45 -0000 >> This is an ordinary USB disk. I'm pretty sure it worked on 7.2. When I plug >> it in, I see this. >> >> ugen3.6: at usbus3 (disconnected) >> uhub_reattach_port: could not allocate new device > > Can you send a bit more of the dmesg? Those two lines are all it says. It says nothing when I unplug the disk. > Can you tell me if your device is connected directly through the HC on the > mainboard or through an external/internal HUB? It's a laptop, plugged directly into a connector on the side of the computer. Regards, John Levine, hostmaster@iecc.com (and hostmaster of about 100 other domains) From owner-freebsd-usb@FreeBSD.ORG Sat May 28 15:00:22 2011 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 43120106564A for ; Sat, 28 May 2011 15:00:22 +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 2E0BD8FC1A for ; Sat, 28 May 2011 15:00:22 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4SF0MmP054655 for ; Sat, 28 May 2011 15:00:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4SF0L3L054654; Sat, 28 May 2011 15:00:21 GMT (envelope-from gnats) Date: Sat, 28 May 2011 15:00:21 GMT Message-Id: <201105281500.p4SF0L3L054654@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "Hostmaster" Cc: Subject: Re: usb/157376: LaCie USB disk not recognized X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hostmaster List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 May 2011 15:00:22 -0000 The following reply was made to PR usb/157376; it has been noted by GNATS. From: "Hostmaster" To: "Hans Petter Selasky" Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: usb/157376: LaCie USB disk not recognized Date: 28 May 2011 10:26:03 -0400 >> This is an ordinary USB disk. I'm pretty sure it worked on 7.2. When I plug >> it in, I see this. >> >> ugen3.6: at usbus3 (disconnected) >> uhub_reattach_port: could not allocate new device > > Can you send a bit more of the dmesg? Those two lines are all it says. It says nothing when I unplug the disk. > Can you tell me if your device is connected directly through the HC on the > mainboard or through an external/internal HUB? It's a laptop, plugged directly into a connector on the side of the computer. Regards, John Levine, hostmaster@iecc.com (and hostmaster of about 100 other domains)