From owner-freebsd-usb@FreeBSD.ORG Sun Jan 7 20:07:44 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4BE5616A412 for ; Sun, 7 Jan 2007 20:07:44 +0000 (UTC) (envelope-from biancalana@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id DAED313C45E for ; Sun, 7 Jan 2007 20:07:43 +0000 (UTC) (envelope-from biancalana@gmail.com) Received: by nf-out-0910.google.com with SMTP id x37so8603599nfc for ; Sun, 07 Jan 2007 12:07:42 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=KRot1xoopedCdx2sez2ZtVOM5F295ETtjE51WIgAgcHxeu3qbKa4skDadQhF+1M3kKLu1GBeMMP0aUNx1rIYnOccHKg0mBI+IAbhi1nPdTNwd8rgo2u6BX+ZJ5xM2WtkvaQJ8wAhX455YwSp2/cWWTPw2ZL0pAWu/QQQ4EqSBKI= Received: by 10.49.54.3 with SMTP id g3mr9566617nfk.1168198803719; Sun, 07 Jan 2007 11:40:03 -0800 (PST) Received: by 10.48.164.13 with HTTP; Sun, 7 Jan 2007 11:40:03 -0800 (PST) Message-ID: <8e10486b0701071140m60d9d968sb3b825710011565d@mail.gmail.com> Date: Sun, 7 Jan 2007 17:40:03 -0200 From: "Alexandre Biancalana" To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: PR#103025 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, 07 Jan 2007 20:07:44 -0000 Hi list, Any news about PR#103025 ?? I'm doing some work with Nano lx-800 board ( http://www.ieiworld.com/en/product_IPC.asp?model=NANO-LX) and the same problem described in this PR is already happening.... the difference is that some times the machine boot and works great (usb pendrive boot drive) and some this panic at boot. If someone need, I can provide dumps of this panics. Someone can help ?? Best Regards, Alexandre Biancalana From owner-freebsd-usb@FreeBSD.ORG Sun Jan 7 20:25:54 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 56E1B16A47B for ; Sun, 7 Jan 2007 20:25:54 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.freebsd.org (Postfix) with ESMTP id C6FC013C4A9 for ; Sun, 7 Jan 2007 20:25:52 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: by nf-out-0910.google.com with SMTP id x37so8608143nfc for ; Sun, 07 Jan 2007 12:25:51 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:x-enigmail-version:content-type:content-transfer-encoding; b=FldYiVf4f/MYkT9ZXN5f1aK5nG4g4vwhzNZmaOTU4a+/k5efpcSD5AOxw2doSLXHT6l8FjOLFq1PzkZEDb+g/qzWPHrH+lMF5eYDgQcjGzwaMBD1GTCY2TiCtvTVdrUC91TExma3NUkrV5cnosYz2YU0ePF5pcwdQP3yYEi0Nbs= Received: by 10.48.230.20 with SMTP id c20mr28002488nfh.1168199963909; Sun, 07 Jan 2007 11:59:23 -0800 (PST) Received: from ?192.168.123.201? ( [195.241.221.201]) by mx.google.com with ESMTP id r33sm104625486nfc.2007.01.07.11.59.22; Sun, 07 Jan 2007 11:59:23 -0800 (PST) Message-ID: <45A15119.8060008@gmail.com> Date: Sun, 07 Jan 2007 20:59:21 +0100 From: Rene Ladan User-Agent: Thunderbird 1.5.0.9 (X11/20061224) MIME-Version: 1.0 To: freebsd-usb@freebsd.org X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Fwd: pp->mediasize == 0 when reattaching physical medium ?] 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, 07 Jan 2007 20:25:54 -0000 -------- Originele bericht -------- Onderwerp: pp->mediasize == 0 when reattaching physical medium ? Datum: Sun, 07 Jan 2007 15:30:12 +0100 Van: Rene Ladan Aan: freebsd-geom@freebsd.org CC: Poul-Henning Kamp Referenties: <74225.1167686662@critter.freebsd.dk> <459D766B.9050304@gmail.com> <45A04444.8010701@gmail.com> Rene Ladan schreef: > Rene Ladan schreef: >> Poul-Henning Kamp schreef: >>> In message <45996C4F.8070700@gmail.com>, Rene Ladan writes: >>>> Hi, >>>> >>>> I've written an extension to /sys/geom/geom_mbr.c to slice up xbox360 >>>> hard disks and memory units. The patch for revision 1.68 (i.e. CURRENT) >>>> is at http://home.tisali.nl/rladan/freebsd/geom_mbr.c.diff >>> This is wrong, you should make a geom_xbox360 class instead. >>> >> Ok, I made a geom_xbox360 class and restored geom_mbr.c >> >> The new class consists of three files at the above website. >> >> geom_xbox360.c : the class, put it in /sys/geom >> geom_xbox360::Makefile : Makefile for /sys/modules/geom/geom_xbox360/ >> Makefile.diff : patch for /sys/modules/geom/Makefile >> >> > I've uploaded a new version of geom_xbox360.c. The class now works > correctly except for: > > 1) If you kldload the class and plug in a physical medium afterwards, > then pp->mediasize == 0 so the taste function fails. This does not > happen if the medium is plugged in before the kldload or when using dd > images using mdconfig. I think that the taste function is called before > the physical medium (here da0) is properly initialized. MBR media don't > suffer from this because mbr_taste() doesn't check pp->mediasize. A > dmesg is attached. > I am able to reproduce this with a standard USB 1 memory stick. The medium is correctly tasted when kldloading after the medium is plugged in, or when the class is kldloaded and you finish making the stick look like an xbox360 medium. I've uploaded a new version of the class, which enables experimenting with a normal USB stick. See the note at lines 53-56 of geom_xbox360.c Note that this extra experimenting code really doesn't belong in the class, so I'll remove it sooner or later. It might be related to usb/80361, usb/89954 (the 'size 0' part of the description), and usb/97175. This suggests that someone(tm) needs to take a look at umass(4). Regards, Rene -- GPG fingerprint = E738 5471 D185 7013 0EE0 4FC8 3C1D 6F83 12E1 84F6 (subkeys.pgp.net) "It won't fit on the line." -- me, 2001 -- GPG fingerprint = E738 5471 D185 7013 0EE0 4FC8 3C1D 6F83 12E1 84F6 (subkeys.pgp.net) "It won't fit on the line." -- me, 2001 From owner-freebsd-usb@FreeBSD.ORG Mon Jan 8 07:13:29 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5BA1C16A412; Mon, 8 Jan 2007 07:13:29 +0000 (UTC) (envelope-from remko@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 35B9E13C428; Mon, 8 Jan 2007 07:13:29 +0000 (UTC) (envelope-from remko@FreeBSD.org) Received: from freefall.freebsd.org (remko@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l087DTSD098166; Mon, 8 Jan 2007 07:13:29 GMT (envelope-from remko@freefall.freebsd.org) Received: (from remko@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l087DTgp098162; Mon, 8 Jan 2007 07:13:29 GMT (envelope-from remko) Date: Mon, 8 Jan 2007 07:13:29 GMT From: Remko Lodder Message-Id: <200701080713.l087DTgp098162@freefall.freebsd.org> To: remko@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org Cc: Subject: Re: kern/107665: [usb]: uscanner support for epson stylus DX5050 MFP 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, 08 Jan 2007 07:13:29 -0000 Old Synopsis: uscanner support for epson stylus DX5050 MFP New Synopsis: [usb]: uscanner support for epson stylus DX5050 MFP Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: remko Responsible-Changed-When: Mon Jan 8 07:13:09 UTC 2007 Responsible-Changed-Why: This seems like a job for the USB team. http://www.freebsd.org/cgi/query-pr.cgi?pr=107665 From owner-freebsd-usb@FreeBSD.ORG Mon Jan 8 11:08:59 2007 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 61FC816A501 for ; Mon, 8 Jan 2007 11:08:59 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 4C81D13C44C for ; Mon, 8 Jan 2007 11:08:59 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l08B8xZW016659 for ; Mon, 8 Jan 2007 11:08:59 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l08B8vcm016655 for freebsd-usb@FreeBSD.org; Mon, 8 Jan 2007 11:08:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 8 Jan 2007 11:08:57 GMT Message-Id: <200701081108.l08B8vcm016655@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jan 2007 11:08:59 -0000 Current FreeBSD problem reports Critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa o usb/91629 usb usbd_abort_pipe() may result in infinite loop o usb/107572 usb Immidiate System Reboot after removing an active usb-s 3 problems total. Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/40792 usb signals lead to data loss on device ugen o usb/46176 usb [panic] umass causes kernel panic if device removed be o i386/46371 usb USB controller cannot be initialized on IBM Netfinity f usb/55555 usb [ums] system freezes with access to /dev/ums0 o bin/57255 usb usbd and multi-function devices o usb/62088 usb [usb] Logitech Cordless/Optical Mouse not working o usb/62309 usb [ugen] [panic] panic: ugen(4) driver o usb/63621 usb [usb] USB MemoryStick Reader stalls/crashes system o usb/69006 usb [patch] Apple Cinema Display hangs USB ports o usb/71155 usb [usb] misbehaving usb-printer hangs processes, causes o usb/73307 usb [panic] Kernel panics on USB disconnect o usb/74771 usb [umass] mounting write-protected umass device as read/ o usb/75705 usb [panic] da0 attach / Optio S4 (with backtrace) o usb/75797 usb 5.3-STABLE(2005 1/4) detect USB headset, But can not f f usb/76204 usb panic while using usb attached modem o usb/76395 usb USB printer does not work, usbdevs says "addr 0 should f usb/76684 usb [hang] Toshiba PDR-M4 camera connected via USB hangs s o usb/77184 usb kernel panic on USB device disconnect o usb/77294 usb ucom + ulpcom panic o usb/77940 usb [patch] [panic] insertion of usb keyboard panics syste f i386/78218 usb [kue] kue not detected on Sony PCG-F370 VAIO o usb/78989 usb please add USB keyboard support to install CD's o usb/79140 usb WD Firewire/USB Combo hangs under load on USB interfac o usb/79269 usb USB ohci da0 plug/unplug causes crashes and lockups. o usb/79287 usb UHCI hang after interrupt transfer o usb/79524 usb printing to Minolta PagePro 1[23]xxW via USB fails wit f usb/79656 usb [usb] RHSC interrupts lost o usb/79722 usb [usb] wrong alignments in ehci.h o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua f usb/80260 usb Travan USB tape drive fails to write o usb/80361 usb mounting of usb-stick fails o usb/80373 usb usb keyboard does not respond o usb/80829 usb possible panic when loading USB-modules o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/81308 usb [ugen] [patch] polling a ugen(4) control endpoint caus f usb/82198 usb Panic on attaching of ONKI N-338 USB MP3 player f usb/82272 usb Can not recognize Casio camera EX-Z40 as a umass devic o usb/82350 usb [usb] null pointer dereference in USB stack o usb/82520 usb Reboot when USL101 connected o usb/82569 usb [usb] USB mass storage plug/unplug causes system panic o usb/82660 usb EHCI: I/O stuck in state 'physrd'/panic o usb/83504 usb [usb] SpeedTouch USB stop working on recent current (a o usb/83563 usb [panic] Page Fault while detaching Mpman Usb device o usb/83677 usb [usb] usb controller often not detected (Sun W2100z) o usb/83756 usb Microsoft Intellimouse Explorer 4.0A doesn't work. o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84936 usb install - usb keyboard not recognized o usb/86031 usb need support usb nic rt2500 in my 5.4 STABLE o usb/86767 usb [usb] bogus "slice starts beyond end of the disk:..." o usb/87099 usb panic: ohci_add_done: addr 0x000d1bf0 not found o usb/87565 usb [PATCH] Support for Vodaphone 3G/UMTS cards o usb/88743 usb [hang] USB makes kernel hang at boot (regression in 6. o usb/88966 usb kldunload ucom.ko returns "Device busy" error. o usb/89003 usb LaCie Firewire drive not properly supported under 6.0 o usb/89218 usb flash disk o usb/89954 usb [usb] USB Disk driver race condition? f usb/89997 usb [umass] [panic] panic on iPod mini detach o usb/90162 usb [usb] [patch] Add support for the MS Wireless USB Mous o usb/90700 usb Kernel panic on connect/mount/use umass device o usb/91238 usb USB tape unit fails to write a second tape file to the o usb/91263 usb [patch] USB quirk needed for Logitec USB Hard disk LHD o usb/91283 usb booting very slow with usb devices connection (regress o usb/91538 usb Unable to print to EPSON CX3500 o usb/91906 usb FreeBSD hangs while booting with USB legacy support on o usb/92052 usb usbd causes defunct process with busy file-handle o usb/92142 usb SET_ADDR_FAILED and SHORT_XFER errors from usb drivers o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/93155 usb /dev/ulpt0: device busy USB printer does not work o usb/93408 usb hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes choppy m f usb/93496 usb USB2.0 umass stalls on VIA o usb/93640 usb device ehci causes interrupt storm on this MSI amd64 m o usb/93828 usb ohci causes panic on boot (HP Pavillion d4100e) o usb/93949 usb ugen(4)-related repeatable kernel panic in 6.1-PRERELE o usb/94166 usb btx halted with a flashcard plugged o usb/94384 usb kernel panic with usb2 hardware o usb/94717 usb Reading from /dev/ulpt can break work of a UHCI hub o usb/94742 usb [umass] [patch] umass driver does not recognise YANO e o usb/94813 usb mounting write-protected umass device freezes computer o usb/94897 usb Kernel Panic when cleanly unmounting USB disk o usb/95131 usb Boot/setup process does not accept key strokes o usb/95348 usb USB keyboard unplug causes noise on screen o usb/95562 usb Write Stress in USB Mass drive cause: [vinvalbuf: dir o usb/95636 usb [boot] 5 minute delay at boot when using VT6205 based o usb/96120 usb USB mouse not always detected o usb/96224 usb [usb] mount_msdosfs cause page fault in syncer process o usb/96457 usb fatback on umass = reboot o usb/97286 usb MS Wireless Intellimouse Explorer 2.0 doesn't work o usb/99431 usb FreeBSD on MSI 6566E (Intel 845E motherboards) doesn't o usb/101096 usb USB WLAN occasionally causes kernel-panics during larg o usb/101752 usb [panic] 6.1-RELEASE kernel panic on usb device inserti o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/102096 usb /usr/sbin/usbd does not handle multiple devices in one o i386/103025 usb [USB] the wrong in USB device for freeBSD 6.1 and AMD o usb/104292 usb system lockup on forced umount of usb-storage device o usb/104810 usb [usb] panic: ohci_add_done: addr 0x3fef1ba0 not found o usb/104830 usb system crashes when copying data to umass devices o usb/105186 usb USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 crashes box o usb/106615 usb uftdi module does not automatically load with the FTDI o usb/106648 usb USB Floppy on D1950 10 min Hang on Insert w/o Floppy D o usb/106832 usb USB HP printer is not detected by kernel when ACPI ena o usb/107101 usb [umass] [patch] Quirk for Denver MP3 player o usb/107116 usb [usb] panic while accessing usb msdos pccard o usb/107128 usb [usb] panic while accessing usb msdos flashkey o usb/107248 usb [PATCH] scsi_da.c quirk for Cowon iAUDIO X5 MP3 player o usb/107446 usb [umass] umass problems (usb and fw disks) 107 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem s usb/32653 usb Added patches to improve USB scanner supportOB o usb/40948 usb [usb] USB HP CDW8200 does not work f usb/41415 usb [usb] [patch] Some USB scanners cannot talk to uscanne o usb/48342 usb [PATCH] usbd dynamic device list. o kern/51958 usb [usb] [patch] update for urio driver o kern/52026 usb [usb] feature request: umass driver support for InSyst o usb/53025 usb [ugen] [patch] ugen does not allow O_NONBLOCK for inte o usb/56095 usb [usb] [patch] QUIRK: Apacer Pen Drive fails to work o kern/59698 usb [kbd] [patch] Rework of ukbd HID to AT code translatio f usb/60248 usb [patch] Problem with USB printer HP LaserJet 1300 o usb/61234 usb [usb] [patch] usbhidaction(1) doesn't support using an o usb/63837 usb [uhid] [patch] USB: hid_is_collection() only looks for o kern/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops input on usb- o kern/66547 usb [usb] Palm Tungsten T USB does not initialize correctl o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/68412 usb [usb] [patch] QUIRK: Philips KEY013 USB MP3 player o usb/70523 usb [usb] [patch] umct sending/receiving wrong characters o usb/70942 usb [usb] Genius Wireless USB mouse: moused doesn't work c o usb/71416 usb [usb] Cryptoflex e-gate USB token (ugen0) detach is no o usb/71417 usb [usb] Cryptoflex e-gate USB token (ugen0) communicatio o usb/71455 usb [usb] Slow USB umass performance of 5.3 o usb/71605 usb [umass] [patch] umass doesn't recognize multiple slots o usb/72380 usb [usb] USB does not work [dual Celeron Abit] o usb/72732 usb [patch] Kyocera 7135 quirk. o usb/72733 usb Kyocera 7135 Palm OS connection problem. o usb/73056 usb [usb] Sun Microsystems Type 6 USB mouse not working in f usb/73553 usb [usb] Microsoft USB Internet Keyboard not recongized o usb/74211 usb USB flash drive causes CAM status 0x4 on 4.10Release f usb/74358 usb [umass] unplugging at boot time an umass device crashe o usb/74453 usb Q-lity CD-RW USB ECW-043 (ScanLogic SL11R chipset) doe o usb/74557 usb imation 500mb usb key can only be written halfway on f o usb/74609 usb [usb] [patch] allowing cdma modems to work at full spe o usb/74849 usb [usb] [patch] Samsung SPH-i500 does not attach properl o usb/74880 usb [usb] [patch] Samsung N400 cellphone/acm fails to atac o usb/75800 usb ucom1: init failed STALLED error in time of sync with o usb/75928 usb Cytronix SmartMedia card (SMC) reader has problems whe o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76732 usb Mouse problems with USB KVM Switch f usb/78371 usb Philips Wearable Audio Player (128) fails to attach f usb/78984 usb Creative MUVO umass failure o usb/79723 usb [usb] prepare for high speed isochronous transfers o usb/79725 usb [usb] [patch] USB device speed is not double-checked o usb/79893 usb [umass] [patch] new usbdevs/umass quirks derived from o usb/80010 usb [aue] [patch] add support for the AEI USB to LAN adapt f usb/80420 usb atapicam stops iPod functionality f usb/80773 usb "usbd_get_string()" could have taken a length paramete o usb/80774 usb have "usbd_find_desc" in line with the other "usbd_fin o usb/80776 usb [udav] UDAV device driver shouldn't use usb_add_task o usb/80777 usb usb_rem_task() should wait for callback to complete? o usb/80854 usb suggestion for new iface-no-probe mechanism o usb/80935 usb uvisor.c is not work with CLIE TH55. o usb/81191 usb Support for Curitel HX-550C USB modem to 5.4 RELEASE. f usb/81621 usb external hd hangs under load on ehci o usb/82436 usb [patch] USL101 Host-to-Host bridge support on FreeBSD o usb/83022 usb ALI USB 2.0 EHCI Controller is not detected o usb/83863 usb Communication problem between opensc/openct via USB wi o usb/85067 usb Cannot attach ScanJet 4300C to usb device o usb/85992 usb [uhid] [patch] USB stops working when trying to read f o usb/86195 usb [patch] allow USB Ethernet Adaptor "ELECOM LD-USB20" t o usb/86298 usb Known good USB mouse won't work with correct settings o usb/86438 usb Fix for non-working iPod over USB is in NetBSD CVS o usb/87224 usb Cannot mount USB Zip750 o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/88408 usb axe0 read PHY failed o usb/88939 usb Fix cheapy Myson USB-IDE adapter f usb/89087 usb usb external harddrive hangs with BBB reset failed, TI f usb/91191 usb HP LaserJet 1020 (USB printer) not recognized f usb/91516 usb [umass] umass0 problems, with Freecom Classic SL Hard o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91811 usb Compact Flash in HP Photosmart 2610 return " Medium n o usb/91896 usb Serial Number of USB Memory Sticks is not passed throu o usb/92306 usb [quirk] [patch] Support for iRiver U10 USB media playe o usb/92403 usb [uplcom] uplcom.c needs new entry for 4.00 revision of o usb/92852 usb Vertical scroll not working properly on A4Tech WOP-49 f usb/93011 usb HP ScanJet 6200C & uscanner problem o usb/93389 usb Digital Camera Pentax S60 don't work o usb/93872 usb [patch] SCSI quirk required for ELTA 8061 OL USB memor o usb/94132 usb USB QUIRK for CENTURY EX35QUAT disk enclosure f usb/94147 usb doesn't recognise my USB keyboard o usb/94148 usb Make if_cdce work with ARM linux handhelds o usb/94311 usb [ugen][PATCH] allow interrupt IN transactions to be af o usb/94439 usb [patch] Add support for JNC MP3 Player o usb/94946 usb [uhub][patch] code dynamic status size for status chan o usb/95037 usb USB disk didnt recognized on hot-plug. o usb/95173 usb [usb] cannot mount external usb harddisk VIA Technolog o usb/95241 usb Patch to add USB ID for OEM Pharos 360 GPS o usb/95803 usb Add support for AnyData ADU-E100H o usb/95805 usb Add Support for Siemens ES75 modem o usb/96381 usb [patch] add a quirk table entry for a flash ram usb st o usb/96546 usb [usb] [patch] Add support (quirk) for EasyMP3 EM732X U o usb/96714 usb Update uvisor to support the Fossil Abacus Wrist PDA o usb/97175 usb USB cardreader hangs system o usb/97472 usb [patch] add support for Olympus C150,D390 o usb/98343 usb BBB reset failed errors with Creative Muvo MP3 player; o usb/99419 usb external usb harddrive slow to accept f usb/99538 usb [kbd] while using USB keyboard default params of atkbd o usb/100746 usb [kbd] system does not boot due to USB keyboard problem o usb/101757 usb [patch] uhid.4: correct structure field names to match o usb/101761 usb [patch] usb.h: increase maximal size of report descrip o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/102976 usb Casio Exilim Digital Camera cause panic o usb/103046 usb [patch] ulpt event driven I/O with select(2) and nonbl o usb/103289 usb USB 2.0 problems on AMD LX-800 CPU and CS-5536 chipset o usb/103418 usb [usb] [patch] usbhidctl: add ability to write output a o usb/103917 usb USB driver reports "Addr 0 should never happen" o usb/104290 usb QUIRK: TOSHIBA DVD-RAM drive (libretto DVD Dock) o usb/104352 usb [ural] ural driver doesnt work o usb/104645 usb QUIRK: Rave C-201 MP3 player o usb/105065 usb SATA - USB Bridge o usb/105361 usb Kernel panic during unmounting mass storage (Creative o usb/105518 usb epson perfection 3490 usb scanner def o kern/106033 usb [usb] [patch] support for 3G/WCDMA cards Option Globet o usb/106041 usb FreeBSD does not recognise Mustek BearPaw 2400TA usb s o usb/106070 usb devd recognizes ucom, but ttyU is the device actually o usb/106462 usb Motorola U6 PEBL not recognized by system via USB [pat o usb/106538 usb [patch] Can not burn DVD on Sony DRX-820UL external US o usb/106621 usb [usb] DLINK DUB-E100 support broken o usb/106861 usb [PATCH]: usbdevs update: Add product ACER Zeevo BT-500 o usb/107243 usb [patch] Apacer USB Flash Drive quirk o usb/107388 usb [PATCH] Add utoppy device from NetBSD o usb/107496 usb USB device problem on RELENG_6_2 (SHORT_XFER) (regress o usb/107526 usb Patch to support the Crystalfontz CFA-635 20x4 USB LCD o usb/107642 usb [patch]Ralink Technology RT2501USB/RT2601USB chipset d o kern/107665 usb [usb] [patch] uscanner support for epson stylus DX5050 125 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Jan 8 12:12:39 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A9B1A16A403 for ; Mon, 8 Jan 2007 12:12:39 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from pobox.codelabs.ru (pobox.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 6A62613C428 for ; Mon, 8 Jan 2007 12:12:37 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from codelabs.ru (pobox.codelabs.ru [144.206.177.45]) by pobox.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1H3sjq-000I9Q-Vu for freebsd-usb@freebsd.org; Mon, 08 Jan 2007 14:32:27 +0300 Date: Mon, 8 Jan 2007 14:32:22 +0300 From: Eygene Ryabinkin To: freebsd-usb@freebsd.org Message-ID: <20070108113222.GK37482@codelabs.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Sender: rea-fbsd@codelabs.ru X-Spam-Status: No, score=-2.2 required=4.0 tests=ALL_TRUSTED,AWL,BAYES_50 Subject: usb/106435 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, 08 Jan 2007 12:12:39 -0000 Good day! Might someone, please, have a look at usb/106435: it is rather simple to fix (or to close) issue. Thanks! -- Eygene From owner-freebsd-usb@FreeBSD.ORG Mon Jan 8 14:50:09 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 593FC16A40F; Mon, 8 Jan 2007 14:50:09 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 2232813C448; Mon, 8 Jan 2007 14:50:09 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l08Eo8jt038183; Mon, 8 Jan 2007 14:50:08 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l08Eo8lG038179; Mon, 8 Jan 2007 14:50:08 GMT (envelope-from linimon) Date: Mon, 8 Jan 2007 14:50:08 GMT From: Mark Linimon Message-Id: <200701081450.l08Eo8lG038179@freefall.freebsd.org> To: a-burghardt@gmx.de, linimon@FreeBSD.org, freebsd-usb@FreeBSD.org Cc: Subject: Re: usb/107572: Immidiate System Reboot after removing an active usb-stick 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, 08 Jan 2007 14:50:09 -0000 Synopsis: Immidiate System Reboot after removing an active usb-stick State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Mon Jan 8 14:49:13 UTC 2007 State-Changed-Why: This is a well-reported problem that is going to require a substantial re-architecting to fix. There is no short-term workaround except not to do this, sorry. http://www.freebsd.org/cgi/query-pr.cgi?pr=107572 From owner-freebsd-usb@FreeBSD.ORG Mon Jan 8 15:30:30 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0CC9116A403 for ; Mon, 8 Jan 2007 15:30:30 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id A9B5313C442 for ; Mon, 8 Jan 2007 15:30:29 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l08FUTDb040543 for ; Mon, 8 Jan 2007 15:30:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l08FUTGP040538; Mon, 8 Jan 2007 15:30:29 GMT (envelope-from gnats) Date: Mon, 8 Jan 2007 15:30:29 GMT Message-Id: <200701081530.l08FUTGP040538@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Alexander Leidinger Cc: Subject: Re: usb/107572: Immidiate System Reboot after removing an activeusb-stick X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Leidinger List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jan 2007 15:30:30 -0000 The following reply was made to PR usb/107572; it has been noted by GNATS. From: Alexander Leidinger To: Andreas Burghardt Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: usb/107572: Immidiate System Reboot after removing an activeusb-stick Date: Mon, 08 Jan 2007 15:58:27 +0100 Quoting Andreas Burghardt (from Fri, 5 Jan 2007 17:16:47 GMT): >> Description: > I removed a Job-it (2.0 USB, 1GB) USB-Stick from its slot while a > file copy to this stick was still in progress. The result was an > immidiate reboot of FreeBSD without syncing or unmounting any logal > file systems. Yes, removing a stick while the FS is still mounted or a direct access is in progress is something you should not do. This is a known problem. The workaround for now: don't do that! Bye, Alexander. -- Love tells us many things that are not so. -- Krainian Proverb http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-usb@FreeBSD.ORG Mon Jan 8 20:10:56 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 94F3C16A415 for ; Mon, 8 Jan 2007 20:10:56 +0000 (UTC) (envelope-from jhs@flat.berklix.net) Received: from thin.berklix.org (thin.berklix.org [194.246.123.68]) by mx1.freebsd.org (Postfix) with ESMTP id 2AF8313C47E for ; Mon, 8 Jan 2007 20:10:55 +0000 (UTC) (envelope-from jhs@flat.berklix.net) Received: from js.berklix.net (p549A6919.dip.t-dialin.net [84.154.105.25]) (authenticated bits=128) by thin.berklix.org (8.12.11/8.12.11) with ESMTP id l08KAisX036527; Mon, 8 Jan 2007 21:10:53 +0100 (CET) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (fire.jhs.private [192.168.91.41]) by js.berklix.net (8.13.6/8.13.6) with ESMTP id l08JuaIV019258; Mon, 8 Jan 2007 21:00:36 +0100 (CET) (envelope-from jhs@js.berklix.net) Received: from fire.jhs.private (localhost.jhs.private [127.0.0.1]) by fire.jhs.private (8.13.6/8.13.6) with ESMTP id l08JuafC027922; Mon, 8 Jan 2007 20:56:36 +0100 (CET) (envelope-from jhs@fire.jhs.private) Message-Id: <200701081956.l08JuafC027922@fire.jhs.private> To: Alexander Leidinger In-reply-to: <200701081530.l08FUTGP040538@freefall.freebsd.org> References: <200701081530.l08FUTGP040538@freefall.freebsd.org> Comments: In-reply-to Alexander Leidinger message dated "Mon, 08 Jan 2007 15:30:29 +0000." Date: Mon, 08 Jan 2007 20:56:36 +0100 From: "Julian H. Stacey" Cc: freebsd-usb@freebsd.org Subject: Re: usb/107572: Immidiate System Reboot after removing an activeusb-stick 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, 08 Jan 2007 20:10:56 -0000 Alexander Leidinger wrote: > The following reply was made to PR usb/107572; it has been noted by GNATS. > > From: Alexander Leidinger > To: Andreas Burghardt > Cc: freebsd-gnats-submit@FreeBSD.org > Subject: Re: usb/107572: Immidiate System Reboot after removing an > activeusb-stick > Date: Mon, 08 Jan 2007 15:58:27 +0100 > > Quoting Andreas Burghardt (from Fri, 5 Jan 2007 > 17:16:47 GMT): > > >> Description: > > I removed a Job-it (2.0 USB, 1GB) USB-Stick from its slot while a > > file copy to this stick was still in progress. The result was an > > immidiate reboot of FreeBSD without syncing or unmounting any logal > > file systems. > > Yes, removing a stick while the FS is still mounted or a direct access > is in progress is something you should not do. This is a known > problem. The workaround for now: don't do that! I used to mount my sticks & umounted via AMD, that saved me some pain when pulling sticks without thinking. For some reason I stopped doing it that way, (can't remember why some problem), but meaning to try again. Would be a good idea if we gave syntax examples in manuals, at least that would save some of the people some of the pain some of the time (whilst not actually being The solution) :-) -- Julian Stacey. BSD Unix C Net Consultancy, Munich/Muenchen http://berklix.com Mail Ascii, not HTML. Ihr Rauch = mein allergischer Kopfschmerz. http://berklix.org/free-software From owner-freebsd-usb@FreeBSD.ORG Tue Jan 9 06:10:15 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4F68A16A4FC for ; Tue, 9 Jan 2007 06:10:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 309D813C471 for ; Tue, 9 Jan 2007 06:10:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l096AF94012643 for ; Tue, 9 Jan 2007 06:10:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l096AEmo012642; Tue, 9 Jan 2007 06:10:15 GMT (envelope-from gnats) Resent-Date: Tue, 9 Jan 2007 06:10:15 GMT Resent-Message-Id: <200701090610.l096AEmo012642@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, atom Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6CDA116A403 for ; Tue, 9 Jan 2007 06:03:36 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 45DDC13C44C for ; Tue, 9 Jan 2007 06:03:36 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l0963aQ1036823 for ; Tue, 9 Jan 2007 06:03:36 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l0963a2M036822; Tue, 9 Jan 2007 06:03:36 GMT (envelope-from nobody) Message-Id: <200701090603.l0963a2M036822@www.freebsd.org> Date: Tue, 9 Jan 2007 06:03:36 GMT From: atom To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: usb/107701: usbd ignores "detach" 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, 09 Jan 2007 06:10:15 -0000 >Number: 107701 >Category: usb >Synopsis: usbd ignores "detach" >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: Tue Jan 09 06:10:14 GMT 2007 >Closed-Date: >Last-Modified: >Originator: atom >Release: 6.1-RELEASE >Organization: >Environment: FreeBSD willy.wonka.lan 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Mon Jan 8 22:32:14 EST 2007 root@willy.wonka.lan:/usr/src/sys/i386/compile/K8 i386 >Description: usbd seems to silently ignore "detach" events. >How-To-Repeat: Specify a "detach" event in /etc/usbd.conf and see that it does nothing when the device is detached. "usbd -dvvv" verifies "device-detach event". I've tried this with a few different detach commands. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Tue Jan 9 13:50:14 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E8B1016A407 for ; Tue, 9 Jan 2007 13:50:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 944B113C442 for ; Tue, 9 Jan 2007 13:50:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l09DoEs3048787 for ; Tue, 9 Jan 2007 13:50:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l09DoEQq048786; Tue, 9 Jan 2007 13:50:14 GMT (envelope-from gnats) Date: Tue, 9 Jan 2007 13:50:14 GMT Message-Id: <200701091350.l09DoEQq048786@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "Julian H. Stacey" Cc: Subject: Re: usb/107701: usbd ignores "detach" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Julian H. Stacey" List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2007 13:50:15 -0000 The following reply was made to PR usb/107701; it has been noted by GNATS. From: "Julian H. Stacey" To: atom Cc: freebsd-gnats-submit@freebsd.org Subject: Re: usb/107701: usbd ignores "detach" Date: Tue, 09 Jan 2007 14:15:49 +0100 atom wrote: > > >Number: 107701 > >Category: usb > >Synopsis: usbd ignores "detach" > >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: Tue Jan 09 06:10:14 GMT 2007 > >Closed-Date: > >Last-Modified: > >Originator: atom > >Release: 6.1-RELEASE > >Organization: > >Environment: > FreeBSD willy.wonka.lan 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Mon Jan 8 22:32:14 EST 2007 root@willy.wonka.lan:/usr/src/sys/i386/compile/K8 i386 > >Description: > usbd seems to silently ignore "detach" events. > > > >How-To-Repeat: > Specify a "detach" event in /etc/usbd.conf and see that it does nothing when the device is detached. "usbd -dvvv" verifies "device-detach event". > > I've tried this with a few different detach commands. > > >Fix: Did you try taking out devname from your entries, to quote a comment I added to my personal usbd.conf some time back: # - devname entries are mostly unused, as only reported on attach, # not detach, so detach fails to be called if devname is specified. -- Julian Stacey. BSD Unix C Net Consultancy, Munich/Muenchen http://berklix.com Mail Ascii, not HTML. Ihr Rauch = mein allergischer Kopfschmerz. http://berklix.org/free-software From owner-freebsd-usb@FreeBSD.ORG Tue Jan 9 16:47:12 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3C56416A415 for ; Tue, 9 Jan 2007 16:47:12 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.freebsd.org (Postfix) with ESMTP id 2AF9313C46C for ; Tue, 9 Jan 2007 16:47:12 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.13.6) with ESMTP id l09GYojt075151 for ; Tue, 9 Jan 2007 08:34:50 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id l09GYo78075150 for freebsd-usb@freebsd.org; Tue, 9 Jan 2007 08:34:50 -0800 (PST) (envelope-from rizzo) Date: Tue, 9 Jan 2007 08:34:50 -0800 From: Luigi Rizzo To: freebsd-usb@freebsd.org Message-ID: <20070109083450.A75138@xorpc.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Subject: any way to detect usb detached from a device driver ? 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, 09 Jan 2007 16:47:12 -0000 [sorry for the repost, not sure it went through] On Tue, Jan 09, 2007 at 08:16:29AM -0800, Luigi Rizzo wrote: I am modifying a kernel device driver for webcams (see http://info.iet.unipi.it/~luigi/FreeBSD/usb-cameras.html) packing together various projects around, and i was wondering how to handle the situation of a device being detached while in use. Right now the code (from ports/multimedia/pwcbsd) detects that the device is in use while the driver-specific USB_DETACH routine is called, however then it goes on without doing anything. In another driver in the dree (urio.c) i see the driver calls usb_detach_wait() to wait up to 60s for the drivers to complete. However that function is not documented and used a bit inconsistently in the rest of /sys/dev/usb Any suggestions ? cheers luigi From owner-freebsd-usb@FreeBSD.ORG Tue Jan 9 16:47:12 2007 Return-Path: X-Original-To: usb@freebsd.org Delivered-To: freebsd-usb@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6730116A417 for ; Tue, 9 Jan 2007 16:47:12 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.freebsd.org (Postfix) with ESMTP id 3F84813C4A6 for ; Tue, 9 Jan 2007 16:47:12 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.13.6) with ESMTP id l09GGTes074925; Tue, 9 Jan 2007 08:16:29 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id l09GGT0O074924; Tue, 9 Jan 2007 08:16:29 -0800 (PST) (envelope-from rizzo) Date: Tue, 9 Jan 2007 08:16:29 -0800 From: Luigi Rizzo To: usb@freebsd.org Message-ID: <20070109081629.A74724@xorpc.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Cc: Subject: any way to detect usb detached from a device driver ? 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, 09 Jan 2007 16:47:12 -0000 I am modifying a kernel device driver for webcams (see http://info.iet.unipi.it/~luigi/FreeBSD/usb-cameras.html) packing together various projects around, and i was wondering how to handle the situation of a device being detached while in use. Right now the code (from ports/multimedia/pwcbsd) detects that the device is in use while the driver-specific USB_DETACH routine is called, however then it goes on without doing anything. In another driver in the dree (urio.c) i see the driver calls usb_detach_wait() to wait up to 60s for the drivers to complete. However that function is not documented and used a bit inconsistently in the rest of /sys/dev/usb Any suggestions ? cheers luigi From owner-freebsd-usb@FreeBSD.ORG Tue Jan 9 20:38:00 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3D21416A412 for ; Tue, 9 Jan 2007 20:38:00 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.swip.net [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id A84E713C44C for ; Tue, 9 Jan 2007 20:37:59 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe11.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 209282001; Tue, 09 Jan 2007 21:37:47 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 9 Jan 2007 21:37:21 +0100 User-Agent: KMail/1.7 References: <20070109083450.A75138@xorpc.icir.org> In-Reply-To: <20070109083450.A75138@xorpc.icir.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701092137.22421.hselasky@c2i.net> Cc: Luigi Rizzo Subject: Re: any way to detect usb detached from a device driver ? 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, 09 Jan 2007 20:38:00 -0000 On Tuesday 09 January 2007 17:34, Luigi Rizzo wrote: > [sorry for the repost, not sure it went through] > > On Tue, Jan 09, 2007 at 08:16:29AM -0800, Luigi Rizzo wrote: > I am modifying a kernel device driver for webcams > (see http://info.iet.unipi.it/~luigi/FreeBSD/usb-cameras.html) > packing together various projects around, and i was wondering > how to handle the situation of a device being > detached while in use. If you look at the my USB driver for FreeBSD, http://www.turbocat.net/~hselasky/usb4bsd , there has been created a new device system, usb_cdev, with that goal in mind that you should not have to worry about detaching devices, hence this is somewhat complicated: http://www.turbocat.net/~hselasky/isdn4bsd/sources/src/sys/dev/usb/usb_cdev.c For example, have a look a the new URIO driver: http://www.turbocat.net/~hselasky/isdn4bsd/sources/src/sys/dev/usb/urio.c > > Right now the code (from ports/multimedia/pwcbsd) detects > that the device is in use while the driver-specific USB_DETACH > routine is called, however then it goes on without doing > anything. Very bad! > > In another driver in the dree (urio.c) i see the driver > calls usb_detach_wait() to wait up to 60s for the > drivers to complete. However that function is not documented > and used a bit inconsistently in the rest of /sys/dev/usb > --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 9 23:40:19 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4D2C516A403 for ; Tue, 9 Jan 2007 23:40:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id F2DBB13C442 for ; Tue, 9 Jan 2007 23:40:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l09NeIKa097122 for ; Tue, 9 Jan 2007 23:40:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l09NeI4M097121; Tue, 9 Jan 2007 23:40:18 GMT (envelope-from gnats) Date: Tue, 9 Jan 2007 23:40:18 GMT Message-Id: <200701092340.l09NeI4M097121@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Atom Smasher Cc: Subject: Re: usb/107701: usbd ignores "detach" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Atom Smasher List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2007 23:40:19 -0000 The following reply was made to PR usb/107701; it has been noted by GNATS. From: Atom Smasher To: "Julian H. Stacey" Cc: freebsd-gnats-submit@freebsd.org, bug-followup@FreeBSD.org Subject: Re: usb/107701: usbd ignores "detach" Date: Tue, 9 Jan 2007 18:04:47 -0500 (EST) On Tue, 9 Jan 2007, Julian H. Stacey wrote: > Did you try taking out devname from your entries, to quote a comment I > added to my personal usbd.conf some time back: > > # - devname entries are mostly unused, as only reported on attach, > # not detach, so detach fails to be called if devname is specified. ================== i removed devname from one of the entries and restarted usbd. the detach event is still silently ignored. here's the relevant section of my usbd.conf. note that it assumes that "device speaker" is enabled in the kernel: <<<<<<<<<<<<<< device "CF card" devname "umass[0-9]+" attach "echo 'T90 L16 DA' > /dev/speaker" detach "echo 'T90 L16 AD' > /dev/speaker" <<<<<<<<<<<<<< it should play two ascending tones when i insert a flash drive, and two descending tones when i remove the flash drive. it only plays tones on insertion. -- ...atom ________________________ http://atom.smasher.org/ 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808 ------------------------------------------------- "TELEVISION IS DRUGS" -- Bumper Sticker From owner-freebsd-usb@FreeBSD.ORG Tue Jan 9 23:40:23 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D709B16A492 for ; Tue, 9 Jan 2007 23:40:23 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 8680813C43E for ; Tue, 9 Jan 2007 23:40:23 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l09NeNtR097178 for ; Tue, 9 Jan 2007 23:40:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l09NeNtL097177; Tue, 9 Jan 2007 23:40:23 GMT (envelope-from gnats) Date: Tue, 9 Jan 2007 23:40:23 GMT Message-Id: <200701092340.l09NeNtL097177@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Atom Smasher Cc: Subject: Re: usb/107701: usbd ignores "detach" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Atom Smasher List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2007 23:40:23 -0000 The following reply was made to PR usb/107701; it has been noted by GNATS. From: Atom Smasher To: "Julian H. Stacey" Cc: freebsd-gnats-submit@freebsd.org, bug-followup@FreeBSD.org Subject: Re: usb/107701: usbd ignores "detach" Date: Tue, 9 Jan 2007 18:04:47 -0500 (EST) On Tue, 9 Jan 2007, Julian H. Stacey wrote: > Did you try taking out devname from your entries, to quote a comment I > added to my personal usbd.conf some time back: > > # - devname entries are mostly unused, as only reported on attach, > # not detach, so detach fails to be called if devname is specified. ================== i removed devname from one of the entries and restarted usbd. the detach event is still silently ignored. here's the relevant section of my usbd.conf. note that it assumes that "device speaker" is enabled in the kernel: <<<<<<<<<<<<<< device "CF card" devname "umass[0-9]+" attach "echo 'T90 L16 DA' > /dev/speaker" detach "echo 'T90 L16 AD' > /dev/speaker" <<<<<<<<<<<<<< it should play two ascending tones when i insert a flash drive, and two descending tones when i remove the flash drive. it only plays tones on insertion. -- ...atom ________________________ http://atom.smasher.org/ 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808 ------------------------------------------------- "TELEVISION IS DRUGS" -- Bumper Sticker From owner-freebsd-usb@FreeBSD.ORG Wed Jan 10 00:50:24 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E4D3116A40F for ; Wed, 10 Jan 2007 00:50:24 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 9586113C442 for ; Wed, 10 Jan 2007 00:50:24 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l0A0oObL002617 for ; Wed, 10 Jan 2007 00:50:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l0A0oOTY002615; Wed, 10 Jan 2007 00:50:24 GMT (envelope-from gnats) Date: Wed, 10 Jan 2007 00:50:24 GMT Message-Id: <200701100050.l0A0oOTY002615@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Steinar Hamre Cc: Subject: Re: kern/107665: [usb] [patch] uscanner support for epson stylus DX5050 MFP X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Steinar Hamre List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2007 00:50:25 -0000 The following reply was made to PR kern/107665; it has been noted by GNATS. From: Steinar Hamre To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/107665: [usb] [patch] uscanner support for epson stylus DX5050 MFP Date: Wed, 10 Jan 2007 01:20:28 +0100 --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi. I have reworked the uscanner module so that it can use the device simultaniously with the ulpt and umass modules. The revised patch is attached. Steinar --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="epson_dx5000.patch" --- usbdevs.orig Mon Jan 8 00:00:26 2007 +++ usbdevs Mon Jan 8 00:02:25 2007 @@ -907,6 +907,7 @@ product EPSON 3500 0x080e CX-3500/3600/3650 MFP product EPSON RX425 0x080f Stylus Photo RX425 scanner product EPSON 4200 0x0820 CX4200 MP scanner +product EPSON 5000 0x082b DX-50x0 MFP /* e-TEK Labs products */ product ETEK 1COM 0x8007 Serial --- uscanner.c.orig Mon Jan 8 00:00:42 2007 +++ uscanner.c Wed Jan 10 01:07:55 2007 @@ -217,6 +217,7 @@ {{ USB_VENDOR_EPSON, USB_PRODUCT_EPSON_3590 }, 0 }, {{ USB_VENDOR_EPSON, USB_PRODUCT_EPSON_4200 }, 0 }, {{ USB_VENDOR_EPSON, USB_PRODUCT_EPSON_4990 }, 0 }, + {{ USB_VENDOR_EPSON, USB_PRODUCT_EPSON_5000 }, 0 }, /* UMAX */ {{ USB_VENDOR_UMAX, USB_PRODUCT_UMAX_ASTRA1220U }, 0 }, @@ -309,13 +310,28 @@ USB_MATCH(uscanner) { + usb_interface_descriptor_t *id; USB_MATCH_START(uscanner, uaa); - if (uaa->iface != NULL) - return UMATCH_NONE; + if (uaa->iface == NULL) + return (UMATCH_NONE); + + if(uscanner_lookup(uaa->vendor, uaa->product) == NULL) + return (UMATCH_NONE); + + id = usbd_get_interface_descriptor(uaa->iface); + if (id == NULL) + return (UMATCH_NONE); + + /* Current ATTACH use the first interface, + * so claim only this. Must be changed to support + * multi function devices where the scanner is not + * the first interface. */ + + if (id->bInterfaceNumber == 0) + return (UMATCH_VENDOR_PRODUCT); - return (uscanner_lookup(uaa->vendor, uaa->product) != NULL ? - UMATCH_VENDOR_PRODUCT : UMATCH_NONE); + return (UMATCH_NONE); } USB_ATTACH(uscanner) @@ -330,16 +346,22 @@ usbd_devinfo(uaa->device, 0, devinfo); USB_ATTACH_SETUP; + sc->dev = NULL; sc->sc_dev_flags = uscanner_lookup(uaa->vendor, uaa->product)->flags; sc->sc_udev = uaa->device; +#if 0 + /* This shouldn't really be necessary and breaks all multi + * function devices. If any scanner needs this, use a quirk + * for only that scanner? */ err = usbd_set_config_no(uaa->device, 1, 1); /* XXX */ if (err) { printf("%s: setting config no failed\n", USBDEVNAME(sc->sc_dev)); USB_ATTACH_ERROR_RETURN; } +#endif /* XXX We only check the first interface */ err = usbd_device2interface_handle(sc->sc_udev, 0, &sc->sc_iface); @@ -664,7 +686,7 @@ s = splusb(); if (--sc->sc_refcnt >= 0) { /* Wait for processes to go away. */ - usb_detach_wait(USBDEV(sc->sc_dev)); + if (sc->dev) usb_detach_wait(USBDEV(sc->sc_dev)); } splx(s); @@ -679,7 +701,7 @@ vdevgone(maj, mn, mn + USB_MAX_ENDPOINTS - 1, VCHR); #elif defined(__FreeBSD__) /* destroy the device for the control endpoint */ - destroy_dev(sc->dev); + if (sc->dev) destroy_dev(sc->dev); #endif usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev, --HlL+5n6rz5pIUxbD-- From owner-freebsd-usb@FreeBSD.ORG Wed Jan 10 01:12:07 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B99DC16A412 for ; Wed, 10 Jan 2007 01:12:07 +0000 (UTC) (envelope-from jhs@flat.berklix.net) Received: from thin.berklix.org (thin.berklix.org [194.246.123.68]) by mx1.freebsd.org (Postfix) with ESMTP id 6238E13C44B for ; Wed, 10 Jan 2007 01:12:06 +0000 (UTC) (envelope-from jhs@flat.berklix.net) Received: from js.berklix.net (p549A52A1.dip.t-dialin.net [84.154.82.161]) (authenticated bits=128) by thin.berklix.org (8.12.11/8.12.11) with ESMTP id l0A1C3nA040742; Wed, 10 Jan 2007 02:12:04 +0100 (CET) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (fire.jhs.private [192.168.91.41]) by js.berklix.net (8.13.6/8.13.6) with ESMTP id l0A1C2gB025880; Wed, 10 Jan 2007 02:12:02 +0100 (CET) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (localhost.jhs.private [127.0.0.1]) by fire.jhs.private (8.13.6/8.13.6) with ESMTP id l0A1C2Qx046748; Wed, 10 Jan 2007 02:12:02 +0100 (CET) (envelope-from jhs@fire.jhs.private) Message-Id: <200701100112.l0A1C2Qx046748@fire.jhs.private> To: Atom Smasher From: "Julian Stacey" Organization: http://berklix.com BSD Unix C Net Consultancy, Munich/Muenchen User-agent: EXMH http://beedub.com/exmh/ on FreeBSD http://freebsd.org X-URL: http://berklix.com X-Fallback: jhs@mail.brierdr.com, jhs@freebsd.org, jhs@berklix.net In-reply-to: Your message of "Tue, 09 Jan 2007 18:04:47 EST." <20070109230449.56854.qmail@smasher.org> Date: Wed, 10 Jan 2007 02:12:02 +0100 Sender: jhs@flat.berklix.net Cc: freebsd-usb@freebsd.org Subject: Re: usb/107701: usbd ignores "detach" 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, 10 Jan 2007 01:12:07 -0000 Reposting here to restore cc: freebsd-usb@freebsd.org lost from To: "Julian H. Stacey" Cc: freebsd-gnats-submit@freebsd.org, bug-followup@freebsd.org Julian S. ------------------ Reference: > From: Atom Smasher > Date: Tue, 9 Jan 2007 18:04:47 -0500 (EST) > Message-id: <20070109230449.56854.qmail@smasher.org> Atom Smasher wrote: > On Tue, 9 Jan 2007, Julian H. Stacey wrote: > > > Did you try taking out devname from your entries, to quote a comment I > > added to my personal usbd.conf some time back: > > > > # - devname entries are mostly unused, as only reported on attach, > > # not detach, so detach fails to be called if devname is specified. > ================== > > i removed devname from one of the entries and restarted usbd. the detach > event is still silently ignored. > > here's the relevant section of my usbd.conf. note that it assumes that > "device speaker" is enabled in the kernel: > > <<<<<<<<<<<<<< > > device "CF card" > devname "umass[0-9]+" > attach "echo 'T90 L16 DA' > /dev/speaker" > detach "echo 'T90 L16 AD' > /dev/speaker" > > <<<<<<<<<<<<<< > > it should play two ascending tones when i insert a flash drive, and two > descending tones when i remove the flash drive. it only plays tones on > insertion. > > > -- > ...atom > > ________________________ > http://atom.smasher.org/ > 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808 > ------------------------------------------------- > > "TELEVISION IS DRUGS" > -- Bumper Sticker --------------- I can reproduce the error. Loads of people Should have stumbled on this. I've found the bug in the code. This diff just marks the bug. *** /host/fire/usr/src/usr.sbin/usbd/usbd.c Fri Jul 1 17:49:52 2005 --- usbd.c Wed Jan 10 01:54:54 2007 *************** *** 879,886 **** --- 879,891 ---- devinfo = &events.u.ue_device; for (i = 0; i < USB_MAX_DEVNAMES; i++) { + printf(" \nJHS1\n" ); if (devinfo->udi_devnames[i][0] == '\0') break; + /* This break is a problem it prevents + USB_EVENT_IS_DETACH being run at JHS3 + */ + printf(" \nJHS2\n" ); memcpy(&the_event, &events, sizeof(the_event)); the_devinfo = &the_event.u.ue_device; *************** *** 925,930 **** --- 930,936 ---- if (USB_EVENT_IS_ATTACH(the_event.ue_type) && action_match.action->attach) execute_command(action_match.action->attach); + printf(" \nJHS3\n" ); if (USB_EVENT_IS_DETACH(the_event.ue_type) && action_match.action->detach) execute_command(action_match.action->detach); The error is still there in 6-Stable too. There is no src/usr.sbin/usbd/usbd.c in current. I don't know the code, & too tired & busy to fix this, Someone else here able to fix it & post a patch ? If not, Atom Smasher please use send-pr to report this identified bug. -- Julian Stacey. BSD Unix C Net Consultancy, Munich/Muenchen http://berklix.com Mail Ascii, not HTML. Ihr Rauch = mein allergischer Kopfschmerz. http://berklix.org/free-software From owner-freebsd-usb@FreeBSD.ORG Wed Jan 10 12:12:32 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 023AD16A55F for ; Wed, 10 Jan 2007 12:12:32 +0000 (UTC) (envelope-from jhs@flat.berklix.net) Received: from thin.berklix.org (thin.berklix.org [194.246.123.68]) by mx1.freebsd.org (Postfix) with ESMTP id 8CAE613C467 for ; Wed, 10 Jan 2007 12:12:31 +0000 (UTC) (envelope-from jhs@flat.berklix.net) Received: from js.berklix.net (p549A7149.dip.t-dialin.net [84.154.113.73]) (authenticated bits=128) by thin.berklix.org (8.12.11/8.12.11) with ESMTP id l0ACCSMR042372; Wed, 10 Jan 2007 13:12:29 +0100 (CET) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (fire.jhs.private [192.168.91.41]) by js.berklix.net (8.13.6/8.13.6) with ESMTP id l0ACCQlj027374; Wed, 10 Jan 2007 13:12:27 +0100 (CET) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (localhost.jhs.private [127.0.0.1]) by fire.jhs.private (8.13.6/8.13.6) with ESMTP id l0ACCQfs050519; Wed, 10 Jan 2007 13:12:26 +0100 (CET) (envelope-from jhs@fire.jhs.private) Message-Id: <200701101212.l0ACCQfs050519@fire.jhs.private> To: Atom Smasher In-reply-to: <200701100112.l0A1C2Qx046748@fire.jhs.private> References: <200701100112.l0A1C2Qx046748@fire.jhs.private> Comments: In-reply-to "Julian Stacey" message dated "Wed, 10 Jan 2007 02:12:02 +0100." Date: Wed, 10 Jan 2007 13:12:26 +0100 From: "Julian H. Stacey" Cc: freebsd-usb@freebsd.org Subject: Re: usb/107701: usbd ignores "detach" 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, 10 Jan 2007 12:12:32 -0000 People may have missed this ( hidden under a repost, sorry). I can reproduce on 6.1-RELEASE error seen by Atom Smasher > Loads of people Should have stumbled on this. > I've found the bug in the code. > This diff just marks the bug. > > *** /host/fire/usr/src/usr.sbin/usbd/usbd.c Fri Jul 1 17:49:52 2005 > --- usbd.c Wed Jan 10 01:54:54 2007 > *************** > *** 879,886 **** > --- 879,891 ---- > > devinfo = &events.u.ue_device; > for (i = 0; i < USB_MAX_DEVNAMES; i++) { > + printf(" \nJHS1\n" ); > if (devinfo->udi_devnames[i][0] == '\0') > break; > + /* This break is a problem it prevents > + USB_EVENT_IS_DETACH being run at JHS3 > + */ > + printf(" \nJHS2\n" ); > > memcpy(&the_event, &events, sizeof(the_event)); > the_devinfo = &the_event.u.ue_device; > *************** > *** 925,930 **** > --- 930,936 ---- > if (USB_EVENT_IS_ATTACH(the_event.ue_type) && > action_match.action->attach) > execute_command(action_match.action->attach); > + printf(" \nJHS3\n" ); > if (USB_EVENT_IS_DETACH(the_event.ue_type) && > action_match.action->detach) > execute_command(action_match.action->detach); > > > The error is still there in 6-Stable too. > There is no src/usr.sbin/usbd/usbd.c in current. > I don't know the code, & too tired & busy to fix this, > Someone else here able to fix it & post a patch ? > If not, Atom Smasher please use > send-pr to report this identified bug. -- Julian Stacey. BSD Unix C Net Consultancy, Munich/Muenchen http://berklix.com Mail Ascii, not HTML. Ihr Rauch = mein allergischer Kopfschmerz. http://berklix.org/free-software From owner-freebsd-usb@FreeBSD.ORG Wed Jan 10 05:46:41 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6F79316A403 for ; Wed, 10 Jan 2007 05:46:41 +0000 (UTC) (envelope-from c_knapp14@hotmail.com) Received: from bay0-omc1-s30.bay0.hotmail.com (bay0-omc1-s30.bay0.hotmail.com [65.54.246.102]) by mx1.freebsd.org (Postfix) with ESMTP id 5D5CB13C455 for ; Wed, 10 Jan 2007 05:46:41 +0000 (UTC) (envelope-from c_knapp14@hotmail.com) Received: from hotmail.com ([65.55.140.108]) by bay0-omc1-s30.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Tue, 9 Jan 2007 21:34:42 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 9 Jan 2007 21:34:41 -0800 Message-ID: Received: from 65.55.140.123 by by135fd.bay135.hotmail.msn.com with HTTP; Wed, 10 Jan 2007 05:34:40 GMT X-Originating-IP: [141.233.36.214] X-Originating-Email: [c_knapp14@hotmail.com] X-Sender: c_knapp14@hotmail.com From: "Cody knapp" To: freebsd-usb@freebsd.org Date: Wed, 10 Jan 2007 05:34:40 +0000 X-OriginalArrivalTime: 10 Jan 2007 05:34:41.0040 (UTC) FILETIME=[06A34900:01C73479] X-Mailman-Approved-At: Wed, 10 Jan 2007 12:31:59 +0000 MIME-Version: 1.0 Content-Type: text/plain; format="flowed" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: (no subject) 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, 10 Jan 2007 05:46:41 -0000 I have the motorola V323, and it says i need motorola A41X/V32X driver...im not sure how to go about this. _________________________________________________________________ [1]Your Hotmail address already works to sign into Windows Live Messenger! Get it now. References 1. http://g.msn.com/8HMBENUS/2746??PS=47575 From owner-freebsd-usb@FreeBSD.ORG Wed Jan 10 12:46:58 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9926316A40F for ; Wed, 10 Jan 2007 12:46:58 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.freebsd.org (Postfix) with ESMTP id 7E93813C45A for ; Wed, 10 Jan 2007 12:46:58 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.13.6) with ESMTP id l0ACkrha088184; Wed, 10 Jan 2007 04:46:53 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id l0ACkreu088183; Wed, 10 Jan 2007 04:46:53 -0800 (PST) (envelope-from rizzo) Date: Wed, 10 Jan 2007 04:46:53 -0800 From: Luigi Rizzo To: Hans Petter Selasky Message-ID: <20070110044653.A87966@xorpc.icir.org> References: <20070109083450.A75138@xorpc.icir.org> <200701092137.22421.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200701092137.22421.hselasky@c2i.net>; from hselasky@c2i.net on Tue, Jan 09, 2007 at 09:37:21PM +0100 Cc: freebsd-usb@freebsd.org Subject: Re: any way to detect usb detached from a device driver ? 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, 10 Jan 2007 12:46:58 -0000 On Tue, Jan 09, 2007 at 09:37:21PM +0100, Hans Petter Selasky wrote: > On Tuesday 09 January 2007 17:34, Luigi Rizzo wrote: > > [sorry for the repost, not sure it went through] > > > > On Tue, Jan 09, 2007 at 08:16:29AM -0800, Luigi Rizzo wrote: > > I am modifying a kernel device driver for webcams > > (see http://info.iet.unipi.it/~luigi/FreeBSD/usb-cameras.html) > > packing together various projects around, and i was wondering > > how to handle the situation of a device being > > detached while in use. > > If you look at the my USB driver for FreeBSD, > http://www.turbocat.net/~hselasky/usb4bsd , there has been created a new > device system, usb_cdev, with that goal in mind that you should not have to > worry about detaching devices, hence this is somewhat complicated: > > http://www.turbocat.net/~hselasky/isdn4bsd/sources/src/sys/dev/usb/usb_cdev.c > > For example, have a look a the new URIO driver: > > http://www.turbocat.net/~hselasky/isdn4bsd/sources/src/sys/dev/usb/urio.c sorry but i cannot figure out how the above helps in the detach case e.g. when a process is waiting for an ioctl or read operation to complete - can you give more details ? In my case, i did the following: USB_DETACH(pwc) { USB_DETACH_START(pwc, sc); again: if(sc->sc_videopipe != NULL) { usbd_abort_pipe(sc->sc_videopipe); usbd_close_pipe(sc->sc_videopipe); sc->sc_videopipe = NULL; } sc->error_status = EPIPE; if(sc->vopen) { if(sc->state & PWC_ASLEEP) wakeup(sc); if(sc->state & PWC_POLL) { sc->state &= ~PWC_POLL; selwakeuppri(&sc->rsel,PZERO); } device_printf(sc->sc_dev, "Disconnected while webcam is in use!\n"); usb_detach_wait(USBDEV(sc->sc_dev)); goto again; } if(sc->sc_dev_t != NULL) destroy_dev(sc->sc_dev_t); mtx_destroy(&sc->ptrlock); pwc_free_buffers(sc,1); usbd_add_drv_event(USB_EVENT_DRIVER_DETACH,sc->udev,USBDEV(sc->sc_dev)); return 0; } and at the end of the close routine ... sc->vopen = 0; usb_detach_wakeup(USBDEV(sc->sc_dev)); } so the USB_DETACH() will wake up any process blocked, the sc->error_status = EPIPE; should force an error and cause the process to call close(). The down side is that you are still in the hands of the process to let the detach complete. Ideally one would just flag the descriptor as 'detach_pending' and get rid of it at the end of the close(), while the DETACH() could terminate without doing the free() cheers luigi > > > > Right now the code (from ports/multimedia/pwcbsd) detects > > that the device is in use while the driver-specific USB_DETACH > > routine is called, however then it goes on without doing > > anything. > > Very bad! > > > > > In another driver in the dree (urio.c) i see the driver > > calls usb_detach_wait() to wait up to 60s for the > > drivers to complete. However that function is not documented > > and used a bit inconsistently in the rest of /sys/dev/usb > > > > --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Jan 10 17:10:41 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EA72B16A47E for ; Wed, 10 Jan 2007 17:10:41 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 7F35913C46B for ; Wed, 10 Jan 2007 17:10:41 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id l0AHAd5k067918; Wed, 10 Jan 2007 18:10:39 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id l0AHASum025174 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 10 Jan 2007 18:10:30 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id l0AHASQJ088199; Wed, 10 Jan 2007 18:10:28 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l0AHARuM088198; Wed, 10 Jan 2007 18:10:27 +0100 (CET) (envelope-from ticso) Date: Wed, 10 Jan 2007 18:10:27 +0100 From: Bernd Walter To: "Julian H. Stacey" Message-ID: <20070110171027.GL80390@cicely12.cicely.de> References: <200701100112.l0A1C2Qx046748@fire.jhs.private> <200701101212.l0ACCQfs050519@fire.jhs.private> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200701101212.l0ACCQfs050519@fire.jhs.private> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: freebsd-usb@freebsd.org, Atom Smasher Subject: Re: usb/107701: usbd ignores "detach" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2007 17:10:42 -0000 On Wed, Jan 10, 2007 at 01:12:26PM +0100, Julian H. Stacey wrote: > People may have missed this ( hidden under a repost, sorry). > > I can reproduce on 6.1-RELEASE error seen by Atom Smasher usbd is depricated, use devd instead. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-usb@FreeBSD.ORG Wed Jan 10 20:40:01 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 380C016A407 for ; Wed, 10 Jan 2007 20:40:01 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by mx1.freebsd.org (Postfix) with ESMTP id 162EE13C45B for ; Wed, 10 Jan 2007 20:40:01 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1H4juq-0003iS-PJ for freebsd-usb@freebsd.org; Wed, 10 Jan 2007 12:19:20 -0800 Message-ID: <19833882.519031168460360781.JavaMail.nabble@jubjub.nabble.com> From: charbz2001@yahoo.com To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 10 Jan 2007 12:19:20 -0800 Subject: Motorola A41x/V32x driver 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, 10 Jan 2007 20:40:01 -0000 can u send me that driver please From owner-freebsd-usb@FreeBSD.ORG Wed Jan 10 23:35:29 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2773716A407 for ; Wed, 10 Jan 2007 23:35:29 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id 6FB1E13C47E for ; Wed, 10 Jan 2007 23:35:23 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe05.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 279495508; Wed, 10 Jan 2007 23:35:22 +0100 From: Hans Petter Selasky To: Luigi Rizzo Date: Wed, 10 Jan 2007 23:34:54 +0100 User-Agent: KMail/1.7 References: <20070109083450.A75138@xorpc.icir.org> <200701092137.22421.hselasky@c2i.net> <20070110044653.A87966@xorpc.icir.org> In-Reply-To: <20070110044653.A87966@xorpc.icir.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701102334.55338.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: any way to detect usb detached from a device driver ? 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, 10 Jan 2007 23:35:29 -0000 Hi Luigi, On Wednesday 10 January 2007 13:46, Luigi Rizzo wrote: > On Tue, Jan 09, 2007 at 09:37:21PM +0100, Hans Petter Selasky wrote: > > On Tuesday 09 January 2007 17:34, Luigi Rizzo wrote: [...] > > sorry but i cannot figure out how the above helps in the > detach case e.g. when a process is waiting for an ioctl > or read operation to complete - can you give more details ? "usb_cdev" is an abstraction layer for pluggable devices that wants to create a device under /dev, to read/write some data. It does not help unless you port your PWC driver over to using the "usb_cdev" system, instead of devfs directly. > > In my case, i did the following: > > USB_DETACH(pwc) > { > USB_DETACH_START(pwc, sc); > again: > if(sc->sc_videopipe != NULL) { > usbd_abort_pipe(sc->sc_videopipe); > usbd_close_pipe(sc->sc_videopipe); > sc->sc_videopipe = NULL; > } > sc->error_status = EPIPE; > if(sc->vopen) { > if(sc->state & PWC_ASLEEP) > wakeup(sc); > if(sc->state & PWC_POLL) { > sc->state &= ~PWC_POLL; > selwakeuppri(&sc->rsel,PZERO); > } > device_printf(sc->sc_dev, "Disconnected while webcam is in > use!\n"); usb_detach_wait(USBDEV(sc->sc_dev)); > goto again; > } > > if(sc->sc_dev_t != NULL) > destroy_dev(sc->sc_dev_t); > > mtx_destroy(&sc->ptrlock); > pwc_free_buffers(sc,1); > > usbd_add_drv_event(USB_EVENT_DRIVER_DETACH,sc->udev,USBDEV(sc->sc_dev)); > return 0; > } > > and at the end of the close routine > > ... > sc->vopen = 0; > usb_detach_wakeup(USBDEV(sc->sc_dev)); > } > > so the USB_DETACH() will wake up any process blocked, > the sc->error_status = EPIPE; should force an error and > cause the process to call close(). > > The down side is that you are still in the hands > of the process to let the detach complete. Ideally one > would just flag the descriptor as 'detach_pending' > and get rid of it at the end of the close(), while the > DETACH() could terminate without doing the free() What I do is to ensure that no thread is executing in any of the devfs callbacks. This might imply some waiting. Then I simply destroy the device using destroy_dev(). This way you don't have to wait for the userland process to call close(), which might not happen right away. See "usb_cdev_detach()" for more info. --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Jan 10 23:39:37 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CE96F16A412 for ; Wed, 10 Jan 2007 23:39:37 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.freebsd.org (Postfix) with ESMTP id B196713C461 for ; Wed, 10 Jan 2007 23:39:37 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.13.6) with ESMTP id l0ANdZj1096676; Wed, 10 Jan 2007 15:39:35 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id l0ANdZAB096675; Wed, 10 Jan 2007 15:39:35 -0800 (PST) (envelope-from rizzo) Date: Wed, 10 Jan 2007 15:39:35 -0800 From: Luigi Rizzo To: Hans Petter Selasky Message-ID: <20070110153935.B96102@xorpc.icir.org> References: <20070109083450.A75138@xorpc.icir.org> <200701092137.22421.hselasky@c2i.net> <20070110044653.A87966@xorpc.icir.org> <200701102334.55338.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200701102334.55338.hselasky@c2i.net>; from hselasky@c2i.net on Wed, Jan 10, 2007 at 11:34:54PM +0100 Cc: freebsd-usb@freebsd.org Subject: Re: any way to detect usb detached from a device driver ? 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, 10 Jan 2007 23:39:38 -0000 On Wed, Jan 10, 2007 at 11:34:54PM +0100, Hans Petter Selasky wrote: > Hi Luigi, > > On Wednesday 10 January 2007 13:46, Luigi Rizzo wrote: > > On Tue, Jan 09, 2007 at 09:37:21PM +0100, Hans Petter Selasky wrote: > > > On Tuesday 09 January 2007 17:34, Luigi Rizzo wrote: > > [...] > > > > > sorry but i cannot figure out how the above helps in the > > detach case e.g. when a process is waiting for an ioctl > > or read operation to complete - can you give more details ? > > "usb_cdev" is an abstraction layer for pluggable devices that wants to create > a device under /dev, to read/write some data. It does not help unless you > port your PWC driver over to using the "usb_cdev" system, instead of devfs > directly. > > > > > In my case, i did the following: > > > > USB_DETACH(pwc) > > { > > USB_DETACH_START(pwc, sc); > > again: > > if(sc->sc_videopipe != NULL) { > > usbd_abort_pipe(sc->sc_videopipe); > > usbd_close_pipe(sc->sc_videopipe); > > sc->sc_videopipe = NULL; > > } > > sc->error_status = EPIPE; > > if(sc->vopen) { > > if(sc->state & PWC_ASLEEP) > > wakeup(sc); > > if(sc->state & PWC_POLL) { > > sc->state &= ~PWC_POLL; > > selwakeuppri(&sc->rsel,PZERO); > > } > > device_printf(sc->sc_dev, "Disconnected while webcam is in > > use!\n"); usb_detach_wait(USBDEV(sc->sc_dev)); > > goto again; > > } > > > > if(sc->sc_dev_t != NULL) > > destroy_dev(sc->sc_dev_t); > > > > mtx_destroy(&sc->ptrlock); > > pwc_free_buffers(sc,1); > > > > usbd_add_drv_event(USB_EVENT_DRIVER_DETACH,sc->udev,USBDEV(sc->sc_dev)); > > return 0; > > } > > > > and at the end of the close routine > > > > ... > > sc->vopen = 0; > > usb_detach_wakeup(USBDEV(sc->sc_dev)); > > } > > > > so the USB_DETACH() will wake up any process blocked, > > the sc->error_status = EPIPE; should force an error and > > cause the process to call close(). > > > > The down side is that you are still in the hands > > of the process to let the detach complete. Ideally one > > would just flag the descriptor as 'detach_pending' > > and get rid of it at the end of the close(), while the > > DETACH() could terminate without doing the free() > > What I do is to ensure that no thread is executing in any of the devfs > callbacks. This might imply some waiting. Then I simply destroy the device > using destroy_dev(). This way you don't have to wait for the userland process > to call close(), which might not happen right away. ok... so if i understand well, once all processes have exited the callbacks you destroy, which means that afterwards they will not be able to invoke the callbacks anymore (nor crash the machine) even if they retain a handle ? cheers luigi From owner-freebsd-usb@FreeBSD.ORG Thu Jan 11 08:57:05 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 91C8316A403 for ; Thu, 11 Jan 2007 08:57:05 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.swip.net [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id 615D913C45B for ; Thu, 11 Jan 2007 08:57:04 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe11.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 210587121; Thu, 11 Jan 2007 09:57:02 +0100 From: Hans Petter Selasky To: Luigi Rizzo Date: Thu, 11 Jan 2007 09:56:37 +0100 User-Agent: KMail/1.7 References: <20070109083450.A75138@xorpc.icir.org> <200701102334.55338.hselasky@c2i.net> <20070110153935.B96102@xorpc.icir.org> In-Reply-To: <20070110153935.B96102@xorpc.icir.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701110956.38717.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: any way to detect usb detached from a device driver ? 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, 11 Jan 2007 08:57:05 -0000 On Thursday 11 January 2007 00:39, Luigi Rizzo wrote: > On Wed, Jan 10, 2007 at 11:34:54PM +0100, Hans Petter Selasky wrote: > > Hi Luigi, > > > > On Wednesday 10 January 2007 13:46, Luigi Rizzo wrote: > > > On Tue, Jan 09, 2007 at 09:37:21PM +0100, Hans Petter Selasky wrote: > > > > On Tuesday 09 January 2007 17:34, Luigi Rizzo wrote: > > > > [...] > > > > > sorry but i cannot figure out how the above helps in the > > > detach case e.g. when a process is waiting for an ioctl > > > or read operation to complete - can you give more details ? > > > > "usb_cdev" is an abstraction layer for pluggable devices that wants to > > create a device under /dev, to read/write some data. It does not help > > unless you port your PWC driver over to using the "usb_cdev" system, > > instead of devfs directly. > > > > > In my case, i did the following: > > > > > > USB_DETACH(pwc) > > > { > > > USB_DETACH_START(pwc, sc); > > > again: > > > if(sc->sc_videopipe != NULL) { > > > usbd_abort_pipe(sc->sc_videopipe); > > > usbd_close_pipe(sc->sc_videopipe); > > > sc->sc_videopipe = NULL; > > > } > > > sc->error_status = EPIPE; > > > if(sc->vopen) { > > > if(sc->state & PWC_ASLEEP) > > > wakeup(sc); > > > if(sc->state & PWC_POLL) { > > > sc->state &= ~PWC_POLL; > > > selwakeuppri(&sc->rsel,PZERO); > > > } > > > device_printf(sc->sc_dev, "Disconnected while webcam is > > > in use!\n"); usb_detach_wait(USBDEV(sc->sc_dev)); > > > goto again; > > > } > > > > > > if(sc->sc_dev_t != NULL) > > > destroy_dev(sc->sc_dev_t); > > > > > > mtx_destroy(&sc->ptrlock); > > > pwc_free_buffers(sc,1); > > > > > > usbd_add_drv_event(USB_EVENT_DRIVER_DETACH,sc->udev,USBDEV(sc->sc_dev)) > > >; return 0; > > > } > > > > > > and at the end of the close routine > > > > > > ... > > > sc->vopen = 0; > > > usb_detach_wakeup(USBDEV(sc->sc_dev)); > > > } > > > > > > so the USB_DETACH() will wake up any process blocked, > > > the sc->error_status = EPIPE; should force an error and > > > cause the process to call close(). > > > > > > The down side is that you are still in the hands > > > of the process to let the detach complete. Ideally one > > > would just flag the descriptor as 'detach_pending' > > > and get rid of it at the end of the close(), while the > > > DETACH() could terminate without doing the free() > > > > What I do is to ensure that no thread is executing in any of the devfs > > callbacks. This might imply some waiting. Then I simply destroy the > > device using destroy_dev(). This way you don't have to wait for the > > userland process to call close(), which might not happen right away. > > ok... so if i understand well, once all processes have exited > the callbacks you destroy, which means that afterwards they will > not be able to invoke the callbacks anymore (nor crash the machine) > even if they retain a handle ? Yes, devfs will overwrite the callbacks with dummy ones when the device is destroyed so that they are not called back any more. Hence devfs uses refcounts, the devfs structure itself will not dissappear immediately if a device is using it. The devfs structure will be freed when then refcount reaches zero. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Jan 11 12:12:33 2007 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4296016A4A7 for ; Thu, 11 Jan 2007 12:12:33 +0000 (UTC) (envelope-from kazarov@list.ru) Received: from mx28.mail.ru (mx28.mail.ru [194.67.23.67]) by mx1.freebsd.org (Postfix) with ESMTP id D2D3113C46C for ; Thu, 11 Jan 2007 12:12:32 +0000 (UTC) (envelope-from kazarov@list.ru) Received: from f60.mail.ru (f60.mail.ru [194.67.57.94]) by mx28.mail.ru (mPOP.Fallback_MX) with ESMTP id 1B9903CCDEB for ; Thu, 11 Jan 2007 14:43:39 +0300 (MSK) Received: from mail by f60.mail.ru with local id 1H4yLJ-0001Cl-00 for freebsd-usb@FreeBSD.org; Thu, 11 Jan 2007 14:43:37 +0300 Received: from [195.42.165.90] by win.mail.ru with HTTP; Thu, 11 Jan 2007 14:43:37 +0300 From: =?koi8-r?Q?=E4=CD=C9=D4=D2=C9=CA_=EB=C1=DA=C1=D2=CF=D7?= To: freebsd-usb@FreeBSD.org Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: [195.42.165.90] Date: Thu, 11 Jan 2007 14:43:37 +0300 In-Reply-To: =?koi8-r?Q?<200610251953.k9PJraA2069040=40freefall.freebsd.org>?= Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: Cc: Subject: Re[2]: usb/99538: [kbd] while using USB keyboard default params of atkbd and kbdmux lead to long delays on changes of keyboard state X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?koi8-r?Q?=E4=CD=C9=D4=D2=C9=CA_=EB=C1=DA=C1=D2=CF=D7?= List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jan 2007 12:12:33 -0000 # uname -a FreeBSD kazarov.cds.ru 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Mon Jan 8 04:14:30 MSK 2007 root@kazarov.cds.ru:/var/tmp/obj/usr/src/sys/CE i386 Problem still exists From owner-freebsd-usb@FreeBSD.ORG Thu Jan 11 17:14:48 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EC23F16A50C; Thu, 11 Jan 2007 17:14:48 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id BBE4813C468; Thu, 11 Jan 2007 17:14:48 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l0BHEmZQ007715; Thu, 11 Jan 2007 17:14:48 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l0BHEjM7007710; Thu, 11 Jan 2007 17:14:46 GMT (envelope-from linimon) Date: Thu, 11 Jan 2007 17:14:46 GMT From: Mark Linimon Message-Id: <200701111714.l0BHEjM7007710@freefall.freebsd.org> To: kazarov@mcm.ru, linimon@FreeBSD.org, freebsd-usb@FreeBSD.org Cc: Subject: Re: usb/99538: [kbd] while using USB keyboard default params of atkbd and kbdmux lead to long delays on changes of keyboard state 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, 11 Jan 2007 17:14:49 -0000 Synopsis: [kbd] while using USB keyboard default params of atkbd and kbdmux lead to long delays on changes of keyboard state State-Changed-From-To: feedback->open State-Changed-By: linimon State-Changed-When: Thu Jan 11 17:13:55 UTC 2007 State-Changed-Why: >From misfiled PR usb/107825: Date: Thu, 11 Jan 2007 15:39:50 +0300 From: =?koi8-r?Q?=E4=CD=C9=D4=D2=C9=CA_=EB=C1=DA=C1=D2=CF=D7?= Problem still exists http://www.freebsd.org/cgi/query-pr.cgi?pr=99538 From owner-freebsd-usb@FreeBSD.ORG Thu Jan 11 19:20:16 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 33EA416A4FB for ; Thu, 11 Jan 2007 19:20:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id EE5B513C45E for ; Thu, 11 Jan 2007 19:20:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l0BJKFk5016805 for ; Thu, 11 Jan 2007 19:20:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l0BJKFgn016804; Thu, 11 Jan 2007 19:20:15 GMT (envelope-from gnats) Resent-Date: Thu, 11 Jan 2007 19:20:15 GMT Resent-Message-Id: <200701111920.l0BJKFgn016804@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, FStoffel Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 45A2116A40F for ; Thu, 11 Jan 2007 19:14:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 2014013C442 for ; Thu, 11 Jan 2007 19:14:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l0BJEsr7043885 for ; Thu, 11 Jan 2007 19:14:54 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l0BJErDO043884; Thu, 11 Jan 2007 19:14:53 GMT (envelope-from nobody) Message-Id: <200701111914.l0BJErDO043884@www.freebsd.org> Date: Thu, 11 Jan 2007 19:14:53 GMT From: FStoffel To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: usb/107827: ohci_add_done addr not found 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, 11 Jan 2007 19:20:16 -0000 >Number: 107827 >Category: usb >Synopsis: ohci_add_done addr not found >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 11 19:20:15 GMT 2007 >Closed-Date: >Last-Modified: >Originator: FStoffel >Release: 6.2 RC2 x86/AMD64 >Organization: >Environment: Mainboard: EPoX EP-1697 GLI, Bios 1.0 Chipset: ULi M1697 CPU: AMD Athlon64 X2 3800+ USB-Devices: Logitech MX510, MS Natural Ergonomic Keyboard 4000 v1.0 >Description: The bootup hangs after the following message with a panic and the system will reboot after 15 seconds: panic: OHCI_add_done addr 0x0009ec40 not found This happens before the installer is loaded. I've tried - to disable Dos keyboard and mouse emulation, makes no difference - to disable ACPI support - makes no difference >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri Jan 12 08:20:20 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 76A2216A416 for ; Fri, 12 Jan 2007 08:20:20 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 3F4CA13C469 for ; Fri, 12 Jan 2007 08:20:20 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l0C8KKDq093370 for ; Fri, 12 Jan 2007 08:20:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l0C8KK55093369; Fri, 12 Jan 2007 08:20:20 GMT (envelope-from gnats) Resent-Date: Fri, 12 Jan 2007 08:20:20 GMT Resent-Message-Id: <200701120820.l0C8KK55093369@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, Ivan Frosty Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B62E616A412 for ; Fri, 12 Jan 2007 08:16:48 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id A7A2C13C468 for ; Fri, 12 Jan 2007 08:16:48 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l0C8Gmad011634 for ; Fri, 12 Jan 2007 08:16:48 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l0C8GmPl011633; Fri, 12 Jan 2007 08:16:48 GMT (envelope-from nobody) Message-Id: <200701120816.l0C8GmPl011633@www.freebsd.org> Date: Fri, 12 Jan 2007 08:16:48 GMT From: Ivan Frosty To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: usb/107848: problem with samsung flash X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jan 2007 08:20:20 -0000 >Number: 107848 >Category: usb >Synopsis: problem with samsung flash >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 12 08:20:19 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Ivan Frosty >Release: 6.1 >Organization: >Environment: da0 at umass-sim0 bus0 target0wn0 da0: Removable Direct Access SCSI-0 device da0:1.000MB/s transfers da0:511mb(1046720 512 byte sectors:64H 32s/T s11c) umass0:phase Error, residue = 0 (da0:umass-sim0:0:0:0):synchronize cache failed, status == 0x4,scsi status == 0x0 opened disk da0->5! >Description: hello there, i have freebsd 6.1 pentiumII 355mhz processor and 128mb of ram. everytime i put my samsung 512mb in tha usb the machine doesnt boot it halts where the error be at if i pull it out it boots.........then if i put it back in i get an error.......whats with umass? i basically installed everybit and software of the unix i have so i dont know why i get the error anyhelp will be highly appreciated! this is the error: da0 at umass-sim0 bus0 target0wn0 da0: Removable Direct Access SCSI-0 device da0:1.000MB/s transfers da0:511mb(1046720 512 byte sectors:64H 32s/T s11c) umass0:phase Error, residue = 0 (da0:umass-sim0:0:0:0):synchronize cache failed, status == 0x4,scsi status == 0x0 opened disk da0->5! >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sat Jan 13 17:12:34 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6AA6916A40F for ; Sat, 13 Jan 2007 17:12:34 +0000 (UTC) (envelope-from adam.egan@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id 09CB913C448 for ; Sat, 13 Jan 2007 17:12:33 +0000 (UTC) (envelope-from adam.egan@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so928042uge for ; Sat, 13 Jan 2007 09:12:33 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=iiiB1MKcaftwHDHWZcGrDyM1leeA9uiO4DJWvqrS8IY0caisMXWwDmttUsl8yyt9X9vjBCshQJPBnlHW0ggCOmASkvfKNLsNA3KrX+ggqt+NcN/+epnEu7cPBQ5a+mRUikhNKfgzttSxAbZRv+rn0hMLcQQqW/8bUnMFcgxi4S8= Received: by 10.78.118.19 with SMTP id q19mr1243594huc.1168706695359; Sat, 13 Jan 2007 08:44:55 -0800 (PST) Received: by 10.78.165.3 with HTTP; Sat, 13 Jan 2007 08:44:55 -0800 (PST) Message-ID: <28745bbf0701130844m576b693sa4bf69521fcade33@mail.gmail.com> Date: Sat, 13 Jan 2007 16:44:55 +0000 From: "Adam Egan" To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: usb mass storage 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, 13 Jan 2007 17:12:34 -0000 Hi, I was just wondering if anybody had used either of the following two products, or knew of any problems/performance issues when using them with FreeBSD? USB 2.0 4 Port PCI Card eBuyer quickfind:108594 http://www.ebuyer.com/UK/product/108594/ LaCie 1000GB (1TB) 7200rpm USB2 Hard drive eBuyer quickfind: 101217 http://www.ebuyer.com/UK/product/101217 I am hoping to use the above two products to expand the fast depleting storage capacity of one of my FreeBSD boxes, and I don't have any space inside the case for money hard drives so external is the only option. Cheers, Adam