From owner-freebsd-usb@FreeBSD.ORG Mon May 8 11:03:04 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41E3A16A449 for ; Mon, 8 May 2006 11:03:04 +0000 (UTC) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E98DD43D48 for ; Mon, 8 May 2006 11:02:48 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k48B2m2C048500 for ; Mon, 8 May 2006 11:02:48 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k48B2ikO048492 for freebsd-usb@freebsd.org; Mon, 8 May 2006 11:02:44 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 8 May 2006 11:02:44 GMT Message-Id: <200605081102.k48B2ikO048492@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org 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 May 2006 11:03:06 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/08/10] usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_ o [2006/01/11] usb/91629 usb usbd_abort_pipe() may result in infinite 2 problems total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/07/19] usb/40792 usb signals lead to data loss on device ugen o [2002/12/10] usb/46176 usb [panic] umass causes kernel panic if devi o [2002/12/19] i386/46371 usb USB controller cannot be initialized on I f [2003/08/13] usb/55555 usb [ums] system freezes with access to /dev/ o [2003/09/26] bin/57255 usb usbd and multi-function devices o [2004/01/30] usb/62088 usb [usb] Logitech Cordless/Optical Mouse not o [2004/02/03] usb/62309 usb [ugen] [panic] panic: ugen(4) driver o [2004/03/01] usb/63621 usb [usb] USB MemoryStick Reader stalls/crash o [2004/07/13] usb/69006 usb [patch] Apple Cinema Display hangs USB po o [2004/08/30] usb/71155 usb [usb] misbehaving usb-printer hangs proce o [2004/10/30] usb/73307 usb [panic] Kernel panics on USB disconnect o [2004/12/06] usb/74771 usb [umass] mounting write-protected umass de o [2005/01/01] usb/75705 usb [panic] da0 attach / Optio S4 (with backt o [2005/01/04] usb/75797 usb 5.3-STABLE(2005 1/4) detect USB headset, f [2005/01/13] usb/76204 usb panic while using usb attached modem o [2005/01/18] usb/76395 usb USB printer does not work, usbdevs says " f [2005/01/25] usb/76684 usb [hang] Toshiba PDR-M4 camera connected vi o [2005/02/06] usb/77184 usb kernel panic on USB device disconnect o [2005/02/09] usb/77294 usb ucom + ulpcom panic o [2005/02/23] usb/77940 usb [patch] [panic] insertion of usb keyboard f [2005/03/01] i386/78218 usb [kue] kue not detected on Sony PCG-F370 V o [2005/03/18] usb/78989 usb please add USB keyboard support to instal o [2005/03/22] usb/79140 usb WD Firewire/USB Combo hangs under load on o [2005/03/27] usb/79269 usb USB ohci da0 plug/unplug causes crashes a o [2005/03/27] usb/79287 usb UHCI hang after interrupt transfer o [2005/04/04] usb/79524 usb printing to Minolta PagePro 1[23]xxW via f [2005/04/07] usb/79656 usb [usb] RHSC interrupts lost o [2005/04/09] usb/79722 usb [usb] wrong alignments in ehci.h o [2005/04/17] usb/80040 usb [hang] Use of sound mixer causes system f f [2005/04/22] usb/80260 usb Travan USB tape drive fails to write o [2005/04/26] usb/80361 usb mounting of usb-stick fails o [2005/04/26] usb/80373 usb usb keyboard does not respond f [2005/05/06] usb/80685 usb panic in usb_cold_explore() at begining o [2005/05/09] usb/80829 usb possible panic when loading USB-modules o [2005/05/10] usb/80862 usb [patch] USB locking issues: missing some o [2005/05/20] usb/81308 usb [ugen] [patch] polling a ugen(4) control f [2005/06/13] usb/82198 usb Panic on attaching of ONKI N-338 USB MP3 f [2005/06/15] usb/82272 usb Can not recognize Casio camera EX-Z40 as o [2005/06/17] usb/82350 usb [usb] null pointer dereference in USB sta o [2005/06/22] usb/82520 usb Reboot when USL101 connected o [2005/06/26] usb/82660 usb EHCI: I/O stuck in state 'physrd'/panic o [2005/07/15] usb/83504 usb [usb] SpeedTouch USB stop working on rece o [2005/07/16] usb/83563 usb [panic] Page Fault while detaching Mpman o [2005/07/18] usb/83677 usb [usb] usb controller often not detected ( o [2005/07/19] usb/83756 usb Microsoft Intellimouse Explorer 4.0A does o [2005/07/24] usb/83977 usb [ucom] [panic] ucom1: open bulk out error o [2005/07/30] usb/84326 usb [umass] Panic trying to connect SCSI tape o [2005/07/30] usb/84336 usb [usb] [reboot] instant system reboot when o [2005/08/15] usb/84936 usb install - usb keyboard not recognized o [2005/09/12] usb/86031 usb need support usb nic rt2500 in my 5.4 STA o [2005/09/30] usb/86767 usb [usb] bogus "slice starts beyond end of t o [2005/10/08] usb/87099 usb panic: ohci_add_done: addr 0x000d1bf0 not o [2005/10/16] usb/87519 usb [kbd] cannot install on USB-only system o [2005/10/17] usb/87565 usb [PATCH] Support for Vodaphone 3G/UMTS car o [2005/11/09] usb/88743 usb [hang] USB makes kernel hang at boot (reg o [2005/11/14] usb/88966 usb kldunload ucom.ko returns "Device busy" e o [2005/11/14] usb/89003 usb LaCie Firewire drive not properly support o [2005/11/18] usb/89218 usb flash disk o [2005/12/05] usb/89954 usb [usb] USB Disk driver race condition? f [2005/12/05] usb/89997 usb [umass] [panic] panic on iPod mini detach o [2005/12/09] usb/90162 usb [usb] [patch] Add support for the MS Wire o [2005/12/20] usb/90700 usb Kernel panic on connect/mount/use umass d o [2006/01/02] usb/91238 usb USB tape unit fails to write a second tap o [2006/01/03] usb/91263 usb [patch] USB quirk needed for Logitec USB o [2006/01/03] usb/91283 usb booting very slow with usb devices connec o [2006/01/09] usb/91538 usb Unable to print to EPSON CX3500 o [2006/01/17] usb/91906 usb FreeBSD hangs while booting with USB lega o [2006/01/20] usb/92052 usb usbd causes defunct process with busy fil o [2006/01/22] usb/92142 usb SET_ADDR_FAILED and SHORT_XFER errors fro o [2006/01/22] usb/92171 usb [panic] panic unplugging Vodafone Mobile o [2006/02/10] usb/93155 usb /dev/ulpt0: device busy USB printer doe o [2006/02/15] usb/93408 usb hw.acpi.cpu.cx_lowest=C3 on AMD Turion ca f [2006/02/17] usb/93496 usb USB2.0 umass stalls on VIA o [2006/02/21] usb/93640 usb device ehci causes interrupt storm on thi o [2006/02/23] usb/93738 usb [ukbd] [patch] ukbd_check_char returns FA o [2006/02/25] usb/93828 usb ohci causes panic on boot (HP Pavillion d o [2006/02/28] usb/93949 usb ugen(4)-related repeatable kernel panic i o [2006/03/07] usb/94166 usb btx halted with a flashcard plugged o [2006/03/12] usb/94384 usb kernel panic with usb2 hardware o [2006/03/20] usb/94717 usb Reading from /dev/ulpt can break work of o [2006/03/20] usb/94742 usb [umass] [patch] umass driver does not rec o [2006/03/21] usb/94813 usb mounting write-protected umass device fre o [2006/03/24] usb/94897 usb Kernel Panic when cleanly unmounting USB o [2006/03/30] usb/95131 usb Boot/setup process does not accept key st o [2006/04/05] usb/95348 usb USB keyboard unplug causes noise on scree o [2006/04/10] usb/95562 usb Write Stress in USB Mass drive cause: [v o [2006/04/11] usb/95636 usb [boot] 5 minute delay at boot when using o [2006/04/20] usb/96120 usb USB mouse not always detected o [2006/04/23] usb/96224 usb [usb] mount_msdosfs cause page fault in s o [2006/04/28] usb/96457 usb fatback on umass = reboot 90 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2001/09/30] conf/30929 usb [patch] use usbd to initialize USB ADSL m s [2001/12/09] usb/32653 usb Added patches to improve USB scanner supp o [2002/07/24] usb/40948 usb [usb] USB HP CDW8200 does not work f [2002/08/07] usb/41415 usb [usb] [patch] Some USB scanners cannot ta o [2003/02/16] usb/48342 usb [PATCH] usbd dynamic device list. o [2003/05/08] kern/51958 usb [usb] [patch] update for urio driver o [2003/05/10] kern/52026 usb [usb] feature request: umass driver suppo o [2003/06/08] usb/53025 usb [ugen] [patch] ugen does not allow O_NONB o [2003/08/28] usb/56095 usb [usb] [patch] QUIRK: Apacer Pen Drive fai f [2003/12/15] usb/60248 usb [patch] Problem with USB printer HP Laser o [2004/01/12] usb/61234 usb [usb] [patch] usbhidaction(1) doesn't sup o [2004/03/06] usb/63837 usb [uhid] [patch] USB: hid_is_collection() o o [2004/04/19] kern/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops o [2004/05/11] kern/66547 usb [usb] Palm Tungsten T USB does not initia o [2004/06/23] usb/68232 usb [ugen] [patch] ugen(4) isochronous handli o [2004/06/27] usb/68412 usb [usb] [patch] QUIRK: Philips KEY013 USB M o [2004/08/16] usb/70523 usb [usb] [patch] umct sending/receiving wron o [2004/08/25] usb/70942 usb [usb] Genius Wireless USB mouse: moused d o [2004/09/06] usb/71416 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/06] usb/71417 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/07] usb/71455 usb [usb] Slow USB umass performance of 5.3 o [2004/09/11] usb/71605 usb [umass] [patch] umass doesn't recognize m o [2004/10/06] usb/72380 usb [usb] USB does not work [dual Celeron Abi o [2004/10/15] usb/72732 usb [patch] Kyocera 7135 quirk. o [2004/10/15] usb/72733 usb Kyocera 7135 Palm OS connection problem. o [2004/10/23] usb/73056 usb [usb] Sun Microsystems Type 6 USB mouse n f [2004/11/05] usb/73553 usb [usb] Microsoft USB Internet Keyboard not o [2004/11/21] usb/74211 usb USB flash drive causes CAM status 0x4 on f [2004/11/25] usb/74358 usb [umass] unplugging at boot time an umass o [2004/11/27] usb/74453 usb Q-lity CD-RW USB ECW-043 (ScanLogic SL11R o [2004/11/30] usb/74557 usb imation 500mb usb key can only be written o [2004/12/02] usb/74609 usb [usb] [patch] allowing cdma modems to wor o [2004/12/08] usb/74849 usb [usb] [patch] Samsung SPH-i500 does not a o [2004/12/09] usb/74880 usb [usb] [patch] Samsung N400 cellphone/acm o [2005/01/04] usb/75800 usb ucom1: init failed STALLED error in time o [2005/01/07] usb/75928 usb Cytronix SmartMedia card (SMC) reader has o [2005/01/19] usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4 o [2005/01/27] usb/76732 usb Mouse problems with USB KVM Switch f [2005/03/03] usb/78371 usb Philips Wearable Audio Player (128) fails f [2005/03/18] usb/78984 usb Creative MUVO umass failure o [2005/04/09] usb/79723 usb [usb] prepare for high speed isochronous o [2005/04/09] usb/79725 usb [usb] [patch] USB device speed is not dou o [2005/04/14] usb/79893 usb [umass] [patch] new usbdevs/umass quirks o [2005/04/16] usb/80010 usb [aue] [patch] add support for the AEI USB f [2005/04/27] usb/80420 usb atapicam stops iPod functionality f [2005/05/08] usb/80773 usb "usbd_get_string()" could have taken a le o [2005/05/08] usb/80774 usb have "usbd_find_desc" in line with the ot o [2005/05/08] usb/80776 usb [udav] UDAV device driver shouldn't use u o [2005/05/08] usb/80777 usb usb_rem_task() should wait for callback t o [2005/05/10] usb/80854 usb suggestion for new iface-no-probe mechani o [2005/05/12] usb/80935 usb uvisor.c is not work with CLIE TH55. o [2005/05/15] usb/81073 usb [umass] [patch] fix umass NO_GETMAXLUN qu o [2005/05/18] usb/81191 usb Support for Curitel HX-550C USB modem to f [2005/05/29] usb/81621 usb external hd hangs under load on ehci o [2005/06/20] usb/82436 usb [patch] USL101 Host-to-Host bridge suppor o [2005/06/30] usb/82839 usb [patch] add support for Aceeca Mez1000 de o [2005/07/05] usb/83022 usb ALI USB 2.0 EHCI Controller is not detect o [2005/07/21] usb/83863 usb Communication problem between opensc/open o [2005/08/18] usb/85067 usb Cannot attach ScanJet 4300C to usb device o [2005/09/11] usb/85992 usb [uhid] [patch] USB stops working when try o [2005/09/16] usb/86195 usb [patch] allow USB Ethernet Adaptor "ELECO o [2005/09/18] usb/86298 usb Known good USB mouse won't work with corr o [2005/09/21] usb/86438 usb Fix for non-working iPod over USB is in N o [2005/10/10] usb/87224 usb Cannot mount USB Zip750 o [2005/10/19] usb/87648 usb [mouse] Logitech USB-optical mouse proble o [2005/11/02] usb/88408 usb axe0 read PHY failed o [2005/11/13] usb/88939 usb Fix cheapy Myson USB-IDE adapter f [2005/11/15] usb/89087 usb usb external harddrive hangs with BBB res f [2006/01/01] usb/91191 usb HP LaserJet 1020 (USB printer) not recogn f [2006/01/08] usb/91516 usb [umass] umass0 problems, with Freecom Cla o [2006/01/09] usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone o [2006/01/15] usb/91811 usb Compact Flash in HP Photosmart 2610 retur o [2006/01/16] usb/91863 usb Philips USB webcam driver o [2006/01/17] usb/91896 usb Serial Number of USB Memory Sticks is not o [2006/01/25] usb/92306 usb [quirk] [patch] Support for iRiver U10 US o [2006/01/27] usb/92403 usb uplcom.c needs new entry for 4.00 revisio f [2006/01/28] usb/92462 usb [patch] Add support for Epson CX3500/3600 o [2006/02/05] usb/92852 usb Vertical scroll not working properly on A o [2006/02/08] usb/93011 usb HP ScanJet 6200C & uscanner problem o [2006/02/15] usb/93389 usb Digital Camera Pentax S60 don't work o [2006/02/17] usb/93484 usb [umass] [patch] QUIRK: Toshiba TransMemor o [2006/02/26] usb/93872 usb [patch] SCSI quirk required for ELTA 8061 o [2006/03/06] usb/94132 usb USB QUIRK for CENTURY EX35QUAT disk enclo f [2006/03/06] usb/94147 usb doesn't recognise my USB keyboard o [2006/03/06] usb/94148 usb Make if_cdce work with ARM linux handheld o [2006/03/11] usb/94311 usb [ugen][PATCH] allow interrupt IN transact o [2006/03/14] usb/94439 usb [patch] Add support for JNC MP3 Player o [2006/03/26] usb/94946 usb [uhub][patch] code dynamic status size fo o [2006/03/28] usb/95037 usb USB disk didnt recognized on hot-plug. o [2006/03/31] usb/95173 usb [usb] cannot mount external usb harddisk o [2006/04/02] usb/95241 usb Patch to add USB ID for OEM Pharos 360 GP p [2006/04/11] usb/95616 usb [patch] Add support for USB Acer 640BT sc o [2006/04/15] usb/95803 usb Add support for AnyData ADU-E100H o [2006/04/15] usb/95805 usb Add Support for Siemens ES75 modem o [2006/04/26] usb/96381 usb [patch] add a quirk table entry for a fla o [2006/04/30] usb/96546 usb [usb] [patch] Add support (quirk) for Eas o [2006/05/01] usb/96599 usb [patch] [usb] Sony Handycam DCR-HC32E mem o [2006/05/03] usb/96714 usb Update uvisor to support the Fossil Abacu 98 problems total. From owner-freebsd-usb@FreeBSD.ORG Tue May 9 05:01:28 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 510E816A402 for ; Tue, 9 May 2006 05:01:28 +0000 (UTC) (envelope-from mistry.7@osu.edu) Received: from mail.united-ware.com (am-productions.biz [69.61.164.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C56143D58 for ; Tue, 9 May 2006 05:01:27 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from [192.168.1.100] (am-productions.biz [69.61.164.22]) (authenticated bits=0) by mail.united-ware.com (8.13.4/8.13.4) with ESMTP id k4952nma074650 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 9 May 2006 01:02:55 -0400 (EDT) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: freebsd-usb@freebsd.org Date: Tue, 9 May 2006 01:01:27 -0400 User-Agent: KMail/1.9.1 References: <200604241027.44959.mistry.7@osu.edu> In-Reply-To: <200604241027.44959.mistry.7@osu.edu> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1499815.mcFusKBIPr"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200605090101.39901.mistry.7@osu.edu> X-Spam-Status: No, score=-5.5 required=5.0 tests=ALL_TRUSTED,BAYES_50, MYFREEBSD2 autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on mail.united-ware.com X-Virus-Scanned: ClamAV 0.88.1/1450/Mon May 8 12:38:31 2006 on mail.united-ware.com X-Virus-Status: Clean Subject: Re: Fwd: Re: [PATCH] ugen detach race 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 May 2006 05:01:28 -0000 --nextPart1499815.mcFusKBIPr Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 24 April 2006 10:27, Anish Mistry wrote: > Sending to the usb list as per jhb's suggestion. > > ---------- Forwarded Message ---------- > > Subject: Re: [PATCH] ugen detach race > Date: Saturday 22 April 2006 16:22 > From: Anish Mistry > To: freebsd-current@freebsd.org > Cc: Ian Dowse > > On Saturday 22 April 2006 14:59, Anish Mistry wrote: > > On Wednesday 05 April 2006 04:44, Anish Mistry wrote: > > > On Wednesday 05 April 2006 03:53, Anish Mistry wrote: > > > > While working on getting hplip ported I ran across a race > > > > condition in the ugen code that causes a crash. The > > > > following patch fixes a problem where read, write, and ioctl > > > > can be called during a detach since sc_dying isn't checked > > > > before bumping the reference count. This puts the sc_dying > > > > check before the *_do_* functions are called. This includes > > > > the patch from usb/81308 to prevent polling on the control > > > > endpoint. As well as a few NULL pointer checks from NetBSD. > > > > This patch is applicable to RELENG_6. > > > > > > And CURRENT. > > > > > > > http://am-productions.biz/docs/ugen-detach-race.patch > > > > > > > > This doesn't fix the case where an application has a > > > > read/write pending and then detach is called. In this case > > > > destroy_devl will just keep looping until the read/write > > > > completes. > > > > I've updated the patch. It now includes the fix for the panic on > > detach when a process has a device open when a detach occurs.=20 > > ugen now no longer waits for the process to close the connection > > and just cuts it off. > > Applies to RELENG_6 and CURRENT. > > > > http://am-productions.biz/docs/ugen-detach-race.patch > > > > The patch should fix usb/93949 too. > > This seems to fix all the panics I'm seeing with the ugen device. > > It would be nice if this could make it into 6.1. > > I added another panic fix. An error was introduced in rev 1.94 on > ugen.c in the USB_SET_CONFIG ioctl case that calls > ugen_make_devnodes. This causes a panic since this logic was moved > to ugen_set_config a while ago. Removing the ugen_make_devnodes() > call from ugen_do_ioctl fixes the problem. This bug made it > trivial to cause a panic when there was access to any ugen device. > > http://am-productions.biz/docs/ugen-detach-race.patch I've updated the patch to fix the panic when you try to select() on an=20 output endpoint. The current implementation only allows for select()=20 on input endpoints. I don't know why this was done, but it should be=20 simple to allow select() for writes. This bug is also present in=20 NetBSD, so that needs to be fixed also. http://am-productions.biz/docs/ugen-multiple-panics.patch =2D-=20 Anish Mistry --nextPart1499815.mcFusKBIPr Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEYCIzxqA5ziudZT0RAkywAJ9J32l188n2m6fj4xNEH0yACTzQqwCdHCEA i1tZlN1voNMqRn6r8Inyfmk= =d4ja -----END PGP SIGNATURE----- --nextPart1499815.mcFusKBIPr-- From owner-freebsd-usb@FreeBSD.ORG Tue May 9 05:30:24 2006 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 [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D4C0A16A439 for ; Tue, 9 May 2006 05:30:24 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9978043D64 for ; Tue, 9 May 2006 05:30:24 +0000 (GMT) (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 k495UO2s082901 for ; Tue, 9 May 2006 05:30:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k495UOpJ082900; Tue, 9 May 2006 05:30:24 GMT (envelope-from gnats) Date: Tue, 9 May 2006 05:30:24 GMT Message-Id: <200605090530.k495UOpJ082900@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Anish Mistry Cc: Subject: Re: usb/93949 : ugen(4)-related repeatable kernel panic in 6.1-PRERELEASE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Anish Mistry List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 May 2006 05:30:25 -0000 The following reply was made to PR usb/93949; it has been noted by GNATS. From: Anish Mistry To: Eugene Grosbein Cc: bug-followup@freebsd.org Subject: Re: usb/93949 : ugen(4)-related repeatable kernel panic in 6.1-PRERELEASE Date: Tue, 9 May 2006 01:20:26 -0400 --nextPart5356158.N9tKWMFHiX Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Alright. I've been able to reproduce this panic. The problem is that=20 the thread that called select() is gone (since the device is=20 detached) when clear_selinfo_list is called in kern_select(). The=20 easiest way to reproduce this is to plug in a usb mouse and have it=20 attached as ugen and then have a small program call select() on the=20 0.1 endpoint with a long timeout (ie. 10 seconds). While the select=20 call is waiting pull the plug on the device and when the operation=20 times out you'll get the panic. I'm not sure how to handle this case. It seems that=20 clear_selinfo_list should be able to handle this case. =2D-=20 Anish Mistry amistry@am-productions.biz AM Productions http://am-productions.biz/ --nextPart5356158.N9tKWMFHiX Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEYCajxqA5ziudZT0RAl0IAKCOwwuHgsePVk8ylVUgh3zsbycYYACfeNQ5 eDXgrF7NNC6i/c1PwpJG+7A= =kpiQ -----END PGP SIGNATURE----- --nextPart5356158.N9tKWMFHiX-- From owner-freebsd-usb@FreeBSD.ORG Tue May 9 16:30:24 2006 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 [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 799C216A42F for ; Tue, 9 May 2006 16:30:24 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0949343D53 for ; Tue, 9 May 2006 16:30:24 +0000 (GMT) (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 k49GUNf9041641 for ; Tue, 9 May 2006 16:30:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k49GUNd4041640; Tue, 9 May 2006 16:30:23 GMT (envelope-from gnats) Date: Tue, 9 May 2006 16:30:23 GMT Message-Id: <200605091630.k49GUNd4041640@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Anish Mistry Cc: Subject: Re: usb/93949: ugen(4)-related repeatable kernel panic in 6.1-PRERELEASE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Anish Mistry List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 May 2006 16:30:25 -0000 The following reply was made to PR usb/93949; it has been noted by GNATS. From: Anish Mistry To: bug-followup@freebsd.org, eugen@grosbein.pp.ru Cc: Subject: Re: usb/93949: ugen(4)-related repeatable kernel panic in 6.1-PRERELEASE Date: Tue, 9 May 2006 12:29:08 -0400 --nextPart1333881.ADizWtE17N Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Try the following patch: http://am-productions.biz/docs/ugen-multiple-panics.patch This fixes the problem on my system. It also now should support using=20 select() on writes too. =2D-=20 Anish Mistry amistry@am-productions.biz AM Productions http://am-productions.biz/ --nextPart1333881.ADizWtE17N Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEYMNexqA5ziudZT0RAlyMAJ483WHu7bwQ0wL80vBkRTHxGNtRGACfanI+ kLfPjxqwZPK+Meu4Bl+o+VY= =FuSa -----END PGP SIGNATURE----- --nextPart1333881.ADizWtE17N-- From owner-freebsd-usb@FreeBSD.ORG Tue May 9 16:47:05 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9946116A732 for ; Tue, 9 May 2006 16:47:05 +0000 (UTC) (envelope-from mistry.7@osu.edu) Received: from mail.united-ware.com (am-productions.biz [69.61.164.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7E2343D67 for ; Tue, 9 May 2006 16:46:57 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from [192.168.1.100] (am-productions.biz [69.61.164.22]) (authenticated bits=0) by mail.united-ware.com (8.13.4/8.13.4) with ESMTP id k49GmMtn011930 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 9 May 2006 12:48:28 -0400 (EDT) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: freebsd-usb@freebsd.org Date: Tue, 9 May 2006 12:47:02 -0400 User-Agent: KMail/1.9.1 References: <200604241027.44959.mistry.7@osu.edu> <200605090101.39901.mistry.7@osu.edu> In-Reply-To: <200605090101.39901.mistry.7@osu.edu> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3883799.PifqVQioMp"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200605091247.11017.mistry.7@osu.edu> X-Spam-Status: No, score=-5.5 required=5.0 tests=ALL_TRUSTED,BAYES_50, MYFREEBSD2 autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on mail.united-ware.com X-Virus-Scanned: ClamAV 0.88.1/1451/Mon May 8 19:27:49 2006 on mail.united-ware.com X-Virus-Status: Clean Subject: [PATCH] Fix ugen multiple panics and detach race conditions 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 May 2006 16:47:09 -0000 --nextPart3883799.PifqVQioMp Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I've updated my ugen patch again. It now adds support for select() on=20 writes and fixes the detach select() panic. http://am-productions.biz/docs/ugen-multiple-panics.patch The patch should fix ALL outstanding ugen panic PRs. Would a commiter please take a look at these changes. They are=20 applicable to CURRENT, RELENG_6, and RELENG_5. A few of the changes=20 are also applicable to NetBSD and OpenBSD too. Thanks, =2D-=20 Anish Mistry --nextPart3883799.PifqVQioMp Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEYMeOxqA5ziudZT0RAjvlAKC9Rj+Bcu/M+BEZg1HzEvWMV8dfjwCfYM8O 5rwlDUhl7NxlMTCzN74wj54= =9ND+ -----END PGP SIGNATURE----- --nextPart3883799.PifqVQioMp-- From owner-freebsd-usb@FreeBSD.ORG Wed May 10 15:40:30 2006 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 [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 72A2616A74F for ; Wed, 10 May 2006 15:40:30 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A85B643D53 for ; Wed, 10 May 2006 15:40:29 +0000 (GMT) (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 k4AFeSkO049613 for ; Wed, 10 May 2006 15:40:28 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4AFeSxe049612; Wed, 10 May 2006 15:40:28 GMT (envelope-from gnats) Date: Wed, 10 May 2006 15:40:28 GMT Message-Id: <200605101540.k4AFeSxe049612@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: eugen@grosbein.pp.ru Cc: Subject: Re: usb/93949: ugen(4)-related repeatable kernel panic in 6.1-PRERELEASE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: eugen@grosbein.pp.ru List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2006 15:40:30 -0000 The following reply was made to PR usb/93949; it has been noted by GNATS. From: eugen@grosbein.pp.ru To: Anish Mistry Cc: bug-followup@freebsd.org, julian@freebsd.org Subject: Re: usb/93949: ugen(4)-related repeatable kernel panic in 6.1-PRERELEASE Date: Wed, 10 May 2006 23:32:55 +0800 On Tue, May 09, 2006 at 12:29:08PM -0400, Anish Mistry wrote: > Try the following patch: > http://am-productions.biz/docs/ugen-multiple-panics.patch > > This fixes the problem on my system. It also now should support using > select() on writes too. This fixes the problem for me too. Great work, thank you! Eugene Grosbein From owner-freebsd-usb@FreeBSD.ORG Thu May 11 20:14:22 2006 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 [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E00A816A515 for ; Thu, 11 May 2006 20:14:22 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E7A5447A8 for ; Thu, 11 May 2006 19:50:18 +0000 (GMT) (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 k4BJoHKs058999 for ; Thu, 11 May 2006 19:50:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4BJoHOw058998; Thu, 11 May 2006 19:50:17 GMT (envelope-from gnats) Date: Thu, 11 May 2006 19:50:17 GMT Message-Id: <200605111950.k4BJoHOw058998@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Anish Mistry Cc: Subject: Re: usb/53025: [ugen] [patch] ugen does not allow O_NONBLOCK for interrupt endpts. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Anish Mistry List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2006 20:14:48 -0000 The following reply was made to PR usb/53025; it has been noted by GNATS. From: Anish Mistry To: bug-followup@freebsd.org, yeasah@apocalypse.org Cc: Subject: Re: usb/53025: [ugen] [patch] ugen does not allow O_NONBLOCK for interrupt endpts. Date: Thu, 11 May 2006 15:30:45 -0400 --nextPart9359979.Jlz7LxP5ep Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This looks like it can be closed. =2D-=20 Anish Mistry amistry@am-productions.biz AM Productions http://am-productions.biz/ --nextPart9359979.Jlz7LxP5ep Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEY5DmxqA5ziudZT0RAvnBAJ4igYVucB+nMqbj+e2jIO61ecJRxQCgmTa3 SPMZnO/8d0ouq11x3RjWthc= =w+E/ -----END PGP SIGNATURE----- --nextPart9359979.Jlz7LxP5ep-- From owner-freebsd-usb@FreeBSD.ORG Thu May 11 20:40:29 2006 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 [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B53816A6CE for ; Thu, 11 May 2006 20:40:29 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAA4343D5E for ; Thu, 11 May 2006 20:40:28 +0000 (GMT) (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 k4BKeS09064293 for ; Thu, 11 May 2006 20:40:28 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4BKeS4x064292; Thu, 11 May 2006 20:40:28 GMT (envelope-from gnats) Date: Thu, 11 May 2006 20:40:28 GMT Message-Id: <200605112040.k4BKeS4x064292@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Anish Mistry Cc: Subject: Re: usb/81308: [ugen] [patch] polling a ugen(4) control endpoint causes a kernel panic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Anish Mistry List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2006 20:40:29 -0000 The following reply was made to PR usb/81308; it has been noted by GNATS. From: Anish Mistry To: bug-followup@freebsd.org, gouders@et.bocholt.fh-ge.de Cc: Subject: Re: usb/81308: [ugen] [patch] polling a ugen(4) control endpoint causes a kernel panic Date: Thu, 11 May 2006 15:23:49 -0400 --nextPart1807843.KONj6Ln2tt Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline The following patch should contain your fix. As well as a multitude=20 of other ugen panic fixes. Would you please test it to make sure=20 that it works for you? The patch applies cleanly to 6.x and CURRENT,=20 you may have to tweak it for 5.x. http://am-productions.biz/docs/ugen-multiple-panics.patch =2D-=20 Anish Mistry amistry@am-productions.biz AM Productions http://am-productions.biz/ --nextPart1807843.KONj6Ln2tt Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEY49TxqA5ziudZT0RAr3BAKDJpGWqjT9W3QVCOIr/6DYJHxe3fgCcCWvD p5iZHW5hiJdAJmOZkAKibtk= =pDvF -----END PGP SIGNATURE----- --nextPart1807843.KONj6Ln2tt-- From owner-freebsd-usb@FreeBSD.ORG Thu May 11 20:40:32 2006 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 [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 933D816A402 for ; Thu, 11 May 2006 20:40:32 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E970A43D5C for ; Thu, 11 May 2006 20:40:31 +0000 (GMT) (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 k4BKeVHA064301 for ; Thu, 11 May 2006 20:40:31 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4BKeVhY064300; Thu, 11 May 2006 20:40:31 GMT (envelope-from gnats) Date: Thu, 11 May 2006 20:40:31 GMT Message-Id: <200605112040.k4BKeVhY064300@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Anish Mistry Cc: Subject: Re: usb/62309: [ugen] [panic] panic: ugen(4) driver X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Anish Mistry List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2006 20:40:32 -0000 The following reply was made to PR usb/62309; it has been noted by GNATS. From: Anish Mistry To: bug-followup@freebsd.org, jay@evilrealms.net Cc: Subject: Re: usb/62309: [ugen] [panic] panic: ugen(4) driver Date: Thu, 11 May 2006 15:24:59 -0400 --nextPart2509853.J1El0AsJhS Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Does this still happen in 6.x? If so, please try the following patch. http://am-productions.biz/docs/ugen-multiple-panics.patch =2D-=20 Anish Mistry amistry@am-productions.biz AM Productions http://am-productions.biz/ --nextPart2509853.J1El0AsJhS Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEY4+LxqA5ziudZT0RAo2BAKCrR4mooLWMbwApps10MWDQgz6XeQCfcG1l 2UY1J7+tJ0kOIARfDvTbhxc= =/KaC -----END PGP SIGNATURE----- --nextPart2509853.J1El0AsJhS-- From owner-freebsd-usb@FreeBSD.ORG Fri May 12 09:50:20 2006 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 [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EAA6216A403 for ; Fri, 12 May 2006 09:50:20 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77C7443D53 for ; Fri, 12 May 2006 09:50:20 +0000 (GMT) (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 k4C9oKRd019225 for ; Fri, 12 May 2006 09:50:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4C9oK4d019224; Fri, 12 May 2006 09:50:20 GMT (envelope-from gnats) Resent-Date: Fri, 12 May 2006 09:50:20 GMT Resent-Message-Id: <200605120950.k4C9oK4d019224@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, Ed Schouten Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E542D16A402 for ; Fri, 12 May 2006 09:43:01 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [83.98.131.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B4AE43D60 for ; Fri, 12 May 2006 09:43:00 +0000 (GMT) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id B1CF217101; Fri, 12 May 2006 11:42:59 +0200 (CEST) Message-Id: <20060512094259.B1CF217101@palm.hoeg.nl> Date: Fri, 12 May 2006 11:42:59 +0200 (CEST) From: Ed Schouten To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/97169: [uhid + Xbox 360 gamepad] Turn off blinking LED on attach X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ed Schouten List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2006 09:50:21 -0000 >Number: 97169 >Category: usb >Synopsis: [uhid + Xbox 360 gamepad] Turn off blinking LED on attach >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 12 09:50:19 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Ed Schouten >Release: FreeBSD 7.0-CURRENT i386 >Organization: n/a >Environment: System: FreeBSD zonk.fxq.nl 7.0-CURRENT FreeBSD 7.0-CURRENT #7: Fri May 12 01:11:45 CEST 2006 root@zonk.fxq.nl:/usr/obj/export/src/sys/ZONK i386 >Description: When attaching an Xbox 360 gamepad a computer, the LED on the gamepad blinks by default. When the operating system (read: normally an Xbox 360) initializes the gamepad, the LED stops blinking. FreeBSD does not disable the LED, which is quite irritating, as the LED is quite bright. >How-To-Repeat: Connect an Xbox 360 gamepad to a machine running FreeBSD 6.1 or higher. >Fix: The following patch sends a packet containing 0x01 0x03 0x00 to the device. This stops the LED from blinking. See http://www.free60.org/wiki/Gamepad for details. %%% --- uhid.c Fri May 12 01:11:20 2006 +++ uhid.c Fri May 12 01:11:34 2006 @@ -280,6 +280,12 @@ } else if (id->bInterfaceClass == UICLASS_VENDOR && id->bInterfaceSubClass == UISUBCLASS_XBOX360_CONTROLLER && id->bInterfaceProtocol == UIPROTO_XBOX360_GAMEPAD) { + static uByte reportbuf[] = {1, 3, 0}; + + /* The four LEDs on the gamepad are blinking by default. */ + usbd_set_report(uaa->iface, UHID_OUTPUT_REPORT, 0, + &reportbuf, sizeof reportbuf); + /* The Xbox 360 gamepad has no report descriptor. */ size = sizeof uhid_xb360gp_report_descr; descptr = uhid_xb360gp_report_descr; %%% >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri May 12 11:46:27 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67F7016A401; Fri, 12 May 2006 11:46:27 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [83.98.131.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 094B443D48; Fri, 12 May 2006 11:46:27 +0000 (GMT) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id B7D5117101; Fri, 12 May 2006 13:46:25 +0200 (CEST) Date: Fri, 12 May 2006 13:46:25 +0200 From: Ed Schouten To: FreeBSD USB , FreeBSD SCSI , Nate Lawson Message-ID: <20060512114625.GH15353@hoeg.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="URkQCorwCiZbgSAY" Content-Disposition: inline User-Agent: Mutt/1.5.11 Cc: Subject: Using a 'Y-E DATA USB-FDU 6.01' on FreeBSD -CURRENT X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2006 11:46:27 -0000 --URkQCorwCiZbgSAY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello guys, A customer of mine bought a new Packard Bell machine without a floppy-drive. He needs floppy-drive for some administrative tools and his digital camera (which has a floppy slot). I bought one of those USB floppy drives for him and decided to give it a try on my desktop at home (running FreeBSD CURRENT), as I wondered how those things worked. When I plug it in, umass attaches and I get a 'da0' device. It works like I expected, but I get a lot of useless messages in my dmesg. When I attach the device with a floppy inside the drive, I get the following messages: | umass0: on = uhub1 | da0 at umass-sim0 bus 0 target 0 lun 0 | da0: Removable Direct Access SCSI-0 device=20 | da0: 20KB/s transfers | da0: 1MB (2880 512 byte sectors: 64H 32S/T 1C) | umass0: Unsupported UFI command 0x35 | (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x6, scsi= status =3D=3D 0x0 | umass0: Unsupported UFI command 0x35 | (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x6, scsi= status =3D=3D 0x0 I even get more of these 'Unsupported UFI command 0x35' when performing reads. The dmesg is even more dramatic when plugging in the device without a floppy present: | umass0: on = uhub1 | da0 at umass-sim0 bus 0 target 0 lun 0 | da0: Removable Direct Access SCSI-0 device=20 | da0: 20KB/s transfers | da0: Attempt to query device size failed: NOT READY, Medium not present | (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0=20 | (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error | (da0:umass-sim0:0:0:0): SCSI Status: Check Condition | (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 | (da0:umass-sim0:0:0:0): Medium not present | (da0:umass-sim0:0:0:0): Unretryable error | Opened disk da0 -> 6 | (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0=20 | (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error | (da0:umass-sim0:0:0:0): SCSI Status: Check Condition | (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 | (da0:umass-sim0:0:0:0): Medium not present | (da0:umass-sim0:0:0:0): Unretryable error | Opened disk da0 -> 6 The strange thing is that the device works. I can mount it, see the disk contents and dismount it afterwards. It doesn't really bug me, as the floppy drive won't be used on my box anyway, but is there some way to patch this? Yours, --=20 Ed Schouten WWW: http://g-rave.nl/ --URkQCorwCiZbgSAY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEZHWR52SDGA2eCwURAusxAJ440Tz7saOshY/zyiDhv0b8Pz6zyACdFZdJ FUaZP67XJz6fS3+SmFl5ABw= =19Ng -----END PGP SIGNATURE----- --URkQCorwCiZbgSAY-- From owner-freebsd-usb@FreeBSD.ORG Fri May 12 12:23:28 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D40116A401; Fri, 12 May 2006 12:23:28 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [83.98.131.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FDF443D49; Fri, 12 May 2006 12:23:28 +0000 (GMT) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 0B87917101; Fri, 12 May 2006 14:23:27 +0200 (CEST) Date: Fri, 12 May 2006 14:23:26 +0200 From: Ed Schouten To: FreeBSD USB , FreeBSD SCSI , Nate Lawson Message-ID: <20060512122326.GJ15353@hoeg.nl> References: <20060512114625.GH15353@hoeg.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KivvIhzwof7oiYMy" Content-Disposition: inline In-Reply-To: <20060512114625.GH15353@hoeg.nl> User-Agent: Mutt/1.5.11 Cc: Subject: Re: Using a 'Y-E DATA USB-FDU 6.01' on FreeBSD -CURRENT X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2006 12:23:28 -0000 --KivvIhzwof7oiYMy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Ed Schouten wrote: > | umass0: o= n uhub1 > | da0 at umass-sim0 bus 0 target 0 lun 0 > | da0: Removable Direct Access SCSI-0 device=20 > | da0: 20KB/s transfers > | da0: 1MB (2880 512 byte sectors: 64H 32S/T 1C) > | umass0: Unsupported UFI command 0x35 > | (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x6, sc= si status =3D=3D 0x0 > | umass0: Unsupported UFI command 0x35 > | (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x6, sc= si status =3D=3D 0x0 After looking into some more kernel source, I wrote the following patch that removes the errors: %%% --- scsi_da.c Fri May 12 14:19:20 2006 +++ scsi_da.c Fri May 12 14:16:17 2006 @@ -443,6 +443,13 @@ {T_DIRECT, SIP_MEDIA_REMOVABLE, "Generic*", "STORAGE DEVICE*", "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, + { + /* + * Y-E DATA USB Floppy Drive + */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "Y-E DATA", "USB-FDU*", + "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE + }, }; =20 static disk_strategy_t dastrategy; %%% Is there someone here willing to commit it for me or should I open a PR for it? Yours, --=20 Ed Schouten WWW: http://g-rave.nl/ --KivvIhzwof7oiYMy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEZH4+52SDGA2eCwURAm/vAJ9eswEsKn17HJY1j+6P3mhI5In51wCfSMSg dVuZGKCie8ilXTv3mFpf6y0= =i+I7 -----END PGP SIGNATURE----- --KivvIhzwof7oiYMy-- From owner-freebsd-usb@FreeBSD.ORG Fri May 12 13:39:11 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97CC316A562; Fri, 12 May 2006 13:39:11 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F02143D80; Fri, 12 May 2006 13:39:02 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5D5B1.dip.t-dialin.net [84.165.213.177]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.4/8.13.1) with ESMTP id k4CDTMK3099614; Fri, 12 May 2006 15:29:22 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k4CDcmEC075601; Fri, 12 May 2006 15:38:48 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Fri, 12 May 2006 15:38:48 +0200 Message-ID: <20060512153848.15dezc1gcggoswo0@netchild.homeip.net> X-Priority: 3 (Normal) Date: Fri, 12 May 2006 15:38:48 +0200 From: Alexander Leidinger To: Ed Schouten References: <20060512114625.GH15353@hoeg.nl> <20060512122326.GJ15353@hoeg.nl> In-Reply-To: <20060512122326.GJ15353@hoeg.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: FreeBSD SCSI , FreeBSD USB , Nate Lawson Subject: Re: Using a 'Y-E DATA USB-FDU 6.01' on FreeBSD -CURRENT X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2006 13:39:14 -0000 Quoting Ed Schouten (from Fri, 12 May 2006 14:23:26 +0200): > After looking into some more kernel source, I wrote the following patch > that removes the errors: > > %%% > --- scsi_da.c=09Fri May 12 14:19:20 2006 > +++ scsi_da.c=09Fri May 12 14:16:17 2006 > @@ -443,6 +443,13 @@ > =09=09{T_DIRECT, SIP_MEDIA_REMOVABLE, "Generic*", "STORAGE DEVICE*", > =09=09"*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE > =09}, > +=09{ > +=09=09/* > +=09=09 * Y-E DATA USB Floppy Drive > +=09=09 */ > +=09=09{T_DIRECT, SIP_MEDIA_REMOVABLE, "Y-E DATA", "USB-FDU*", > +=09=09"*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE > +=09}, > }; > > static=09disk_strategy_t=09dastrategy; > %%% > > Is there someone here willing to commit it for me or should I open a PR > for it? Quirks need to be submitted via send-pr, so that we have a trace =20 (please include the error messages from your initial mail). Bye, Alexander. --=20 http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 When I was in school, I cheated on my metaphysics exam: I looked into the soul of the boy sitting next to me. =09=09-- Woody Allen From owner-freebsd-usb@FreeBSD.ORG Fri May 12 14:00:43 2006 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 [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0168A16A6F8 for ; Fri, 12 May 2006 14:00:42 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFADD43D5E for ; Fri, 12 May 2006 14:00:33 +0000 (GMT) (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 k4CE0Xpf048424 for ; Fri, 12 May 2006 14:00:33 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4CE0X53048423; Fri, 12 May 2006 14:00:33 GMT (envelope-from gnats) Resent-Date: Fri, 12 May 2006 14:00:33 GMT Resent-Message-Id: <200605121400.k4CE0X53048423@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, Jürgen Herz Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4E2716A428 for ; Fri, 12 May 2006 13:56:20 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED22543D5E for ; Fri, 12 May 2006 13:56:19 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k4CDuJtt081364 for ; Fri, 12 May 2006 13:56:19 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k4CDuJ4l081360; Fri, 12 May 2006 13:56:19 GMT (envelope-from nobody) Message-Id: <200605121356.k4CDuJ4l081360@www.freebsd.org> Date: Fri, 12 May 2006 13:56:19 GMT From: Jürgen Herz To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: usb/97175: USB cardreader hangs system 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 May 2006 14:00:47 -0000 >Number: 97175 >Category: usb >Synopsis: USB cardreader hangs system >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 12 14:00:33 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Jürgen Herz >Release: 6.0 & 6.1 >Organization: >Environment: FreeBSD lunix.linux.test 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:32:43 UTC 2006 root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: On 6.0-RELEASE and now 6.1-RELEASE I've the problem that using my internal front panel card reader, attached via the USB connector on the mainboard results in stopping the boot process. dmesg shows this while booting umass0: Generic USB Storage Device, rev 2.00/1.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present da1 at umass-sim0 bus 0 target 0 lun 1 da1: Removable Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: Attempt to query device size failed: NOT READY, Medium not present da2 at umass-sim0 bus 0 target 0 lun 2 da2: Removable Direct Access SCSI-0 device da2: 40.000MB/s transfers da2: Attempt to query device size failed: NOT READY, Medium not present da3 at umass-sim0 bus 0 target 0 lun 3 da3: Removable Direct Access SCSI-0 device da3: 40.000MB/s transfers da3: Attempt to query device size failed: NOT READY, Medium not present (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Unretryable error same block for da1 to da3 three times each and then shows umass0: BBB reset failed, TIMEOUT several times in large time intervals. If I plug the card reader off, the boot process continues then. If I plug the card reader in after booting, same text is output but I cannot use the reader since it doesn't react upon inserting a memory card. Before and after only /dev/da0, /dev/da1, /dev/da2 and /dev/da3 are available. Basically using cards in the reader works, but only if the card is already inserted while booting and reader is plugged in (in this case I get a mountable /dev/da0s1). But this isn't the idea of removeable media. The reader, resp. the chipset it uses, is wide spread since it has the vendor and product codes of the NEODIO ND3260 (0x0aec 0x3260) from sys/dev/usb/usbdevs. And under Windows as well on Linux it also works flawless. camcontrol devlist -v lists scbus0 on umass-sim0 bus 0: at scbus0 target 0 lun 0 (pass0,da0) at scbus0 target 0 lun 1 (pass1,da1) at scbus0 target 0 lun 2 (pass2,da2) at scbus0 target 0 lun 3 (pass3,da3) scbus1 on sym0 bus 0: < > at scbus1 target -1 lun -1 () scbus-1 on xpt0 bus 0: < > at scbus-1 target -1 lun -1 (xpt0) I tried release 5.4 after that and while I wasn't able to produce the hang while booting (but only bootet that system about 10 times) it also doesn't work when inserting a card. I already tried the quirks DA_Q_NO_SYNC_CACHE and DA_Q_NO_6_BYTE without success. And yes, I think the card reader is fine since Windows and Linux have no problem with it. >How-To-Repeat: Plug the card reader in and boot. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sat May 13 03:11:29 2006 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 [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1A9316A403; Sat, 13 May 2006 03:11:28 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC68943D46; Sat, 13 May 2006 03:11:28 +0000 (GMT) (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 k4D3BS6n040997; Sat, 13 May 2006 03:11:28 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4D3BShm040993; Sat, 13 May 2006 03:11:28 GMT (envelope-from linimon) Date: Sat, 13 May 2006 03:11:28 GMT From: Mark Linimon Message-Id: <200605130311.k4D3BShm040993@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org Cc: Subject: Re: usb/96901: [patch] Add support for X-Micro Flash Disk 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 May 2006 03:11:29 -0000 Synopsis: [patch] Add support for X-Micro Flash Disk Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Sat May 13 03:11:00 UTC 2006 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=96901 From owner-freebsd-usb@FreeBSD.ORG Sat May 13 12:40:22 2006 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 [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3781616A40A for ; Sat, 13 May 2006 12:40:22 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8EB943D46 for ; Sat, 13 May 2006 12:40:21 +0000 (GMT) (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 k4DCeLC9081519 for ; Sat, 13 May 2006 12:40:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4DCeLk8081517; Sat, 13 May 2006 12:40:21 GMT (envelope-from gnats) Date: Sat, 13 May 2006 12:40:21 GMT Message-Id: <200605131240.k4DCeLk8081517@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "Jeff Walter" Cc: Subject: Re: usb/93828: ohci causes panic on boot (HP Pavillion d4100e) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jeff Walter List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 May 2006 12:40:22 -0000 The following reply was made to PR usb/93828; it has been noted by GNATS. From: "Jeff Walter" To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/93828: ohci causes panic on boot (HP Pavillion d4100e) Date: Sat, 13 May 2006 08:35:29 -0400 Just an update... 6.1 RELEASE does not fix the problem. --=20 Existence matters only to itself. From owner-freebsd-usb@FreeBSD.ORG Sat May 13 21:57:13 2006 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 [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D4B4E16A431 for ; Sat, 13 May 2006 21:57:13 +0000 (UTC) (envelope-from blomqyios@ths.kth.se) Received: from ths.kth.se (bro67-3-82-231-136-166.fbx.proxad.net [82.231.136.166]) by mx1.FreeBSD.org (Postfix) with SMTP id A56EC43D5A for ; Sat, 13 May 2006 21:57:02 +0000 (GMT) (envelope-from blomqyios@ths.kth.se) Message-ID: <000001c676d7$a2da0080$dd53a8c0@zgf88> From: "Iosif Blomquist" To: freebsd-usb@hub.freebsd.org Date: Sat, 13 May 2006 14:53:14 -0700 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: the crred X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Iosif Blomquist List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 May 2006 21:57:13 -0000 go to the web site =20 =20 =20 =20 =20 beside them on to sharp rocks below; but each of them took a good coil of rope wound tight about his waist, and so at last without mishap they reached the little grassy bay. There they made their third camp, hauling up what they needed from below with their ropes. Down the same way they were able occasionally to lower one of the more active dwarves, such as Kili, to exchange such news as there was, or to take a share in the guard below, while Bofur was hauled up to the higher camp. Bombur would not come up either the rope or the path. I am too fat for such fly-walks, he said. I should turn dizzy and tread on my beard, and then you would be thirteen again. And the knotted ropes are too slender for my weight. Luckily for him that was not true, as you will see. In the meanwhile some of them explored the ledge beyond the opening and found a path that led higher and higher on to the mountain; but they did not dare to venture very far that way, nor was there much use in it. Out up there a silence reigned, broken by no bird or sound except that of the wind in the crannies of stone. They spoke low and never called or From owner-freebsd-usb@FreeBSD.ORG Sat May 13 21:57:14 2006 Return-Path: X-Original-To: freebsd-usb@freefall.freebsd.org Delivered-To: freebsd-usb@freefall.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 292CD16A436 for ; Sat, 13 May 2006 21:57:14 +0000 (UTC) (envelope-from streaucori@thetrain.com) Received: from thetrain.com (bro67-3-82-231-136-166.fbx.proxad.net [82.231.136.166]) by mx1.FreeBSD.org (Postfix) with SMTP id 80FBE43D58 for ; Sat, 13 May 2006 21:57:02 +0000 (GMT) (envelope-from streaucori@thetrain.com) Message-ID: <000001c676d7$a2da0080$dd53a8c0@zgf88> From: "Corie Streater" To: freebsd-usb@freefall.freebsd.org Date: Sat, 13 May 2006 14:53:14 -0700 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: the crred X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Corie Streater List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 May 2006 21:57:14 -0000 go to the web site =20 =20 =20 =20 =20 beside them on to sharp rocks below; but each of them took a good coil of rope wound tight about his waist, and so at last without mishap they reached the little grassy bay. There they made their third camp, hauling up what they needed from below with their ropes. Down the same way they were able occasionally to lower one of the more active dwarves, such as Kili, to exchange such news as there was, or to take a share in the guard below, while Bofur was hauled up to the higher camp. Bombur would not come up either the rope or the path. I am too fat for such fly-walks, he said. I should turn dizzy and tread on my beard, and then you would be thirteen again. And the knotted ropes are too slender for my weight. Luckily for him that was not true, as you will see. In the meanwhile some of them explored the ledge beyond the opening and found a path that led higher and higher on to the mountain; but they did not dare to venture very far that way, nor was there much use in it. Out up there a silence reigned, broken by no bird or sound except that of the wind in the crannies of stone. They spoke low and never called or From owner-freebsd-usb@FreeBSD.ORG Sat May 13 23:22:51 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AB0B16A407 for ; Sat, 13 May 2006 23:22:51 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail21.syd.optusnet.com.au (mail21.syd.optusnet.com.au [211.29.133.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D2A043D49 for ; Sat, 13 May 2006 23:22:50 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail21.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k4DNMm6f022802 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sun, 14 May 2006 09:22:49 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.6/8.13.6) with ESMTP id k4DNMm8T008346 for ; Sun, 14 May 2006 09:22:48 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.6/8.13.6/Submit) id k4DNMmDK008345 for freebsd-usb@freebsd.org; Sun, 14 May 2006 09:22:48 +1000 (EST) (envelope-from peter) Date: Sun, 14 May 2006 09:22:48 +1000 From: Peter Jeremy To: freebsd-usb@freebsd.org Message-ID: <20060513232248.GA7904@turion.vk2pj.dyndns.org> Mail-Followup-To: Peter Jeremy , freebsd-usb@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Subject: umass not working with MP3 Player 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 May 2006 23:22:51 -0000 My wife got a MP3 player for mother's day. Whilst I managed to confirm that it was a standard USB mass storage device before buying it, it seems that FreeBSD (6.1-RELEASE) doesn't like it. It identifies as: umass0: EM706S EM706S MP3 Player, rev 1.10/10.01, addr 2 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:2:0:-1: Attached to scbus2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-4 device da0: 1.000MB/s transfers da0: 491MB (251456 2048 byte sectors: 64H 32S/T 122C) usbdevs reports: port 3 addr 2: full speed, power 100 mA, config 1, EM706S MP3 Player(0x0706), EM706S(0x067f), rev 10.01 But an attempt to read from it (with hw.usb.umass.debug=0xffff0000) returns: turion% dd if=/dev/da0 bs=512 count=1 >/dev/null umass0:2:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b cmd/8b data/32b sense umass0: CBW 50: cmd = 10b (0x250000000000...), data = 8b, dir = in umass0: Handling BBB state 2 (BBB CBW), xfer=0xffffff002a822a00, NORMAL_COMPLETION umass0: Handling BBB state 3 (BBB Data), xfer=0xffffff002992f800, NORMAL_COMPLETION umass0: 0x 0003d63f00000800 buffer=0xffffff001aac8240, buflen=8 umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xffffff0028b48800, NORMAL_COMPLETION umass0: CSW 50: sig = 0x53425355 (valid), tag = 50, res = 0, status = 0x00 (good) umass0:2:0:0:XPT_SCSI_IO: cmd: 0x1e, flags: 0xc0, 6b cmd/0b data/32b sense umass0: CBW 51: cmd = 6b (0x1e0000000100), data = 0b, dir = out umass0: Handling BBB state 2 (BBB CBW), xfer=0xffffff002a822a00, NORMAL_COMPLETION umass0: no data phase umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xffffff0028b48800, NORMAL_COMPLETION umass0: CSW 51: sig = 0x53425355 (valid), tag = 51, res = 0, status = 0x00 (good) dd: /dev/da0: Invalid argument 0+0 records in 0+0 records out 0 bytes transferred in 0.000197 secs (0 bytes/sec) I've tried comparing it with a BBB umass device that works and there is no immediately obvious difference except that the good device continues to perform further SCSI commands instead of returning EINVAL. Any suggestions on how to proceed further? -- Peter Jeremy