From ee at athyriogames.com Fri May 1 02:04:51 2009 From: ee at athyriogames.com (Engineering) Date: Fri May 1 02:04:58 2009 Subject: Bad USB port explanation? In-Reply-To: <000f01c9c8dd$c4fdba20$4ef92e60$@com> References: <200903010045.44904.man@email.com.ua> <200903031516.02744.hselasky@c2i.net> <200903032006.54451.man@email.com.ua> <200903032243.31914.hselasky@c2i.net> <000f01c9c8dd$c4fdba20$4ef92e60$@com> Message-ID: <009e01c9ca01$356cca70$a0465f50$@com> Hi all. Hans Petter has been very generous with his time helping me with this, but I'm now seeing some strange behavior, which maybe someone has seen something similar or has an opinion Still having problems running USB webcam on FreeBSD. Running of Intel D945PLNM board, nVidia 9500GT series video card. Storage is compact flash, with a CF-IDE adapter. Webcam is no-name Chinese, which is supposed to conform to UVC spec - no other documentation The application can display the video and framerate in realtime, and also reconnect the camera on error. Only on one USB port is it going haywire. I can disconnect the camera while the app is running, move it to another port, and it pops up at 30fps. Move it back to the top left port, and it goes bad again. >From my point of view (driver and application) there is no difference in ports - I'm just talking to /dev/ugen Also - If I plug the cam into a USB2.0 hub, and into the problem port, the webcam works fine. (?!?) Power issue? I would call it just a bad port, but then why would it work with a hub into the port? We have a couple hundred of these boards in stock, and would like to use them. Thanks, Sam From imp at bsdimp.com Fri May 1 02:44:51 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Fri May 1 02:44:57 2009 Subject: Bad USB port explanation? In-Reply-To: <009e01c9ca01$356cca70$a0465f50$@com> References: <200903032243.31914.hselasky@c2i.net> <000f01c9c8dd$c4fdba20$4ef92e60$@com> <009e01c9ca01$356cca70$a0465f50$@com> Message-ID: <20090430.204212.-859615870.imp@bsdimp.com> In message: <009e01c9ca01$356cca70$a0465f50$@com> "Engineering" writes: : Only on one USB port is it going haywire. I can disconnect the camera while : the app is running, move it to another port, and it pops up at 30fps. Move : it back to the top left port, and it goes bad again. I've seen three things cause this. 1: static damage. 2: improper balancing of the inputs and 3: overloaded hub for other ports... Warner From hpc at hpch.net Sun May 3 20:00:08 2009 From: hpc at hpch.net (Henri-Pierre Charles) Date: Sun May 3 20:00:15 2009 Subject: usb/134193: System freeze on usb MP3 player insertion Message-ID: <200905031950.n43JoKEs075263@www.freebsd.org> >Number: 134193 >Category: usb >Synopsis: System freeze on usb MP3 player insertion >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: Sun May 03 20:00:07 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Henri-Pierre Charles >Release: 7-2-PRERELEASE >Organization: >Environment: FreeBSD asus.hpch.net 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #3: Sun May 3 17:23:24 CEST 2009 root@media.hpch.net:/usr/src/sys/i386/compile/GENERIC i386 >Description: Using an MP3 player (MPMAN model) the system freeze and give this message : May 2 21:31:24 media kernel: umass0: BBB reset failed, TIMEOUT May 2 21:31:24 media kernel: umass0: BBB bulk-in clear stall failed, TIMEOUT May 2 21:31:24 media kernel: umass0: BBB bulk-out clear stall failed, TIMEOUT May 2 21:31:24 media kernel: umass0: BBB reset failed, TIMEOUT It's impossible to use the system, and of course the MP3 player. >How-To-Repeat: Insert a MPMAN player. I've tried with different model (1Go and 2 Go) >Fix: Patching sys/dev/usb/usbdevs for adding name for this device and patching sys/dev/usb/umass.c for adding quirk NO_SYNCHRONIZE_CACHE fixe the problem Patch attached with submission follows: *** usbdevs 2009-04-15 05:14:26.000000000 +0200 --- usbdevs.hpc 2009-05-03 17:58:53.000000000 +0200 *************** *** 1,4 **** ! $FreeBSD: src/sys/dev/usb/usbdevs,v 1.328.2.26.2.1 2009/04/15 03:14:26 kensmith Exp $ /* $NetBSD: usbdevs,v 1.392 2004/12/29 08:38:44 imp Exp $ */ /*- --- 1,4 ---- ! $FreeBSD: src/sys/dev/usb/usbdevs,v 1.328.2.26 2009/03/23 04:06:21 thompsa Exp $ /* $NetBSD: usbdevs,v 1.392 2004/12/29 08:38:44 imp Exp $ */ /*- *************** *** 624,629 **** --- 624,630 ---- vendor LINKSYS3 0x1915 Linksys vendor QUALCOMMINC 0x19d2 Qualcomm, Incorporated vendor STELERA 0x1a8d Stelera Wireless + vendor MPMAN 0x1cae MpMan vendor DRESDENELEKTRONIK 0x1cf1 dresden elektronik vendor DLINK 0x2001 D-Link vendor PLANEX2 0x2019 Planex Communications *************** *** 663,668 **** --- 664,673 ---- * List of known products. Grouped by vendor. */ + /* MpMan products */ + product MPMAN MPF400_1 0x36d0 MPF400 Music Player 1Go + product MPMAN MPF400_2 0x25a8 MPF400 Music Player 2Go + /* 3Com products */ product 3COM HOMECONN 0x009d HomeConnect Camera product 3COM 3CREB96 0x00a0 Bluetooth USB Adapter *** umass.c 2009-04-15 05:14:26.000000000 +0200 --- umass.c.hpc 2009-05-03 17:58:33.000000000 +0200 *************** *** 24,30 **** * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ! * $FreeBSD: src/sys/dev/usb/umass.c,v 1.160.2.7.2.1 2009/04/15 03:14:26 kensmith Exp $ * $NetBSD: umass.c,v 1.28 2000/04/02 23:46:53 augustss Exp $ */ --- 24,30 ---- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ! * $FreeBSD: src/sys/dev/usb/umass.c,v 1.160.2.7 2009/03/23 18:13:18 thompsa Exp $ * $NetBSD: umass.c,v 1.28 2000/04/02 23:46:53 augustss Exp $ */ *************** *** 332,337 **** --- 332,341 ---- }; static struct umass_devdescr_t umass_devdescrs[] = { + { USB_VENDOR_MPMAN, PID_WILDCARD, RID_WILDCARD, + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, + NO_SYNCHRONIZE_CACHE + }, { USB_VENDOR_ADDONICS2, USB_PRODUCT_ADDONICS2_CABLE_205, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_QUIRKS >Release-Note: >Audit-Trail: >Unformatted: From hselasky at c2i.net Mon May 4 08:14:24 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon May 4 08:14:29 2009 Subject: usb/134193: System freeze on usb MP3 player insertion In-Reply-To: <200905031950.n43JoKEs075263@www.freebsd.org> References: <200905031950.n43JoKEs075263@www.freebsd.org> Message-ID: <200905041016.55726.hselasky@c2i.net> On Sunday 03 May 2009, Henri-Pierre Charles wrote: > Henri-Pierre Charles Fix for 8-current. http://perforce.freebsd.org/chv.cgi?CH=161533 --HPS From hselasky at c2i.net Mon May 4 08:20:06 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon May 4 08:20:12 2009 Subject: usb/134193: System freeze on usb MP3 player insertion Message-ID: <200905040820.n448K4Vh099492@freefall.freebsd.org> The following reply was made to PR usb/134193; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Henri-Pierre Charles , freebsd-gnats-submit@freebsd.org Subject: Re: usb/134193: System freeze on usb MP3 player insertion Date: Mon, 4 May 2009 10:16:54 +0200 On Sunday 03 May 2009, Henri-Pierre Charles wrote: > Henri-Pierre Charles Fix for 8-current. http://perforce.freebsd.org/chv.cgi?CH=161533 --HPS From bugmaster at FreeBSD.org Mon May 4 11:08:10 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon May 4 11:10:11 2009 Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org Message-ID: <200905041108.n44B88Wu098914@freefall.freebsd.org> Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/134193 usb System freeze on usb MP3 player insertion o usb/134117 usb [Patch] Add support for 'Option GlobeTrotter HSDPA Mod o usb/134085 usb [umass] Adding usb quirk for Sony USB flash drive o usb/133989 usb [newusb] [ukbd] USB keyboard dead at mountroot> prompt o usb/133896 usb [cdce] [newusb] panic when disconnecting cdce device j o usb/133817 usb [newusb] broken umass compile f usb/133545 usb [usb] [panic] Kernel crash in usb2_intr_schedule_adjus o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb rum driver not working properly in hostap mode p usb/132799 usb [usb][patch]GENESYS USB2IDE requires NO_SYNCHRONIZE_CA o usb/132785 usb [usb] [patch] Gemtech remote powersocket is classed as o usb/132594 usb USB subsystem causes page fault and crashes o usb/132312 usb Xorg 7.4 halts USB controller o usb/132080 usb [patch] [usb] Kernel panic after NOMEM caused by rum c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131912 usb [uslcom] [patch] New devices using Silicon Labs chips o usb/131900 usb [usbdevs] [patch] Additional product identification co o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c f usb/131123 usb [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130325 usb [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh o usb/130230 usb Samsung Electronics YP-U3 does not attach in 7.1-RELEA o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [newusb] DVD drive detects as 'da' device o docs/129962 usb [newusb] usbconfig(8) refers to non-existant usb2_core o usb/129945 usb [usbdevs] [patch] add u3g support for Longcheer WM66 U o usb/129766 usb [usb] plugging in usb modem HUAWEI E226 panics system o usb/129758 usb [uftdi] [patch] add Pyramid LCD usb support o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129522 usb [ubsa] [patch] add support for ZTE AC8700 modem o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader o usb/129251 usb [usbdevs] [patch] Liebert UPS being assigned uhid and o usb/129173 usb [uplcom] [patch] Add support for Corega CG-USBRS232R a s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb] [patch] uaudio is not full duplex o usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive f usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/128324 usb [uplcom] [patch] remove baud rate restriction for PL23 o usb/127980 usb [umass] [patch] Fix Samsung YP U2 MP3 player on 7.x an o usb/127926 usb [boot] USB Timeout during bootup o usb/127549 usb [umass] [patch] Meizu MiniPlayer M6 (SL) requires some s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should o usb/127423 usb [boot] BTX halted on Gigabyte GA-MA69VM-S2 / AMD Sempr o usb/127342 usb [boot] cannot enable usb keyboard and mouse support in o usb/127248 usb [ucom] panic while uplcom devices attaach and detach o kern/127222 usb [ohci]: Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c f usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125264 usb [patch] sysctl for set usb mouse rate (very useful for o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone o usb/123352 usb [usbdevs] [patch] Add Option GTMAX3.6/7.2 and Quallcom o usb/123351 usb [usbdevs] [patch] Add Reiner SCT cyberJack, Omnikey [2 o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122956 usb [ubsa] [patch] add support for Novatel Wireless XU870 o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122621 usb [patch] [request] New driver for Sierra Wireless 3G US o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/122025 usb [uscanner] [patch] uscanner does not attach to Epson R o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s p usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118686 usb [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [umass] [patch] Problems with connection of the umass o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af a usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC o usb/109397 usb [panic] on boot from USB flash o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE [regr s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/107924 usb [patch] usbd(8) does not call detach o usb/107848 usb [umass] [request] cannot access Samsung flash disk o usb/107827 usb [ohci] [panic] ohci_add_done addr not found o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) [ o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107243 usb [cam] [patch] Apacer USB Flash Drive quirk o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze s usb/106832 usb [usb] USB HP printer is not detected by kernel when AC o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/105065 usb [ata] [usb] SATA - USB Bridge o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/104645 usb [umass] [request] Rave C-201 MP3 player does not commu o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/103917 usb [uhub] USB driver reports "Addr 0 should never happen" o usb/103418 usb usbhidctl(1): [patch] [request] usbhidctl: add ability o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/102678 usb [keyboard] Dell PowerEdge DRAC5 USB Keyboard does not o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101096 usb [ural] [panic] USB WLAN occasionally causes kernel-pan o usb/100746 usb [keyboard] system does not boot due to USB keyboard pr o usb/99538 usb [keyboard] while using USB keyboard default params of o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o kern/99200 usb [bluetooth] SMP-Kernel crashes reliably when Bluetooth o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91629 usb [usb] usbd_abort_pipe() may result in infinite loop o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device f usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80829 usb [modules] [panic] possible panic when loading USB-modu s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/79722 usb [ehci] wrong alignments in ehci.h a usb/79656 usb [ehci] RHSC interrupts lost o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75797 usb [sound] 5.3-STABLE(2005 1/4) detect USB headset, But c o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 312 problems total. From hpcharles at gmail.com Mon May 4 11:55:08 2009 From: hpcharles at gmail.com (Henri-Pierre Charles) Date: Mon May 4 11:55:13 2009 Subject: usb/134193: System freeze on usb MP3 player insertion In-Reply-To: <200905032000.n43K07fQ065544@freefall.freebsd.org> References: <200905031950.n43JoKEs075263@www.freebsd.org> <200905032000.n43K07fQ065544@freefall.freebsd.org> Message-ID: <4734a3ed0905040425i1ed6acd5k5b296ae99d59c5bd@mail.gmail.com> Hello, On Sun, May 3, 2009 at 10:00 PM, wrote: > You can access the state of your problem report at any time > via this link: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=134193 > >>Category: ? ? ? usb >>Responsible: ? ?freebsd-usb >>Synopsis: ? ? ? System freeze on usb MP3 player insertion >>Arrival-Date: ? Sun May 03 20:00:07 UTC 2009 Well, finally I did more testing and with my patch (added quirk NO_SYNCHRONIZE_CACHE in umass.c) the system allow to mount, read, write. But it seem that write sometimes failed : Symptom: mount the key cp mp3 file md5 file umount the key re-mout the key md5 file give an other sum (and the sound is horrible) I'm not specialist of the usb/umass quirk. Is there anything else to try ? (FYI the mp3 mount/read/write like a charm on linux xubuntu) Thanks for any help ! This patch is for helping my daughters to use their mp3, help me to answer to their question "Dad, why don't you install linux everywhere ?" :-) (No flame, just kidding) -- HPC From hpcharles at gmail.com Mon May 4 11:56:15 2009 From: hpcharles at gmail.com (Henri-Pierre Charles) Date: Mon May 4 11:56:22 2009 Subject: Fwd: usb/134193: System freeze on usb MP3 player insertion In-Reply-To: <4734a3ed0905040425i1ed6acd5k5b296ae99d59c5bd@mail.gmail.com> References: <200905031950.n43JoKEs075263@www.freebsd.org> <200905032000.n43K07fQ065544@freefall.freebsd.org> <4734a3ed0905040425i1ed6acd5k5b296ae99d59c5bd@mail.gmail.com> Message-ID: <4734a3ed0905040425y42c4b982gae3a3a734dbccbb2@mail.gmail.com> ---------- Forwarded message ---------- From: Henri-Pierre Charles Date: Mon, May 4, 2009 at 1:25 PM Subject: Re: usb/134193: System freeze on usb MP3 player insertion To: FreeBSD-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Cc: Henri-Pierre Charles Hello, On Sun, May 3, 2009 at 10:00 PM, ? wrote: > You can access the state of your problem report at any time > via this link: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=134193 > >>Category: ? ? ? usb >>Responsible: ? ?freebsd-usb >>Synopsis: ? ? ? System freeze on usb MP3 player insertion >>Arrival-Date: ? Sun May 03 20:00:07 UTC 2009 Well, finally I did more testing and with my patch (added quirk NO_SYNCHRONIZE_CACHE in umass.c) the system allow to mount, read, write. But it seem that write sometimes failed : Symptom: mount the key cp mp3 file md5 file umount the key re-mout the key md5 file give an other sum (and the sound is horrible) I'm not specialist of the usb/umass quirk. Is there anything else to try ? (FYI the mp3 mount/read/write like a charm on linux xubuntu) Thanks for any help ! This patch is for helping my daughters to use their mp3, help me to answer to their question "Dad, why don't you install linux everywhere ?" :-) (No flame, just kidding) -- HPC -- HPC From hpcharles at gmail.com Mon May 4 12:00:14 2009 From: hpcharles at gmail.com (Henri-Pierre Charles) Date: Mon May 4 12:00:21 2009 Subject: usb/134193: System freeze on usb MP3 player insertion Message-ID: <200905041200.n44C0DcC072912@freefall.freebsd.org> The following reply was made to PR usb/134193; it has been noted by GNATS. From: Henri-Pierre Charles To: FreeBSD-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Cc: Henri-Pierre Charles Subject: Re: usb/134193: System freeze on usb MP3 player insertion Date: Mon, 4 May 2009 13:25:05 +0200 Hello, On Sun, May 3, 2009 at 10:00 PM, wrote: > You can access the state of your problem report at any time > via this link: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D134193 > >>Category: =A0 =A0 =A0 usb >>Responsible: =A0 =A0freebsd-usb >>Synopsis: =A0 =A0 =A0 System freeze on usb MP3 player insertion >>Arrival-Date: =A0 Sun May 03 20:00:07 UTC 2009 Well, finally I did more testing and with my patch (added quirk NO_SYNCHRONIZE_CACHE in umass.c) the system allow to mount, read, write. But it seem that write sometimes failed : Symptom: mount the key cp mp3 file md5 file umount the key re-mout the key md5 file give an other sum (and the sound is horrible) I'm not specialist of the usb/umass quirk. Is there anything else to try ? (FYI the mp3 mount/read/write like a charm on linux xubuntu) Thanks for any help ! This patch is for helping my daughters to use their mp3, help me to answer to their question "Dad, why don't you install linux everywhere ?" :-) (No flame, just kidding) --=20 HPC From dfilter at FreeBSD.ORG Tue May 5 15:40:04 2009 From: dfilter at FreeBSD.ORG (dfilter service) Date: Tue May 5 15:40:19 2009 Subject: usb/133896: commit references a PR Message-ID: <200905051540.n45Fe3Ce047837@freefall.freebsd.org> The following reply was made to PR usb/133896; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/133896: commit references a PR Date: Tue, 5 May 2009 15:39:45 +0000 (UTC) Author: thompsa Date: Tue May 5 15:39:29 2009 New Revision: 191825 URL: http://svn.freebsd.org/changeset/base/191825 Log: Remove USB shutdown methods from device drivers as its the host controllers responsibility to detach the bus. PR: usb/133896 Submitted by: Hans Petter Selasky Modified: head/sys/dev/usb/net/if_aue.c head/sys/dev/usb/net/if_axe.c head/sys/dev/usb/net/if_cdce.c head/sys/dev/usb/net/if_cue.c head/sys/dev/usb/net/if_kue.c head/sys/dev/usb/net/if_rue.c head/sys/dev/usb/net/if_udav.c head/sys/dev/usb/net/usb_ethernet.c head/sys/dev/usb/net/usb_ethernet.h head/sys/dev/usb/storage/ustorage_fs.c head/sys/dev/usb/usb_compat_linux.c head/sys/dev/usb/usb_hub.c Modified: head/sys/dev/usb/net/if_aue.c ============================================================================== --- head/sys/dev/usb/net/if_aue.c Tue May 5 15:36:23 2009 (r191824) +++ head/sys/dev/usb/net/if_aue.c Tue May 5 15:39:29 2009 (r191825) @@ -173,7 +173,6 @@ static const struct usb2_device_id aue_d static device_probe_t aue_probe; static device_attach_t aue_attach; static device_detach_t aue_detach; -static device_shutdown_t aue_shutdown; static miibus_readreg_t aue_miibus_readreg; static miibus_writereg_t aue_miibus_writereg; static miibus_statchg_t aue_miibus_statchg; @@ -239,7 +238,6 @@ static device_method_t aue_methods[] = { DEVMETHOD(device_probe, aue_probe), DEVMETHOD(device_attach, aue_attach), DEVMETHOD(device_detach, aue_detach), - DEVMETHOD(device_shutdown, aue_shutdown), /* bus interface */ DEVMETHOD(bus_print_child, bus_generic_print_child), @@ -1038,17 +1036,3 @@ aue_stop(struct usb2_ether *ue) aue_csr_write_1(sc, AUE_CTL1, 0); aue_reset(sc); } - -/* - * Stop all chip I/O so that the kernel's probe routines don't - * get confused by errant DMAs when rebooting. - */ -static int -aue_shutdown(device_t dev) -{ - struct aue_softc *sc = device_get_softc(dev); - - usb2_ether_ifshutdown(&sc->sc_ue); - - return (0); -} Modified: head/sys/dev/usb/net/if_axe.c ============================================================================== --- head/sys/dev/usb/net/if_axe.c Tue May 5 15:36:23 2009 (r191824) +++ head/sys/dev/usb/net/if_axe.c Tue May 5 15:39:29 2009 (r191825) @@ -151,7 +151,6 @@ static const struct usb2_device_id axe_d static device_probe_t axe_probe; static device_attach_t axe_attach; static device_detach_t axe_detach; -static device_shutdown_t axe_shutdown; static usb2_callback_t axe_intr_callback; static usb2_callback_t axe_bulk_read_callback; @@ -216,7 +215,6 @@ static device_method_t axe_methods[] = { DEVMETHOD(device_probe, axe_probe), DEVMETHOD(device_attach, axe_attach), DEVMETHOD(device_detach, axe_detach), - DEVMETHOD(device_shutdown, axe_shutdown), /* bus interface */ DEVMETHOD(bus_print_child, bus_generic_print_child), @@ -1060,17 +1058,3 @@ axe_stop(struct usb2_ether *ue) axe_reset(sc); } - -/* - * Stop all chip I/O so that the kernel's probe routines don't - * get confused by errant DMAs when rebooting. - */ -static int -axe_shutdown(device_t dev) -{ - struct axe_softc *sc = device_get_softc(dev); - - usb2_ether_ifshutdown(&sc->sc_ue); - - return (0); -} Modified: head/sys/dev/usb/net/if_cdce.c ============================================================================== --- head/sys/dev/usb/net/if_cdce.c Tue May 5 15:36:23 2009 (r191824) +++ head/sys/dev/usb/net/if_cdce.c Tue May 5 15:39:29 2009 (r191825) @@ -67,7 +67,6 @@ __FBSDID("$FreeBSD$"); static device_probe_t cdce_probe; static device_attach_t cdce_attach; static device_detach_t cdce_detach; -static device_shutdown_t cdce_shutdown; static device_suspend_t cdce_suspend; static device_resume_t cdce_resume; static usb_handle_request_t cdce_handle_request; @@ -157,7 +156,6 @@ static device_method_t cdce_methods[] = DEVMETHOD(device_detach, cdce_detach), DEVMETHOD(device_suspend, cdce_suspend), DEVMETHOD(device_resume, cdce_resume), - DEVMETHOD(device_shutdown, cdce_shutdown), {0, 0} }; @@ -596,16 +594,6 @@ cdce_setpromisc(struct usb2_ether *ue) } static int -cdce_shutdown(device_t dev) -{ - struct cdce_softc *sc = device_get_softc(dev); - - usb2_ether_ifshutdown(&sc->sc_ue); - - return (0); -} - -static int cdce_suspend(device_t dev) { device_printf(dev, "Suspending\n"); Modified: head/sys/dev/usb/net/if_cue.c ============================================================================== --- head/sys/dev/usb/net/if_cue.c Tue May 5 15:36:23 2009 (r191824) +++ head/sys/dev/usb/net/if_cue.c Tue May 5 15:39:29 2009 (r191825) @@ -86,7 +86,6 @@ static const struct usb2_device_id cue_d static device_probe_t cue_probe; static device_attach_t cue_attach; static device_detach_t cue_detach; -static device_shutdown_t cue_shutdown; static usb2_callback_t cue_bulk_read_callback; static usb2_callback_t cue_bulk_write_callback; @@ -142,7 +141,6 @@ static device_method_t cue_methods[] = { DEVMETHOD(device_probe, cue_probe), DEVMETHOD(device_attach, cue_attach), DEVMETHOD(device_detach, cue_detach), - DEVMETHOD(device_shutdown, cue_shutdown), {0, 0} }; @@ -629,17 +627,3 @@ cue_stop(struct usb2_ether *ue) cue_csr_write_1(sc, CUE_ETHCTL, 0); cue_reset(sc); } - -/* - * Stop all chip I/O so that the kernel's probe routines don't - * get confused by errant DMAs when rebooting. - */ -static int -cue_shutdown(device_t dev) -{ - struct cue_softc *sc = device_get_softc(dev); - - usb2_ether_ifshutdown(&sc->sc_ue); - - return (0); -} Modified: head/sys/dev/usb/net/if_kue.c ============================================================================== --- head/sys/dev/usb/net/if_kue.c Tue May 5 15:36:23 2009 (r191824) +++ head/sys/dev/usb/net/if_kue.c Tue May 5 15:39:29 2009 (r191825) @@ -129,7 +129,6 @@ static const struct usb2_device_id kue_d static device_probe_t kue_probe; static device_attach_t kue_attach; static device_detach_t kue_detach; -static device_shutdown_t kue_shutdown; static usb2_callback_t kue_bulk_read_callback; static usb2_callback_t kue_bulk_write_callback; @@ -185,7 +184,6 @@ static device_method_t kue_methods[] = { DEVMETHOD(device_probe, kue_probe), DEVMETHOD(device_attach, kue_attach), DEVMETHOD(device_detach, kue_detach), - DEVMETHOD(device_shutdown, kue_shutdown), {0, 0} }; @@ -688,17 +686,3 @@ kue_stop(struct usb2_ether *ue) usb2_transfer_stop(sc->sc_xfer[KUE_BULK_DT_WR]); usb2_transfer_stop(sc->sc_xfer[KUE_BULK_DT_RD]); } - -/* - * Stop all chip I/O so that the kernel's probe routines don't - * get confused by errant DMAs when rebooting. - */ -static int -kue_shutdown(device_t dev) -{ - struct kue_softc *sc = device_get_softc(dev); - - usb2_ether_ifshutdown(&sc->sc_ue); - - return (0); -} Modified: head/sys/dev/usb/net/if_rue.c ============================================================================== --- head/sys/dev/usb/net/if_rue.c Tue May 5 15:36:23 2009 (r191824) +++ head/sys/dev/usb/net/if_rue.c Tue May 5 15:39:29 2009 (r191825) @@ -105,7 +105,6 @@ static const struct usb2_device_id rue_d static device_probe_t rue_probe; static device_attach_t rue_attach; static device_detach_t rue_detach; -static device_shutdown_t rue_shutdown; static miibus_readreg_t rue_miibus_readreg; static miibus_writereg_t rue_miibus_writereg; @@ -172,7 +171,6 @@ static device_method_t rue_methods[] = { DEVMETHOD(device_probe, rue_probe), DEVMETHOD(device_attach, rue_attach), DEVMETHOD(device_detach, rue_detach), - DEVMETHOD(device_shutdown, rue_shutdown), /* Bus interface */ DEVMETHOD(bus_print_child, bus_generic_print_child), @@ -897,17 +895,3 @@ rue_stop(struct usb2_ether *ue) rue_reset(sc); } - -/* - * Stop all chip I/O so that the kernel's probe routines don't - * get confused by errant DMAs when rebooting. - */ -static int -rue_shutdown(device_t dev) -{ - struct rue_softc *sc = device_get_softc(dev); - - usb2_ether_ifshutdown(&sc->sc_ue); - - return (0); -} Modified: head/sys/dev/usb/net/if_udav.c ============================================================================== --- head/sys/dev/usb/net/if_udav.c Tue May 5 15:36:23 2009 (r191824) +++ head/sys/dev/usb/net/if_udav.c Tue May 5 15:39:29 2009 (r191825) @@ -69,7 +69,6 @@ __FBSDID("$FreeBSD$"); static device_probe_t udav_probe; static device_attach_t udav_attach; static device_detach_t udav_detach; -static device_shutdown_t udav_shutdown; static usb2_callback_t udav_bulk_write_callback; static usb2_callback_t udav_bulk_read_callback; @@ -132,7 +131,6 @@ static device_method_t udav_methods[] = DEVMETHOD(device_probe, udav_probe), DEVMETHOD(device_attach, udav_attach), DEVMETHOD(device_detach, udav_detach), - DEVMETHOD(device_shutdown, udav_shutdown), /* bus interface */ DEVMETHOD(bus_print_child, bus_generic_print_child), @@ -840,17 +838,3 @@ udav_miibus_statchg(device_t dev) { /* nothing to do */ } - -/* - * Stop all chip I/O so that the kernel's probe routines don't - * get confused by errant DMAs when rebooting. - */ -static int -udav_shutdown(device_t dev) -{ - struct udav_softc *sc = device_get_softc(dev); - - usb2_ether_ifshutdown(&sc->sc_ue); - - return (0); -} Modified: head/sys/dev/usb/net/usb_ethernet.c ============================================================================== --- head/sys/dev/usb/net/usb_ethernet.c Tue May 5 15:36:23 2009 (r191824) +++ head/sys/dev/usb/net/usb_ethernet.c Tue May 5 15:39:29 2009 (r191825) @@ -288,19 +288,6 @@ usb2_ether_ifdetach(struct usb2_ether *u usb2_proc_free(&ue->ue_tq); } -void -usb2_ether_ifshutdown(struct usb2_ether *ue) -{ - struct ifnet *ifp = ue->ue_ifp; - - UE_LOCK(ue); - if (ifp->if_drv_flags & IFF_DRV_RUNNING) - ue_queue_command(ue, ue_stop_task, - &ue->ue_sync_task[0].hdr, - &ue->ue_sync_task[1].hdr); - UE_UNLOCK(ue); -} - uint8_t usb2_ether_is_gone(struct usb2_ether *ue) { Modified: head/sys/dev/usb/net/usb_ethernet.h ============================================================================== --- head/sys/dev/usb/net/usb_ethernet.h Tue May 5 15:36:23 2009 (r191824) +++ head/sys/dev/usb/net/usb_ethernet.h Tue May 5 15:39:29 2009 (r191825) @@ -118,6 +118,5 @@ int usb2_ether_rxbuf(struct usb2_ether struct usb2_page_cache *, unsigned int, unsigned int); void usb2_ether_rxflush(struct usb2_ether *); -void usb2_ether_ifshutdown(struct usb2_ether *); uint8_t usb2_ether_is_gone(struct usb2_ether *); #endif /* _USB2_ETHERNET_H_ */ Modified: head/sys/dev/usb/storage/ustorage_fs.c ============================================================================== --- head/sys/dev/usb/storage/ustorage_fs.c Tue May 5 15:36:23 2009 (r191824) +++ head/sys/dev/usb/storage/ustorage_fs.c Tue May 5 15:39:29 2009 (r191825) @@ -202,7 +202,6 @@ static device_attach_t ustorage_fs_attac static device_detach_t ustorage_fs_detach; static device_suspend_t ustorage_fs_suspend; static device_resume_t ustorage_fs_resume; -static device_shutdown_t ustorage_fs_shutdown; static usb_handle_request_t ustorage_fs_handle_request; static usb2_callback_t ustorage_fs_t_bbb_command_callback; @@ -239,7 +238,6 @@ static device_method_t ustorage_fs_metho DEVMETHOD(device_detach, ustorage_fs_detach), DEVMETHOD(device_suspend, ustorage_fs_suspend), DEVMETHOD(device_resume, ustorage_fs_resume), - DEVMETHOD(device_shutdown, ustorage_fs_shutdown), {0, 0} }; @@ -437,12 +435,6 @@ ustorage_fs_resume(device_t dev) return (0); /* success */ } -static int -ustorage_fs_shutdown(device_t dev) -{ - return (0); /* success */ -} - /* * Generic functions to handle transfers */ Modified: head/sys/dev/usb/usb_compat_linux.c ============================================================================== --- head/sys/dev/usb/usb_compat_linux.c Tue May 5 15:36:23 2009 (r191824) +++ head/sys/dev/usb/usb_compat_linux.c Tue May 5 15:39:29 2009 (r191825) @@ -59,7 +59,6 @@ static device_attach_t usb_linux_attach; static device_detach_t usb_linux_detach; static device_suspend_t usb_linux_suspend; static device_resume_t usb_linux_resume; -static device_shutdown_t usb_linux_shutdown; static usb2_callback_t usb_linux_isoc_callback; static usb2_callback_t usb_linux_non_isoc_callback; @@ -92,7 +91,6 @@ static device_method_t usb_linux_methods DEVMETHOD(device_detach, usb_linux_detach), DEVMETHOD(device_suspend, usb_linux_suspend), DEVMETHOD(device_resume, usb_linux_resume), - DEVMETHOD(device_shutdown, usb_linux_shutdown), {0, 0} }; @@ -360,23 +358,6 @@ usb_linux_resume(device_t dev) } /*------------------------------------------------------------------------* - * usb_linux_shutdown - * - * This function is the FreeBSD shutdown callback. Usually it does nothing. - *------------------------------------------------------------------------*/ -static int -usb_linux_shutdown(device_t dev) -{ - struct usb_linux_softc *sc = device_get_softc(dev); - struct usb_driver *udrv = usb_linux_get_usb_driver(sc); - - if (udrv && udrv->shutdown) { - (udrv->shutdown) (sc->sc_ui); - } - return (0); -} - -/*------------------------------------------------------------------------* * Linux emulation layer *------------------------------------------------------------------------*/ Modified: head/sys/dev/usb/usb_hub.c ============================================================================== --- head/sys/dev/usb/usb_hub.c Tue May 5 15:36:23 2009 (r191824) +++ head/sys/dev/usb/usb_hub.c Tue May 5 15:39:29 2009 (r191825) @@ -132,7 +132,6 @@ static device_method_t uhub_methods[] = DEVMETHOD(device_suspend, uhub_suspend), DEVMETHOD(device_resume, uhub_resume), - DEVMETHOD(device_shutdown, bus_generic_shutdown), DEVMETHOD(bus_child_location_str, uhub_child_location_string), DEVMETHOD(bus_child_pnpinfo_str, uhub_child_pnpinfo_string), _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From brucec at FreeBSD.org Tue May 5 16:49:03 2009 From: brucec at FreeBSD.org (brucec@FreeBSD.org) Date: Tue May 5 16:49:09 2009 Subject: usb/133896: [cdce] [newusb] panic when disconnecting cdce device just before powering off PC Message-ID: <200905051649.n45Gn2NU041440@freefall.freebsd.org> Synopsis: [cdce] [newusb] panic when disconnecting cdce device just before powering off PC State-Changed-From-To: open->closed State-Changed-By: brucec State-Changed-When: Tue May 5 16:48:24 UTC 2009 State-Changed-Why: Fixed in -current. http://www.freebsd.org/cgi/query-pr.cgi?pr=133896 From mike at sentex.net Tue May 5 17:41:38 2009 From: mike at sentex.net (Mike Tancsa) Date: Tue May 5 17:41:45 2009 Subject: ZTE MF636 USB u3g modem Message-ID: <200905051740.n45HeJAG075718@lava.sentex.ca> Has anyone had any luck getting this modem to work under FreeBSD ? I have been trying to modify the driver to get it to recognize and send the unit into modem mode, but no luck. I even tried setting the unit into permanent modem mode first from Windows as referenced in http://www.matt-barrett.com/?p=5 but no luck yet usbdevs shows it as port 2 addr 2: high speed, power 500 mA, config 1, ZTE CDMA Technologies MSM(0x2000), ZTE, Incorporated(0x19d2), rev 0.00 u3g0: sending CD eject command to change to modem mode u3g0: sent command to change to modem mode u3g0: read back CSW ---Mike -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike From mike at sentex.net Tue May 5 21:23:16 2009 From: mike at sentex.net (Mike Tancsa) Date: Tue May 5 21:23:23 2009 Subject: ZTE MF636 USB u3g modem In-Reply-To: <200905051740.n45HeJAG075718@lava.sentex.ca> References: <200905051740.n45HeJAG075718@lava.sentex.ca> Message-ID: <200905052121.n45LLvvU076825@lava.sentex.ca> At 01:41 PM 5/5/2009, Mike Tancsa wrote: >Has anyone had any luck getting this modem to work under FreeBSD ? I >have been trying to modify the driver to get it to recognize and >send the unit into modem mode, but no luck. I even tried setting the >unit into permanent modem mode first from Windows as referenced in >http://www.matt-barrett.com/?p=5 >but no luck yet > >usbdevs shows it as >port 2 addr 2: high speed, power 500 mA, config 1, ZTE CDMA >Technologies MSM(0x2000), ZTE, Incorporated(0x19d2), rev 0.00 > > >u3g0: sending CD eject command to change to modem mode >u3g0: sent command to change to modem mode >u3g0: read back CSW OK, some progress! It now comes up as u3g0: on uhub1 u3g0: changing CMOTECH modem to modem mode u3g0: sent command to change to modem mode u3g0: failed to read back CSW: 13 u3g0: at uhub1 port 2 (addr 2) disconnected u3g0: detached ucom0: on uhub1 ucom0: port=0 iface=3 in=0x85 out=0x4 ucom0: configured 1 serial ports (U0.%d) ucom1: on uhub1 ucom1: configured 0 serial ports (U1.%d) ucom2: on uhub1 ucom2: configured 0 serial ports (U2.%d) Looking through the modemswitch code, I grabbed out the string that it sends the modem. Googling around, I found 2 different versions. Both seem to work, however, the secondary ports do not with either string. Not sure what it exactly does however. --- /home/mdtancsa/u3g.c 2009-05-05 16:48:46.000000000 -0400 +++ u3g.c 2009-05-05 17:12:29.000000000 -0400 @@ -126,6 +126,8 @@ #define U3GFL_STUB_WAIT 0x80 // Device reappears after a short delay }; +#define U3GINIT_NONE 0 +#define U3GINIT_EJECT 2 // Note: The entries marked with XXX should be checked for the correct speed // indication to set the buffer sizes. static const struct u3g_dev_type_s u3g_devs[] = { @@ -137,8 +139,10 @@ {{ USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GTMAXHSUPA }, U3GSP_HSDPA, U3GFL_NONE }, {{ USB_VENDOR_OPTION, USB_PRODUCT_OPTION_VODAFONEMC3G }, U3GSP_UMTS, U3GFL_NONE }, /* OEM: Qualcomm, Inc. */ - {{ USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_ZTE_STOR }, U3GSP_CDMA, U3GFL_SCSI_EJECT }, - {{ USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_CDMA_MSM }, U3GSP_CDMA, U3GFL_SCSI_EJECT }, + /* OEM: Qualcomm, Inc. */ + {{ USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_ZTE_STOR }, U3GSP_CDMA, 0x08}, + {{ USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_CDMA_MSM }, U3GSP_CDMA, U3GINIT_EJECT }, + {{ USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_ZTE_MSM }, U3GSP_CDMA, 2 }, // after switch /* OEM: Huawei */ {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_MOBILE }, U3GSP_HSDPA, U3GFL_HUAWEI_INIT }, {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E220 }, U3GSP_HSPA, U3GFL_HUAWEI_INIT }, @@ -262,6 +266,7 @@ if (uaa->ifaces[i] == NULL) continue; + DPRINTF("MDTATTACH i = %d\n",i); id = usbd_get_interface_descriptor(uaa->ifaces[i]); if (id && id->bInterfaceClass == UICLASS_MASS) { /* We attach to the interface instead of the device as @@ -289,6 +294,7 @@ && UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) bulkout_no = ed->bEndpointAddress; + DPRINTF("MDTATTACH bulkout and in = %d %d\n",bulkout_no, bulkin_no); /* If we have found a pair of bulk-in/-out endpoints * create a serial port for it. Note: We assume that * the bulk-in and bulk-out endpoints appear in pairs. @@ -474,26 +480,53 @@ /* See definition of umass_bbb_cbw_t in sys/dev/usb/umass.c * in sys/cam/scsi/scsi_all.h . - */ -static unsigned char cmotech_cmd[31] = { + * 55534243123456782400000080000c8500000024000000000000000000000000 - from u3g modem switch + * 55534243123456782000000080000c85010101180101010101000000000000 - from url + * 555342431234567820 00 00 00 80 00 0c 85 01 01 01 18 01 01 01 01 01 00 0000000000 - from url + * 555342431234567824 00 00 00 80 00 0c 85 00 00 00 24 000000000000000000000000 +*/ +#if 0 +static unsigned char cmotech_cmd[32] = { 0x55, 0x53, 0x42, 0x43, /* 0..3: Command Block Wrapper (CBW) signature */ - 0x01, 0x00, 0x00, 0x00, /* 4..7: CBW Tag, unique 32-bit number */ - 0x00, 0x00, 0x00, 0x00, /* 8..11: CBW Transfer Length, no data here */ + 0x12, 0x34, 0x56, 0x78, /* 4..7: CBW Tag, unique 32-bit number */ + 0x20, 0x00, 0x00, 0x00, /* 8..11: CBW Transfer Length, no data here */ 0x80, /* 12: CBW Flag: output, so 0 */ 0x00, /* 13: CBW Lun */ - 0x08, /* 14: CBW Length */ + 0x0c, /* 14: CBW Length */ - 0xff, /* 15+0 */ - 0x52, /* 15+1 */ - 0x44, /* 15+2 */ - 0x45, /* 15+2 */ - 0x56, /* 15+4 */ - 0x43, /* 15+5 */ - 0x48, /* 15+5 */ - 0x47, /* 15+5 */ + 0x85, /* 15+0 */ + 0x00, /* 15+1 */ + 0x00, /* 15+2 */ + 0x00, /* 15+2 */ + 0x24, /* 15+4 */ + 0x00, /* 15+5 */ + 0x00, /* 15+5 */ + 0x00, /* 15+5 */ 0x00, 0x00, 0x00, 0x00, /* 15+8..15: unused */ - 0x00, 0x00, 0x00, 0x00 + 0x00, 0x00, 0x00, 0x00, 0x00 }; +#endif + +static unsigned char cmotech_cmd[31] = { + 0x55, 0x53, 0x42, 0x43, /* 0..3: Command Block Wrapper (CBW) signature */ + 0x12, 0x34, 0x56, 0x78, /* 4..7: CBW Tag, unique 32-bit number */ + 0x20, 0x00, 0x00, 0x00, /* 8..11: CBW Transfer Length, no data here */ + 0x80, /* 12: CBW Flag: output, so 0 */ + 0x00, /* 13: CBW Lun */ + 0x0c, /* 14: CBW Length */ + + 0x85, /* 15+0 */ + 0x01, /* 15+1 */ + 0x01, /* 15+2 */ + 0x01, /* 15+2 */ + 0x18, /* 15+4 */ + 0x01, /* 15+5 */ + 0x01, /* 15+5 */ + 0x01, /* 15+5 */ + 0x01, 0x01, 0x00, 0x00, /* 15+8..15: unused */ + 0x00, 0x00, 0x00, 0x00 +}; + From bootup, I see in dmesg ucom0: on uhub1 ucom0: MDTATTACH i = 0 ucom0: MDTATTACH i = 1 ucom0: MDTATTACH i = 2 ucom0: MDTATTACH i = 3 ucom0: MDTATTACH bulkout and in = -1 -1 ucom0: MDTATTACH bulkout and in = -1 133 ucom0: MDTATTACH bulkout and in = 4 133 ucom0: port=0 iface=3 in=0x85 out=0x4 ucom0: configured 1 serial ports (U0.%d) ucom1: on uhub1 ucom1: MDTATTACH i = 1 ucom1: MDTATTACH i = 2 ucom1: configured 0 serial ports (U1.%d) ucom2: on uhub1 ucom2: MDTATTACH i = 2 ucom2: configured 0 serial ports (U2.%d) # ls -l /dev/cuaU* crw-rw---- 1 uucp dialer - 0, 79 May 5 17:20 /dev/cuaU0.0 crw-rw---- 1 uucp dialer - 0, 80 May 5 17:14 /dev/cuaU0.0.init crw-rw---- 1 uucp dialer - 0, 81 May 5 17:14 /dev/cuaU0.0.lock I am able to fireup ppp and surf / download from there. Anyone have any thoughts on how to better configure this unit ? ---Mike From jhs at berklix.org Wed May 6 16:07:45 2009 From: jhs at berklix.org (Julian Stacey) Date: Wed May 6 16:07:53 2009 Subject: devd automatic conversion of umass[0-9] to da[0-9] Message-ID: <200905061528.n46FRumO004975@fire.js.berklix.net> Hi folks, Config below works for a number of memory sticks simultaneously; But if one already has a dvd burner plugged in, then it fails as devd sees (in case of a first memory stick) a new umass1. Although /dev/da0* get created, devd tries to access non existant da1*. Any ideas how to improve this ? ( Using 7.1-RELEASE ) -------------- attach 1000 { # "JHS: Brown" device-name "umass[0-9]+" ; match "vendor" "0x0000" ; # Manufacturer didnt register ? match "product" "0x7777" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0101" ; match "intclass" "0x08" ; match "intsubclass" "0x06" ; action "touch /tmp/devd-debug/usb_brown" ; action "sleep 4; \ rm -f /devusb/brown /devusb/brown.ufs /devusb/brown.bde ; \ ln -s /dev/`echo $device-name|sed -e s/umass/da/` \ /devusb/brown ; \ ln -s /dev/`echo $device-name|sed -e s/umass/da/`d \ /devusb/brown.ufs ; \ ln -s /dev/`echo $device-name|sed -e s/umass/da/`d.bde \ /devusb/brown.bde ; \ gbde attach /dev/da`echo $device-name|sed -e s/umass//`d \ -p `cat /home/pass/.words/gbde/mine`; \ fsck -y -t ufs /devusb/brown.bde ; \ mount -t ufs -o noatime /devusb/brown.bde /usb/brown.ufs" ; }; detach 1000 { # "JHS: Brown" # device-name "umass[0-9]+" ; match "vendor" "0x0000" ; match "product" "0x7777" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0101" ; match "intclass" "0x08" ; match "intsubclass" "0x06" ; # match "sernum" "B55E32FD" ; # not on detach. action "gbde detach /dev/`echo $device-name|sed -e s/umass/da/`d; \ rm -f /devusb/brown /devusb/brown.ufs /devusb/brown.bde" ; # Assume you have manually unmounted before detach. }; Cheers, Julian -- Julian Stacey: BSDUnixLinux C Prog Admin SysEng Consult Munich www.berklix.com Mail plain ASCII text. HTML & Base64 text are spam. www.asciiribbon.org From avg at icyb.net.ua Wed May 6 16:39:18 2009 From: avg at icyb.net.ua (Andriy Gapon) Date: Wed May 6 16:39:23 2009 Subject: devd automatic conversion of umass[0-9] to da[0-9] In-Reply-To: <200905061528.n46FRumO004975@fire.js.berklix.net> References: <200905061528.n46FRumO004975@fire.js.berklix.net> Message-ID: <4A01BD2F.40409@icyb.net.ua> on 06/05/2009 18:27 Julian Stacey said the following: > Hi folks, > Config below works for a number of memory sticks simultaneously; > But if one already has a dvd burner plugged in, > then it fails as devd sees (in case of a first memory stick) a new umass1. > Although /dev/da0* get created, devd tries to access non existant da1*. > Any ideas how to improve this ? ( Using 7.1-RELEASE ) You could try to watch for cdev events (i.e. creation of daX device nodes) instead of driver events. But I am not sure if cdev events are in 7.1, they are definitely in 7.2: notify 1000 { match "system" "DEVFS"; match "subsystem" "CDEV"; match "type" "CREATE"; match "cdev" "^da[0-9]+$"; action "echo 't120o3l32 b>c+f+16' > /dev/speaker"; }; -- Andriy Gapon From paultheblue at gmail.com Wed May 6 19:20:03 2009 From: paultheblue at gmail.com (Paul Gültekin) Date: Wed May 6 19:20:15 2009 Subject: usb/134299: Kernel Panic plugging in MF626 USB UMTS Stick u3g Message-ID: <200905061915.n46JFMlw081809@www.freebsd.org> >Number: 134299 >Category: usb >Synopsis: Kernel Panic plugging in MF626 USB UMTS Stick u3g >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 06 19:20:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Paul Gültekin >Release: 7.2 >Organization: >Environment: FreeBSD ghostrunner 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 08:49:13 UTC 2009 root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: After plugging in the USB Dongle (with loaded u3g.ko) the Kernel panics. Dumpinfo: Dump header from device /dev/ad4s1b Architecture: i386 Architecture Version: 2 Dump Length: 211591168B (201 MB) Blocksize: 512 Dumptime: Wed May 6 20:29:17 2009 Hostname: ghostrunner Magic: FreeBSD Kernel Dump Version String: FreeBSD 7.2-RELEASE #0: Fri May 1 08:49:13 UTC 2009 root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Panic String: page fault Dump Parity: 2540482635 Bounds: 3 Dump Status: good ---------- usbdevs Output bevor plugging in addr 1: OHCI root hub, nVidia addr 2: USB-PS/2 Optical Mouse, Logitech addr 3: HP Integrated Module, Broadcom Corp addr 1: EHCI root hub, nVidia addr 2: product 0x6560, vendor 0x04b4 addr 3: USB 2.0 Camera, Sonix Technology Co., Ltd. addr 4: USB TouchController, eGalax INC. addr 5: ZTE CDMA Technologies MSM, ZTE,Incorporated ----------- The Stick seems to be detected as CDROM: at scbus4 target 0 lun 0 (pass1,cd1) in this State, loading the u3g.ko will cause an kernel panic. After sending a EJECT with camcontrol (root@ghostrunner) [/var/crash]# camcontrol eject cd1 Unit stopped successfully, Media ejected the Stick appears as Cardreader at scbus4 target 0 lun 0 (pass1,da0) in this State, loading the u3g.ko will NOT cause an kernel panic. >How-To-Repeat: After plugging in the USB Device MF626 with loaded u3g.ko or load u3g.ko with plugged in USB Device MF626 >Fix: >Release-Note: >Audit-Trail: >Unformatted: From antoine at FreeBSD.org Wed May 6 20:46:42 2009 From: antoine at FreeBSD.org (antoine@FreeBSD.org) Date: Wed May 6 20:46:48 2009 Subject: usb/133817: [newusb] broken umass compile Message-ID: <200905062046.n46KkfZs041224@freefall.freebsd.org> Synopsis: [newusb] broken umass compile State-Changed-From-To: open->closed State-Changed-By: antoine State-Changed-When: Wed May 6 20:45:26 UTC 2009 State-Changed-Why: Close: feedback timeout + can't reproduce Responsible-Changed-From-To: freebsd-usb->antoine Responsible-Changed-By: antoine Responsible-Changed-When: Wed May 6 20:45:26 UTC 2009 Responsible-Changed-Why: Track. http://www.freebsd.org/cgi/query-pr.cgi?pr=133817 From goaengel at gmx.net Wed May 6 21:30:04 2009 From: goaengel at gmx.net (Tino Engel) Date: Wed May 6 21:30:10 2009 Subject: usb/130230: Samsung Electronics YP-U3 does not attach in 7.1-RELEASE Message-ID: <200905062130.n46LU30A094186@freefall.freebsd.org> The following reply was made to PR usb/130230; it has been noted by GNATS. From: Tino Engel To: bug-followup@FreeBSD.org, spawk@acm.poly.edu Cc: Subject: Re: usb/130230: Samsung Electronics YP-U3 does not attach in 7.1-RELEASE Date: Wed, 6 May 2009 22:58:15 +0000 --MP_/l4VBOejhuUxHo7zhZ8nVxGW Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Dear all... I have made 3 changes which are enabling the YP-U3 again... They are not commit-ready i guess, because they use to much wildcards, but they make the device work at least... I have attached 3 unified diffs relative to /usr/src to this mail... I may figure out, if I find more time, but I am sorry, I have other things to do at the moment... But maybe this helps someone... Best regards, Tino --MP_/l4VBOejhuUxHo7zhZ8nVxGW Content-Type: application/octet-stream; name=udiff1 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=udiff1 LS0tIHN5cy9jYW0vc2NzaS9zY3NpX2RhLmMub3JpZwkyMDA5LTA0LTI2IDEyOjU2OjI1LjAwMDAw MDAwMCArMDAwMAorKysgc3lzL2NhbS9zY3NpL3Njc2lfZGEuYwkyMDA5LTA1LTA2IDIxOjAzOjI3 LjAwMDAwMDAwMCArMDAwMApAQCAtNTQwLDcgKzU0MCw3IEBACiAJCSAqIFNhbXN1bmcgWVAtVTMg bXAzLXBsYXllcgogCQkgKiBQUjogMTI1Mzk4CiAJCSAqLwotCQl7VF9ESVJFQ1QsIFNJUF9NRURJ QV9SRU1PVkFCTEUsICJTYW1zdW5nIiwgIllQLVUzIiwKKwkJe1RfRElSRUNULCBTSVBfTUVESUFf UkVNT1ZBQkxFLCAiUyoiLCAiWVAtVTMqIiwKIAkJICIqIn0sIC8qcXVpcmtzKi8gREFfUV9OT19T WU5DX0NBQ0hFCiAJfSwKIAl7Cg== --MP_/l4VBOejhuUxHo7zhZ8nVxGW Content-Type: application/octet-stream; name=udiff2 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=udiff2 LS0tIHN5cy9kZXYvdXNiL3VtYXNzLmMub3JpZwkyMDA5LTA0LTI2IDEyOjUyOjM1LjAwMDAwMDAw MCArMDAwMAorKysgc3lzL2Rldi91c2IvdW1hc3MuYwkyMDA5LTA1LTA2IDIwOjU3OjIzLjAwMDAw MDAwMCArMDAwMApAQCAtNjcxLDYgKzY3MSwxMCBAQAogCSAgVU1BU1NfUFJPVE9fU0NTSSB8IFVN QVNTX1BST1RPX0JCQiwKIAkgIFNIVVRUTEVfSU5JVCB8IE5PX0dFVE1BWExVTgogCX0sCisJeyBV U0JfVkVORE9SX1NBTVNVTkcsICBVU0JfUFJPRFVDVF9TQU1TVU5HX1lQX1UzLCBSSURfV0lMRENB UkQsCisJICBVTUFTU19QUk9UT19TQ1NJIHwgVU1BU1NfUFJPVE9fQkJCLAorCSAgTk9fSU5RVUlS WSB8IE5PX1NZTkNIUk9OSVpFX0NBQ0hFCisJfSwKIAl7IFVTQl9WRU5ET1JfU0FNU1VOR19URUNI V0lOLCBVU0JfUFJPRFVDVF9TQU1TVU5HX1RFQ0hXSU5fRElHSU1BWF80MTAsIFJJRF9XSUxEQ0FS RCwKIAkgIFVNQVNTX1BST1RPX1NDU0kgfCBVTUFTU19QUk9UT19CQkIsCiAJICBOT19JTlFVSVJZ Cg== --MP_/l4VBOejhuUxHo7zhZ8nVxGW Content-Type: application/octet-stream; name=udiff3 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=udiff3 LS0tIHN5cy9kZXYvdXNiL3VzYmRldnMub3JpZwkyMDA5LTA0LTI2IDEyOjU0OjI3LjAwMDAwMDAw MCArMDAwMAorKysgc3lzL2Rldi91c2IvdXNiZGV2cwkyMDA5LTA1LTA2IDIwOjU5OjM3LjAwMDAw MDAwMCArMDAwMApAQCAtMjA5NCw2ICsyMDk0LDcgQEAKIC8qIFNhbXN1bmcgcHJvZHVjdHMgKi8K IHByb2R1Y3QgU0FNU1VORyBNTDYwNjAJCTB4MzAwOAlNTC02MDYwIGxhc2VyIHByaW50ZXIKIHBy b2R1Y3QgU0FNU1VORyBZUF9VMgkJMHg1MDUwCVlQLVUyIE1QMyBQbGF5ZXIKK3Byb2R1Y3QgU0FN U1VORyBZUF9VMyAgICAgICAgIDB4NTA3YyAgWVAtVTMgTVAzIFBsYXllcgogcHJvZHVjdCBTQU1T VU5HIEk1MDAJCTB4NjYwMQlJNTAwIFBhbG0gVVNCIFBob25lIAogCiAvKiBTYW1zdW5nIFRlY2h3 aW4gcHJvZHVjdHMgKi8K --MP_/l4VBOejhuUxHo7zhZ8nVxGW-- From jhs at berklix.org Wed May 6 22:09:50 2009 From: jhs at berklix.org (Julian Stacey) Date: Wed May 6 22:09:58 2009 Subject: devd automatic conversion of umass[0-9] to da[0-9] In-Reply-To: Your message "Wed, 06 May 2009 19:39:11 +0300." <4A01BD2F.40409@icyb.net.ua> Message-ID: <200905062209.n46M9Bxa022017@fire.js.berklix.net> Andriy Gapon wrote: > on 06/05/2009 18:27 Julian Stacey said the following: > > Config below works for a number of memory sticks simultaneously; > > But if one already has a dvd burner plugged in, > > then it fails as devd sees (in case of a first memory stick) a new umass1. > > Although /dev/da0* get created, devd tries to access non existant da1*. > > Any ideas how to improve this ? ( Using 7.1-RELEASE ) > > You could try to watch for cdev events (i.e. creation of daX device nodes) instead > of driver events. But I am not sure if cdev events are in 7.1, they are definitely > in 7.2: > > notify 1000 { > match "system" "DEVFS"; > match "subsystem" "CDEV"; > match "type" "CREATE"; > match "cdev" "^da[0-9]+$"; > action "echo 't120o3l32 b>c+f+16' > /dev/speaker"; > }; Thanks Andriy, cdev seems to be in 7.1, but I switched to test on a 7.2-RELEASE host: It did not work. cdev is not set at attach time. only available later, as shown below: With conf: ---------- action "sleep 2; \ rm -f /devusb/kingston; touch /tmp/devd-debug/xx.$cdev ; \ ln -s /dev/`echo $device-name|sed -e s/umass/da/`a \ /devusb/kingston; \ fsck -y -t ufs /devusb/kingston; \ mount -t ufs -o noatime /devusb/kingston /usb/kingston" ; }; ---------- Devd output: Executing 'sleep 2; rm -f /devusb/kingston; touch /tmp/devd-debug/xx. ; ln -s /dev/`echo umass0|sed -e s/umass/da/`a /devusb/kingston; fsck -y -t ufs /devusb/kingston; mount -t ufs -o noatime /devusb/kingston /usb/kingston' ** /devusb/kingston ** Last Mounted on /usb/kingston ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 2 files, 1 used, 242418 free (18 frags, 30300 blocks, 0.0% fragmentation) Popping table Processing event '!system=DEVFS subsystem=CDEV type=CREATE cdev=pass1' Pushing table setting system=DEVFS setting subsystem=CDEV setting type=CREATE setting cdev=pass1 Processing notify event Popping table Processing event '!system=DEVFS subsystem=CDEV type=CREATE cdev=da0' ls -l /tmp/devd-debug -rw-r--r-- 1 root wheel 0 May 6 22:52 xx. Using your idea of alternate conf with notify instead of attach: notify 1000 { match "system" "DEVFS"; match "subsystem" "CDEV"; match "type" "CREATE"; match "cdev" "^da[0-9]+$"; action "touch /tmp/devd-debug/xx.cdev.$cdev \ /tmp/devd-debug/xx.vendor.$vendor" ; }; ls -l /tmp/devd-debug -rw-r--r-- 1 root wheel 0 May 6 23:56 xx.cdev.da0 -rw-r--r-- 1 root wheel 0 May 6 23:56 xx.vendor. In case of notigy, devd has the reverse of attach: $cdev is now set & available, $vendor is not available. I want to have all of $vendor, $product $sernum etc _And_ $cdev so I can automatically mount sticks to known paths ( sticks being inserted at random timing relative to each other, & not doing anything dirty with eg which port connected ). Anyone got ideas how to achieve this ? Cheers, Julian -- Julian Stacey: BSDUnixLinux C Prog Admin SysEng Consult Munich www.berklix.com Mail plain ASCII text. HTML & Base64 text are spam. www.asciiribbon.org From nick at van-laarhoven.org Thu May 7 07:48:52 2009 From: nick at van-laarhoven.org (Nick Hibma) Date: Thu May 7 07:48:58 2009 Subject: ZTE MF636 USB u3g modem In-Reply-To: <200905052121.n45LLvvU076825@lava.sentex.ca> References: <200905051740.n45HeJAG075718@lava.sentex.ca> <200905052121.n45LLvvU076825@lava.sentex.ca> Message-ID: <200905070948.46720.nick@van-laarhoven.org> > u3g0: 2.00/0.00, addr 2> on uhub1 > u3g0: changing CMOTECH modem to modem mode > u3g0: sent command to change to modem mode > u3g0: failed to read back CSW: 13 > u3g0: at uhub1 port 2 (addr 2) disconnected > u3g0: detached > ucom0: 2.00/0.00, addr 2> on uhub1 > ucom0: port=0 iface=3 in=0x85 out=0x4 > ucom0: configured 1 serial ports (U0.%d) This is the real port. Could you dump the descriptors after unloading the driver and loading ugen? > ucom1: 2.00/0.00, addr 2> on uhub1 > ucom1: configured 0 serial ports (U1.%d) > ucom2: 2.00/0.00, addr 2> on uhub1 > ucom2: configured 0 serial ports (U2.%d) These two are not actually com ports. They are probably umass related, but attached to by u3g instead. Nick From mike at sentex.net Thu May 7 14:01:16 2009 From: mike at sentex.net (Mike Tancsa) Date: Thu May 7 14:01:33 2009 Subject: ZTE MF636 USB u3g modem In-Reply-To: <200905070948.46720.nick@van-laarhoven.org> References: <200905051740.n45HeJAG075718@lava.sentex.ca> <200905052121.n45LLvvU076825@lava.sentex.ca> <200905070948.46720.nick@van-laarhoven.org> Message-ID: <200905071359.n47DxsRb090275@lava.sentex.ca> At 03:48 AM 5/7/2009, Nick Hibma wrote: > > u3g0: > 2.00/0.00, addr 2> on uhub1 > > u3g0: changing CMOTECH modem to modem mode > > u3g0: sent command to change to modem mode > > u3g0: failed to read back CSW: 13 > > u3g0: at uhub1 port 2 (addr 2) disconnected > > u3g0: detached > > ucom0: > 2.00/0.00, addr 2> on uhub1 > > ucom0: port=0 iface=3 in=0x85 out=0x4 > > ucom0: configured 1 serial ports (U0.%d) > >This is the real port. Could you dump the descriptors after unloading the >driver and loading ugen? Hi, I think this is the info you want ? If not, let me know. Thanks! I also did a usb capture of all the traffic in windows from the point of the device being attached and going online. 0[i7]# usbconfig -u 3 -a 5 dump_device_desc ugen3.5: at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x19d2 idProduct = 0x0031 bcdDevice = 0x0000 iManufacturer = 0x0002 iProduct = 0x0001 iSerialNumber = 0x0003 <1234567890ABCDEF> bNumConfigurations = 0x0001 0[i7]# usbconfig -u 3 -a 5 dump_all_config_desc ugen3.5: at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0100 bNumInterfaces = 0x0004 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x00a0 bMaxPower = 0x00fa Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0000 bInterfaceClass = 0x00ff bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x00ff iInterface = 0x0000 Additional Descriptor bLength = 0x05 bDescriptorType = 0x24 bDescriptorSubType = 0x00 RAW dump: 0x00 | 0x05, 0x24, 0x00, 0x10, 0x01 Additional Descriptor bLength = 0x05 bDescriptorType = 0x24 bDescriptorSubType = 0x15 RAW dump: 0x00 | 0x05, 0x24, 0x15, 0x00, 0x01 Additional Descriptor bLength = 0x05 bDescriptorType = 0x24 bDescriptorSubType = 0x06 RAW dump: 0x00 | 0x05, 0x24, 0x06, 0x00, 0x00 Additional Descriptor bLength = 0x15 bDescriptorType = 0x24 bDescriptorSubType = 0x12 RAW dump: 0x00 | 0x15, 0x24, 0x12, 0x20, 0x01, 0x98, 0xb0, 0x6a, 0x08 | 0x49, 0xb0, 0x9e, 0x48, 0x96, 0x94, 0x46, 0xd9, 0x10 | 0x9a, 0x28, 0xca, 0x4e, 0x5d Additional Descriptor bLength = 0x06 bDescriptorType = 0x24 bDescriptorSubType = 0x13 RAW dump: 0x00 | 0x06, 0x24, 0x13, 0x00, 0x01, 0x10 Interface 0 Alt 1 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0001 bNumEndpoints = 0x0002 bInterfaceClass = 0x00ff bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x00ff iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0020 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0001 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0020 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 1 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0001 bAlternateSetting = 0x0000 bNumEndpoints = 0x0000 bInterfaceClass = 0x00ff bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x00ff iInterface = 0x0000 Additional Descriptor bLength = 0x05 bDescriptorType = 0x24 bDescriptorSubType = 0x00 RAW dump: 0x00 | 0x05, 0x24, 0x00, 0x10, 0x01 Additional Descriptor bLength = 0x05 bDescriptorType = 0x24 bDescriptorSubType = 0x15 RAW dump: 0x00 | 0x05, 0x24, 0x15, 0x00, 0x01 Additional Descriptor bLength = 0x05 bDescriptorType = 0x24 bDescriptorSubType = 0x06 RAW dump: 0x00 | 0x05, 0x24, 0x06, 0x01, 0x01 Additional Descriptor bLength = 0x15 bDescriptorType = 0x24 bDescriptorSubType = 0x12 RAW dump: 0x00 | 0x15, 0x24, 0x12, 0x20, 0x01, 0x98, 0xb0, 0x6a, 0x08 | 0x49, 0xb0, 0x9e, 0x48, 0x96, 0x94, 0x46, 0xd9, 0x10 | 0x9a, 0x28, 0xca, 0x4e, 0x5d Additional Descriptor bLength = 0x06 bDescriptorType = 0x24 bDescriptorSubType = 0x13 RAW dump: 0x00 | 0x06, 0x24, 0x13, 0x00, 0x01, 0x10 Interface 1 Alt 1 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0001 bAlternateSetting = 0x0001 bNumEndpoints = 0x0002 bInterfaceClass = 0x00ff bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x00ff iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0020 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0002 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0020 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 2 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0002 bAlternateSetting = 0x0000 bNumEndpoints = 0x0002 bInterfaceClass = 0x0008 bInterfaceSubClass = 0x0006 bInterfaceProtocol = 0x0050 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0003 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0083 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 3 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0003 bAlternateSetting = 0x0000 bNumEndpoints = 0x0003 bInterfaceClass = 0x00ff bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x00ff iInterface = 0x0000 Additional Descriptor bLength = 0x05 bDescriptorType = 0x24 bDescriptorSubType = 0x00 RAW dump: 0x00 | 0x05, 0x24, 0x00, 0x10, 0x01 Additional Descriptor bLength = 0x04 bDescriptorType = 0x24 bDescriptorSubType = 0x02 RAW dump: 0x00 | 0x04, 0x24, 0x02, 0x02 Additional Descriptor bLength = 0x05 bDescriptorType = 0x24 bDescriptorSubType = 0x01 RAW dump: 0x00 | 0x05, 0x24, 0x01, 0x03, 0x03 Additional Descriptor bLength = 0x05 bDescriptorType = 0x24 bDescriptorSubType = 0x06 RAW dump: 0x00 | 0x05, 0x24, 0x06, 0x03, 0x03 Additional Descriptor bLength = 0x15 bDescriptorType = 0x24 bDescriptorSubType = 0x12 RAW dump: 0x00 | 0x15, 0x24, 0x12, 0x20, 0x01, 0x98, 0xb0, 0x6a, 0x08 | 0x49, 0xb0, 0x9e, 0x48, 0x96, 0x94, 0x46, 0xd9, 0x10 | 0x9a, 0x28, 0xca, 0x4e, 0x5d Additional Descriptor bLength = 0x06 bDescriptorType = 0x24 bDescriptorSubType = 0x13 RAW dump: 0x00 | 0x06, 0x24, 0x13, 0x00, 0x01, 0x10 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0084 bmAttributes = 0x0003 wMaxPacketSize = 0x0040 bInterval = 0x0005 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0085 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0020 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 2 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0004 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0020 bRefresh = 0x0000 bSynchAddress = 0x0000 > > ucom1: > 2.00/0.00, addr 2> on uhub1 > > ucom1: configured 0 serial ports (U1.%d) > > ucom2: > 2.00/0.00, addr 2> on uhub1 > > ucom2: configured 0 serial ports (U2.%d) > >These two are not actually com ports. They are probably umass related, but >attached to by u3g instead. When installed on windows, there are extra com ports >Nick From henrik at gulbra.net Fri May 8 00:43:43 2009 From: henrik at gulbra.net (Henrik Gulbrandsen) Date: Fri May 8 00:44:16 2009 Subject: devd automatic conversion of umass[0-9] to da[0-9] In-Reply-To: <200905061528.n46FRumO004975@fire.js.berklix.net> References: <200905061528.n46FRumO004975@fire.js.berklix.net> Message-ID: <1241741571.80090.1021.camel@Particle> On Wed, 2009-05-06 at 17:27 +0200, Julian Stacey wrote: > Config below works for a number of memory sticks simultaneously; > But if one already has a dvd burner plugged in, > then it fails as devd sees (in case of a first memory stick) a new umass1. > Although /dev/da0* get created, devd tries to access non existant da1*. > Any ideas how to improve this ? ( Using 7.1-RELEASE ) You may want to have a look at the umass script from this old email, which did the umassX to daY mapping using camcontrol output: http://lists.freebsd.org/pipermail/freebsd-usb/2007-December/004286.html but please note the following bug pointed out by Peter Trifonov: http://lists.freebsd.org/pipermail/freebsd-usb/2008-January/004511.html I haven't actually been using this script lately, so I don't know if it will still work, but it seemed pretty stable at the time... /Henrik P.S. You might also want to consider removing skanova.net from your list of spam domains, to avoid blocking half of Sweden from mailing you. From mike at sentex.net Fri May 8 03:14:39 2009 From: mike at sentex.net (Mike Tancsa) Date: Fri May 8 03:14:47 2009 Subject: ZTE MF636 USB u3g modem In-Reply-To: <200905071359.n47DxsRb090275@lava.sentex.ca> References: <200905051740.n45HeJAG075718@lava.sentex.ca> <200905052121.n45LLvvU076825@lava.sentex.ca> <200905070948.46720.nick@van-laarhoven.org> <200905071359.n47DxsRb090275@lava.sentex.ca> Message-ID: <200905080313.n483DI6M094186@lava.sentex.ca> At 10:01 AM 5/7/2009, Mike Tancsa wrote: >>This is the real port. Could you dump the descriptors after unloading the >>driver and loading ugen? I decided to give it a spin on HEAD, but not sure if the recent changes to u3g in HEAD changed the behaviour, or its an issue with me fiddling with the driver. Using http://www.draisberghof.de/usb_modeswitch/usb_modeswitch-0.9.7.tar.bz2 I am able to make the device appear, but as /dev/cuaU0 and not /dev/cuaU0.0 u3g0: on usbus3 umass0: on usbus3 umass0: SCSI over Bulk-Only; quirks = 0x0000 Root mount waiting for: usbus3 umass0:0:0:-1: Attached to scbus0 Root mount waiting for: usbus3 (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 (probe0:umass-sim0:0:0:0): Medium not present (probe0:umass-sim0:0:0:0): Unretryable error da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not presen da0 is the microSD drive I think the port that attaches is actually the monitor port as there is a stead stream of +ZUSIMR:2 +ZUSIMR:2 +ZUSIMR:2 +ZUSIMR:2 +ZUSIMR:2 +ZUSIMR:2 +ZUSIMR:2 +ZUSIMR:2 In windows, it provides 2 serial ports The following changes, along with using usb_modeswitch seems to get things working, however, ppp sometimes gets confused with the ZUSIMR:2 stuff constantly being spewed out. 0[i7]# diff -u usbdevs usbdevs.zte --- usbdevs 2009-04-21 01:06:31.000000000 -0400 +++ usbdevs.zte 2009-05-07 23:10:11.000000000 -0400 @@ -2035,6 +2035,7 @@ product QUALCOMM2 RWT_FCT 0x3100 RWT FCT-CDMA 2000 1xRTT modem product QUALCOMM2 CDMA_MSM 0x3196 CDMA Technologies MSM modem product QUALCOMMINC CDMA_MSM 0x0001 CDMA Technologies MSM modem +product QUALCOMMINC CDMA_MSM636 0x0031 MF636 Technologies MSM modem product QUALCOMMINC ZTE_STOR 0x2000 USB ZTE Storage product QUALCOMMINC AC8700 0xfffe CDMA 1xEVDO USB modem 1[i7]# 1[i7]# diff -u u3g.c u3g.c.mdt --- u3g.c 2009-05-07 13:05:03.000000000 -0400 +++ u3g.c.mdt 2009-05-07 23:09:59.000000000 -0400 @@ -168,6 +168,7 @@ /* OEM: Qualcomm, Inc. */ U3G_DEV(QUALCOMMINC, ZTE_STOR, U3GFL_SCSI_EJECT), U3G_DEV(QUALCOMMINC, CDMA_MSM, U3GFL_SCSI_EJECT), + U3G_DEV(QUALCOMMINC, CDMA_MSM636, U3GFL_SCSI_EJECT), /* OEM: Huawei */ U3G_DEV(HUAWEI, MOBILE, U3GFL_HUAWEI_INIT), U3G_DEV(HUAWEI, E220, U3GFL_HUAWEI_INIT), 1[i7]# dmesg shows ugen3.2: at usbus3 u3g0: on usbus3 umass0: on usbus3 umass0: SCSI over Bulk-Only; quirks = 0x0000 Root mount waiting for: usbus3 umass0:0:0:-1: Attached to scbus0 Root mount waiting for: usbus3 (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 (probe0:umass-sim0:0:0:0): Medium not present (probe0:umass-sim0:0:0:0): Unretryable error da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present >Hi, > I think this is the info you want ? If not, let me know. > Thanks! I also did a usb capture of all the traffic in windows > from the point of the device being attached and going online. > >0[i7]# usbconfig -u 3 -a 5 dump_device_desc >ugen3.5: at usbus3, >cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x19d2 > idProduct = 0x0031 > bcdDevice = 0x0000 > iManufacturer = 0x0002 > iProduct = 0x0001 > iSerialNumber = 0x0003 <1234567890ABCDEF> > bNumConfigurations = 0x0001 > >0[i7]# usbconfig -u 3 -a 5 dump_all_config_desc >ugen3.5: at usbus3, >cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON > > > Configuration index 0 > > bLength = 0x0009 > bDescriptorType = 0x0002 > wTotalLength = 0x0100 > bNumInterfaces = 0x0004 > bConfigurationValue = 0x0001 > iConfiguration = 0x0000 > bmAttributes = 0x00a0 > bMaxPower = 0x00fa > > Interface 0 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0000 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0000 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0000 > > Additional Descriptor > > bLength = 0x05 > bDescriptorType = 0x24 > bDescriptorSubType = 0x00 > RAW dump: > 0x00 | 0x05, 0x24, 0x00, 0x10, 0x01 > > > Additional Descriptor > > bLength = 0x05 > bDescriptorType = 0x24 > bDescriptorSubType = 0x15 > RAW dump: > 0x00 | 0x05, 0x24, 0x15, 0x00, 0x01 > > > Additional Descriptor > > bLength = 0x05 > bDescriptorType = 0x24 > bDescriptorSubType = 0x06 > RAW dump: > 0x00 | 0x05, 0x24, 0x06, 0x00, 0x00 > > > Additional Descriptor > > bLength = 0x15 > bDescriptorType = 0x24 > bDescriptorSubType = 0x12 > RAW dump: > 0x00 | 0x15, 0x24, 0x12, 0x20, 0x01, 0x98, 0xb0, 0x6a, > 0x08 | 0x49, 0xb0, 0x9e, 0x48, 0x96, 0x94, 0x46, 0xd9, > 0x10 | 0x9a, 0x28, 0xca, 0x4e, 0x5d > > > Additional Descriptor > > bLength = 0x06 > bDescriptorType = 0x24 > bDescriptorSubType = 0x13 > RAW dump: > 0x00 | 0x06, 0x24, 0x13, 0x00, 0x01, 0x10 > > > > Interface 0 Alt 1 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0000 > bAlternateSetting = 0x0001 > bNumEndpoints = 0x0002 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0081 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0001 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > Interface 1 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0001 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0000 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0000 > > Additional Descriptor > > bLength = 0x05 > bDescriptorType = 0x24 > bDescriptorSubType = 0x00 > RAW dump: > 0x00 | 0x05, 0x24, 0x00, 0x10, 0x01 > > > Additional Descriptor > > bLength = 0x05 > bDescriptorType = 0x24 > bDescriptorSubType = 0x15 > RAW dump: > 0x00 | 0x05, 0x24, 0x15, 0x00, 0x01 > > > Additional Descriptor > > bLength = 0x05 > bDescriptorType = 0x24 > bDescriptorSubType = 0x06 > RAW dump: > 0x00 | 0x05, 0x24, 0x06, 0x01, 0x01 > > > Additional Descriptor > > bLength = 0x15 > bDescriptorType = 0x24 > bDescriptorSubType = 0x12 > RAW dump: > 0x00 | 0x15, 0x24, 0x12, 0x20, 0x01, 0x98, 0xb0, 0x6a, > 0x08 | 0x49, 0xb0, 0x9e, 0x48, 0x96, 0x94, 0x46, 0xd9, > 0x10 | 0x9a, 0x28, 0xca, 0x4e, 0x5d > > > Additional Descriptor > > bLength = 0x06 > bDescriptorType = 0x24 > bDescriptorSubType = 0x13 > RAW dump: > 0x00 | 0x06, 0x24, 0x13, 0x00, 0x01, 0x10 > > > > Interface 1 Alt 1 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0001 > bAlternateSetting = 0x0001 > bNumEndpoints = 0x0002 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0082 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0002 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > Interface 2 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0002 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0002 > bInterfaceClass = 0x0008 > bInterfaceSubClass = 0x0006 > bInterfaceProtocol = 0x0050 > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0003 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0083 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > Interface 3 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0003 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0003 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0000 > > Additional Descriptor > > bLength = 0x05 > bDescriptorType = 0x24 > bDescriptorSubType = 0x00 > RAW dump: > 0x00 | 0x05, 0x24, 0x00, 0x10, 0x01 > > > Additional Descriptor > > bLength = 0x04 > bDescriptorType = 0x24 > bDescriptorSubType = 0x02 > RAW dump: > 0x00 | 0x04, 0x24, 0x02, 0x02 > > > Additional Descriptor > > bLength = 0x05 > bDescriptorType = 0x24 > bDescriptorSubType = 0x01 > RAW dump: > 0x00 | 0x05, 0x24, 0x01, 0x03, 0x03 > > > Additional Descriptor > > bLength = 0x05 > bDescriptorType = 0x24 > bDescriptorSubType = 0x06 > RAW dump: > 0x00 | 0x05, 0x24, 0x06, 0x03, 0x03 > > > Additional Descriptor > > bLength = 0x15 > bDescriptorType = 0x24 > bDescriptorSubType = 0x12 > RAW dump: > 0x00 | 0x15, 0x24, 0x12, 0x20, 0x01, 0x98, 0xb0, 0x6a, > 0x08 | 0x49, 0xb0, 0x9e, 0x48, 0x96, 0x94, 0x46, 0xd9, > 0x10 | 0x9a, 0x28, 0xca, 0x4e, 0x5d > > > Additional Descriptor > > bLength = 0x06 > bDescriptorType = 0x24 > bDescriptorSubType = 0x13 > RAW dump: > 0x00 | 0x06, 0x24, 0x13, 0x00, 0x01, 0x10 > > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0084 > bmAttributes = 0x0003 > wMaxPacketSize = 0x0040 > bInterval = 0x0005 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0085 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 2 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0004 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > > > >> > ucom1: > > 2.00/0.00, addr 2> on uhub1 >> > ucom1: configured 0 serial ports (U1.%d) >> > ucom2: > > 2.00/0.00, addr 2> on uhub1 >> > ucom2: configured 0 serial ports (U2.%d) >> >>These two are not actually com ports. They are probably umass related, but >>attached to by u3g instead. > >When installed on windows, there are extra com ports > > > >>Nick > >_______________________________________________ >freebsd-usb@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-usb >To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" From matheus at eternamente.info Fri May 8 03:48:16 2009 From: matheus at eternamente.info (Nenhum_de_Nos) Date: Fri May 8 03:48:23 2009 Subject: ZTE MF636 USB u3g modem In-Reply-To: <200905080313.n483DI6M094186@lava.sentex.ca> References: <200905051740.n45HeJAG075718@lava.sentex.ca> <200905052121.n45LLvvU076825@lava.sentex.ca> <200905070948.46720.nick@van-laarhoven.org> <200905071359.n47DxsRb090275@lava.sentex.ca> <200905080313.n483DI6M094186@lava.sentex.ca> Message-ID: <8b7a0de5bdfb4ef4657e69559b55d7ad.squirrel@10.1.1.10> On Fri, May 8, 2009 00:14, Mike Tancsa wrote: > At 10:01 AM 5/7/2009, Mike Tancsa wrote: > >>>This is the real port. Could you dump the descriptors after unloading >>> the >>>driver and loading ugen? > > > I decided to give it a spin on HEAD, but not sure if the recent > changes to u3g in HEAD changed the behaviour, or its an issue with me > fiddling with the driver. > > Using > http://www.draisberghof.de/usb_modeswitch/usb_modeswitch-0.9.7.tar.bz2 > > I am able to make the device appear, but as /dev/cuaU0 and not > /dev/cuaU0.0 > > > u3g0: 2.00/0.00, addr 2> on usbus3 > umass0: 2.00/0.00, addr 2> on usbus3 > umass0: SCSI over Bulk-Only; quirks = 0x0000 > Root mount waiting for: usbus3 > umass0:0:0:-1: Attached to scbus0 > Root mount waiting for: usbus3 > (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 > (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition > (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 > (probe0:umass-sim0:0:0:0): Medium not present > (probe0:umass-sim0:0:0:0): Unretryable error > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-2 device > da0: 40.000MB/s transfers > da0: Attempt to query device size failed: NOT READY, Medium not presen > > da0 is the microSD drive hi all, does u3g already lives in piece with umass ? last time I tried use 3g and umass in kernel, I got a dead system right away. if I use u3g I can't use umass for me (Huawei E226) thanks, matheus -- We will call you cygnus, The God of balance you shall be A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? http://en.wikipedia.org/wiki/Posting_style From hselasky at c2i.net Fri May 8 07:28:07 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Fri May 8 07:28:14 2009 Subject: ZTE MF636 USB u3g modem In-Reply-To: <8b7a0de5bdfb4ef4657e69559b55d7ad.squirrel@10.1.1.10> References: <200905051740.n45HeJAG075718@lava.sentex.ca> <200905080313.n483DI6M094186@lava.sentex.ca> <8b7a0de5bdfb4ef4657e69559b55d7ad.squirrel@10.1.1.10> Message-ID: <200905080930.37122.hselasky@c2i.net> On Friday 08 May 2009, Nenhum_de_Nos wrote: > On Fri, May 8, 2009 00:14, Mike Tancsa wrote: > > At 10:01 AM 5/7/2009, Mike Tancsa wrote: > >>>This is the real port. Could you dump the descriptors after unloading > >>> the > >>>driver and loading ugen? > > > > I decided to give it a spin on HEAD, but not sure if the recent > > changes to u3g in HEAD changed the behaviour, or its an issue with me > > fiddling with the driver. > > > > Using > > http://www.draisberghof.de/usb_modeswitch/usb_modeswitch-0.9.7.tar.bz2 > > > > I am able to make the device appear, but as /dev/cuaU0 and not > > /dev/cuaU0.0 > > > > > > u3g0: > 2.00/0.00, addr 2> on usbus3 > > umass0: > 2.00/0.00, addr 2> on usbus3 > > umass0: SCSI over Bulk-Only; quirks = 0x0000 > > Root mount waiting for: usbus3 > > umass0:0:0:-1: Attached to scbus0 > > Root mount waiting for: usbus3 > > (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 > > (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > > (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition > > (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 > > (probe0:umass-sim0:0:0:0): Medium not present > > (probe0:umass-sim0:0:0:0): Unretryable error > > da0 at umass-sim0 bus 0 target 0 lun 0 > > da0: Removable Direct Access SCSI-2 device > > da0: 40.000MB/s transfers > > da0: Attempt to query device size failed: NOT READY, Medium not presen > > > > da0 is the microSD drive > > hi all, > > does u3g already lives in piece with umass ? > > last time I tried use 3g and umass in kernel, I got a dead system right > away. if I use u3g I can't use umass for me (Huawei E226) > In 8-current yes. --HPS From matheus at eternamente.info Fri May 8 12:11:30 2009 From: matheus at eternamente.info (Nenhum_de_Nos) Date: Fri May 8 12:11:36 2009 Subject: ZTE MF636 USB u3g modem In-Reply-To: <200905080930.37122.hselasky@c2i.net> References: <200905051740.n45HeJAG075718@lava.sentex.ca> <200905080313.n483DI6M094186@lava.sentex.ca> <8b7a0de5bdfb4ef4657e69559b55d7ad.squirrel@10.1.1.10> <200905080930.37122.hselasky@c2i.net> Message-ID: On Fri, May 8, 2009 04:30, Hans Petter Selasky wrote: > On Friday 08 May 2009, Nenhum_de_Nos wrote: >> On Fri, May 8, 2009 00:14, Mike Tancsa wrote: >> > At 10:01 AM 5/7/2009, Mike Tancsa wrote: >> >>>This is the real port. Could you dump the descriptors after unloading >> >>> the >> >>>driver and loading ugen? >> > >> > I decided to give it a spin on HEAD, but not sure if the recent >> > changes to u3g in HEAD changed the behaviour, or its an issue with me >> > fiddling with the driver. >> > >> > Using >> > http://www.draisberghof.de/usb_modeswitch/usb_modeswitch-0.9.7.tar.bz2 >> > >> > I am able to make the device appear, but as /dev/cuaU0 and not >> > /dev/cuaU0.0 >> > >> > >> > u3g0: > > 2.00/0.00, addr 2> on usbus3 >> > umass0: > > 2.00/0.00, addr 2> on usbus3 >> > umass0: SCSI over Bulk-Only; quirks = 0x0000 >> > Root mount waiting for: usbus3 >> > umass0:0:0:-1: Attached to scbus0 >> > Root mount waiting for: usbus3 >> > (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 >> > (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error >> > (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition >> > (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 >> > (probe0:umass-sim0:0:0:0): Medium not present >> > (probe0:umass-sim0:0:0:0): Unretryable error >> > da0 at umass-sim0 bus 0 target 0 lun 0 >> > da0: Removable Direct Access SCSI-2 device >> > da0: 40.000MB/s transfers >> > da0: Attempt to query device size failed: NOT READY, Medium not presen >> > >> > da0 is the microSD drive >> >> hi all, >> >> does u3g already lives in piece with umass ? >> >> last time I tried use 3g and umass in kernel, I got a dead system right >> away. if I use u3g I can't use umass for me (Huawei E226) >> > In 8-current yes. > > --HPS rebuilding righ away :) matheus -- We will call you cygnus, The God of balance you shall be A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? http://en.wikipedia.org/wiki/Posting_style From yohanes at gmail.com Sat May 9 05:11:23 2009 From: yohanes at gmail.com (Yohanes Nugroho) Date: Sat May 9 05:11:30 2009 Subject: EHCI Problem on FreeBSD arm port Message-ID: <260bb65e0905082115l4f017fb8g85ec88b81c191dc6@mail.gmail.com> Hi all, Bruce M Simpson has donated me an Emprex NSD 100 for porting FreeBSD to it, and currently I am working to port FreeBSD to this machine, which is ARM SoC Cavium Econa CNS11XX (formerly Star 91XX). But now I am stuck in implementing the USB EHCI controller. Before getting into the question, I would like to give some background. This SoC uses Faraday FA526 Arm CPU (arm4), and I have worked on Linux port of this SoC. The current progress is as follows: - FA526 CPU support is working (taken from NetBSD with minor adjustment) - Interrupt controller, timer, and serial console is working There are several more things that i need to implement: EHCI controller driver, OHCI controller driver, and network driver. I am starting with EHCI because then I would be able to use USB disk for booting, and I will be able to use my USB-Ethernet adapter (supported by FreeBSD) to test the networking stuff. This is where I got stuck. The EHCI controller is detected, most of the time the hub is detected (2 ports), and some of the time the USB mass controller is loaded. From my observation, it seems that even though the USB transaction is completed successfully, it sometimes doesn't return correct data. By "completing successfully", The result is (error=0): ehci_device_done:2149: xfer=0xc19360b0, pipe=0xc192b878, error=0 It is obvious that the data is sometimes invalid, because the display name of the device is sometimes corrupted. For example, this is when it is ok (see: "Kingston DataTraveler"): pass0: Removable Direct Access SCSI-2 device and when it is error ("Kingston DataTravele2F921"): umass0: on usbus0 (and sometimes even weirder string is shown) This invalid data happens randomly, and causes the error to move around (USB_ERR_NO_PIPE, CAM_REQ_CMP_ERR, etc). I have checked these parts: - I have verified that the device itself is working fine in Linux (always fine) - the Linux implementation doesn't have any quirks for this SoC's EHCI controller - Timer: the timer is working OK, so this should not be a timing problem - Interrupt controller: interrupt controller is also working OK, EHCI interrupt handler is called as it should - Caching/sync problem. I don't have deep understanding about ARM cache mechanism, but I have tried adding a code to flush the all of Dcache at the end of ehci_device_done, and it doesn't help. My current code is quite messy (many debugging printf). I am currently cleaning the source code so that everyone can have a look. But while I am cleaning, maybe anyone can point out things that I need to check. Here is the boot log of the most successful boot. KDB: debugger backends: ddb KDB: current backend: ddb kernel stack c12eb000 Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-CURRENT #153: Sat May 9 10:19:30 WIT 2009 yohanes@cameron:/usr/home/yohanes/freebsd/freebsd/src/sys/arm/compile/CNS11XXNAS WARNING: DIAGNOSTIC option enabled, expect reduced performance. Preloaded elf kernel "elf kernel" at 0xc12d6f4c. unknown CPU (ID = 0x66015261) WB enabled LABT 16KB/16B 2-way Instruction cache 16KB/16B 2-way write-back-locking-B Data cache real memory = 67108864 (64 MB) Physical memory chunk(s): 00000000 - 0xffffff, 16777216 bytes (4096 pages) 0x133b000 - 0x3eaefff, 45563904 bytes (11124 pages) avail memory = 61702144 (58 MB) ULE: setup cpu 0 nfslock: pseudo-device null: random: mem: econa identify econa probe econaarm0: on motherboard econa attach econa add children econa add child econa_ic addr 7d000000 econa add child uart addr 78000000 econa add child timer addr 79000000 econa add child ehci addr f8000000 timer0: mem 0x79000000-0x79ffffff irq 0,1 on econaarm0 econa_alloc_resource start 00000000 end ffffffff, count = 00000001 econa_alloc_resource start 79000000 end 79ffffff, count = 01000000 sys_res_memory Alloc OK econa_alloc_resource start 00000000 end ffffffff, count = 00000001 econa_alloc_resource start 00000000 end 00000000, count = 00000001 sys_res_irq Alloc OK STR9100 CPU Clock: 200 MHz HZ = 100 reload value = 500000 IRQ Timer1 at int #0x0 clock 100000000(Hz) econa_setup_intr done econa_setup_intr 0 timer0: [FILTER] DONE timer done00000000 ehci probe ehci probe ehci0: mem 0xf8000000-0xffffffff irq 24 on econaarm0 econa_alloc_resource start 00000000 end ffffffff, count = 00000001 econa_alloc_resource start f8000000 end ffffffff, count = 08000000 sys_res_memory Alloc OK econa_alloc_resource start 00000000 end ffffffff, count = 00000001 econa_alloc_resource start 00000018 end 00000018, count = 00000001 sys_res_irq Alloc OK add USB device setup intr econa_setup_intr done econa_setup_intr 24 ehci0: [MPSAFE] ehci0: [ITHREAD] init ehci ehci_init:222: start cmd=0x01000020 EHCI_CMD_ASE sts=0x00101202 EHCI_STS_HCH EHCI_STS_ERRINT ien=0x00007070 frindex=0x00000000 ctrdsegm=0x00000000 periodic=0x00000000 async=0x00000000 usbus0: EHCI version 1.0 ehci_init:240: sparams=0x101202 ehci_init:244: cparams=0x7070 ehci_init:255: usbus0: resetting QH(0xcd001800) at 0x03e3b800: link=0x03e3b802 endp=0x0000a000 addr=0x00 inact=0 endpt=0 eps=2 dtc=0 hrecl=1 mpl=0x0 ctl=0 nrl=0 endphub=0x40000000 smask=0x00 cmask=0x00 huba=0x00 port=0 mult=1 curqtd=0x00000000<> Overlay qTD: next=0x00000001 altnext=0x00000001 status=0x00000040: toggle=0 bytes=0x0 ioc=0 c_page=0x0 cerr=0 pid=0 stat=NOT_ACTIVE-HALTED buffer[0]=0x00000000 buffer[1]=0x00000000 buffer[2]=0x00000000 buffer[3]=0x00000000 buffer[4]=0x00000000 buffer_hi[0]=0x00000000 buffer_hi[1]=0x00000000 buffer_hi[2]=0x00000000 buffer_hi[3]=0x00000000 buffer_hi[4]=0x00000000 probe and attach usbus0: on ehci0 done initcloks enabling timer Timecounter "CPU Timer" frequency 50000000 Hz quality 1000 Timecounters tick every 10.000 msec ehci_root_intr:2001: port 2 changed usbus0: 480Mbps High Speed USB v2.0 ehci_set_hw_power:3793: ehci_set_hw_power:3805: Async is active ehci_set_hw_power:3810: Periodic is active ehci_pipe_init:3663: pipe=0xc1928078, addr=0, endpt=0, mode=0 (0) ehci_roothub_exec:3032: type=0x00 request=0x05 wLen=0x0000 wValue=0x0001 wIndex=0x0000 ehci_roothub_exec:3032: type=0x80 request=0x06 wLen=0x0008 wValue=0x0100 wIndex=0x0000 ehci_roothub_exec:3032: type=0x80 request=0x06 wLen=0x0012 wValue=0x0100 wIndex=0x0000 ehci_roothub_exec:3032: type=0x80 request=0x06 wLen=0x0002 wValue=0x0300 wIndex=0x0080 ehci_roothub_exec:3032: type=0x80 request=0x06 wLen=0x0004 wValue=0x0300 wIndex=0x0080 ehci_roothub_exec:3032: type=0x80 request=0x06 wLen=0x0002 wValue=0x0301 wIndex=0x0001 ehci_roothub_exec:3032: type=0x80 request=0x06 wLen=0x000e wValue=0x0301 wIndex=0x0001 ehci_roothub_exec:3032: type=0x80 request=0x06 wLen=0x0002 wValue=0x0302 wIndex=0x0001 ehci_roothub_exec:3032: type=0x80 request=0x06 wLen=0x001c wValue=0x0302 wIndex=0x0001 ehci_roothub_exec:3032: type=0x80 request=0x06 wLen=0x0009 wValue=0x0200 wIndex=0x0000 ehci_roothub_exec:3032: type=0x80 request=0x06 wLen=0x0019 wValue=0x0200 wIndex=0x0000 ehci_roothub_exec:3032: type=0x00 request=0x09 wLen=0x0000 wValue=0x0001 wIndex=0x0000 ehci_pipe_init:3663: pipe=0xc18a1900, addr=1, endpt=129, mode=0 (1) ugen0.1: at usbus0 uhub0: on usbus0 ehci_roothub_exec:3032: type=0xa0 request=0x06 wLen=0x0009 wValue=0x2900 wIndex=0x0000 WARNING: DIAGNOSTIC option enabled, expect reduced performance. ehci_roothub_exec:3032: type=0x23 request=0x03 wLen=0x0000 wValue=0x0008 wIndex=0x0001 ehci_roothub_exec:3364: set port power 1 ehci_root_intr:2001: port 2 changed ehci_roothub_exec:3032: type=0x23 request=0x03 wLen=0x0000 wValue=0x0008 wIndex=0x0002 ehci_roothub_exec:3364: set port power 2 uhub0: 2 ports with 2 removable, self powered ehci_set_hw_power:3793: ehci_roothub_exec:3032: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0001 port 68 (idx=1) status=0x1000 ehci_roothub_exec:3032: type=0x23 request=0x01 wLen=0x0000 wValue=0x0010 wIndex=0x0001 ehci_roothub_exec:3032: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0001 port 68 (idx=1) status=0x1000 ehci_roothub_exec:3032: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0002 port 72 (idx=2) status=0x1803 ehci_roothub_exec:3032: type=0x23 request=0x01 wLen=0x0000 wValue=0x0010 wIndex=0x0002 ehci_roothub_exec:3032: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0002 port 72 (idx=2) status=0x1801 ehci_roothub_exec:3032: type=0x23 request=0x03 wLen=0x0000 wValue=0x0004 wIndex=0x0002 ehci_roothub_exec:3345: ehci after reset, status=0x00001005 ehci_roothub_exec:3360: ehci port 2 reset, status = 0x00001005 ehci_roothub_exec:3032: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0002 port 72 (idx=2) status=0x1005 ehci_roothub_exec:3032: type=0x23 request=0x01 wLen=0x0000 wValue=0x0014 wIndex=0x0002 ehci_roothub_exec:3032: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0002 port 72 (idx=2) status=0x1005 ehci_pipe_init:3663: pipe=0xc1927878, addr=0, endpt=0, mode=0 (1) usb2_transfer_setup ../../../dev/usb/usb_transfer.c:743 ehci_set_hw_power:3793: ehci_set_hw_power:3805: Async is active ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19340b0, pipe=0xc1927878, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19340b0, pipe=0xc1927878, error=0 ehci_device_ctrl_close ../../../dev/usb/controller/ehci.c:2236 ehci_device_done:2134: xfer=0xc19340b0, pipe=0xc1927878, error=5 usb2_transfer_setup ../../../dev/usb/usb_transfer.c:743 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19330b0, pipe=0xc1927878, error=0 ehci_device_ctrl_close ../../../dev/usb/controller/ehci.c:2236 ehci_device_done:2134: xfer=0xc19330b0, pipe=0xc1927878, error=5 usb2_transfer_setup ../../../dev/usb/usb_transfer.c:743 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19320b0, pipe=0xc1927878, error=0 ehci_device_ctrl_close ../../../dev/usb/controller/ehci.c:2236 ehci_device_done:2134: xfer=0xc19320b0, pipe=0xc1927878, error=5 usb2_transfer_setup ../../../dev/usb/usb_transfer.c:743 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19310b0, pipe=0xc1927878, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19310b0, pipe=0xc1927878, error=0 ehci_roothub_exec:3032: type=0x23 request=0x03 wLen=0x0000 wValue=0x0004 wIndex=0x0002 ehci_roothub_exec:3345: ehci after reset, status=0x00001005 ehci_roothub_exec:3360: ehci port 2 reset, status = 0x00001005 ehci_roothub_exec:3032: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0002 port 72 (idx=2) status=0x1005 ehci_roothub_exec:3032: type=0x23 request=0x01 wLen=0x0000 wValue=0x0014 wIndex=0x0002 ehci_device_ctrl_close ../../../dev/usb/controller/ehci.c:2236 ehci_device_done:2134: xfer=0xc19310b0, pipe=0xc1927878, error=5 usb2_transfer_setup ../../../dev/usb/usb_transfer.c:743 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19300b0, pipe=0xc1927878, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19300b0, pipe=0xc1927878, error=0 ehci_device_ctrl_close ../../../dev/usb/controller/ehci.c:2236 ehci_device_done:2134: xfer=0xc19300b0, pipe=0xc1927878, error=5 usb2_transfer_setup ../../../dev/usb/usb_transfer.c:743 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19300b0, pipe=0xc1927878, error=0 ehci_device_ctrl_close ../../../dev/usb/controller/ehci.c:2236 ehci_device_done:2134: xfer=0xc19300b0, pipe=0xc1927878, error=5 usb2_transfer_setup ../../../dev/usb/usb_transfer.c:743 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19310b0, pipe=0xc1927878, error=0 ehci_device_ctrl_close ../../../dev/usb/controller/ehci.c:2236 ehci_device_done:2134: xfer=0xc19310b0, pipe=0xc1927878, error=5 usb2_transfer_setup ../../../dev/usb/usb_transfer.c:743 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19320b0, pipe=0xc1927878, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19320b0, pipe=0xc1927878, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19320b0, pipe=0xc1927878, error=0 ehci_pipe_init:3663: pipe=0xc1871a80, addr=2, endpt=129, mode=0 (1) ehci_pipe_init:3663: pipe=0xc1871aa4, addr=2, endpt=2, mode=0 (1) usb2_transfer_setup ../../../dev/usb/usb_transfer.c:743 ehci_set_hw_power:3793: ehci_set_hw_power:3805: Async is active ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19390b0, pipe=0xc1871aa4, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc1939180, pipe=0xc1871a80, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc1939850, pipe=0xc1871a80, error=0 ehci_device_bulk_close ../../../dev/usb/controller/ehci.c:2185 ehci_device_done:2134: xfer=0xc1939850, pipe=0xc1871a80, error=5 ehci_device_bulk_close ../../../dev/usb/controller/ehci.c:2185 ehci_device_done:2134: xfer=0xc1939180, pipe=0xc1871a80, error=5 ehci_device_bulk_close ../../../dev/usb/controller/ehci.c:2185 ehci_device_done:2134: xfer=0xc19390b0, pipe=0xc1871aa4, error=5 ugen0.2: at usbus0 umass_probe_proto ../../../dev/usb/storage/umass.c:1297 retrieving interface descriptors done ../../../dev/usb/storage/umass.c:1405 umass_probe_proto ../../../dev/usb/storage/umass.c:1297 retrieving interface descriptors done ../../../dev/usb/storage/umass.c:1405 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass_attach ../../../dev/usb/storage/umass.c:1526 usb2_transfer_setup ../../../dev/usb/usb_transfer.c:743 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19320b0, pipe=0xc1927878, error=0 register sim 0 scanning the sim umass0:0:0:-1: Attached to scbus0 probestart ../../../cam/cam_xpt.c:5768 scsi_inquiry ../../../cam/scsi/scsi_all.c:3608 probestart ../../../cam/cam_xpt.c:5779 probestart ../../../cam/cam_xpt.c:5887 ehci_set_hw_power:3793: ehci_roothub_exec:3032: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0001 port 68 (idx=1) status=0x1000 ehci_roothub_exec:3032: type=0xa3 request=0x00 wLen=0x0004 wValue=0x0000 wIndex=0x0002 port 72 (idx=2) status=0x1005 ehci_set_hw_power:3793: ehci_set_hw_power:3805: Async is active ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19412d8, pipe=0xc1871aa4, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19413a8, pipe=0xc1871a80, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc1941678, pipe=0xc1871a80, error=0 probestart ../../../cam/cam_xpt.c:5823 scsi_inquiry ../../../cam/scsi/scsi_all.c:3608 probestart ../../../cam/cam_xpt.c:5887 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19412d8, pipe=0xc1871aa4, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19413a8, pipe=0xc1871a80, error=22 ehci_set_hw_power:3793: ehci_set_hw_power:3805: Async is active ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc1941458, pipe=0xc1927878, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc1941678, pipe=0xc1871a80, error=0 cam_periph_error ../../../cam/cam_periph.c:1563 probestart ../../../cam/cam_xpt.c:5696 probestart ../../../cam/cam_xpt.c:5887 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19412d8, pipe=0xc1871aa4, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc1941678, pipe=0xc1871a80, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19412d8, pipe=0xc1871aa4, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19413a8, pipe=0xc1871a80, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc1941678, pipe=0xc1871a80, error=0 cam_periph_error ../../../cam/cam_periph.c:1563 (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition (probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed Retrying Command (per Sense Data) (probe0:umass-sim0:0:0:0): Retrying Command probedone ../../../cam/cam_xpt.c:6326 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19412d8, pipe=0xc1871aa4, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc1941678, pipe=0xc1871a80, error=0 pass0 at umass-sim0 bus 0 target 0 lun 0 pass0: Removable Direct Access SCSI-2 device pass0: 40.000MB/s transfers ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19412d8, pipe=0xc1871aa4, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19413a8, pipe=0xc1871a80, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc1941678, pipe=0xc1871a80, error=0 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 1906MB (3903578 512 byte sectors: 255H 63S/T 242C) GEOM: new disk da0 dagetcapacity ../../../cam/scsi/scsi_da.c:1894 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19412d8, pipe=0xc1871aa4, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19413a8, pipe=0xc1871a80, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc1941678, pipe=0xc1871a80, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19412d8, pipe=0xc1871aa4, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc1941678, pipe=0xc1871a80, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19412d8, pipe=0xc1871aa4, error=0 Expensive timeout(9) function: 0xc10ee6bc(0xc1885000) -1.990236639 s ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc19413a8, pipe=0xc1871a80, error=0 ehci_non_isoc_done ../../../dev/usb/controller/ehci.c:1276 ehci_device_done:2134: xfer=0xc1941678, pipe=0xc1871a80, error=0 name = da0 geom da0 sector size = 1886417008 name = da0 geom da0 sector size = 1886417008 Offset = 0 length = 1886417008 panic: g_read_data(): invalid length 1886417008 KDB: enter: panic [thread pid 2 tid 100006 ] Stopped at kdb_enter+0x44: ldrb r15, [r15, r15, ror r15]! -- Regards Yohanes http://yohan.es -- Regards Yohanes http://yohan.es/ From hselasky at c2i.net Sat May 9 08:06:37 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat May 9 08:06:44 2009 Subject: EHCI Problem on FreeBSD arm port In-Reply-To: <260bb65e0905082115l4f017fb8g85ec88b81c191dc6@mail.gmail.com> References: <260bb65e0905082115l4f017fb8g85ec88b81c191dc6@mail.gmail.com> Message-ID: <200905091009.06658.hselasky@c2i.net> On Saturday 09 May 2009, Yohanes Nugroho wrote: > Hi all, > > This is where I got stuck. The EHCI controller is detected, most of > the time the hub is detected (2 ports), and some of the time the USB > mass controller is loaded. From my observation, it seems that even > though the USB transaction is completed successfully, it sometimes > doesn't return correct data. By "completing successfully", The result > is (error=0): Hi, If the strings are corrupt I would guess at a busdma issue. Flusing in device done is too late. Put your flush all / invalidate all code into: #if USB_HAVE_BUSDMA && defined(__FreeBSD__) ... usb2_pc_cpu_flush() usb2_pc_cpu_invalidate() ... #endif In "src/sys/dev/usb/usb_busdma.c". Are you running stock 8-current ? --HPS From yohanes at gmail.com Sat May 9 18:03:06 2009 From: yohanes at gmail.com (Yohanes Nugroho) Date: Sat May 9 18:03:17 2009 Subject: EHCI Problem on FreeBSD arm port In-Reply-To: <200905091009.06658.hselasky@c2i.net> References: <260bb65e0905082115l4f017fb8g85ec88b81c191dc6@mail.gmail.com> <200905091009.06658.hselasky@c2i.net> Message-ID: <260bb65e0905091102y272de752r750a3a79940486f@mail.gmail.com> On Sat, May 9, 2009 at 3:09 PM, Hans Petter Selasky wrote: > Hi, > > If the strings are corrupt I would guess at a busdma issue. thank you, adding a "flush all" instruction makes the USB controller works properly. Now i should check the implementation of the FA526 invalidate/flush instruction, because I shouldn't need the extra flush instruction if bus_dmamap_sync works properly, right?. > Are you running stock 8-current ? yes -- Regards Yohanes http://yohan.es/ From imp at bsdimp.com Sat May 9 18:16:36 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Sat May 9 18:16:43 2009 Subject: EHCI Problem on FreeBSD arm port In-Reply-To: <260bb65e0905091102y272de752r750a3a79940486f@mail.gmail.com> References: <260bb65e0905082115l4f017fb8g85ec88b81c191dc6@mail.gmail.com> <200905091009.06658.hselasky@c2i.net> <260bb65e0905091102y272de752r750a3a79940486f@mail.gmail.com> Message-ID: <20090509.121327.-1592325297.imp@bsdimp.com> In message: <260bb65e0905091102y272de752r750a3a79940486f@mail.gmail.com> Yohanes Nugroho writes: : On Sat, May 9, 2009 at 3:09 PM, Hans Petter Selasky wrote: : : > Hi, : > : > If the strings are corrupt I would guess at a busdma issue. : : thank you, adding a "flush all" instruction makes the USB controller : works properly. : : Now i should check the implementation of the FA526 invalidate/flush : instruction, because I shouldn't need the extra flush instruction if : bus_dmamap_sync works properly, right?. I believe so. Warner From tinguely at casselton.net Sat May 9 19:25:33 2009 From: tinguely at casselton.net (Mark Tinguely) Date: Sat May 9 19:25:39 2009 Subject: EHCI Problem on FreeBSD arm port In-Reply-To: <260bb65e0905091102y272de752r750a3a79940486f@mail.gmail.com> Message-ID: <200905091906.n49J6ahs025537@casselton.net> > > On Sat, May 9, 2009 at 3:09 PM, Hans Petter Selasky wrote: > > > Hi, > > > > If the strings are corrupt I would guess at a busdma issue. > > thank you, adding a "flush all" instruction makes the USB controller > works properly. > > Now i should check the implementation of the FA526 invalidate/flush > instruction, because I shouldn't need the extra flush instruction if > bus_dmamap_sync works properly, right?. > > > Are you running stock 8-current ? > > yes Sounds like the multiple kernel mapping problem in ARM. It was mentioned when the new USB stack was comitted. Muliple kernel mappings can also occur in other situations. There is a patch that has been around for a month and is about to be committed. I just put three counters in the patch to determine if PG_UNMANAGED pages could also be shared. --Mark Tinguely From info at lottery.co.uk Sun May 10 15:51:31 2009 From: info at lottery.co.uk (UK NATIONAL LOTTERY) Date: Sun May 10 15:52:06 2009 Subject: National Lottery: Your Email Won Message-ID: <20090510153359.467B83C17C@hm1207.locaweb.com.br> United Kingdom National Lottery 101 Bovill Road, London SE23 1EL United Kingdom File #: EGS/2251256003/02 Congratulations, we are pleased to inform you of the result of the United Kingdom National Lottery Award Winners. Your email address have been randomly selected as a winner in the ongoing United Kingdom National Lottery Online program, the draw was held on 30th April, 2009 using a computerized balloting system of selection. The United Kingdom National Lottery is aimed and focused at global development and improvement of living standard across the world. Free £77 Million Pounds won including *four* Ten Million Pounds Winners and *fourteen* Millionaires plus thousands of other cash prizes. Winner from all over the world, India, France, Singapore, USA, United Kingdom, Spain, South America, Malaysia, Indonesia, South Africa, Belgium, Denmark, Ireland and many more. We wish to express our sincere apologies for the late notification, this free award online program is been conducted bi-quarterly. United Kingdom National Lottery Free Award draw was conducted at the Europe Issuing Centre, you were selected from an exclusive list of 1,000,000,000 e-mail addresses of internet users from the following categories; consumers, professionals and corporate bodies picked by an advanced automated random computer ballot search from the internet 'NO TICKETS OR DRAFTS WERE SOLD'. Your email address attached to Security File #: EGS/2251256003/02 with Serial number No: 002839 emerged as a winner of Six Hundred Thousand Pounds (£600.000.00 GBP), therefore you are eligible to file claim for your prize as one of our lucky winners for the payout of your total sum after a thorough verification that will be conducted by our various credible financial institutions. This online program is precisely aimed at enabling all internet users across the world benefit from the United Kingdom National Lottery, your email address falls within the First Category Winner as such your file has been designated to our European Centre, where the complete verification and payout will be conducted only if there are no exceptions during the claims process, to file your claim immediately please contact our International Programs Director Anderson Spencer with the following information: 1. Name in full----------------------------------------- 2. Phone/Fax------------------------------------------- 3. Occupation------------------------------------------ TO: Contact Person: Anderson Spencer European Payment Issuing Office Tel: +447024065192 (8am - 5pm GMT) Fax: +447092894160 Email: zonal.anderson-spencer@msn.com NOTE: In order to benefit from this program, you are advised in your own best interest to file your claim not later than 7days days from the date of this notification to avoid disqualification; anybody under the age of 18 is automatically disqualified. Please include this File #: EGS/2251256003/02 in every of your correspondence with our Foreign Service Director Anderson Spencer. IMPORTANT: Solemn confidentiality should be ensured until successful remittance of your prize to you to avoid undue taking of advantage, unwarranted claim and abuse of program, any breach of confidentiality on the part of the winner will result to automatic disqualification. Sincerely Yours, Mrs. Julie Van Hans, Executive Director. United Kingdom National Lottery. From bugmaster at FreeBSD.org Mon May 11 11:07:06 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon May 11 11:09:38 2009 Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org Message-ID: <200905111107.n4BB757E086136@freefall.freebsd.org> Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/134299 usb Kernel Panic plugging in MF626 USB UMTS Stick u3g o usb/134193 usb System freeze on usb MP3 player insertion o usb/134117 usb [Patch] Add support for 'Option GlobeTrotter HSDPA Mod o usb/134085 usb [umass] Adding usb quirk for Sony USB flash drive o usb/133989 usb [newusb] [ukbd] USB keyboard dead at mountroot> prompt f usb/133545 usb [usb] [panic] Kernel crash in usb2_intr_schedule_adjus o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb rum driver not working properly in hostap mode p usb/132799 usb [usb][patch]GENESYS USB2IDE requires NO_SYNCHRONIZE_CA o usb/132785 usb [usb] [patch] Gemtech remote powersocket is classed as o usb/132594 usb USB subsystem causes page fault and crashes o usb/132312 usb Xorg 7.4 halts USB controller o usb/132080 usb [patch] [usb] Kernel panic after NOMEM caused by rum c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131912 usb [uslcom] [patch] New devices using Silicon Labs chips o usb/131900 usb [usbdevs] [patch] Additional product identification co o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c f usb/131123 usb [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130325 usb [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh o usb/130230 usb Samsung Electronics YP-U3 does not attach in 7.1-RELEA o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [newusb] DVD drive detects as 'da' device o docs/129962 usb [newusb] usbconfig(8) refers to non-existant usb2_core o usb/129945 usb [usbdevs] [patch] add u3g support for Longcheer WM66 U o usb/129766 usb [usb] plugging in usb modem HUAWEI E226 panics system o usb/129758 usb [uftdi] [patch] add Pyramid LCD usb support o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129522 usb [ubsa] [patch] add support for ZTE AC8700 modem o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader o usb/129251 usb [usbdevs] [patch] Liebert UPS being assigned uhid and o usb/129173 usb [uplcom] [patch] Add support for Corega CG-USBRS232R a s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb] [patch] uaudio is not full duplex o usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive f usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/128324 usb [uplcom] [patch] remove baud rate restriction for PL23 o usb/127980 usb [umass] [patch] Fix Samsung YP U2 MP3 player on 7.x an o usb/127926 usb [boot] USB Timeout during bootup o usb/127549 usb [umass] [patch] Meizu MiniPlayer M6 (SL) requires some s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should o usb/127423 usb [boot] BTX halted on Gigabyte GA-MA69VM-S2 / AMD Sempr o usb/127342 usb [boot] cannot enable usb keyboard and mouse support in o usb/127248 usb [ucom] panic while uplcom devices attaach and detach o kern/127222 usb [ohci]: Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c f usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125264 usb [patch] sysctl for set usb mouse rate (very useful for o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone o usb/123352 usb [usbdevs] [patch] Add Option GTMAX3.6/7.2 and Quallcom o usb/123351 usb [usbdevs] [patch] Add Reiner SCT cyberJack, Omnikey [2 o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122956 usb [ubsa] [patch] add support for Novatel Wireless XU870 o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122621 usb [patch] [request] New driver for Sierra Wireless 3G US o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/122025 usb [uscanner] [patch] uscanner does not attach to Epson R o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s p usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118686 usb [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [umass] [patch] Problems with connection of the umass o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af a usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC o usb/109397 usb [panic] on boot from USB flash o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE [regr s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/107924 usb [patch] usbd(8) does not call detach o usb/107848 usb [umass] [request] cannot access Samsung flash disk o usb/107827 usb [ohci] [panic] ohci_add_done addr not found o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) [ o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107243 usb [cam] [patch] Apacer USB Flash Drive quirk o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze s usb/106832 usb [usb] USB HP printer is not detected by kernel when AC o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/105065 usb [ata] [usb] SATA - USB Bridge o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/104645 usb [umass] [request] Rave C-201 MP3 player does not commu o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/103917 usb [uhub] USB driver reports "Addr 0 should never happen" o usb/103418 usb usbhidctl(1): [patch] [request] usbhidctl: add ability o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/102678 usb [keyboard] Dell PowerEdge DRAC5 USB Keyboard does not o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101096 usb [ural] [panic] USB WLAN occasionally causes kernel-pan o usb/100746 usb [keyboard] system does not boot due to USB keyboard pr o usb/99538 usb [keyboard] while using USB keyboard default params of o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o kern/99200 usb [bluetooth] SMP-Kernel crashes reliably when Bluetooth o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91629 usb [usb] usbd_abort_pipe() may result in infinite loop o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device f usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80829 usb [modules] [panic] possible panic when loading USB-modu s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/79722 usb [ehci] wrong alignments in ehci.h a usb/79656 usb [ehci] RHSC interrupts lost o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75797 usb [sound] 5.3-STABLE(2005 1/4) detect USB headset, But c o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 311 problems total. From dirkx at webweaving.org Mon May 11 17:30:02 2009 From: dirkx at webweaving.org (Dirk-Willem van Gulik) Date: Mon May 11 17:30:09 2009 Subject: usb/134468: /etc/ntp created by default - but not used by /etc/default settings Message-ID: <200905111724.n4BHOHdL052411@www.freebsd.org> >Number: 134468 >Category: usb >Synopsis: /etc/ntp created by default - but not used by /etc/default settings >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: Mon May 11 17:30:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Dirk-Willem van Gulik >Release: 7.2-RELEASE >Organization: private >Environment: FreeBSD 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Mon May 11 18:16:53 UTC 2009 root@:/usr/src/sys/i386/compile/BISCAY i386 >Description: A default install of base will create the directory /etc/ntp. However - the settings specified in /etc/defaults/* point to a config file in /etc/ntp.conf >How-To-Repeat: default install. observe >Fix: Either remove /etc/ntp, point ntpd its config in /etc/defaults/ to the right place or document what its chroot concept would be. >Release-Note: >Audit-Trail: >Unformatted: From gavin at FreeBSD.org Mon May 11 19:21:22 2009 From: gavin at FreeBSD.org (gavin@FreeBSD.org) Date: Mon May 11 19:21:28 2009 Subject: bin/134468: /etc/ntp created by default - but not used by /etc/default settings Message-ID: <200905111921.n4BJLLaO063897@freefall.freebsd.org> Synopsis: /etc/ntp created by default - but not used by /etc/default settings Responsible-Changed-From-To: freebsd-usb->freebsd-bugs Responsible-Changed-By: gavin Responsible-Changed-When: Mon May 11 19:20:26 UTC 2009 Responsible-Changed-Why: Not USB. Don't know where the problem is yet, but it's not USB... http://www.freebsd.org/cgi/query-pr.cgi?pr=134468 From lwindschuh at googlemail.com Tue May 12 00:50:03 2009 From: lwindschuh at googlemail.com (Lucius Windschuh) Date: Tue May 12 00:50:09 2009 Subject: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx Message-ID: <200905120040.n4C0eZdL003284@www.freebsd.org> >Number: 134476 >Category: usb >Synopsis: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx >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 May 12 00:50:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Lucius Windschuh >Release: CURRENT@r191999 >Organization: >Environment: FreeBSD CURRENT 8.0-CURRENT FreeBSD 8.0-CURRENT #54 r191999M: Tue May 12 01:41:57 CEST 2009 root@current:/usr/obj/usr/src/sys/CURRENT i386 >Description: Attaching some external disk with a gjournaled UFS2 to my FreeBSD produces these errors: umass1: Get Max Lun not supported (USB_ERR_STALLED) [...] (da1:umass-sim1:1:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 (da1:umass-sim1:1:0:0): CAM Status: SCSI Status Error (da1:umass-sim1:1:0:0): SCSI Status: Check Condition (da1:umass-sim1:1:0:0): ILLEGAL REQUEST asc:20,0 (da1:umass-sim1:1:0:0): Invalid command operation code (da1:umass-sim1:1:0:0): Unretryable error GEOM_JOURNAL: BIO_FLUSH not supported by da1s1e. (da1:umass-sim1:1:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 (da1:umass-sim1:1:0:0): CAM Status: SCSI Status Error (da1:umass-sim1:1:0:0): SCSI Status: Check Condition (da1:umass-sim1:1:0:0): ILLEGAL REQUEST asc:20,0 (da1:umass-sim1:1:0:0): Invalid command operation code (da1:umass-sim1:1:0:0): Unretryable error GEOM_JOURNAL: BIO_FLUSH not supported by da1s1a. >How-To-Repeat: Put a gjournal on an external disk with a Cypress chipset and use it. >Fix: Attached patch. Patch attached with submission follows: Index: sys/dev/usb/storage/umass.c =================================================================== --- sys/dev/usb/storage/umass.c (Revision 191999) +++ sys/dev/usb/storage/umass.c (Arbeitskopie) @@ -427,6 +427,10 @@ UMASS_PROTO_SCSI | UMASS_PROTO_BBB, FORCE_SHORT_INQUIRY | NO_START_STOP | IGNORE_RESIDUE }, + {USB_VENDOR_CYPRESS, USB_PRODUCT_CYPRESS_XX6830XX, RID_WILDCARD, + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, + NO_GETMAXLUN | NO_SYNCHRONIZE_CACHE + }, {USB_VENDOR_DESKNOTE, USB_PRODUCT_DESKNOTE_UCR_61S2B, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_QUIRKS Index: sys/dev/usb/usbdevs =================================================================== --- sys/dev/usb/usbdevs (Revision 191999) +++ sys/dev/usb/usbdevs (Arbeitskopie) @@ -1106,6 +1106,7 @@ product CYPRESS FMRADIO 0x1002 FM Radio product CYPRESS USBRS232 0x5500 USB-RS232 Interface product CYPRESS SLIM_HUB 0x6560 Slim Hub +product CYPRESS XX6830XX 0x6830 PATA Storage Device /* Daisy Technology products */ product DAISY DMC 0x6901 USB MultiMedia Reader >Release-Note: >Audit-Trail: >Unformatted: From hselasky at c2i.net Tue May 12 07:21:26 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue May 12 07:21:35 2009 Subject: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx In-Reply-To: <200905120040.n4C0eZdL003284@www.freebsd.org> References: <200905120040.n4C0eZdL003284@www.freebsd.org> Message-ID: <200905120923.57886.hselasky@c2i.net> On Tuesday 12 May 2009, Lucius Windschuh wrote: > >Number: 134476 > >Category: usb > >Synopsis: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx > >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 May 12 00:50:01 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Lucius Windschuh > >Release: CURRENT@r191999 > >Organization: > >Environment: > > FreeBSD CURRENT 8.0-CURRENT FreeBSD 8.0-CURRENT #54 r191999M: Tue May 12 > 01:41:57 CEST 2009 root@current:/usr/obj/usr/src/sys/CURRENT i386 > > >Description: > > Attaching some external disk with a gjournaled UFS2 to my FreeBSD produces > these errors: umass1: Get Max Lun not supported (USB_ERR_STALLED) > [...] > (da1:umass-sim1:1:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 > (da1:umass-sim1:1:0:0): CAM Status: SCSI Status Error > (da1:umass-sim1:1:0:0): SCSI Status: Check Condition > (da1:umass-sim1:1:0:0): ILLEGAL REQUEST asc:20,0 > (da1:umass-sim1:1:0:0): Invalid command operation code > (da1:umass-sim1:1:0:0): Unretryable error > GEOM_JOURNAL: BIO_FLUSH not supported by da1s1e. > (da1:umass-sim1:1:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 > (da1:umass-sim1:1:0:0): CAM Status: SCSI Status Error > (da1:umass-sim1:1:0:0): SCSI Status: Check Condition > (da1:umass-sim1:1:0:0): ILLEGAL REQUEST asc:20,0 > (da1:umass-sim1:1:0:0): Invalid command operation code > (da1:umass-sim1:1:0:0): Unretryable error > GEOM_JOURNAL: BIO_FLUSH not supported by da1s1a. > > >How-To-Repeat: > > Put a gjournal on an external disk with a Cypress chipset and use it. > > >Fix: > > Attached patch. > > Patch attached with submission follows: > > Index: sys/dev/usb/storage/umass.c > =================================================================== > --- sys/dev/usb/storage/umass.c (Revision 191999) > +++ sys/dev/usb/storage/umass.c (Arbeitskopie) > @@ -427,6 +427,10 @@ > UMASS_PROTO_SCSI | UMASS_PROTO_BBB, > FORCE_SHORT_INQUIRY | NO_START_STOP | IGNORE_RESIDUE > }, > + {USB_VENDOR_CYPRESS, USB_PRODUCT_CYPRESS_XX6830XX, RID_WILDCARD, > + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, > + NO_GETMAXLUN | NO_SYNCHRONIZE_CACHE > + }, If the descriptors are correct then use UMASS_PROTO_DEFAULT . Can you check this and I will import this patch. > {USB_VENDOR_DESKNOTE, USB_PRODUCT_DESKNOTE_UCR_61S2B, RID_WILDCARD, > UMASS_PROTO_SCSI | UMASS_PROTO_BBB, > NO_QUIRKS > Index: sys/dev/usb/usbdevs > =================================================================== > --- sys/dev/usb/usbdevs (Revision 191999) > +++ sys/dev/usb/usbdevs (Arbeitskopie) > @@ -1106,6 +1106,7 @@ > product CYPRESS FMRADIO 0x1002 FM Radio > product CYPRESS USBRS232 0x5500 USB-RS232 Interface > product CYPRESS SLIM_HUB 0x6560 Slim Hub > +product CYPRESS XX6830XX 0x6830 PATA Storage Device > > /* Daisy Technology products */ > product DAISY DMC 0x6901 USB MultiMedia Reader > > >Release-Note: > >Audit-Trail: > >Unformatted: --HPS From hselasky at c2i.net Tue May 12 07:30:10 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue May 12 07:30:17 2009 Subject: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx Message-ID: <200905120730.n4C7U992068177@freefall.freebsd.org> The following reply was made to PR usb/134476; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Lucius Windschuh , freebsd-gnats-submit@freebsd.org Subject: Re: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx Date: Tue, 12 May 2009 09:23:56 +0200 On Tuesday 12 May 2009, Lucius Windschuh wrote: > >Number: 134476 > >Category: usb > >Synopsis: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx > >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 May 12 00:50:01 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Lucius Windschuh > >Release: CURRENT@r191999 > >Organization: > >Environment: > > FreeBSD CURRENT 8.0-CURRENT FreeBSD 8.0-CURRENT #54 r191999M: Tue May 12 > 01:41:57 CEST 2009 root@current:/usr/obj/usr/src/sys/CURRENT i386 > > >Description: > > Attaching some external disk with a gjournaled UFS2 to my FreeBSD produces > these errors: umass1: Get Max Lun not supported (USB_ERR_STALLED) > [...] > (da1:umass-sim1:1:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 > (da1:umass-sim1:1:0:0): CAM Status: SCSI Status Error > (da1:umass-sim1:1:0:0): SCSI Status: Check Condition > (da1:umass-sim1:1:0:0): ILLEGAL REQUEST asc:20,0 > (da1:umass-sim1:1:0:0): Invalid command operation code > (da1:umass-sim1:1:0:0): Unretryable error > GEOM_JOURNAL: BIO_FLUSH not supported by da1s1e. > (da1:umass-sim1:1:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 > (da1:umass-sim1:1:0:0): CAM Status: SCSI Status Error > (da1:umass-sim1:1:0:0): SCSI Status: Check Condition > (da1:umass-sim1:1:0:0): ILLEGAL REQUEST asc:20,0 > (da1:umass-sim1:1:0:0): Invalid command operation code > (da1:umass-sim1:1:0:0): Unretryable error > GEOM_JOURNAL: BIO_FLUSH not supported by da1s1a. > > >How-To-Repeat: > > Put a gjournal on an external disk with a Cypress chipset and use it. > > >Fix: > > Attached patch. > > Patch attached with submission follows: > > Index: sys/dev/usb/storage/umass.c > =================================================================== > --- sys/dev/usb/storage/umass.c (Revision 191999) > +++ sys/dev/usb/storage/umass.c (Arbeitskopie) > @@ -427,6 +427,10 @@ > UMASS_PROTO_SCSI | UMASS_PROTO_BBB, > FORCE_SHORT_INQUIRY | NO_START_STOP | IGNORE_RESIDUE > }, > + {USB_VENDOR_CYPRESS, USB_PRODUCT_CYPRESS_XX6830XX, RID_WILDCARD, > + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, > + NO_GETMAXLUN | NO_SYNCHRONIZE_CACHE > + }, If the descriptors are correct then use UMASS_PROTO_DEFAULT . Can you check this and I will import this patch. > {USB_VENDOR_DESKNOTE, USB_PRODUCT_DESKNOTE_UCR_61S2B, RID_WILDCARD, > UMASS_PROTO_SCSI | UMASS_PROTO_BBB, > NO_QUIRKS > Index: sys/dev/usb/usbdevs > =================================================================== > --- sys/dev/usb/usbdevs (Revision 191999) > +++ sys/dev/usb/usbdevs (Arbeitskopie) > @@ -1106,6 +1106,7 @@ > product CYPRESS FMRADIO 0x1002 FM Radio > product CYPRESS USBRS232 0x5500 USB-RS232 Interface > product CYPRESS SLIM_HUB 0x6560 Slim Hub > +product CYPRESS XX6830XX 0x6830 PATA Storage Device > > /* Daisy Technology products */ > product DAISY DMC 0x6901 USB MultiMedia Reader > > >Release-Note: > >Audit-Trail: > >Unformatted: --HPS From hselasky at c2i.net Tue May 12 13:21:26 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue May 12 13:21:32 2009 Subject: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx In-Reply-To: <90a5caac0905120611h75599548y28759cce1fda712a@mail.gmail.com> References: <200905120040.n4C0eZdL003284@www.freebsd.org> <200905120923.57886.hselasky@c2i.net> <90a5caac0905120611h75599548y28759cce1fda712a@mail.gmail.com> Message-ID: <200905121523.58317.hselasky@c2i.net> On Tuesday 12 May 2009, Lucius Windschuh wrote: > Lucius Windschuh Committed. http://perforce.freebsd.org/chv.cgi?CH=161973 --HPS From hselasky at c2i.net Tue May 12 13:30:04 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue May 12 13:30:10 2009 Subject: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx Message-ID: <200905121330.n4CDU3Vs069239@freefall.freebsd.org> The following reply was made to PR usb/134476; it has been noted by GNATS. From: Hans Petter Selasky To: Lucius Windschuh Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx Date: Tue, 12 May 2009 15:23:57 +0200 On Tuesday 12 May 2009, Lucius Windschuh wrote: > Lucius Windschuh Committed. http://perforce.freebsd.org/chv.cgi?CH=161973 --HPS From lwindschuh at googlemail.com Tue May 12 14:21:30 2009 From: lwindschuh at googlemail.com (Lucius Windschuh) Date: Tue May 12 14:21:36 2009 Subject: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx In-Reply-To: <200905120923.57886.hselasky@c2i.net> References: <200905120040.n4C0eZdL003284@www.freebsd.org> <200905120923.57886.hselasky@c2i.net> Message-ID: <90a5caac0905120611h75599548y28759cce1fda712a@mail.gmail.com> 2009/5/12 Hans Petter Selasky : > > If the descriptors are correct then use UMASS_PROTO_DEFAULT . Can you check > this and I will import this patch. It works with UMASS_PROTO_DEFAULT. After pulling in p4 change 161533... ;-) And I found another enclosure with a different chipset that needs special treatment, too (combined patch attached). Thanks Lucius -------------- next part -------------- A non-text attachment was scrubbed... Name: enclosure_quirks2.patch Type: application/octet-stream Size: 1681 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20090512/6f1252b9/enclosure_quirks2.obj From lwindschuh at googlemail.com Tue May 12 14:30:03 2009 From: lwindschuh at googlemail.com (Lucius Windschuh) Date: Tue May 12 14:30:09 2009 Subject: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx Message-ID: <200905121430.n4CEU3Ln051016@freefall.freebsd.org> The following reply was made to PR usb/134476; it has been noted by GNATS. From: Lucius Windschuh To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx Date: Tue, 12 May 2009 15:11:20 +0200 --000e0cd47e94b443d30469b6d42d Content-Type: multipart/alternative; boundary=000e0cd47e94b443c40469b6d42b --000e0cd47e94b443c40469b6d42b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 2009/5/12 Hans Petter Selasky : > > If the descriptors are correct then use UMASS_PROTO_DEFAULT . Can you check > this and I will import this patch. It works with UMASS_PROTO_DEFAULT. After pulling in p4 change 161533... ;-) And I found another enclosure with a different chipset that needs special treatment, too (combined patch attached). Thanks Lucius --000e0cd47e94b443c40469b6d42b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
2009/5/12 Hans Petter Selasky <= hselasky@c2i.net>:
>
> If the descriptors = are correct then use UMASS_PROTO_DEFAULT . Can you check
> thi= s and I will import this patch.
=A0
It works with UMASS_PROTO_DEFAULT. After pulling in p4 c= hange 161533... ;-)
And I found another enclosure with a differen= t chipset that needs special treatment, too (combined patch attached).
=A0
Thanks
=A0
Lucius
--000e0cd47e94b443c40469b6d42b-- --000e0cd47e94b443d30469b6d42d Content-Type: application/octet-stream; name="enclosure_quirks2.patch" Content-Disposition: attachment; filename="enclosure_quirks2.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_fummf2580 SW5kZXg6IHN5cy9kZXYvdXNiL3N0b3JhZ2UvdW1hc3MuYwo9PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBzeXMvZGV2 L3VzYi9zdG9yYWdlL3VtYXNzLmMJKFJldmlzaW9uIDE5MTk5OSkKKysrIHN5cy9kZXYvdXNiL3N0 b3JhZ2UvdW1hc3MuYwkoQXJiZWl0c2tvcGllKQpAQCAtMzk1LDYgKzM5NSwxMCBAQAogCQlVTUFT U19QUk9UT19TQ1NJIHwgVU1BU1NfUFJPVE9fQkJCLAogCQlOT19RVUlSS1MKIAl9LAorCXtVU0Jf VkVORE9SX0FMQ09SLCBVU0JfUFJPRFVDVF9BTENPUl9BVTYzOTAsIFJJRF9XSUxEQ0FSRCwKKwkJ VU1BU1NfUFJPVE9fREVGQVVMVCwKKwkJTk9fU1lOQ0hST05JWkVfQ0FDSEUKKwl9LAogCXtVU0Jf VkVORE9SX0FMQ09SLCBVU0JfUFJPRFVDVF9BTENPUl9VTUNSXzkzNjEsIFJJRF9XSUxEQ0FSRCwK IAkJVU1BU1NfUFJPVE9fU0NTSSB8IFVNQVNTX1BST1RPX0JCQiwKIAkJTk9fR0VUTUFYTFVOCkBA IC00MjcsNiArNDMxLDEwIEBACiAJCVVNQVNTX1BST1RPX1NDU0kgfCBVTUFTU19QUk9UT19CQkIs CiAJCUZPUkNFX1NIT1JUX0lOUVVJUlkgfCBOT19TVEFSVF9TVE9QIHwgSUdOT1JFX1JFU0lEVUUK IAl9LAorCXtVU0JfVkVORE9SX0NZUFJFU1MsIFVTQl9QUk9EVUNUX0NZUFJFU1NfWFg2ODMwWFgs IFJJRF9XSUxEQ0FSRCwKKwkJVU1BU1NfUFJPVE9fREVGQVVMVCwKKwkJTk9fR0VUTUFYTFVOIHwg Tk9fU1lOQ0hST05JWkVfQ0FDSEUKKwl9LAogCXtVU0JfVkVORE9SX0RFU0tOT1RFLCBVU0JfUFJP RFVDVF9ERVNLTk9URV9VQ1JfNjFTMkIsIFJJRF9XSUxEQ0FSRCwKIAkJVU1BU1NfUFJPVE9fU0NT SSB8IFVNQVNTX1BST1RPX0JCQiwKIAkJTk9fUVVJUktTCkluZGV4OiBzeXMvZGV2L3VzYi91c2Jk ZXZzCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT0KLS0tIHN5cy9kZXYvdXNiL3VzYmRldnMJKFJldmlzaW9uIDE5MTk5OSkK KysrIHN5cy9kZXYvdXNiL3VzYmRldnMJKEFyYmVpdHNrb3BpZSkKQEAgLTgxNyw2ICs4MTcsNyBA QAogcHJvZHVjdCBBTENPUiBVTUNSXzkzNjEJCTB4OTM2MQlVU0IgTXVsdGltZWRpYSBDYXJkIFJl YWRlcgogcHJvZHVjdCBBTENPUiBTTV9LQkQJCTB4OTQxMAlNaWNyb0Nvbm5lY3RvcnMvU3Ryb25n TWFuIEtleWJvYXJkCiBwcm9kdWN0IEFMQ09SIE5FQ19LQkRfSFVCCTB4OTQ3MglORUMgS2JkIEh1 YgorcHJvZHVjdCBBTENPUiBBVTYzOTAJMHg2MzkwCUFVNjM5MCBVU0ItSURFIGNvbnZlcnRlcgog CiAvKiBBbHRlYyBMYW5zaW5nIHByb2R1Y3RzICovCiBwcm9kdWN0IEFMVEVDIEFEQTcwCQkweDAw NzAJQURBNzAgU3BlYWtlcnMKQEAgLTExMDYsNiArMTEwNyw3IEBACiBwcm9kdWN0IENZUFJFU1Mg Rk1SQURJTwkJMHgxMDAyCUZNIFJhZGlvCiBwcm9kdWN0IENZUFJFU1MgVVNCUlMyMzIJMHg1NTAw CVVTQi1SUzIzMiBJbnRlcmZhY2UKIHByb2R1Y3QgQ1lQUkVTUyBTTElNX0hVQgkweDY1NjAJU2xp bSBIdWIKK3Byb2R1Y3QgQ1lQUkVTUyBYWDY4MzBYWAkweDY4MzAJUEFUQSBTdG9yYWdlIERldmlj ZQogCiAvKiBEYWlzeSBUZWNobm9sb2d5IHByb2R1Y3RzICovCiBwcm9kdWN0IERBSVNZIERNQwkJ MHg2OTAxCVVTQiBNdWx0aU1lZGlhIFJlYWRlcgo= --000e0cd47e94b443d30469b6d42d-- From gavin at FreeBSD.org Tue May 12 16:34:30 2009 From: gavin at FreeBSD.org (Gavin Atkinson) Date: Tue May 12 16:34:36 2009 Subject: USB panic on 8.0/arm Message-ID: <1242146062.5455.60.camel@buffy.york.ac.uk> Hi all, I have an NSLU2, which I am netbooting. I've been doing most of my work on it with USB removed from the kernel because the old stack would always panic. I've recently been trying the new USB stack, and have found that it still panics most of the time on boot. But not all the time. Firstly, please note that the version of Linux that was installed onto this hardware when I got it (not the factory installed OS, though) also seems to have problems most of the time with the USB controller, so I guess there is a chance that this is a hardware problem. That said, here are the symptoms: No USB in kernel, boots fine every time. New USB stack in the kernel: Just once, I've seen it probe and attach just fine. Here's proof: [snip] real memory = 33554432 (32 MB) avail memory = 25829376 (24 MB) ixp0: on motherboard ixp0: 37603 pcib0: on ixp0 pci0: on pcib0 ohci0: irq 28 at device 1.0 on pci0 ohci0: [ITHREAD] usbus0: on ohci0 ohci1: irq 27 at device 1.1 on pci0 ohci1: [ITHREAD] usbus1: on ohci1 ehci0: irq 26 at device 1.2 on pci0 ehci0: [ITHREAD] usbus2: EHCI version 1.0 usbus2: on ehci0 ixpclk0: on ixp0 [snip] Every other time I've booted with USB compiled in, I'll get a panic: RedBoot> go KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-CURRENT #5: Fri May 8 16:28:01 BST 2009 root@buffy.york.ac.uk:/usr/obj/arm/usr/src-test/sys/NSLU CPU: IXP425 266MHz rev 1 (ARMv5TE) (XScale core) DC enabled IC enabled WB enabled LABT branch prediction enabled 32KB/32B 32-way Instruction cache 32KB/32B 32-way write-back-locking Data cache real memory = 33554432 (32 MB) avail memory = 25829376 (24 MB) ixp0: on motherboard ixp0: 37603 pcib0: on ixp0 pci0: on pcib0 ohci0: irq 28 at device 1.0 on pci0 ohci0: [ITHREAD] Fatal kernel mode data abort: 'External Linefetch Abort (P)' trapframe: 0xc00fbafc FSR=00000406, FAR=Invalid, spsr=600000d3 r0 =c0ae4000, r1 =f8000000, r2 =00000034, r3 =c0ae407c r4 =00001270, r5 =00001278, r6 =00001274, r7 =00000003 r8 =00001140, r9 =c0ae5000, r10=00001140, r11=c00fbb88 r12=c0ae407c, ssp=c00fbb48, slr=c023c14c, pc =c023c148 [thread pid 0 tid 100000 ] Stopped at ohci_suspend+0x140c: ldr r15, [r3, #0x024] db> bt Tracing pid 0 tid 100000 td 0xc04fd110 db_trace_thread() at db_trace_thread+0xc scp=0xc041ee94 rlv=0xc0213778 (db_command_init+0x4c8) rsp=0xc00fb7f4 rfp=0xc00fb810 r10=0x00000001 r9=0xc0503bd8 r8=0xc04fa75c r7=0x00000062 r6=0x00000002 r5=0x00000010 r4=0xc04fd110 db_command_init() at db_command_init+0x3f0 scp=0xc02136a0 rlv=0xc0213008 (db_skip_to_eol+0x49c) rsp=0xc00fb814 rfp=0xc00fb8b8 r5=0x00000000 r4=0xc04cf0c0 db_skip_to_eol() at db_skip_to_eol+0x1d0 scp=0xc0212d3c rlv=0xc0213174 (db_command_loop+0x60) rsp=0xc00fb8bc rfp=0xc00fb8c8 r10=0x00000000 r8=0x00000406 r7=0xc00fbafc r6=0xc0503bd0 r5=0x600000d3 r4=0xc00fb8d4 db_command_loop() at db_command_loop+0xc scp=0xc0213120 rlv=0xc02153b0 (X_db_sym_numargs+0xf4) rsp=0xc00fb8cc rfp=0xc00fb9e8 X_db_sym_numargs() at X_db_sym_numargs+0x14 scp=0xc02152d0 rlv=0xc02cf8e8 (kdb_trap+0xa4) rsp=0xc00fb9ec rfp=0xc00fba14 r4=0x000000c0 kdb_trap() at kdb_trap+0xc scp=0xc02cf850 rlv=0xc042e844 (badaddr_read+0x280) rsp=0xc00fba18 rfp=0xc00fba34 r10=0xc00fbef8 r9=0x00000000 r8=0xc00fbafc r7=0x00000406 r6=0x00000000 r5=0x00000406 r4=0xc00fbafc badaddr_read() at badaddr_read+0xfc scp=0xc042e6c0 rlv=0xc042ec08 (prefetch_abort_handler+0x36c) rsp=0xc00fba38 rfp=0xc00fba58 r6=0xc04fd110 r5=0xc00fbef8 r4=0xc00fbafc prefetch_abort_handler() at prefetch_abort_handler+0x2a4 scp=0xc042eb40 rlv=0xc042edd4 (data_abort_handler+0x110) rsp=0xc00fba5c rfp=0xc00fbaf8 r7=0xc04fd110 r6=0x00001274 r5=0xffff1004 r4=0xc05189ec data_abort_handler() at data_abort_handler+0xc scp=0xc042ecd0 rlv=0xc04208dc (address_exception_entry+0x50) rsp=0xc00fbafc rfp=0xc00fbb88 r10=0x00001140 r9=0xc0ae5000 r8=0x00001140 r7=0x00000003 r6=0x00001274 r5=0xffff1004 r4=0x01070000 ohci_suspend() at ohci_suspend+0x1138 scp=0xc023be74 rlv=0xc023ccc0 (ohci_init+0x208) rsp=0xc00fbb8c rfp=0xc00fbbc4 r10=0x00001140 r9=0x00000006 r8=0x00001140 r7=0xc0ae5aa0 r6=0x00000000 r5=0xc0ae5000 r4=0x00000000 ohci_init() at ohci_init+0xc scp=0xc023cac4 rlv=0xc023e6ac (ohci_interrupt+0x1990) rsp=0xc00fbbc8 rfp=0xc00fbc00 r10=0xc0ae5aa0 r9=0x00000009 r8=0xc0a9ee80 r7=0xc0ae5000 r6=0x00001154 r5=0x00001150 r4=0x00001268 ohci_interrupt() at ohci_interrupt+0x1380 scp=0xc023e09c rlv=0xc02c9fb0 (device_attach+0x2c8) rsp=0xc00fbc04 rfp=0xc00fbc40 r10=0xc0a9ee80 r8=0xffffffff r7=0xc02c8640 r6=0xc0a9eecc r5=0x80000000 r4=0xc0ae2000 device_attach() at device_attach+0xc scp=0xc02c9cf4 rlv=0xc02cac00 (device_probe_and_attach+0x34) rsp=0xc00fbc44 rfp=0xc00fbc54 r10=0xc0ae2000 r8=0xffffffff r7=0xc02c8640 r6=0x00000000 r5=0x00000000 r4=0xc0a9ee80 device_probe_and_attach() at device_probe_and_attach+0xc scp=0xc02cabd8 rlv=0xc02cacf0 (bus_generic_attach+0x20) rsp=0xc00fbc58 rfp=0xc00fbc68 r4=0xc0a9ee80 bus_generic_attach() at bus_generic_attach+0xc scp=0xc02cacdc rlv=0xc022a190 (pci_add_children+0x240) rsp=0xc00fbc6c rfp=0xc00fbc8c r4=0xc0ae2000 pci_add_children() at pci_add_children+0x154 scp=0xc022a0a4 rlv=0xc02c9fb0 (device_attach+0x2c8) rsp=0xc00fbc90 rfp=0xc00fbccc r6=0xc0ae204c r5=0x80000000 r4=0xc0a9d380 device_attach() at device_attach+0xc scp=0xc02c9cf4 rlv=0xc02cac00 (device_probe_and_attach+0x34) rsp=0xc00fbcd0 rfp=0xc00fbce0 r10=0xc0a9d380 r8=0xffffffff r7=0xc02c8640 r6=0xc0a9d380 r5=0xc0ae4000 r4=0xc0ae2000 device_probe_and_attach() at device_probe_and_attach+0xc scp=0xc02cabd8 rlv=0xc02cacf0 (bus_generic_attach+0x20) rsp=0xc00fbce4 rfp=0xc00fbcf4 r4=0xc0ae2000 bus_generic_attach() at bus_generic_attach+0xc scp=0xc02cacdc rlv=0xc0433f50 (cpu_initclocks+0x1104) rsp=0xc00fbcf8 rfp=0xc00fbd40 r4=0xffffffff cpu_initclocks() at cpu_initclocks+0xe3c scp=0xc0433c88 rlv=0xc02c9fb0 (device_attach+0x2c8) rsp=0xc00fbd44 rfp=0xc00fbd80 r6=0xc0a9d3cc r5=0x80000000 r4=0xc0a9d500 device_attach() at device_attach+0xc scp=0xc02c9cf4 rlv=0xc02cac00 (device_probe_and_attach+0x34) rsp=0xc00fbd84 rfp=0xc00fbd94 r10=0xc0a9d500 r8=0xffffffff r7=0xc02c8640 r6=0xc0a9d500 r5=0xc0a9d480 r4=0xc0a9d380 device_probe_and_attach() at device_probe_and_attach+0xc scp=0xc02cabd8 rlv=0xc02cacf0 (bus_generic_attach+0x20) rsp=0xc00fbd98 rfp=0xc00fbda8 r4=0xc0a9d380 bus_generic_attach() at bus_generic_attach+0xc scp=0xc02cacdc rlv=0xc0432be0 (arm_unmask_irq+0x894) rsp=0xc00fbdac rfp=0xc00fbdec r4=0xc0a9d500 arm_unmask_irq() at arm_unmask_irq+0x534 scp=0xc0432880 rlv=0xc02c9fb0 (device_attach+0x2c8) rsp=0xc00fbdf0 rfp=0xc00fbe2c r6=0xc0a9d54c r5=0x80000000 r4=0xc0a9d680 device_attach() at device_attach+0xc scp=0xc02c9cf4 rlv=0xc02cac00 (device_probe_and_attach+0x34) rsp=0xc00fbe30 rfp=0xc00fbe40 r10=0xc0a9d680 r8=0xffffffff r7=0xc02c8640 r6=0xc0a9d6cc r5=0x80000000 r4=0xc0a9d500 device_probe_and_attach() at device_probe_and_attach+0xc scp=0xc02cabd8 rlv=0xc02cacf0 (bus_generic_attach+0x20) rsp=0xc00fbe44 rfp=0xc00fbe54 r4=0xc0a9d500 bus_generic_attach() at bus_generic_attach+0xc scp=0xc02cacdc rlv=0xc0423594 (minidumpsys+0xb18) rsp=0xc00fbe58 rfp=0xc00fbe68 r4=0xc0a9d680 minidumpsys() at minidumpsys+0xb08 scp=0xc0423584 rlv=0xc02c9fb0 (device_attach+0x2c8) rsp=0xc00fbe6c rfp=0xc00fbea8 r4=0xc048f730 device_attach() at device_attach+0xc scp=0xc02c9cf4 rlv=0xc02cac00 (device_probe_and_attach+0x34) rsp=0xc00fbeac rfp=0xc00fbebc r10=0x0000000a r8=0x00000000 r7=0x00200198 r6=0x00000006 r5=0x002001a4 r4=0xc0a9d680 device_probe_and_attach() at device_probe_and_attach+0xc scp=0xc02cabd8 rlv=0xc02cac2c (root_bus_configure+0x28) rsp=0xc00fbec0 rfp=0xc00fbed0 r4=0xc0a9d680 root_bus_configure() at root_bus_configure+0xc scp=0xc02cac10 rlv=0xc0419e48 (xdr_sizeof+0x1d0) rsp=0xc00fbed4 rfp=0xc00fbee0 r4=0xc0491d3c xdr_sizeof() at xdr_sizeof+0x1cc scp=0xc0419e44 rlv=0xc0274d28 (mi_startup+0xdc) rsp=0xc00fbee4 rfp=0xc00fbef4 mi_startup() at mi_startup+0xc scp=0xc0274c58 rlv=0xc020023c (btext+0x13c) rsp=0xc00fbef8 rfp=0x00000000 r4=0x0020027c db> Any suggestions as to what I can test or how I can get any useful information? Thanks, Gavin From hselasky at c2i.net Tue May 12 16:52:47 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue May 12 16:52:55 2009 Subject: USB panic on 8.0/arm In-Reply-To: <1242146062.5455.60.camel@buffy.york.ac.uk> References: <1242146062.5455.60.camel@buffy.york.ac.uk> Message-ID: <200905121855.19123.hselasky@c2i.net> On Tuesday 12 May 2009, Gavin Atkinson wrote: > Hi all, > > I have an NSLU2, which I am netbooting. I've been doing most of my work > on it with USB removed from the kernel because the old stack would > always panic. I've recently been trying the new USB stack, and have > found that it still panics most of the time on boot. But not all the > time. > > Firstly, please note that the version of Linux that was installed onto > this hardware when I got it (not the factory installed OS, though) also > seems to have problems most of the time with the USB controller, so I > guess there is a chance that this is a hardware problem. > > That said, here are the symptoms: No USB in kernel, boots fine every > time. > > New USB stack in the kernel: Just once, I've seen it probe and attach > just fine. Here's proof: > > [snip] > real memory = 33554432 (32 MB) > avail memory = 25829376 (24 MB) > ixp0: on motherboard > ixp0: 37603 > pcib0: on ixp0 > pci0: on pcib0 > ohci0: irq 28 at device 1.0 on pci0 > ohci0: [ITHREAD] > usbus0: on ohci0 > ohci1: irq 27 at device 1.1 on pci0 > ohci1: [ITHREAD] > usbus1: on ohci1 > ehci0: irq 26 at device 1.2 on pci0 > ehci0: [ITHREAD] > usbus2: EHCI version 1.0 > usbus2: on ehci0 > ixpclk0: on ixp0 > [snip] > > Every other time I've booted with USB compiled in, I'll get a panic: > > RedBoot> go > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2009 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 8.0-CURRENT #5: Fri May 8 16:28:01 BST 2009 > root@buffy.york.ac.uk:/usr/obj/arm/usr/src-test/sys/NSLU > CPU: IXP425 266MHz rev 1 (ARMv5TE) (XScale core) > DC enabled IC enabled WB enabled LABT branch prediction enabled > 32KB/32B 32-way Instruction cache > 32KB/32B 32-way write-back-locking Data cache > real memory = 33554432 (32 MB) > avail memory = 25829376 (24 MB) > ixp0: on motherboard > ixp0: 37603 > pcib0: on ixp0 > pci0: on pcib0 > ohci0: irq 28 at device 1.0 on pci0 > ohci0: [ITHREAD] > Fatal kernel mode data abort: 'External Linefetch Abort (P)' > trapframe: 0xc00fbafc > FSR=00000406, FAR=Invalid, spsr=600000d3 > r0 =c0ae4000, r1 =f8000000, r2 =00000034, r3 =c0ae407c > r4 =00001270, r5 =00001278, r6 =00001274, r7 =00000003 > r8 =00001140, r9 =c0ae5000, r10=00001140, r11=c00fbb88 > r12=c0ae407c, ssp=c00fbb48, slr=c023c14c, pc =c023c148 > > [thread pid 0 tid 100000 ] > Stopped at ohci_suspend+0x140c: ldr r15, [r3, #0x024] > db> bt > Tracing pid 0 tid 100000 td 0xc04fd110 > db_trace_thread() at db_trace_thread+0xc > scp=0xc041ee94 rlv=0xc0213778 (db_command_init+0x4c8) > rsp=0xc00fb7f4 rfp=0xc00fb810 > r10=0x00000001 r9=0xc0503bd8 > r8=0xc04fa75c r7=0x00000062 r6=0x00000002 r5=0x00000010 > r4=0xc04fd110 > db_command_init() at db_command_init+0x3f0 > scp=0xc02136a0 rlv=0xc0213008 (db_skip_to_eol+0x49c) > rsp=0xc00fb814 rfp=0xc00fb8b8 > r5=0x00000000 r4=0xc04cf0c0 > db_skip_to_eol() at db_skip_to_eol+0x1d0 > scp=0xc0212d3c rlv=0xc0213174 (db_command_loop+0x60) > rsp=0xc00fb8bc rfp=0xc00fb8c8 > r10=0x00000000 r8=0x00000406 > r7=0xc00fbafc r6=0xc0503bd0 r5=0x600000d3 r4=0xc00fb8d4 > db_command_loop() at db_command_loop+0xc > scp=0xc0213120 rlv=0xc02153b0 (X_db_sym_numargs+0xf4) > rsp=0xc00fb8cc rfp=0xc00fb9e8 > X_db_sym_numargs() at X_db_sym_numargs+0x14 > scp=0xc02152d0 rlv=0xc02cf8e8 (kdb_trap+0xa4) > rsp=0xc00fb9ec rfp=0xc00fba14 > r4=0x000000c0 > kdb_trap() at kdb_trap+0xc > scp=0xc02cf850 rlv=0xc042e844 (badaddr_read+0x280) > rsp=0xc00fba18 rfp=0xc00fba34 > r10=0xc00fbef8 r9=0x00000000 > r8=0xc00fbafc r7=0x00000406 r6=0x00000000 r5=0x00000406 > r4=0xc00fbafc > badaddr_read() at badaddr_read+0xfc > scp=0xc042e6c0 rlv=0xc042ec08 (prefetch_abort_handler+0x36c) > rsp=0xc00fba38 rfp=0xc00fba58 > r6=0xc04fd110 r5=0xc00fbef8 > r4=0xc00fbafc > prefetch_abort_handler() at prefetch_abort_handler+0x2a4 > scp=0xc042eb40 rlv=0xc042edd4 (data_abort_handler+0x110) > rsp=0xc00fba5c rfp=0xc00fbaf8 > r7=0xc04fd110 r6=0x00001274 > r5=0xffff1004 r4=0xc05189ec > data_abort_handler() at data_abort_handler+0xc > scp=0xc042ecd0 rlv=0xc04208dc (address_exception_entry+0x50) > rsp=0xc00fbafc rfp=0xc00fbb88 > r10=0x00001140 r9=0xc0ae5000 > r8=0x00001140 r7=0x00000003 r6=0x00001274 r5=0xffff1004 > r4=0x01070000 > ohci_suspend() at ohci_suspend+0x1138 > scp=0xc023be74 rlv=0xc023ccc0 (ohci_init+0x208) > rsp=0xc00fbb8c rfp=0xc00fbbc4 > r10=0x00001140 r9=0x00000006 > r8=0x00001140 r7=0xc0ae5aa0 r6=0x00000000 r5=0xc0ae5000 > r4=0x00000000 > ohci_init() at ohci_init+0xc > scp=0xc023cac4 rlv=0xc023e6ac (ohci_interrupt+0x1990) > rsp=0xc00fbbc8 rfp=0xc00fbc00 > r10=0xc0ae5aa0 r9=0x00000009 > r8=0xc0a9ee80 r7=0xc0ae5000 r6=0x00001154 r5=0x00001150 > r4=0x00001268 > ohci_interrupt() at ohci_interrupt+0x1380 > scp=0xc023e09c rlv=0xc02c9fb0 (device_attach+0x2c8) > rsp=0xc00fbc04 rfp=0xc00fbc40 > r10=0xc0a9ee80 r8=0xffffffff > r7=0xc02c8640 r6=0xc0a9eecc r5=0x80000000 r4=0xc0ae2000 > device_attach() at device_attach+0xc > scp=0xc02c9cf4 rlv=0xc02cac00 (device_probe_and_attach+0x34) > rsp=0xc00fbc44 rfp=0xc00fbc54 > r10=0xc0ae2000 r8=0xffffffff > r7=0xc02c8640 r6=0x00000000 r5=0x00000000 r4=0xc0a9ee80 > device_probe_and_attach() at device_probe_and_attach+0xc > scp=0xc02cabd8 rlv=0xc02cacf0 (bus_generic_attach+0x20) > rsp=0xc00fbc58 rfp=0xc00fbc68 > r4=0xc0a9ee80 > bus_generic_attach() at bus_generic_attach+0xc > scp=0xc02cacdc rlv=0xc022a190 (pci_add_children+0x240) > rsp=0xc00fbc6c rfp=0xc00fbc8c > r4=0xc0ae2000 > pci_add_children() at pci_add_children+0x154 > scp=0xc022a0a4 rlv=0xc02c9fb0 (device_attach+0x2c8) > rsp=0xc00fbc90 rfp=0xc00fbccc > r6=0xc0ae204c r5=0x80000000 > r4=0xc0a9d380 > device_attach() at device_attach+0xc > scp=0xc02c9cf4 rlv=0xc02cac00 (device_probe_and_attach+0x34) > rsp=0xc00fbcd0 rfp=0xc00fbce0 > r10=0xc0a9d380 r8=0xffffffff > r7=0xc02c8640 r6=0xc0a9d380 r5=0xc0ae4000 r4=0xc0ae2000 > device_probe_and_attach() at device_probe_and_attach+0xc > scp=0xc02cabd8 rlv=0xc02cacf0 (bus_generic_attach+0x20) > rsp=0xc00fbce4 rfp=0xc00fbcf4 > r4=0xc0ae2000 > bus_generic_attach() at bus_generic_attach+0xc > scp=0xc02cacdc rlv=0xc0433f50 (cpu_initclocks+0x1104) > rsp=0xc00fbcf8 rfp=0xc00fbd40 > r4=0xffffffff > cpu_initclocks() at cpu_initclocks+0xe3c > scp=0xc0433c88 rlv=0xc02c9fb0 (device_attach+0x2c8) > rsp=0xc00fbd44 rfp=0xc00fbd80 > r6=0xc0a9d3cc r5=0x80000000 > r4=0xc0a9d500 > device_attach() at device_attach+0xc > scp=0xc02c9cf4 rlv=0xc02cac00 (device_probe_and_attach+0x34) > rsp=0xc00fbd84 rfp=0xc00fbd94 > r10=0xc0a9d500 r8=0xffffffff > r7=0xc02c8640 r6=0xc0a9d500 r5=0xc0a9d480 r4=0xc0a9d380 > device_probe_and_attach() at device_probe_and_attach+0xc > scp=0xc02cabd8 rlv=0xc02cacf0 (bus_generic_attach+0x20) > rsp=0xc00fbd98 rfp=0xc00fbda8 > r4=0xc0a9d380 > bus_generic_attach() at bus_generic_attach+0xc > scp=0xc02cacdc rlv=0xc0432be0 (arm_unmask_irq+0x894) > rsp=0xc00fbdac rfp=0xc00fbdec > r4=0xc0a9d500 > arm_unmask_irq() at arm_unmask_irq+0x534 > scp=0xc0432880 rlv=0xc02c9fb0 (device_attach+0x2c8) > rsp=0xc00fbdf0 rfp=0xc00fbe2c > r6=0xc0a9d54c r5=0x80000000 > r4=0xc0a9d680 > device_attach() at device_attach+0xc > scp=0xc02c9cf4 rlv=0xc02cac00 (device_probe_and_attach+0x34) > rsp=0xc00fbe30 rfp=0xc00fbe40 > r10=0xc0a9d680 r8=0xffffffff > r7=0xc02c8640 r6=0xc0a9d6cc r5=0x80000000 r4=0xc0a9d500 > device_probe_and_attach() at device_probe_and_attach+0xc > scp=0xc02cabd8 rlv=0xc02cacf0 (bus_generic_attach+0x20) > rsp=0xc00fbe44 rfp=0xc00fbe54 > r4=0xc0a9d500 > bus_generic_attach() at bus_generic_attach+0xc > scp=0xc02cacdc rlv=0xc0423594 (minidumpsys+0xb18) > rsp=0xc00fbe58 rfp=0xc00fbe68 > r4=0xc0a9d680 > minidumpsys() at minidumpsys+0xb08 > scp=0xc0423584 rlv=0xc02c9fb0 (device_attach+0x2c8) > rsp=0xc00fbe6c rfp=0xc00fbea8 > r4=0xc048f730 > device_attach() at device_attach+0xc > scp=0xc02c9cf4 rlv=0xc02cac00 (device_probe_and_attach+0x34) > rsp=0xc00fbeac rfp=0xc00fbebc > r10=0x0000000a r8=0x00000000 > r7=0x00200198 r6=0x00000006 r5=0x002001a4 r4=0xc0a9d680 > device_probe_and_attach() at device_probe_and_attach+0xc > scp=0xc02cabd8 rlv=0xc02cac2c (root_bus_configure+0x28) > rsp=0xc00fbec0 rfp=0xc00fbed0 > r4=0xc0a9d680 > root_bus_configure() at root_bus_configure+0xc > scp=0xc02cac10 rlv=0xc0419e48 (xdr_sizeof+0x1d0) > rsp=0xc00fbed4 rfp=0xc00fbee0 > r4=0xc0491d3c > xdr_sizeof() at xdr_sizeof+0x1cc > scp=0xc0419e44 rlv=0xc0274d28 (mi_startup+0xdc) > rsp=0xc00fbee4 rfp=0xc00fbef4 > mi_startup() at mi_startup+0xc > scp=0xc0274c58 rlv=0xc020023c (btext+0x13c) > rsp=0xc00fbef8 rfp=0x00000000 > r4=0x0020027c > db> > > Any suggestions as to what I can test or how I can get any useful > information? > In : src/sys/dev/usb/controller/ohci_pci.c Can you try to move the pci busmaster enable call further down in the attach routine, until the I/O resources are setup, then add before enable busmaster: #define OBARR(sc) bus_space_barrier((sc)->sc_io_tag, (sc)->sc_io_hdl, 0, (sc)->sc_io_size, \ BUS_SPACE_BARRIER_READ|BUS_SPACE_BARRIER_WRITE) #define OWRITE1(sc, r, x) \ do { OBARR(sc); bus_space_write_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (r), (x)); } while (0) OWRITE4(sc, OHCI_COMMAND_STATUS, OHCI_HCR); /* Reset HC */ I'm not sure if it helps. It's just a guess. --HPS From gavin at freebsd.org Tue May 12 20:34:57 2009 From: gavin at freebsd.org (Gavin Atkinson) Date: Tue May 12 20:35:04 2009 Subject: USB panic on 8.0/arm In-Reply-To: <200905121855.19123.hselasky@c2i.net> References: <1242146062.5455.60.camel@buffy.york.ac.uk> <200905121855.19123.hselasky@c2i.net> Message-ID: <20090512212821.G15689@ury.york.ac.uk> On Tue, 12 May 2009, Hans Petter Selasky wrote: > On Tuesday 12 May 2009, Gavin Atkinson wrote: >> Hi all, >> >> I have an NSLU2, which I am netbooting. I've been doing most of my work >> on it with USB removed from the kernel because the old stack would >> always panic. I've recently been trying the new USB stack, and have >> found that it still panics most of the time on boot. But not all the >> time. > In : > > src/sys/dev/usb/controller/ohci_pci.c > > Can you try to move the pci busmaster enable call further down in the attach > routine, until the I/O resources are setup, then add before enable busmaster: > > #define OBARR(sc) bus_space_barrier((sc)->sc_io_tag, (sc)->sc_io_hdl, 0, > (sc)->sc_io_size, \ > BUS_SPACE_BARRIER_READ|BUS_SPACE_BARRIER_WRITE) > #define OWRITE1(sc, r, x) \ > do { OBARR(sc); bus_space_write_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (r), > (x)); } while (0) > > OWRITE4(sc, OHCI_COMMAND_STATUS, OHCI_HCR); /* Reset HC */ > > I'm not sure if it helps. It's just a guess. I'm assuming you meant to use the "OWRITE4" macro rather than OWRITE1 as that's what is used when accessing that register everywhere else. Assuming that is the case, I'm afraid the patch (below) makes no difference. Any other ideas? Thanks, Gavin Index: src-head/sys/dev/usb/controller/ohci_pci.c =================================================================== RCS file: /home/ncvs/src/sys/dev/usb/controller/ohci_pci.c,v retrieving revision 1.5 diff -u -r1.5 ohci_pci.c --- src-head/sys/dev/usb/controller/ohci_pci.c 6 Apr 2009 00:32:54 -0000 1.5 +++ src-head/sys/dev/usb/controller/ohci_pci.c 12 May 2009 20:24:00 -0000 @@ -205,7 +205,7 @@ } sc->sc_dev = self; - pci_enable_busmaster(self); +/* pci_enable_busmaster(self); */ /* * Some Sun PCIO-2 USB controllers have their intpin register @@ -239,6 +239,17 @@ } device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); + +#define OBARR(sc) bus_space_barrier((sc)->sc_io_tag, (sc)->sc_io_hdl, 0, (sc)->sc_io_size, \ + BUS_SPACE_BARRIER_READ|BUS_SPACE_BARRIER_WRITE) +#define OWRITE4(sc, r, x) \ + do { OBARR(sc); bus_space_write_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (r), (x)); } while (0) + + OWRITE4(sc, OHCI_COMMAND_STATUS, OHCI_HCR); /* Reset HC */ + + pci_enable_busmaster(self); + + /* * ohci_pci_match will never return NULL if ohci_pci_probe * succeeded From edwin at FreeBSD.org Tue May 12 21:51:39 2009 From: edwin at FreeBSD.org (edwin@FreeBSD.org) Date: Tue May 12 21:51:46 2009 Subject: usb/118686: [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei E220 G3 Modem Message-ID: <200905122151.n4CLpcIH059454@freefall.freebsd.org> Synopsis: [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei E220 G3 Modem State-Changed-From-To: open->closed State-Changed-By: edwin State-Changed-When: Tue May 12 21:51:02 UTC 2009 State-Changed-Why: Huawei E220 and E169 now work with u3g in 7.2 http://www.freebsd.org/cgi/query-pr.cgi?pr=118686 From spawk at acm.poly.edu Wed May 13 20:10:04 2009 From: spawk at acm.poly.edu (Boris Kochergin) Date: Wed May 13 20:10:11 2009 Subject: usb/130230: Samsung Electronics YP-U3 does not attach in 7.1-RELEASE Message-ID: <200905132010.n4DKA4Md095688@freefall.freebsd.org> The following reply was made to PR usb/130230; it has been noted by GNATS. From: Boris Kochergin To: Tino Engel Cc: bug-followup@FreeBSD.org Subject: Re: usb/130230: Samsung Electronics YP-U3 does not attach in 7.1-RELEASE Date: Wed, 13 May 2009 16:01:19 -0400 The patches, applied to 7.2-RELEASE sources by hand, allow my YP-U3 to work again. Thanks! From dtrobert at pacbell.net Thu May 14 04:40:04 2009 From: dtrobert at pacbell.net (David Roberts) Date: Thu May 14 04:40:11 2009 Subject: usb/62123: [usb] LaCie 160GB USB drive umass: BBB reset failed, TIMEOUT Message-ID: <200905140440.n4E4e4pQ083167@freefall.freebsd.org> The following reply was made to PR usb/62123; it has been noted by GNATS. From: "David Roberts" To: , Cc: Subject: Re: usb/62123: [usb] LaCie 160GB USB drive umass: BBB reset failed, TIMEOUT Date: Wed, 13 May 2009 21:22:53 -0700 This is a multipart message in MIME format. ------=_NextPart_000_0001_01C9D410.FA96C580 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I am running FreeBSD 6.3 and experiencing the same symptoms as this bug. Have a Lacie USB2 drive connected into a USB2 5-port PCI card. Mounting using this fstab entry /dev/da0s1 /Lilun ntfs-3g rw 0 0 and get May 13 21:07:10 crux kernel: umass0: BBB bulk-in clear stall failed, TIMEOUT May 13 21:12:15 crux kernel: umass0: BBB bulk-out clear stall failed, TIMEOUT May 13 21:12:15 crux kernel: (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 May 13 21:13:20 crux kernel: umass0: BBB reset failed, TIMEOUT May 13 21:14:25 crux kernel: umass0: BBB bulk-in clear stall failed, TIMEOUT May 13 21:15:30 crux kernel: umass0: BBB bulk-out clear stall failed, TIMEOUT May 13 21:16:35 crux kernel: umass0: BBB reset failed, TIMEOUT May 13 21:17:40 crux kernel: umass0: BBB bulk-in clear stall failed, TIMEOUT May 13 21:18:50 crux kernel: umass0: BBB bulk-out clear stall failed, TIMEOUT May 13 21:20:00 crux kernel: umass0: BBB reset failed, TIMEOUT May 13 21:21:05 crux kernel: umass0: BBB bulk-in clear stall failed, TIMEOUT ------=_NextPart_000_0001_01C9D410.FA96C580 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 I am running FreeBSD 6.3 and experiencing the = same symptoms as this bug.  Have a Lacie USB2 drive connected into a USB2 5-port = PCI card.  Mounting using

 

this fstab entry

 

/dev/da0s1       &nb= sp;      = /Lilun          ntfs-3g rw            = ;  0       0

 

and get

 

 

 

May 13 21:07:10 crux kernel: umass0: BBB bulk-in = clear stall failed, TIMEOUT

May 13 21:12:15 crux kernel: umass0: BBB bulk-out = clear stall failed, TIMEOUT

May 13 21:12:15 crux kernel: = (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x4, scsi status =3D=3D = 0x0

May 13 21:13:20 crux kernel: umass0: BBB reset = failed, TIMEOUT

May 13 21:14:25 crux kernel: umass0: BBB bulk-in = clear stall failed, TIMEOUT

May 13 21:15:30 crux kernel: umass0: BBB bulk-out = clear stall failed, TIMEOUT

May 13 21:16:35 crux kernel: umass0: BBB reset = failed, TIMEOUT

May 13 21:17:40 crux kernel: umass0: BBB bulk-in = clear stall failed, TIMEOUT

May 13 21:18:50 crux kernel: umass0: BBB bulk-out = clear stall failed, TIMEOUT

May 13 21:20:00 crux kernel: umass0: BBB reset = failed, TIMEOUT

May 13 21:21:05 crux kernel: umass0: BBB bulk-in = clear stall failed, TIMEOUT

------=_NextPart_000_0001_01C9D410.FA96C580-- From info at rickvanderzwet.nl Thu May 14 10:30:04 2009 From: info at rickvanderzwet.nl (Rick van der Zwet) Date: Thu May 14 10:30:10 2009 Subject: usb/132785: [usb] [patch] Gemtech remote powersocket is classed as a HID device rather than ugen Message-ID: <200905141030.n4EAU3JJ091032@freefall.freebsd.org> The following reply was made to PR usb/132785; it has been noted by GNATS. From: Rick van der Zwet To: bug-followup@FreeBSD.org, dirkx@webweaving.org Cc: Subject: Re: usb/132785: [usb] [patch] Gemtech remote powersocket is classed as a HID device rather than ugen Date: Thu, 14 May 2009 12:19:43 +0200 Patch is also working fine against RELENG_7_2 with the device Genbird SIS-PM. The SIS-PMS-LAN is incorrectly quoted as that got nothing to do with the patch as it has an RJ45 Ethernet connection, instead of a USB connection. /Rick -- http://rickvanderzwet.nl From daimler3 at googlemail.com Fri May 15 01:14:17 2009 From: daimler3 at googlemail.com (Deniz) Date: Fri May 15 01:14:23 2009 Subject: [problem]: unexpected endpoint with Sony PS3 Controller In-Reply-To: <791271c80905141755p4930ba4ycd1819343ead6b53@mail.gmail.com> References: <791271c80905141755p4930ba4ycd1819343ead6b53@mail.gmail.com> Message-ID: <791271c80905141814n5eb31d54je47531f1d7de83e2@mail.gmail.com> 2009/5/15 Deniz > .... > I forgot to mention that I run FreeBSD 7.2 Stable (if anyone cares ;)) Thanks, Deniz Sarikaya From daimler3 at googlemail.com Fri May 15 01:27:26 2009 From: daimler3 at googlemail.com (Deniz) Date: Fri May 15 01:27:32 2009 Subject: [problem]: unexpected endpoint with Sony PS3 Controller Message-ID: <791271c80905141755p4930ba4ycd1819343ead6b53@mail.gmail.com> Hey guys, my problem is that I cannot connect the Playstation 3 Controller (I'm using the old one ("Sixaxis")) to my PC running FreeBSD 7.2 Stable and then use it. This is the output of dmesg: uhid0: on uhub0 uhid0: unexpected endpoint device_attach: uhid0 attach returned 6 Sony released a Linux Kernel Patch which adds a quirk for the Controller back in January 2007. (Linux now has even BT support, but I think that this has lower priority since BT support depends on USB support), I would add USB support for it, but neither do I know if the patch has something to do with the 'unexpected endpoint' error nor do I have the knowledge to accomplish this 'mission' :). That means I do know C, but I don't know where to add the few lines (actually about 25 lines) from the patch. So, it would be nice if someone would help me to do that. :) btw: Why is there such a bad joystick support? The BSD joystick driver only supports 2 buttons and 2 axis. Thanks, Deniz Sarikaya From thierry.herbelot at free.fr Fri May 15 17:13:12 2009 From: thierry.herbelot at free.fr (Thierry Herbelot) Date: Fri May 15 17:13:19 2009 Subject: Asynchronous bulk transfers in usb2 ? Message-ID: <200905151857.21361.thierry.herbelot@free.fr> Hello, This is a follow-on for : http://www.mail-archive.com/freebsd-usb%40freebsd.org/msg04000.html, where a code snippet was posted to use the new USB stack. I've just recompiled my old experiment (which used to work at the time), and it does not seem to work with today's current (I made the cosmetic changes due to the change of name for the libusb, so the compile at least is OK). the issue is that the following loop (copied from the previous archived post) is never executed : -------------------- while ( ( pdev = libusb20_be_device_foreach ( pbe, pdev ) ) ) { ddesc = libusb20_dev_get_device_desc ( pdev ); printf("vendor %x prod %x\n", ddesc->idVendor, ddesc->idProduct); /* stop with the first found device */ if ( ddesc->idVendor == MY_VENDOR_ID ) { libusb20_be_dequeue_device ( pbe, pdev ); break; } } -------------------- pdev is always NULL at the end of the loop (even though a USB device has been plugged, has been detected by the USB stack and is correctly seen, as per usbconfig, with the expected idVendor). I have not followed the recent developments on the USB stack : maybe some change is needed in my code ? Cheers TfH From hselasky at c2i.net Fri May 15 19:04:16 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Fri May 15 19:04:23 2009 Subject: Asynchronous bulk transfers in usb2 ? In-Reply-To: <200905151857.21361.thierry.herbelot@free.fr> References: <200905151857.21361.thierry.herbelot@free.fr> Message-ID: <200905152106.48104.hselasky@c2i.net> On Friday 15 May 2009, Thierry Herbelot wrote: > Hello, > > This is a follow-on for : > http://www.mail-archive.com/freebsd-usb%40freebsd.org/msg04000.html, > where a code snippet was posted to use the new USB stack. > > I've just recompiled my old experiment (which used to work at the time), > and it does not seem to work with today's current (I made the cosmetic > changes due to the change of name for the libusb, so the compile at least > is OK). > > the issue is that the following loop (copied from the previous archived > post) is never executed : > -------------------- > while ( ( pdev = libusb20_be_device_foreach ( pbe, pdev ) ) ) > { > ddesc = libusb20_dev_get_device_desc ( pdev ); > printf("vendor %x prod %x\n", ddesc->idVendor, ddesc->idProduct); > > /* stop with the first found device */ > if ( ddesc->idVendor == MY_VENDOR_ID ) > { > libusb20_be_dequeue_device ( pbe, pdev ); > break; > } > } > -------------------- > > pdev is always NULL at the end of the loop (even though a USB device has > been plugged, has been detected by the USB stack and is correctly seen, as > per usbconfig, with the expected idVendor). > > I have not followed the recent developments on the USB stack : maybe some > change is needed in my code ? Check permissions for devices under /dev/usb --HPS From thierry.herbelot at free.fr Fri May 15 19:19:25 2009 From: thierry.herbelot at free.fr (Thierry Herbelot) Date: Fri May 15 19:19:32 2009 Subject: Asynchronous bulk transfers in usb2 ? In-Reply-To: <200905152106.48104.hselasky@c2i.net> References: <200905151857.21361.thierry.herbelot@free.fr> <200905152106.48104.hselasky@c2i.net> Message-ID: <200905152119.07569.thierry.herbelot@free.fr> Le Friday 15 May 2009, Hans Petter Selasky a ?crit : > On Friday 15 May 2009, Thierry Herbelot wrote: > > Hello, > > > > This is a follow-on for : > > http://www.mail-archive.com/freebsd-usb%40freebsd.org/msg04000.html, > > where a code snippet was posted to use the new USB stack. > > > > I've just recompiled my old experiment (which used to work at the time), > > and it does not seem to work with today's current (I made the cosmetic > > changes due to the change of name for the libusb, so the compile at least > > is OK). > > > > the issue is that the following loop (copied from the previous archived > > post) is never executed : > > -------------------- > > while ( ( pdev = libusb20_be_device_foreach ( pbe, pdev ) ) ) > > { > > ddesc = libusb20_dev_get_device_desc ( pdev ); > > printf("vendor %x prod %x\n", ddesc->idVendor, ddesc->idProduct); > > > > /* stop with the first found device */ > > if ( ddesc->idVendor == MY_VENDOR_ID ) > > { > > libusb20_be_dequeue_device ( pbe, pdev ); > > break; > > } > > } > > -------------------- > > > > pdev is always NULL at the end of the loop (even though a USB device has > > been plugged, has been detected by the USB stack and is correctly seen, > > as per usbconfig, with the expected idVendor). > > > > I have not followed the recent developments on the USB stack : maybe some > > change is needed in my code ? > > Check permissions for devices under /dev/usb *blush* (this is indeed the reason) but .... this used to work ;-) (maybe it did no longer work after the device nodes were added for the USB devices) what is the recommended way to change the permissions for the usb device nodes ? (with devd ?) in the meantime, I'll try to run from root ... Thanks TfH > > --HPS From imp at bsdimp.com Fri May 15 19:31:12 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Fri May 15 19:31:18 2009 Subject: Asynchronous bulk transfers in usb2 ? In-Reply-To: <200905152119.07569.thierry.herbelot@free.fr> References: <200905151857.21361.thierry.herbelot@free.fr> <200905152106.48104.hselasky@c2i.net> <200905152119.07569.thierry.herbelot@free.fr> Message-ID: <20090515.133035.452788619.imp@bsdimp.com> In message: <200905152119.07569.thierry.herbelot@free.fr> Thierry Herbelot writes: : Le Friday 15 May 2009, Hans Petter Selasky a ?crit : : > On Friday 15 May 2009, Thierry Herbelot wrote: : > > Hello, : > > : > > This is a follow-on for : : > > http://www.mail-archive.com/freebsd-usb%40freebsd.org/msg04000.html, : > > where a code snippet was posted to use the new USB stack. : > > : > > I've just recompiled my old experiment (which used to work at the time), : > > and it does not seem to work with today's current (I made the cosmetic : > > changes due to the change of name for the libusb, so the compile at least : > > is OK). : > > : > > the issue is that the following loop (copied from the previous archived : > > post) is never executed : : > > -------------------- : > > while ( ( pdev = libusb20_be_device_foreach ( pbe, pdev ) ) ) : > > { : > > ddesc = libusb20_dev_get_device_desc ( pdev ); : > > printf("vendor %x prod %x\n", ddesc->idVendor, ddesc->idProduct); : > > : > > /* stop with the first found device */ : > > if ( ddesc->idVendor == MY_VENDOR_ID ) : > > { : > > libusb20_be_dequeue_device ( pbe, pdev ); : > > break; : > > } : > > } : > > -------------------- : > > : > > pdev is always NULL at the end of the loop (even though a USB device has : > > been plugged, has been detected by the USB stack and is correctly seen, : > > as per usbconfig, with the expected idVendor). : > > : > > I have not followed the recent developments on the USB stack : maybe some : > > change is needed in my code ? : > : > Check permissions for devices under /dev/usb : : *blush* (this is indeed the reason) : : but .... this used to work ;-) (maybe it did no longer work after the device : nodes were added for the USB devices) : : what is the recommended way to change the permissions for the usb device : nodes ? (with devd ?) : : in the meantime, I'll try to run from root ... I use devfs.rules: [localrules=10] add path 'usb/*' mode 0660 and put my trusted to use usb users into group operator. Warner From thierry.herbelot at free.fr Fri May 15 19:45:37 2009 From: thierry.herbelot at free.fr (Thierry Herbelot) Date: Fri May 15 19:45:42 2009 Subject: Asynchronous bulk transfers in usb2 ? In-Reply-To: <20090515.133035.452788619.imp@bsdimp.com> References: <200905151857.21361.thierry.herbelot@free.fr> <200905152119.07569.thierry.herbelot@free.fr> <20090515.133035.452788619.imp@bsdimp.com> Message-ID: <200905152145.09417.thierry.herbelot@free.fr> Le Friday 15 May 2009, M. Warner Losh a ?crit : > In message: <200905152119.07569.thierry.herbelot@free.fr> > [SNIP] > : > > > : > > I have not followed the recent developments on the USB stack : maybe > : > > some change is needed in my code ? > : > > : > Check permissions for devices under /dev/usb > : > : *blush* (this is indeed the reason) > : > : but .... this used to work ;-) (maybe it did no longer work after the > : device nodes were added for the USB devices) > : > : what is the recommended way to change the permissions for the usb device > : nodes ? (with devd ?) > : > : in the meantime, I'll try to run from root ... > > I use devfs.rules: > > [localrules=10] > add path 'usb/*' mode 0660 > > and put my trusted to use usb users into group operator. OK : fine I'll do it this way then, I'll investigate why I can't get my progs to run as exepected : too much bit rot and half of my existing test benches are failing .... this must be the price to pay when using current TfH > > Warner From christoph at rosenkeller.org Fri May 15 20:13:19 2009 From: christoph at rosenkeller.org (Christoph Langguth) Date: Fri May 15 20:13:39 2009 Subject: How to add support for Macbook Pro (USB) keyboard? Message-ID: <4A0DC89C.6010708@rosenkeller.org> Hi all, first off, I have just subscribed to this list, as it seemed the most logical place -- but in case this is the wrong place to ask, please accept my apologies and point me to the right place. Second, I'm sorry for the long mail, but I'm only getting started with this -- not much experience in hacking the kernel yet, and in how it really is organized internally. So I'd really appreciate any help here -- I'd also be willing to contribute, if I can. The problem is the following: I'm trying to get FreeBSD to run on a Macbook Pro (MBP), purchased some time last year. As soon as the FreeBSD kernel is loaded, the keyboard is malfunctioning. (What I mean by this is: at the loader prompt, it still works ok; when it's handled by ukbd, it acts as if the Ctrl key was constantly stuck). So far, I have found one reference to this problem: http://unix.derkeiler.com/Mailing-Lists/FreeBSD/stable/2009-02/msg00031.html The keyboard in question identifies itself like this: marvin# usbconfig -u 5 -a 3 dump_device_desc ugen5.3: at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x05ac idProduct = 0x0231 bcdDevice = 0x0070 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 I had first tried to pinpoint the problem with the sources that came with the 7.2-RELEASE sources, by turning some USB debugging on, but got stuck when I ended up getting BABBLE reports from uhci, and couldn't figure out how to get any further. I then decided to try to switch to CURRENT and see whether the problem may have been fixed there. Turns out it hasn't been fixed, but since there have obviously been major code rewrites there, I was able to figure out the problem. It's happening in ukbd_intr_callback(): This function is expecting 8 bytes of data (of which the first is the keyboard modifiers). Turns out that the MBP sends 10 bytes instead, with - the first always being 01 (which explains why the Ctrl key seems to be stuck) - indexes 1 to 8 containing the actually "expected" data - the last being 00 or 02, depending on whether the Fn key was pressed. I'm inlining a diff of my changes here: --- ukbd.c.org 2009-05-15 17:38:59.000000000 +0000 +++ ukbd.c 2009-05-15 18:48:01.000000000 +0000 @@ -470,17 +470,24 @@ struct ukbd_softc *sc = xfer->priv_sc; uint16_t len = xfer->actlen; uint8_t i; + uint8_t mydebug[256]; + uint8_t offset = 0; switch (USB_GET_STATE(xfer)) { case USB_ST_TRANSFERRED: DPRINTF("actlen=%d bytes\n", len); + usb2_copy_out(xfer->frbuffers, 0, &mydebug[0], len); + for (i=0; i < len; ++i) { + DPRINTF("dump %02d = %02x\n",i,mydebug[i]); + } if (len > sizeof(sc->sc_ndata)) { len = sizeof(sc->sc_ndata); + offset = 1; } if (len) { bzero(&sc->sc_ndata, sizeof(sc->sc_ndata)); - usb2_copy_out(xfer->frbuffers, 0, &sc->sc_ndata, len); + usb2_copy_out(xfer->frbuffers, offset, &sc->sc_ndata, len); #if USB_DEBUG if (sc->sc_ndata.modifiers) { DPRINTF("mod: 0x%04x\n", sc->sc_ndata.modifiers); (I know that's a hack, it was just for testing and works for me). After having figured this out (and ignoring the Fn "bit" for now), I looked into the existing USB quirks, and there seems to be one named UQ_MS_LEADING_BYTE. I tried (with the original ukbd) to see if applying that quirk resulted in anything -- both by modifying the quirks.c, and by running usbconfig -u 5 -a 3 add_dev_quirk_vplh 0x5ac 0x231 0 0xffff UQ_MS_LEADING_BYTE but the result was exactly the same as before (i.e., the first spurious byte didn't vanish). I might have done something wrong with the quirks, but I guess it's actually just a different case than UQ_MS_LEADING_BYTE. So my question now is: what is the correct approach to add support for this keyboard? The thing I did above is clearly a hack, but I'm just not sure where these things should be handled correctly (Especially in light of the additional "Fn" key being present, and probably requiring some translation table, e.g. to map "fn+backspace" to "del", etc.) What is the correct approach here? Some modified ukbd as an additional module? Modifying the ukbd itself (but how)? I'm also feeling kind of better when running on a -STABLE system for production use, which would require some "backporting" (but as said, I got stuck in the "old" sources because I didn't really understand how things worked there). As I said, I would be willing to invest effort into this, but would need some guidance, so any help is very much appreciated :-) OK, I guess that's it for now, thanks in advance for the replies! -- Chris From peterjeremy at optushome.com.au Fri May 15 22:20:04 2009 From: peterjeremy at optushome.com.au (Peter Jeremy) Date: Fri May 15 22:20:10 2009 Subject: usb/119201: [patch] Quirksfor Olympus FE-210 camera, LG and Laser MP3 players Message-ID: <200905152220.n4FMK4GI013367@freefall.freebsd.org> The following reply was made to PR usb/119201; it has been noted by GNATS. From: Peter Jeremy To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-usb@FreeBSD.org Cc: Subject: Re: usb/119201: [patch] Quirksfor Olympus FE-210 camera, LG and Laser MP3 players Date: Sat, 16 May 2009 08:17:20 +1000 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Any chance of getting this patch committed before 8.0? --=20 Peter Jeremy --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEUEARECAAYFAkoN6fAACgkQ/opHv/APuIdu8wCYh2+S5NOykwoLsU9s72p7xVRS sgCfQ2sYcbLWCRc6t/bzx/3Sw41V/wE= =K7zU -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf-- From peterjeremy at optushome.com.au Sat May 16 01:52:56 2009 From: peterjeremy at optushome.com.au (Peter Jeremy) Date: Sat May 16 01:53:02 2009 Subject: usb/119201: [patch] Quirksfor Olympus FE-210 camera, LG and Laser MP3 players In-Reply-To: <200712312050.lBVKo0xf017096@freefall.freebsd.org> References: <200712312048.lBVKmAWo003627@turion.vk2pj.dyndns.org> <200712312050.lBVKo0xf017096@freefall.freebsd.org> Message-ID: <20090515221720.GA757@server.vk2pj.dyndns.org> Any chance of getting this patch committed before 8.0? -- Peter Jeremy -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20090516/207aea71/attachment.pgp From hselasky at c2i.net Sat May 16 06:01:28 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat May 16 06:01:34 2009 Subject: usb/119201: [patch] Quirksfor Olympus FE-210 camera, LG and Laser MP3 players In-Reply-To: <200905152220.n4FMK4GI013367@freefall.freebsd.org> References: <200905152220.n4FMK4GI013367@freefall.freebsd.org> Message-ID: <200905160803.59971.hselasky@c2i.net> On Saturday 16 May 2009, Peter Jeremy wrote: > usb/119201 Can this be patched in umass.c ? --HPS From hselasky at c2i.net Sat May 16 06:26:47 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat May 16 06:26:55 2009 Subject: How to add support for Macbook Pro (USB) keyboard? In-Reply-To: <4A0DC89C.6010708@rosenkeller.org> References: <4A0DC89C.6010708@rosenkeller.org> Message-ID: <200905160829.18377.hselasky@c2i.net> On Friday 15 May 2009, Christoph Langguth wrote: > Christoph Langguth Hi, Can you try the following patch on 8-current? http://perforce.freebsd.org/chv.cgi?CH=162145 --HPS From christoph at rosenkeller.org Sat May 16 15:27:00 2009 From: christoph at rosenkeller.org (Christoph Langguth) Date: Sat May 16 15:27:07 2009 Subject: How to add support for Macbook Pro (USB) keyboard? In-Reply-To: <200905160829.18377.hselasky@c2i.net> References: <4A0DC89C.6010708@rosenkeller.org> <200905160829.18377.hselasky@c2i.net> Message-ID: <4A0EDB45.8020903@rosenkeller.org> Hi Hans Petter, thanks for the quick reply! I tried your patch but it doesn't work, all I get is: May 16 14:00:01 marvin kernel: ukbd0: on usbus5 May 16 14:00:01 marvin kernel: device_attach: ukbd0 attach returned 6 I don't know why this happens... I tried, but unfortunately I didn't quite understand what the patch is supposed to do :-) In the meantime, I had continued writing up a slightly cleaner patch, that also allows to fully utilize the keyboard. Some considerations first: - Quite a few apple keyboards (mine included) have an additional quirk in that they switch two keys. (On [1], that's all the ones having the APPLE_ISO_KEYBOARD flag). But of course, it's not all of them :-( - To fully make use of the keyboard, one also needs to consider the Fn key ("part of" the 10th (9th payload) byte), so as to be able to be able to type "vital" keys like DEL, INS, PGUP etc. Judging from [1], everything from Apple that actually is a keyboard also has this FN key, so I would expect all of these keyboards to send that 9th byte - It seems that some, but not all, of those keyboards, send this first byte (the one you called hid_id) In light of the above, would it make sense to - try to detect the HID ID byte in the manner that you suggested in your patch (assuming that I can figure out the logic, and what's going wrong there, I think it's the cleanest and vendor-independent solution) - add an additional UKBD-specific quirk for the ISO_KEYBOARD problem (into usb/quirks/...) - assume that any available 9th byte contains the Fn key information -- or would yet another quirk, listing all affected products, be more reliable? [1]: https://www.linuxhq.com/kernel/v2.6/28-rc8/drivers/hid/hid-apple.c In any case, I have attached the "full" patch that works for me -- as stated above, it's not as clean as it should be because it only works for my specific piece of hardware and doesn't consider the latest questions/proposed solution... but it already contains all the required logic so that you can see what I meant. Again, thanks for your help! Cheers Chris Hans Petter Selasky wrote: > On Friday 15 May 2009, Christoph Langguth wrote: >> Christoph Langguth > > Hi, > > Can you try the following patch on 8-current? > > http://perforce.freebsd.org/chv.cgi?CH=162145 > > --HPS > -------------- next part -------------- --- ukbd.c.org 2009-05-16 13:49:48.000000000 +0000 +++ ukbd.c 2009-05-16 14:39:35.000000000 +0000 @@ -162,6 +162,10 @@ uint8_t sc_leds; /* store for async led requests */ uint8_t sc_iface_index; uint8_t sc_iface_no; + + uint8_t quirks; +#define UKBD_QUIRK_APPLE 1 +#define UKBD_QUIRK_SWAPKEYS 2 }; #define KEY_ERROR 0x01 @@ -464,23 +468,63 @@ } } +static uint8_t +apple_fn(uint8_t keycode) { + switch (keycode) { + case 0x2a: return 0x4c; // BACKSPACE -> DEL + case 0x2c: return 0x49; // SPACE -> INSERT + case 0x50: return 0x4a; // LEFT ARROW -> HOME + case 0x4f: return 0x4d; // RIGHT ARROW -> END + case 0x52: return 0x4b; // UP ARROW -> PGUP + case 0x51: return 0x4e; // DOWN ARROW -> PGDN + default: return keycode; + } +} + static void ukbd_intr_callback(struct usb2_xfer *xfer) { struct ukbd_softc *sc = xfer->priv_sc; uint16_t len = xfer->actlen; uint8_t i; + uint8_t offset = 0; + uint8_t fnmode = 0; +#define UKBD_FNMODE_FN 2 +#define UKBD_FNMODE_EJECT 1 switch (USB_GET_STATE(xfer)) { case USB_ST_TRANSFERRED: DPRINTF("actlen=%d bytes\n", len); if (len > sizeof(sc->sc_ndata)) { + if (sc->quirks & UKBD_QUIRK_APPLE) { + offset = 1; + if (len >= 10) { + usb2_copy_out(xfer->frbuffers, 9, &fnmode, 1); + } + } len = sizeof(sc->sc_ndata); } if (len) { bzero(&sc->sc_ndata, sizeof(sc->sc_ndata)); - usb2_copy_out(xfer->frbuffers, 0, &sc->sc_ndata, len); + usb2_copy_out(xfer->frbuffers, offset, &sc->sc_ndata, len); + + if (sc->quirks & UKBD_QUIRK_APPLE) { + for (i = 0; i < UKBD_NKEYCODE; i++) { + if ((sc->quirks & UKBD_QUIRK_SWAPKEYS) + && (sc->sc_ndata.keycode[i] == 0x35)) { + sc->sc_ndata.keycode[i] = 0x64; + } + else if ((sc->quirks & UKBD_QUIRK_SWAPKEYS) + && (sc->sc_ndata.keycode[i] == 0x64)) { + sc->sc_ndata.keycode[i] = 0x35; + } + if (fnmode & UKBD_FNMODE_FN) { + sc->sc_ndata.keycode[i] = apple_fn(sc->sc_ndata.keycode[i]); + } + } + } + #if USB_DEBUG if (sc->sc_ndata.modifiers) { DPRINTF("mod: 0x%04x\n", sc->sc_ndata.modifiers); @@ -638,6 +682,12 @@ sc->sc_mode = K_XLATE; sc->sc_iface = uaa->iface; + if ((uaa->info.idVendor == 0x5ac) + && (uaa->info.idProduct == 0x231)) { + DPRINTF("Activating Apple kbd quirk\n"); + sc->quirks = UKBD_QUIRK_APPLE | UKBD_QUIRK_SWAPKEYS; + } + usb2_callout_init_mtx(&sc->sc_callout, &Giant, 0); err = usb2_transfer_setup(uaa->device, From hselasky at c2i.net Sat May 16 15:56:59 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat May 16 15:57:06 2009 Subject: How to add support for Macbook Pro (USB) keyboard? In-Reply-To: <4A0EDB45.8020903@rosenkeller.org> References: <4A0DC89C.6010708@rosenkeller.org> <200905160829.18377.hselasky@c2i.net> <4A0EDB45.8020903@rosenkeller.org> Message-ID: <200905161759.31109.hselasky@c2i.net> Hi, It's not required to add a quirk for apple's I think. All the keys should be described in the HID descriptor. Can you dump the HID descriptor of your device? usbconfig -u 0 -a 2 do_request 0x81 0x06 0x2200 0 0x1000 Numbers after "-u" and "-a" must match those after "ugen" when your device is plugged. The command above assume the keyboard resides at interface zero. --HPS On Saturday 16 May 2009, Christoph Langguth wrote: > Hi Hans Petter, > > thanks for the quick reply! > I tried your patch but it doesn't work, all I get is: > > May 16 14:00:01 marvin kernel: ukbd0: on usbus5 > May 16 14:00:01 marvin kernel: device_attach: ukbd0 attach returned 6 > > I don't know why this happens... I tried, but unfortunately I didn't > quite understand what the patch is supposed to do :-) > > > In the meantime, I had continued writing up a slightly cleaner patch, > that also allows to fully utilize the keyboard. Some considerations first: > > - Quite a few apple keyboards (mine included) have an additional quirk > in that they switch two keys. (On [1], that's all the ones having the > APPLE_ISO_KEYBOARD flag). But of course, it's not all of them :-( > > - To fully make use of the keyboard, one also needs to consider the Fn > key ("part of" the 10th (9th payload) byte), so as to be able to be able > to type "vital" keys like DEL, INS, PGUP etc. Judging from [1], > everything from Apple that actually is a keyboard also has this FN key, > so I would expect all of these keyboards to send that 9th byte > > - It seems that some, but not all, of those keyboards, send this first > byte (the one you called hid_id) > > > In light of the above, would it make sense to > - try to detect the HID ID byte in the manner that you suggested in your > patch (assuming that I can figure out the logic, and what's going wrong > there, I think it's the cleanest and vendor-independent solution) > - add an additional UKBD-specific quirk for the ISO_KEYBOARD problem > (into usb/quirks/...) > - assume that any available 9th byte contains the Fn key information -- > or would yet another quirk, listing all affected products, be more > reliable? > > [1]: https://www.linuxhq.com/kernel/v2.6/28-rc8/drivers/hid/hid-apple.c > > In any case, I have attached the "full" patch that works for me -- as > stated above, it's not as clean as it should be because it only works > for my specific piece of hardware and doesn't consider the latest > questions/proposed solution... but it already contains all the required > logic so that you can see what I meant. > > Again, thanks for your help! > Cheers > Chris > > Hans Petter Selasky wrote: > > On Friday 15 May 2009, Christoph Langguth wrote: > >> Christoph Langguth > > > > Hi, > > > > Can you try the following patch on 8-current? > > > > http://perforce.freebsd.org/chv.cgi?CH=162145 > > > > --HPS From christoph at rosenkeller.org Sat May 16 16:16:09 2009 From: christoph at rosenkeller.org (Christoph Langguth) Date: Sat May 16 16:16:15 2009 Subject: How to add support for Macbook Pro (USB) keyboard? In-Reply-To: <200905161759.31109.hselasky@c2i.net> References: <4A0DC89C.6010708@rosenkeller.org> <200905160829.18377.hselasky@c2i.net> <4A0EDB45.8020903@rosenkeller.org> <200905161759.31109.hselasky@c2i.net> Message-ID: <4A0EE6C6.6010906@rosenkeller.org> Hi, there you go... Hope it makes sense to you :-D -- Christoph Hans Petter Selasky schrieb: > Hi, > > It's not required to add a quirk for apple's I think. All the keys should be > described in the HID descriptor. Can you dump the HID descriptor of your > device? > > usbconfig -u 0 -a 2 do_request 0x81 0x06 0x2200 0 0x1000 > > Numbers after "-u" and "-a" must match those after "ugen" when your device is > plugged. The command above assume the keyboard resides at interface zero. > > --HPS > > On Saturday 16 May 2009, Christoph Langguth wrote: >> Hi Hans Petter, >> >> thanks for the quick reply! >> I tried your patch but it doesn't work, all I get is: >> >> May 16 14:00:01 marvin kernel: ukbd0: on usbus5 >> May 16 14:00:01 marvin kernel: device_attach: ukbd0 attach returned 6 >> >> I don't know why this happens... I tried, but unfortunately I didn't >> quite understand what the patch is supposed to do :-) >> >> >> In the meantime, I had continued writing up a slightly cleaner patch, >> that also allows to fully utilize the keyboard. Some considerations first: >> >> - Quite a few apple keyboards (mine included) have an additional quirk >> in that they switch two keys. (On [1], that's all the ones having the >> APPLE_ISO_KEYBOARD flag). But of course, it's not all of them :-( >> >> - To fully make use of the keyboard, one also needs to consider the Fn >> key ("part of" the 10th (9th payload) byte), so as to be able to be able >> to type "vital" keys like DEL, INS, PGUP etc. Judging from [1], >> everything from Apple that actually is a keyboard also has this FN key, >> so I would expect all of these keyboards to send that 9th byte >> >> - It seems that some, but not all, of those keyboards, send this first >> byte (the one you called hid_id) >> >> >> In light of the above, would it make sense to >> - try to detect the HID ID byte in the manner that you suggested in your >> patch (assuming that I can figure out the logic, and what's going wrong >> there, I think it's the cleanest and vendor-independent solution) >> - add an additional UKBD-specific quirk for the ISO_KEYBOARD problem >> (into usb/quirks/...) >> - assume that any available 9th byte contains the Fn key information -- >> or would yet another quirk, listing all affected products, be more >> reliable? >> >> [1]: https://www.linuxhq.com/kernel/v2.6/28-rc8/drivers/hid/hid-apple.c >> >> In any case, I have attached the "full" patch that works for me -- as >> stated above, it's not as clean as it should be because it only works >> for my specific piece of hardware and doesn't consider the latest >> questions/proposed solution... but it already contains all the required >> logic so that you can see what I meant. >> >> Again, thanks for your help! >> Cheers >> Chris >> >> Hans Petter Selasky wrote: >>> On Friday 15 May 2009, Christoph Langguth wrote: >>>> Christoph Langguth >>> Hi, >>> >>> Can you try the following patch on 8-current? >>> >>> http://perforce.freebsd.org/chv.cgi?CH=162145 >>> >>> --HPS > > > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > -------------- next part -------------- REQUEST = <0x05 0x01 0x09 0x06 0xa1 0x01 0x85 0x01 0x05 0x07 0x19 0xe0 0x29 0xe7 0x15 0x00 0x25 0x01 0x75 0x01 0x95 0x08 0x81 0x02 0x95 0x01 0x75 0x08 0x81 0x01 0x95 0x05 0x75 0x01 0x05 0x08 0x19 0x01 0x29 0x05 0x91 0x02 0x95 0x01 0x75 0x03 0x91 0x01 0x95 0x06 0x75 0x08 0x15 0x00 0x26 0xff 0x00 0x05 0x07 0x19 0x00 0x29 0xff 0x81 0x00 0x05 0x0c 0x75 0x01 0x95 0x01 0x09 0xb8 0x15 0x00 0x25 0x01 0x81 0x02 0x05 0xff 0x09 0x03 0x75 0x07 0x95 0x01 0x81 0x02 0xc0 0x05 0x0c 0x09 0x01 0xa1 0x01 0x85 0x52 0x15 0x00 0x25 0x01 0x75 0x01 0x95 0x01 0x09 0xcd 0x81 0x02 0x09 0xb3 0x81 0x02 0x09 0xb4 0x81 0x02 0x09 0xb5 0x81 0x02 0x09 0xb6 0x81 0x02 0x81 0x01 0x81 0x01 0x81 0x01 0x85 0x09 0x15 0x00 0x25 0x01 0x75 0x08 0x95 0x01 0x06 0x01 0xff 0x09 0x0b 0xb1 0x02 0x75 0x08 0x95 0x02 0xb1 0x01 0xc0><)%uuu)uu&)u%uR%u%uu> From hselasky at c2i.net Sat May 16 17:58:59 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat May 16 17:59:05 2009 Subject: How to add support for Macbook Pro (USB) keyboard? In-Reply-To: <4A0EDB45.8020903@rosenkeller.org> References: <4A0DC89C.6010708@rosenkeller.org> <200905160829.18377.hselasky@c2i.net> <4A0EDB45.8020903@rosenkeller.org> Message-ID: <200905162001.30735.hselasky@c2i.net> Hi Christoph, Download the two patched files from P4, ukbd.c and usbhid.h, and put them under sys/dev/usb/input and sys/dev/usb/ respectivly. Then recompile the ukbd module and/or kernel. The attach failure was due to a bug in the previous patch where I had forgotten to update N_TRANSFER. http://perforce.freebsd.org/chv.cgi?CH=162165 I've tried to make your patch more formal so that we don't have to list the VID+PID for every Apple Keyboard around. --HPS From christoph at rosenkeller.org Sat May 16 19:12:55 2009 From: christoph at rosenkeller.org (Christoph Langguth) Date: Sat May 16 19:13:02 2009 Subject: How to add support for Macbook Pro (USB) keyboard? In-Reply-To: <200905162001.30735.hselasky@c2i.net> References: <4A0DC89C.6010708@rosenkeller.org> <200905160829.18377.hselasky@c2i.net> <4A0EDB45.8020903@rosenkeller.org> <200905162001.30735.hselasky@c2i.net> Message-ID: <4A0F1039.7050403@rosenkeller.org> Hi Hans Petter, wow!! I don't know what kind of voodoo you actually did there, but it works perfectly! :-D Thanks! Just two final little comments and two questions: line 463 in ukbd.c should actually read case 0x28: return 0x49; /* RETURN -> INSERT */ instead of case 0x2c: return 0x49; /* SPACE -> INSERT */ I just realized after writing it that all other OS's (MacOS, Windows, Linux) map Fn+Enter to INS, so I guess it would be best to stick with that convention and not to introduce new idiosyncrasies... and: in ukbd_apple_swap() the comments are misleading (Well actually the parameter name may have been misleading in the first place, since I guess it's scancodes, not keycodes, at that level, right? Anyway, it's not the "5" and "d" keys that are being swapped, but the one just left of the "1" (^ and ? on a german keyboard, ~ on the US one if i'm correct), and the one between the left shift and the Y/Z key (< and > on german kbd, not sure about US). Finally, for curiosity, since I didn't really get how the code works: how do you know reliably whether to toggle the APPLE_SWAP flag? Does the HID descriptor give you information about that "anomaly"? (I'm just wondering whether it wouldn't mistakenly swap the keys on unaffected Apple keyboards) And... one final issue here, which is low-priority for me but would be the topping on the cake: CAPS lock is functioning normally, but the LED does not light up when engaged. Is there any way to fix this? Thanks a lot & cheers! Chris Hans Petter Selasky schrieb: > Hi Christoph, > > Download the two patched files from P4, ukbd.c and usbhid.h, and put them > under sys/dev/usb/input and sys/dev/usb/ respectivly. > > Then recompile the ukbd module and/or kernel. > > The attach failure was due to a bug in the previous patch where I had > forgotten to update N_TRANSFER. > > http://perforce.freebsd.org/chv.cgi?CH=162165 > > I've tried to make your patch more formal so that we don't have to list the > VID+PID for every Apple Keyboard around. > > --HPS > From hselasky at c2i.net Sat May 16 19:55:50 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat May 16 19:55:58 2009 Subject: How to add support for Macbook Pro (USB) keyboard? In-Reply-To: <4A0F1039.7050403@rosenkeller.org> References: <4A0DC89C.6010708@rosenkeller.org> <200905162001.30735.hselasky@c2i.net> <4A0F1039.7050403@rosenkeller.org> Message-ID: <200905162158.22210.hselasky@c2i.net> On Saturday 16 May 2009, Christoph Langguth wrote: > Hi Hans Petter, > > I just realized after writing it that all other OS's (MacOS, Windows, > Linux) map Fn+Enter to INS, so I guess it would be best to stick with > that convention and not to introduce new idiosyncrasies... Fixed. > > and: in ukbd_apple_swap() the comments are misleading (Well actually the > parameter name may have been misleading in the first place, since I > guess it's scancodes, not keycodes, at that level, right? Anyway, it's > not the "5" and "d" keys that are being swapped, but the one just left > of the "1" (^ and ? on a german keyboard, ~ on the US one if i'm > correct), and the one between the left shift and the Y/Z key (< and > on > german kbd, not sure about US). Fixed. > > Finally, for curiosity, since I didn't really get how the code works: > how do you know reliably whether to toggle the APPLE_SWAP flag? Does the > HID descriptor give you information about that "anomaly"? (I'm just > wondering whether it wouldn't mistakenly swap the keys on unaffected > Apple keyboards) I was just taking your example. I assume that Apple make the keyboards alike. If not we will have to adjust. I did not look too close at the HID descriptor. I just assume that when the special HID item is present, which indicates the EJECT, then it is an Apple keyboard and that it works like an Apple keyboard. > > And... one final issue here, which is low-priority for me but would be > the topping on the cake: CAPS lock is functioning normally, but the LED > does not light up when engaged. Is there any way to fix this? Can you find the bit or byte that is changing in the report which corresponds to the CAPS lock key? Also don't forget to print the first byte which is the ID byte. --HPS From christoph at rosenkeller.org Sat May 16 20:44:52 2009 From: christoph at rosenkeller.org (Christoph Langguth) Date: Sat May 16 20:44:59 2009 Subject: How to add support for Macbook Pro (USB) keyboard? In-Reply-To: <200905162158.22210.hselasky@c2i.net> References: <4A0DC89C.6010708@rosenkeller.org> <200905162001.30735.hselasky@c2i.net> <4A0F1039.7050403@rosenkeller.org> <200905162158.22210.hselasky@c2i.net> Message-ID: <4A0F25C5.9020706@rosenkeller.org> Hi, >> Finally, for curiosity, since I didn't really get how the code works: >> how do you know reliably whether to toggle the APPLE_SWAP flag? Does the >> HID descriptor give you information about that "anomaly"? (I'm just >> wondering whether it wouldn't mistakenly swap the keys on unaffected >> Apple keyboards) > > I was just taking your example. I assume that Apple make the keyboards alike. > If not we will have to adjust. I did not look too close at the HID > descriptor. I just assume that when the special HID item is present, which > indicates the EJECT, then it is an Apple keyboard and that it works like an > Apple keyboard. Hmm... well, I guess it's fine for now, but I believe that actually not all of the keyboards have this swap "bug". Apple seems to change their hardware (and the behavior thereof...) quite often :-( > >> And... one final issue here, which is low-priority for me but would be >> the topping on the cake: CAPS lock is functioning normally, but the LED >> does not light up when engaged. Is there any way to fix this? > > Can you find the bit or byte that is changing in the report which corresponds > to the CAPS lock key? Also don't forget to print the first byte which is the > ID byte. That was it... the data sent to the keyboard also needs to be prefixed with the ID. The attached patch does this in a sensitive way -- I've tested it and it behaves correctly both with the Apple, and a "normal" USB kbd attached. Hooray! :-) --Chris -------------- next part -------------- --- ukbd.c.org 2009-05-16 20:38:08.000000000 +0000 +++ ukbd.c 2009-05-16 20:35:26.000000000 +0000 @@ -589,7 +589,8 @@ ukbd_set_leds_callback(struct usb2_xfer *xfer) { struct usb2_device_request req; - uint8_t buf[1]; + uint8_t buf[2]; + uint8_t reqsize = 0; struct ukbd_softc *sc = xfer->priv_sc; switch (USB_GET_STATE(xfer)) { @@ -603,15 +604,19 @@ USETW2(req.wValue, UHID_OUTPUT_REPORT, 0); req.wIndex[0] = sc->sc_iface_no; req.wIndex[1] = 0; - USETW(req.wLength, 1); - buf[0] = sc->sc_leds; + if (sc->sc_hid_id != 0) { + buf[reqsize++] = sc->sc_hid_id; + } + buf[reqsize++] = sc->sc_leds; + + USETW(req.wLength, reqsize); usb2_copy_in(xfer->frbuffers, 0, &req, sizeof(req)); - usb2_copy_in(xfer->frbuffers + 1, 0, buf, sizeof(buf)); + usb2_copy_in(xfer->frbuffers + 1, 0, buf, reqsize); xfer->frlengths[0] = sizeof(req); - xfer->frlengths[1] = sizeof(buf); + xfer->frlengths[1] = reqsize; xfer->nframes = 2; usb2_start_hardware(xfer); } From hselasky at c2i.net Sat May 16 21:22:08 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat May 16 21:22:14 2009 Subject: How to add support for Macbook Pro (USB) keyboard? In-Reply-To: <4A0F25C5.9020706@rosenkeller.org> References: <4A0DC89C.6010708@rosenkeller.org> <200905162158.22210.hselasky@c2i.net> <4A0F25C5.9020706@rosenkeller.org> Message-ID: <200905162324.39896.hselasky@c2i.net> On Saturday 16 May 2009, Christoph Langguth wrote: > Christoph Langguth Your patch is almost right. Can you try this (download the complete ukbd.c file): http://perforce.freebsd.org/chv.cgi?CH=162182 --HPS From christoph at rosenkeller.org Sat May 16 21:40:02 2009 From: christoph at rosenkeller.org (Christoph Langguth) Date: Sat May 16 21:40:08 2009 Subject: How to add support for Macbook Pro (USB) keyboard? In-Reply-To: <200905162324.39896.hselasky@c2i.net> References: <4A0DC89C.6010708@rosenkeller.org> <200905162158.22210.hselasky@c2i.net> <4A0F25C5.9020706@rosenkeller.org> <200905162324.39896.hselasky@c2i.net> Message-ID: <4A0F32B4.1000000@rosenkeller.org> Hans Petter Selasky schrieb: > On Saturday 16 May 2009, Christoph Langguth wrote: >> Christoph Langguth > > Your patch is almost right. Well, I tried my best ;-) > > Can you try this (download the complete ukbd.c file): > Works perfectly, takk! --Chris From freebsd at abv.bg Sun May 17 14:33:59 2009 From: freebsd at abv.bg (Mario Pavlov) Date: Sun May 17 14:34:10 2009 Subject: Unable to read from CCID USB reader Message-ID: <2002614109.15779.1242569786248.JavaMail.apache@mail53.abv.bg> Hi, I just got a CCID USB reader with my digital signature...unfortunately I can't make it work I installed pcsc-lite and libccid from ports... when I plug-in the reader I can see this: ugen0: on uhub4 then I do this: # pcscd -d -f 00000000 pcscdaemon.c:267:main() pcscd set to foreground with debug send to stderr 00000427 pcscdaemon.c:505:main() pcsc-lite 1.5.1 daemon ready. 00196162 hotplug_libusb.c:477:HPAddHotPluggable() Adding USB device: /dev/usb4:/dev/ugen0 00000043 readerfactory.c:1083:RFInitializeReader() Attempting startup of ACS ACR 38U-CCID 00 00 using /usr/local/lib/pcsc/drivers//ifd-ccid.bundle/Contents/FreeBSD/libccid.so 00000207 readerfactory.c:950:RFBindFunctions() Loading IFD Handler 3.0 00000036 ifdhandler.c:1377:init_driver() Driver version: 1.3.9 00000285 ifdhandler.c:1390:init_driver() LogLevel: 0x0003 00000218 ifdhandler.c:1410:init_driver() DriverOptions: 0x0000 00000008 ifdhandler.c:81:IFDHCreateChannelByName() lun: 0, device: usb:072f/90cc:libusb:/dev/usb4:/dev/ugen0 00054635 ccid_usb.c:238:OpenUSBByName() Manufacturer: Ludovic Rousseau (ludovic.rousseau@free.fr) 00000243 ccid_usb.c:248:OpenUSBByName() ProductString: Generic CCID driver 00000212 ccid_usb.c:254:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version. 00033042 ccid_usb.c:410:OpenUSBByName() Found Vendor/Product: 072F/90CC (ACS ACR 38U-CCID) 00000529 ccid_usb.c:412:OpenUSBByName() Using USB bus/device: /dev/usb4//dev/ugen0 00002242 ccid_usb.c:782:get_data_rates() IFD does not support GET_DATA_RATES request: Unknown error: 0 05104167 ccid_usb.c:491:WriteUSB() usb_bulk_write(/dev/usb4//dev/ugen0): Operation timed out 05104154 ccid_usb.c:491:WriteUSB() usb_bulk_write(/dev/usb4//dev/ugen0): Operation timed out 05103197 ccid_usb.c:491:WriteUSB() usb_bulk_write(/dev/usb4//dev/ugen0): Operation timed out 00000025 ifdhandler.c:122:IFDHCreateChannelByName() failed 00000058 readerfactory.c:1122:RFInitializeReader() Open Port 200000 Failed (usb:072f/90cc:libusb:/dev/usb4) 00000013 readerfactory.c:995:RFUnloadReader() Unloading reader driver. 00000065 readerfactory.c:249:RFAddReader() ACS ACR 38U-CCID init failed. apparently there is something wrong...looks like the ccid driver is trying to write to the USB device ? As far as I know you can't write to the reader, right ? And why is ccid trying to write at all ? I just plug-in the reader and start pcscd... Could you help me guys, I just need to use my digital signature with firefox... thank you Regards MGP P.S. # uname -a FreeBSD home.mydomain.org 7.2-STABLE FreeBSD 7.2-STABLE #5: Sat May 16 08:00:31 EEST 2009 myuser@home.mydomain.org:/usr/obj/usr/src/sys/Ss-STABLE amd64 and ports from yesterday From linimon at FreeBSD.org Mon May 18 02:06:39 2009 From: linimon at FreeBSD.org (linimon@FreeBSD.org) Date: Mon May 18 02:06:45 2009 Subject: usb/134631: [usbdevs] [patch] WiSPY DBx support requires usb tweaks Message-ID: <200905180206.n4I26cg9001788@freefall.freebsd.org> Old Synopsis: WiSPY DBx support requires usb tweaks New Synopsis: [usbdevs] [patch] WiSPY DBx support requires usb tweaks Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Mon May 18 02:05:51 UTC 2009 Responsible-Changed-Why: reclassify. http://www.freebsd.org/cgi/query-pr.cgi?pr=134631 From kouji at cty-net.ne.jp Mon May 18 03:00:09 2009 From: kouji at cty-net.ne.jp (Kouji Ito) Date: Mon May 18 03:00:16 2009 Subject: usb/134633: Add support for WILLCOM03(SHARP smart phone) Message-ID: <200905180251.n4I2pf8j014163@www.freebsd.org> >Number: 134633 >Category: usb >Synopsis: Add support for WILLCOM03(SHARP smart phone) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon May 18 03:00:06 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Kouji Ito >Release: FreeBSD 8.0-CURRENT(i386) >Organization: >Environment: FreeBSD inchiki3 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Thu May 14 09:37:50 JST 2009 root@inchiki3:/usr/src/sys/i386/compile/DTrace i386 >Description: Add support for WILLCOM03(SHARP smart phone) /usr/src/sys/dev/usb/usbdevs /usr/src/sys/dev/usb/serial/uipaq.c >How-To-Repeat: >Fix: /usr/src/sys/dev/usb/usbdevs > product SHARP WILLCOM03 0x9242 WILLCOM03 /usr/src/sys/dev/usb/serial/uipaq.c > {USB_VPI(USB_VENDOR_SHARP, USB_PRODUCT_SHARP_WILLCOM03, 0)}, >Release-Note: >Audit-Trail: >Unformatted: From hselasky at c2i.net Mon May 18 08:57:12 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon May 18 08:57:19 2009 Subject: usb/134633: Add support for WILLCOM03(SHARP smart phone) In-Reply-To: <200905180251.n4I2pf8j014163@www.freebsd.org> References: <200905180251.n4I2pf8j014163@www.freebsd.org> Message-ID: <200905181059.45842.hselasky@c2i.net> On Monday 18 May 2009, Kouji Ito wrote: > Add support for WILLCOM03(SHARP smart phone) Patched: http://perforce.freebsd.org/chv.cgi?CH=162251 --HPS From hselasky at freebsd.org Mon May 18 09:34:20 2009 From: hselasky at freebsd.org (Hans Petter Selasky) Date: Mon May 18 09:34:36 2009 Subject: Minor USB related sysutils/hal patch Message-ID: <200905181036.51184.hselasky@freebsd.org> Hi, I've made some minor patches for sysutils/hal If the device is detached during config read, the config can be NULL. Check that. Make sure that we close the device handles as we go, to save number of open files. When the backend is freed any leftover file handles will get freed, so it is not absolutely needed to close the device handle in every case. --HPS From hselasky at c2i.net Mon May 18 10:00:06 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon May 18 10:00:16 2009 Subject: usb/134633: Add support for WILLCOM03(SHARP smart phone) Message-ID: <200905181000.n4IA05VR078703@freefall.freebsd.org> The following reply was made to PR usb/134633; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Kouji Ito , freebsd-gnats-submit@freebsd.org Subject: Re: usb/134633: Add support for WILLCOM03(SHARP smart phone) Date: Mon, 18 May 2009 10:59:45 +0200 On Monday 18 May 2009, Kouji Ito wrote: > Add support for WILLCOM03(SHARP smart phone) Patched: http://perforce.freebsd.org/chv.cgi?CH=162251 --HPS From bugmaster at FreeBSD.org Mon May 18 11:07:03 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon May 18 11:09:45 2009 Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org Message-ID: <200905181107.n4IB71lx075836@freefall.freebsd.org> Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/134633 usb Add support for WILLCOM03(SHARP smart phone) o usb/134631 usb [usbdevs] [patch] WiSPY DBx support requires usb tweak o usb/134476 usb [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx o usb/134299 usb Kernel Panic plugging in MF626 USB UMTS Stick u3g o usb/134193 usb System freeze on usb MP3 player insertion o usb/134117 usb [Patch] Add support for 'Option GlobeTrotter HSDPA Mod o usb/134085 usb [umass] Adding usb quirk for Sony USB flash drive o usb/133989 usb [newusb] [ukbd] USB keyboard dead at mountroot> prompt f usb/133545 usb [usb] [panic] Kernel crash in usb2_intr_schedule_adjus o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb rum driver not working properly in hostap mode p usb/132799 usb [usb][patch]GENESYS USB2IDE requires NO_SYNCHRONIZE_CA o usb/132785 usb [usb] [patch] Gemtech remote powersocket is classed as o usb/132594 usb USB subsystem causes page fault and crashes o usb/132312 usb Xorg 7.4 halts USB controller o usb/132080 usb [patch] [usb] Kernel panic after NOMEM caused by rum c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131912 usb [uslcom] [patch] New devices using Silicon Labs chips o usb/131900 usb [usbdevs] [patch] Additional product identification co o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c f usb/131123 usb [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130325 usb [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh o usb/130230 usb Samsung Electronics YP-U3 does not attach in 7.1-RELEA o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [newusb] DVD drive detects as 'da' device o docs/129962 usb [newusb] usbconfig(8) refers to non-existant usb2_core o usb/129945 usb [usbdevs] [patch] add u3g support for Longcheer WM66 U o usb/129766 usb [usb] plugging in usb modem HUAWEI E226 panics system o usb/129758 usb [uftdi] [patch] add Pyramid LCD usb support o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129522 usb [ubsa] [patch] add support for ZTE AC8700 modem o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader o usb/129251 usb [usbdevs] [patch] Liebert UPS being assigned uhid and o usb/129173 usb [uplcom] [patch] Add support for Corega CG-USBRS232R a s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb] [patch] uaudio is not full duplex o usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive f usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/128324 usb [uplcom] [patch] remove baud rate restriction for PL23 o usb/127980 usb [umass] [patch] Fix Samsung YP U2 MP3 player on 7.x an o usb/127926 usb [boot] USB Timeout during bootup o usb/127549 usb [umass] [patch] Meizu MiniPlayer M6 (SL) requires some s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should o usb/127423 usb [boot] BTX halted on Gigabyte GA-MA69VM-S2 / AMD Sempr o usb/127342 usb [boot] cannot enable usb keyboard and mouse support in o usb/127248 usb [ucom] panic while uplcom devices attaach and detach o kern/127222 usb [ohci]: Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c f usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125264 usb [patch] sysctl for set usb mouse rate (very useful for o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone o usb/123352 usb [usbdevs] [patch] Add Option GTMAX3.6/7.2 and Quallcom o usb/123351 usb [usbdevs] [patch] Add Reiner SCT cyberJack, Omnikey [2 o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122956 usb [ubsa] [patch] add support for Novatel Wireless XU870 o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122621 usb [patch] [request] New driver for Sierra Wireless 3G US o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/122025 usb [uscanner] [patch] uscanner does not attach to Epson R o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s p usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [umass] [patch] Problems with connection of the umass o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af a usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC o usb/109397 usb [panic] on boot from USB flash o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE [regr s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/107924 usb [patch] usbd(8) does not call detach o usb/107848 usb [umass] [request] cannot access Samsung flash disk o usb/107827 usb [ohci] [panic] ohci_add_done addr not found o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) [ o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107243 usb [cam] [patch] Apacer USB Flash Drive quirk o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze s usb/106832 usb [usb] USB HP printer is not detected by kernel when AC o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/105065 usb [ata] [usb] SATA - USB Bridge o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/104645 usb [umass] [request] Rave C-201 MP3 player does not commu o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/103917 usb [uhub] USB driver reports "Addr 0 should never happen" o usb/103418 usb usbhidctl(1): [patch] [request] usbhidctl: add ability o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/102678 usb [keyboard] Dell PowerEdge DRAC5 USB Keyboard does not o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101096 usb [ural] [panic] USB WLAN occasionally causes kernel-pan o usb/100746 usb [keyboard] system does not boot due to USB keyboard pr o usb/99538 usb [keyboard] while using USB keyboard default params of o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o kern/99200 usb [bluetooth] SMP-Kernel crashes reliably when Bluetooth o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91629 usb [usb] usbd_abort_pipe() may result in infinite loop o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device f usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80829 usb [modules] [panic] possible panic when loading USB-modu s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/79722 usb [ehci] wrong alignments in ehci.h a usb/79656 usb [ehci] RHSC interrupts lost o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75797 usb [sound] 5.3-STABLE(2005 1/4) detect USB headset, But c o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 313 problems total. From freebsd at abv.bg Mon May 18 13:07:42 2009 From: freebsd at abv.bg (Mario Pavlov) Date: Mon May 18 13:08:59 2009 Subject: Unable to read from CCID USB reader Message-ID: <2002614109.15779.1242569786248.JavaMail.apache@mail53.abv.bg> Hi, I just got a CCID USB reader with my digital signature...unfortunately I can't make it work I installed pcsc-lite and libccid from ports... when I plug-in the reader I can see this: ugen0: on uhub4 then I do this: # pcscd -d -f 00000000 pcscdaemon.c:267:main() pcscd set to foreground with debug send to stderr 00000427 pcscdaemon.c:505:main() pcsc-lite 1.5.1 daemon ready. 00196162 hotplug_libusb.c:477:HPAddHotPluggable() Adding USB device: /dev/usb4:/dev/ugen0 00000043 readerfactory.c:1083:RFInitializeReader() Attempting startup of ACS ACR 38U-CCID 00 00 using /usr/local/lib/pcsc/drivers//ifd-ccid.bundle/Contents/FreeBSD/libccid.so 00000207 readerfactory.c:950:RFBindFunctions() Loading IFD Handler 3.0 00000036 ifdhandler.c:1377:init_driver() Driver version: 1.3.9 00000285 ifdhandler.c:1390:init_driver() LogLevel: 0x0003 00000218 ifdhandler.c:1410:init_driver() DriverOptions: 0x0000 00000008 ifdhandler.c:81:IFDHCreateChannelByName() lun: 0, device: usb:072f/90cc:libusb:/dev/usb4:/dev/ugen0 00054635 ccid_usb.c:238:OpenUSBByName() Manufacturer: Ludovic Rousseau (ludovic.rousseau@free.fr) 00000243 ccid_usb.c:248:OpenUSBByName() ProductString: Generic CCID driver 00000212 ccid_usb.c:254:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version. 00033042 ccid_usb.c:410:OpenUSBByName() Found Vendor/Product: 072F/90CC (ACS ACR 38U-CCID) 00000529 ccid_usb.c:412:OpenUSBByName() Using USB bus/device: /dev/usb4//dev/ugen0 00002242 ccid_usb.c:782:get_data_rates() IFD does not support GET_DATA_RATES request: Unknown error: 0 05104167 ccid_usb.c:491:WriteUSB() usb_bulk_write(/dev/usb4//dev/ugen0): Operation timed out 05104154 ccid_usb.c:491:WriteUSB() usb_bulk_write(/dev/usb4//dev/ugen0): Operation timed out 05103197 ccid_usb.c:491:WriteUSB() usb_bulk_write(/dev/usb4//dev/ugen0): Operation timed out 00000025 ifdhandler.c:122:IFDHCreateChannelByName() failed 00000058 readerfactory.c:1122:RFInitializeReader() Open Port 200000 Failed (usb:072f/90cc:libusb:/dev/usb4) 00000013 readerfactory.c:995:RFUnloadReader() Unloading reader driver. 00000065 readerfactory.c:249:RFAddReader() ACS ACR 38U-CCID init failed. apparently there is something wrong...looks like the ccid driver is trying to write to the USB device ? As far as I know you can't write to the reader, right ? And why is ccid trying to write at all ? I just plug-in the reader and start pcscd... Could you help me guys, I just need to use my digital signature with firefox... thank you Regards MGP P.S. # uname -a FreeBSD home.mydomain.org 7.2-STABLE FreeBSD 7.2-STABLE #5: Sat May 16 08:00:31 EEST 2009 myuser@home.mydomain.org:/usr/obj/usr/src/sys/Ss-STABLE amd64 and ports from yesterday _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From hselasky at freebsd.org Mon May 18 13:07:49 2009 From: hselasky at freebsd.org (Hans Petter Selasky) Date: Mon May 18 13:09:55 2009 Subject: Minor USB related sysutils/hal patch Message-ID: <200905181036.51184.hselasky@freebsd.org> Hi, I've made some minor patches for sysutils/hal If the device is detached during config read, the config can be NULL. Check that. Make sure that we close the device handles as we go, to save number of open files. When the backend is freed any leftover file handles will get freed, so it is not absolutely needed to close the device handle in every case. --HPS -------------- next part -------------- _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" From hselasky at c2i.net Mon May 18 13:45:29 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon May 18 13:45:41 2009 Subject: Unable to read from CCID USB reader In-Reply-To: <2002614109.15779.1242569786248.JavaMail.apache@mail53.abv.bg> References: <2002614109.15779.1242569786248.JavaMail.apache@mail53.abv.bg> Message-ID: <200905181548.01967.hselasky@c2i.net> On Sunday 17 May 2009, Mario Pavlov wrote: > Hi, > I just got a CCID USB reader with my digital signature...unfortunately I > can't make it work I installed pcsc-lite and libccid from ports... > when I plug-in the reader I can see this: > > ugen0: on > uhub4 > > then I do this: > Is the problem the same on -current? --HPS From freebsd at abv.bg Mon May 18 14:43:23 2009 From: freebsd at abv.bg (Mario Pavlov) Date: Mon May 18 14:43:41 2009 Subject: Unable to read from CCID USB reader Message-ID: <2124185244.44258.1242657799168.JavaMail.apache@mail53.abv.bg> Hi, no I haven't tried it on CURRENT should I do that ? is there something new in the USB stuff there ? thank you regards, mgp >On Sunday 17 May 2009, Mario Pavlov wrote: >> Hi, >> I just got a CCID USB reader with my digital signature...unfortunately I >> can't make it work I installed pcsc-lite and libccid from ports... >> when I plug-in the reader I can see this: >> >> ugen0: on >> uhub4 >> >> then I do this: >> > >Is the problem the same on -current? > >--HPS >_______________________________________________ >freebsd-current@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-current >To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > From hselasky at c2i.net Mon May 18 14:48:54 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon May 18 14:49:07 2009 Subject: Unable to read from CCID USB reader In-Reply-To: <2124185244.44258.1242657799168.JavaMail.apache@mail53.abv.bg> References: <2124185244.44258.1242657799168.JavaMail.apache@mail53.abv.bg> Message-ID: <200905181651.26773.hselasky@c2i.net> On Monday 18 May 2009, Mario Pavlov wrote: > Hi, > no I haven't tried it on CURRENT > should I do that ? > is there something new in the USB stuff there ? There is a new USB stack in 8-current and a new libusb which is installed as a part of the base system. --HPS From lwindschuh at googlemail.com Tue May 19 08:20:08 2009 From: lwindschuh at googlemail.com (Lucius Windschuh) Date: Tue May 19 08:20:15 2009 Subject: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx Message-ID: <200905190820.n4J8K7od046892@freefall.freebsd.org> The following reply was made to PR usb/134476; it has been noted by GNATS. From: Lucius Windschuh To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/134476: [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx Date: Tue, 19 May 2009 09:39:14 +0200 Please close this report, as the quirks were committed to CURRENT. Lucius From freebsd at abv.bg Tue May 19 21:48:25 2009 From: freebsd at abv.bg (Mario Pavlov) Date: Tue May 19 21:48:49 2009 Subject: Unable to read from CCID USB reader Message-ID: <438704678.26539.1242769700629.JavaMail.apache@mail53.abv.bg> Hi, I tired CURRENT and it's working for me :) I only have one small issue... when I unplug the reader pcscd goes to some sort of infinite loop it would print this forever: 48111939 ccid_usb.c:491:WriteUSB() usb_bulk_write(/dev/usb//dev/ugen4.2): Device busy 00000020 ifdwrapper.c:469:IFDStatusICC() Card not transacted: 612 00000010 eventhandler.c:333:EHStatusHandlerThread() Error communicating to: ACS ACR 38U-CCID 00 00 00402930 ccid_usb.c:491:WriteUSB() usb_bulk_write(/dev/usb//dev/ugen4.2): Device not configured 00000021 ifdwrapper.c:469:IFDStatusICC() Card not transacted: 612 00000010 eventhandler.c:333:EHStatusHandlerThread() Error communicating to: ACS ACR 38U-CCID 00 00 00402953 ccid_usb.c:491:WriteUSB() usb_bulk_write(/dev/usb//dev/ugen4.2): Device not configured 00000016 ifdwrapper.c:469:IFDStatusICC() Card not transacted: 612 00000010 eventhandler.c:333:EHStatusHandlerThread() Error communicating to: ACS ACR 38U-CCID 00 00 ... ... ... firefox does almost the same thing: [opensc-pkcs11] reader-pcsc.c:1015:pcsc_detect_readers: returning with: No readers found [opensc-pkcs11] reader-pcsc.c:906:pcsc_detect_readers: SCardEstablishContext failed: 0x8010001d [opensc-pkcs11] reader-pcsc.c:1015:pcsc_detect_readers: returning with: No readers found [opensc-pkcs11] reader-pcsc.c:906:pcsc_detect_readers: SCardEstablishContext failed: 0x8010001d [opensc-pkcs11] reader-pcsc.c:1015:pcsc_detect_readers: returning with: No readers found ... ... ... I guess this is not FreeBSD's fault, is it ? thanks regards, mgp >On Monday 18 May 2009, Mario Pavlov wrote: >> Hi, >> no I haven't tried it on CURRENT >> should I do that ? >> is there something new in the USB stuff there ? > >There is a new USB stack in 8-current and a new libusb which is installed as a >part of the base system. > >--HPS > From hselasky at c2i.net Wed May 20 07:06:09 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Wed May 20 07:06:35 2009 Subject: Unable to read from CCID USB reader In-Reply-To: <438704678.26539.1242769700629.JavaMail.apache@mail53.abv.bg> References: <438704678.26539.1242769700629.JavaMail.apache@mail53.abv.bg> Message-ID: <200905200910.03093.hselasky@c2i.net> On Tuesday 19 May 2009, Mario Pavlov wrote: > Hi, > I tired CURRENT and it's working for me :) > I only have one small issue... > when I unplug the reader pcscd goes to some sort of infinite loop > it would print this forever: > > 48111939 ccid_usb.c:491:WriteUSB() usb_bulk_write(/dev/usb//dev/ugen4.2): > Device busy 00000020 ifdwrapper.c:469:IFDStatusICC() Card not transacted: > 612 > 00000010 eventhandler.c:333:EHStatusHandlerThread() Error communicating to: > ACS ACR 38U-CCID 00 00 00402930 ccid_usb.c:491:WriteUSB() > usb_bulk_write(/dev/usb//dev/ugen4.2): Device not configured 00000021 > ifdwrapper.c:469:IFDStatusICC() Card not transacted: 612 > 00000010 eventhandler.c:333:EHStatusHandlerThread() Error communicating to: > ACS ACR 38U-CCID 00 00 00402953 ccid_usb.c:491:WriteUSB() > usb_bulk_write(/dev/usb//dev/ugen4.2): Device not configured 00000016 > ifdwrapper.c:469:IFDStatusICC() Card not transacted: 612 > 00000010 eventhandler.c:333:EHStatusHandlerThread() Error communicating to: > ACS ACR 38U-CCID 00 00 ... Maybe a bug in the pcsc driver. > ... > ... > > firefox does almost the same thing: > > [opensc-pkcs11] reader-pcsc.c:1015:pcsc_detect_readers: returning with: No > readers found [opensc-pkcs11] reader-pcsc.c:906:pcsc_detect_readers: > SCardEstablishContext failed: 0x8010001d [opensc-pkcs11] > reader-pcsc.c:1015:pcsc_detect_readers: returning with: No readers found > [opensc-pkcs11] reader-pcsc.c:906:pcsc_detect_readers: > SCardEstablishContext failed: 0x8010001d [opensc-pkcs11] > reader-pcsc.c:1015:pcsc_detect_readers: returning with: No readers found > ... > ... > ... > > I guess this is not FreeBSD's fault, is it ? If the usb device /dev/usb/xxx for your device is not accessible to firefox then firefox can't open it. --HPS From doconnor at gsoft.com.au Wed May 20 23:10:04 2009 From: doconnor at gsoft.com.au (Daniel O'Connor) Date: Wed May 20 23:10:11 2009 Subject: usb/134766: Add blacklist for Cyberpower UPS to uhid Message-ID: <200905202240.n4KMeRSg047537@cain.gsoft.com.au> >Number: 134766 >Category: usb >Synopsis: Add blacklist for Cyberpower UPS to uhid >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed May 20 23:10:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Daniel O'Connor >Release: FreeBSD 7.2-RELEASE i386 >Organization: >Environment: FreeBSD substance.dyndns.org 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 08:49:13 UTC 2009 >Description: Add blacklist quirk for uhid for a Cyberpower UPS. >How-To-Repeat: >Fix: Index: sys/dev/usb/usb_quirks.c =================================================================== --- sys/dev/usb/usb_quirks.c (revision 192375) +++ sys/dev/usb/usb_quirks.c (working copy) @@ -120,6 +120,8 @@ ANY, { UQ_KBD_IGNORE }}, { USB_VENDOR_METAGEEK, USB_PRODUCT_METAGEEK_WISPY24X, ANY, { UQ_KBD_IGNORE }}, + { USB_VENDOR_CYBERPOWER, USB_PRODUCT_CYBERPOWER_1500CAVRLCD, + ANY, { UQ_KBD_IGNORE }}, { 0, 0, 0, { 0 } } }; >Release-Note: >Audit-Trail: >Unformatted: From gavin at FreeBSD.org Thu May 21 14:12:37 2009 From: gavin at FreeBSD.org (gavin@FreeBSD.org) Date: Thu May 21 14:12:44 2009 Subject: usb/134766: Add blacklist for Cyberpower UPS to uhid Message-ID: <200905211412.n4LECafu041134@freefall.freebsd.org> Synopsis: Add blacklist for Cyberpower UPS to uhid State-Changed-From-To: open->feedback State-Changed-By: gavin State-Changed-When: Thu May 21 14:08:54 UTC 2009 State-Changed-Why: To submitter: Are you sure your patch is correct? You seem to be using "UQ_KBD_IGNORE" rather than "UQ_HID_IGNORE", which is the quirk used by all of the other CyberPower LCD units. A patch for this LCD but using the UQ_HID_IGNORE quirk has already been committed to HEAD, RELENG_7 and RELENG_6 (after 7.2 was released) so it may be that we need to add an extra quirk to the entry that already exists. Responsible-Changed-From-To: freebsd-usb->gavin Responsible-Changed-By: gavin Responsible-Changed-When: Thu May 21 14:08:54 UTC 2009 Responsible-Changed-Why: Track http://www.freebsd.org/cgi/query-pr.cgi?pr=134766 From doconnor at gsoft.com.au Thu May 21 23:30:40 2009 From: doconnor at gsoft.com.au (Daniel O'Connor) Date: Thu May 21 23:30:47 2009 Subject: usb/134766: Add blacklist for Cyberpower UPS to uhid In-Reply-To: <200905211412.n4LECafu041134@freefall.freebsd.org> References: <200905211412.n4LECafu041134@freefall.freebsd.org> Message-ID: <200905220824.16075.doconnor@gsoft.com.au> On Thu, 21 May 2009, gavin@freebsd.org wrote: > Synopsis: Add blacklist for Cyberpower UPS to uhid > > State-Changed-From-To: open->feedback > State-Changed-By: gavin > State-Changed-When: Thu May 21 14:08:54 UTC 2009 > State-Changed-Why: > To submitter: Are you sure your patch is correct? You seem to be Hmm, it was tested by someone and did work. > using "UQ_KBD_IGNORE" rather than "UQ_HID_IGNORE", which is the quirk > used by all of the other CyberPower LCD units. A patch for this LCD I think UQ_HID_IGNORE is probably better. > but using the UQ_HID_IGNORE quirk has already been committed to HEAD, > RELENG_7 and RELENG_6 (after 7.2 was released) so it may be that we > need to add an extra quirk to the entry that already exists. Ahh OK, the tester only had 7.2 so I guess they didn't have the quirk.. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 188 bytes Desc: This is a digitally signed message part. Url : http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20090521/775da26c/attachment.pgp From sanpei at sanpei.org Fri May 22 12:24:06 2009 From: sanpei at sanpei.org (MIHIRA Sanpei Yoshiro) Date: Fri May 22 12:24:14 2009 Subject: USB sound driver status was diffrent from 8-current and 7.2-RELEASE Message-ID: <20090522.210429.98915222.sanpei@sanpei.org> Hi. I'm using USB audio device(*1) under 8-current and 7.2-RELEASE. *1 Kyo-On DIGI(sorry,this page was writtin in Japanese) http://www.area-powers.jp/product/usb_product/product/kyo-on/u1soundt4.html But sound driver status was diffrent from 8-current and 7.2-RELEASE [7.2-RELEASE] support recording and playback uaudio0: on uhub1 uaudio0: audio rev 1.00 pcm0: on uaudio0 uhid1: on uhub1 [8-current] only support recording, No playback!! dmesg ugen0.2: at usbus0 uaudio0: on usbus0 uaudio0: No playback! uaudio0: Record: 48000 Hz, 2 ch, 16-bit S-LE PCM format uaudio0: No midi sequencer pcm0: on uaudio0 uhid0: on usbus0 cat /dev/sndstat FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386) Installed devices: pcm0: at ? kld snd_uaudio [GIANT] (0p:0v/1r:1v channels default) How can I support playback on 8-current. Cheers --- MIHIRA, Sanpei Yoshiro Tokyo, Japan. From hselasky at c2i.net Fri May 22 12:34:15 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Fri May 22 12:34:48 2009 Subject: USB sound driver status was diffrent from 8-current and 7.2-RELEASE In-Reply-To: <20090522.210429.98915222.sanpei@sanpei.org> References: <20090522.210429.98915222.sanpei@sanpei.org> Message-ID: <200905221438.12911.hselasky@c2i.net> On Friday 22 May 2009, MIHIRA Sanpei Yoshiro wrote: > Hi. > > I'm using USB audio device(*1) under 8-current and 7.2-RELEASE. > > *1 Kyo-On DIGI(sorry,this page was writtin in Japanese) > http://www.area-powers.jp/product/usb_product/product/kyo-on/u1soundt4.html > > But sound driver status was diffrent from 8-current and 7.2-RELEASE > > [7.2-RELEASE] > support recording and playback > > uaudio0: on > uhub1 uaudio0: audio rev 1.00 > pcm0: on uaudio0 > uhid1: on uhub1 > > [8-current] > only support recording, No playback!! > dmesg > ugen0.2: at usbus0 > uaudio0: on usbus0 > uaudio0: No playback! > uaudio0: Record: 48000 Hz, 2 ch, 16-bit S-LE PCM format > uaudio0: No midi sequencer > pcm0: on uaudio0 > uhid0: on usbus0 > > cat /dev/sndstat > FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386) > Installed devices: > pcm0: at ? kld snd_uaudio [GIANT] (0p:0v/1r:1v channels > default) > > How can I support playback on 8-current. Hi, Try turning on debugging before plugging your device. sysctl hw.usb.uaudio.debug=15 sysctl hw.usb2.uaudio.debug=15 Also see the other uaudio sysctls. --HPS From sanpei at sanpei.org Fri May 22 13:02:42 2009 From: sanpei at sanpei.org (MIHIRA Sanpei Yoshiro) Date: Fri May 22 13:02:49 2009 Subject: USB sound driver status was diffrent from 8-current and 7.2-RELEASE In-Reply-To: <200905221438.12911.hselasky@c2i.net> References: <20090522.210429.98915222.sanpei@sanpei.org> <200905221438.12911.hselasky@c2i.net> Message-ID: <20090522.220239.241413739.sanpei@sanpei.org> >Try turning on debugging before plugging your device. > >sysctl hw.usb.uaudio.debug=15 >sysctl hw.usb2.uaudio.debug=15 > >Also see the other uaudio sysctls. sysctl -a | grep uaudio hw.usb2.uaudio.default_channels: 2 hw.usb2.uaudio.default_bits: 32 hw.usb2.uaudio.default_rate: 96000 hw.usb2.uaudio.debug: 15 dev.uaudio.0.%desc: ABC product 0x0006, class 0/0, rev 1.10/0.10, addr 2 dev.uaudio.0.%driver: uaudio dev.uaudio.0.%location: port=4 interface=0 dev.uaudio.0.%pnpinfo: vendor=0x0d8c product=0x0006 devclass=0x00 devsubclass=0x00 sernum="" intclass=0x01 intsubclass=0x01 dev.uaudio.0.%parent: uhub0 dev.pcm.0.%parent: uaudio0 dmesg is below URL http://www3.sanpei.org/~sanpei/tmp/uaudio-8-current --- MIHIRA, Sanpei Yoshiro Tokyo, Japan. From hselasky at c2i.net Fri May 22 13:24:00 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Fri May 22 13:24:06 2009 Subject: USB sound driver status was diffrent from 8-current and 7.2-RELEASE In-Reply-To: <20090522.220239.241413739.sanpei@sanpei.org> References: <20090522.210429.98915222.sanpei@sanpei.org> <200905221438.12911.hselasky@c2i.net> <20090522.220239.241413739.sanpei@sanpei.org> Message-ID: <200905221527.58395.hselasky@c2i.net> On Friday 22 May 2009, MIHIRA Sanpei Yoshiro wrote: > http://www3.sanpei.org/~sanpei/tmp/uaudio-8-current Could you send me output from: usbconfig -u X -a Y dump_curr_config_desc Number X and Y are the numbers after ugen for your Audio device. --HPS From sanpei at sanpei.org Fri May 22 15:12:06 2009 From: sanpei at sanpei.org (MIHIRA Sanpei Yoshiro) Date: Fri May 22 15:12:14 2009 Subject: USB sound driver status was diffrent from 8-current and 7.2-RELEASE In-Reply-To: <200905221527.58395.hselasky@c2i.net> References: <200905221438.12911.hselasky@c2i.net> <20090522.220239.241413739.sanpei@sanpei.org> <200905221527.58395.hselasky@c2i.net> Message-ID: <20090523.001201.52222678.sanpei@sanpei.org> >On Friday 22 May 2009, MIHIRA Sanpei Yoshiro wrote: >> http://www3.sanpei.org/~sanpei/tmp/uaudio-8-current > >Could you send me output from: > >usbconfig -u X -a Y dump_curr_config_desc > >Number X and Y are the numbers after ugen for your Audio device. I got it. http://www3.sanpei.org/~sanpei/tmp/dump_curr_config_desc_ABC-sound-card Cheers. --- MIHIRA, Sanpei Yoshiro Tokyo, Japan. From hselasky at c2i.net Fri May 22 16:37:17 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Fri May 22 16:37:24 2009 Subject: USB sound driver status was diffrent from 8-current and 7.2-RELEASE In-Reply-To: <20090523.001201.52222678.sanpei@sanpei.org> References: <200905221438.12911.hselasky@c2i.net> <200905221527.58395.hselasky@c2i.net> <20090523.001201.52222678.sanpei@sanpei.org> Message-ID: <200905221841.13930.hselasky@c2i.net> On Friday 22 May 2009, MIHIRA Sanpei Yoshiro wrote: > >On Friday 22 May 2009, MIHIRA Sanpei Yoshiro wrote: > >> http://www3.sanpei.org/~sanpei/tmp/uaudio-8-current > > > >Could you send me output from: > > > >usbconfig -u X -a Y dump_curr_config_desc > > > >Number X and Y are the numbers after ugen for your Audio device. > > I got it. > http://www3.sanpei.org/~sanpei/tmp/dump_curr_config_desc_ABC-sound-card > Hi, Your audio device has a missing stereo mode description. I presents 8 channels, but BSD only supports 2 channels. Try this patch: http://perforce.freebsd.org/chv.cgi?CH=162516 --HPS From bugmaster at FreeBSD.org Mon May 25 11:07:06 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon May 25 11:10:25 2009 Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org Message-ID: <200905251107.n4PB72dk092992@freefall.freebsd.org> Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/134633 usb Add support for WILLCOM03(SHARP smart phone) o usb/134631 usb [usbdevs] [patch] WiSPY DBx support requires usb tweak o usb/134476 usb [usb2] [umass] [quirk] Add quirk for Cypress xx6830xx o usb/134299 usb Kernel Panic plugging in MF626 USB UMTS Stick u3g o usb/134193 usb System freeze on usb MP3 player insertion o usb/134117 usb [Patch] Add support for 'Option GlobeTrotter HSDPA Mod o usb/134085 usb [umass] Adding usb quirk for Sony USB flash drive o usb/133989 usb [newusb] [ukbd] USB keyboard dead at mountroot> prompt f usb/133545 usb [usb] [panic] Kernel crash in usb2_intr_schedule_adjus o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb rum driver not working properly in hostap mode p usb/132799 usb [usb][patch]GENESYS USB2IDE requires NO_SYNCHRONIZE_CA o usb/132785 usb [usb] [patch] Gemtech remote powersocket is classed as o usb/132594 usb USB subsystem causes page fault and crashes o usb/132312 usb Xorg 7.4 halts USB controller o usb/132080 usb [patch] [usb] Kernel panic after NOMEM caused by rum c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131912 usb [uslcom] [patch] New devices using Silicon Labs chips o usb/131900 usb [usbdevs] [patch] Additional product identification co o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c f usb/131123 usb [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130325 usb [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh o usb/130230 usb Samsung Electronics YP-U3 does not attach in 7.1-RELEA o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [newusb] DVD drive detects as 'da' device o docs/129962 usb [newusb] usbconfig(8) refers to non-existant usb2_core o usb/129945 usb [usbdevs] [patch] add u3g support for Longcheer WM66 U o usb/129766 usb [usb] plugging in usb modem HUAWEI E226 panics system o usb/129758 usb [uftdi] [patch] add Pyramid LCD usb support o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129522 usb [ubsa] [patch] add support for ZTE AC8700 modem o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader o usb/129251 usb [usbdevs] [patch] Liebert UPS being assigned uhid and o usb/129173 usb [uplcom] [patch] Add support for Corega CG-USBRS232R a s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb] [patch] uaudio is not full duplex o usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive f usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/128324 usb [uplcom] [patch] remove baud rate restriction for PL23 o usb/127980 usb [umass] [patch] Fix Samsung YP U2 MP3 player on 7.x an o usb/127926 usb [boot] USB Timeout during bootup o usb/127549 usb [umass] [patch] Meizu MiniPlayer M6 (SL) requires some s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should o usb/127423 usb [boot] BTX halted on Gigabyte GA-MA69VM-S2 / AMD Sempr o usb/127342 usb [boot] cannot enable usb keyboard and mouse support in o usb/127248 usb [ucom] panic while uplcom devices attaach and detach o kern/127222 usb [ohci]: Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c f usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125264 usb [patch] sysctl for set usb mouse rate (very useful for o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone o usb/123352 usb [usbdevs] [patch] Add Option GTMAX3.6/7.2 and Quallcom o usb/123351 usb [usbdevs] [patch] Add Reiner SCT cyberJack, Omnikey [2 o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122956 usb [ubsa] [patch] add support for Novatel Wireless XU870 o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122621 usb [patch] [request] New driver for Sierra Wireless 3G US o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/122025 usb [uscanner] [patch] uscanner does not attach to Epson R o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s p usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [umass] [patch] Problems with connection of the umass o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af a usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC o usb/109397 usb [panic] on boot from USB flash o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE [regr s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/107924 usb [patch] usbd(8) does not call detach o usb/107848 usb [umass] [request] cannot access Samsung flash disk o usb/107827 usb [ohci] [panic] ohci_add_done addr not found o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) [ o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107243 usb [cam] [patch] Apacer USB Flash Drive quirk o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze s usb/106832 usb [usb] USB HP printer is not detected by kernel when AC o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/105065 usb [ata] [usb] SATA - USB Bridge o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/104645 usb [umass] [request] Rave C-201 MP3 player does not commu o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/103917 usb [uhub] USB driver reports "Addr 0 should never happen" o usb/103418 usb usbhidctl(1): [patch] [request] usbhidctl: add ability o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/102678 usb [keyboard] Dell PowerEdge DRAC5 USB Keyboard does not o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101096 usb [ural] [panic] USB WLAN occasionally causes kernel-pan o usb/100746 usb [keyboard] system does not boot due to USB keyboard pr o usb/99538 usb [keyboard] while using USB keyboard default params of o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o kern/99200 usb [bluetooth] SMP-Kernel crashes reliably when Bluetooth o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91629 usb [usb] usbd_abort_pipe() may result in infinite loop o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device f usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80829 usb [modules] [panic] possible panic when loading USB-modu s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/79722 usb [ehci] wrong alignments in ehci.h a usb/79656 usb [ehci] RHSC interrupts lost o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75797 usb [sound] 5.3-STABLE(2005 1/4) detect USB headset, But c o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 313 problems total. From julian at elischer.org Mon May 25 18:31:03 2009 From: julian at elischer.org (Julian Elischer) Date: Mon May 25 18:31:10 2009 Subject: Panic in netgraph with VIMAGE In-Reply-To: <200905251547.59432.zec@icir.org> References: <200905251506.27771.freebsd-virtualization@dino.sk> <200905251547.59432.zec@icir.org> Message-ID: <4A1AE08E.5010007@elischer.org> Marko Zec wrote: > On Monday 25 May 2009 15:06:27 Milan Obuch wrote: >> Hi, >> there is some bug in (most probably) netgraph code. I did fresh csup and >> rebuild today. Whenever I try to turn bluetooth on (equivalent to plugging >> in the dongle), panic occurs: >> >> ubt0: > 2.00/31.64, addr 2> on usbus3 >> panic: >> in /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:634 >> ng_make_node_common() >> vnet=0 curvnet=0 >> cpuid = 0 >> >> This does not occur with kernel from sources three days old. > > This is a known problem related to curvnet context not being set by the USB > device attach code - I have to lurk / shop around for some cheap USB ethernet > or bt devices to be able to reproduce & fix this locally, the alternative > would be wild guessing and planting context setting macros at random places > in the USB code, i.e. without testing, which I'm reluctant to do. > it probably requires someone who knows the bluetooth and usb-ethernet code to decide how this is done. It seems to me that the bluetooth stuff should probably just always set itself to the base (default) vimage, as it has many kinds of devices that are not really 'interfaces' so to speak and probably deserve to be in the base virtual machine. It does have SOME interface type devices in theory but I don't know if they are supported. Maksim, in vimage, before yo call teh netgraph code, the mbuf should have an interface pointer and that in turn should have a pointer to the vimage.. Alternatively, the thread coming into netgraph should run code from vimage.h that sets the current image for that thread. can you suggest places that this may occur? > Marko > > >> Part from core.txt file: >> >> #0 doadump () at pcpu.h:246 >> 246<--->pcpu.h: No such file or directory. >> <------>in pcpu.h >> (kgdb) #0 doadump () at pcpu.h:246 >> #1 0xc0554e0e in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:420 >> #2 0xc05550e2 in panic (fmt=Variable "fmt" is not available. >> ) at /usr/src/sys/kern/kern_shutdown.c:576 >> #3 0xc0b947c1 in ng_make_node_common (type=0xc0b8f9a0, nodepp=0xc416b3a8) >> at >> /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:634 #4 >> 0xc0b8bcc4 in ubt_attach (dev=0xc4294280) >> >> at >> /usr/src/sys/modules/netgraph/bluetooth/ubt/../../../../dev/usb/bluetooth/n >> g_ubt.c:443 #5 0xc057dcbf in device_attach (dev=0xc4294280) at >> device_if.h:178 #6 0xc057e88e in device_probe_and_attach (dev=0xc4294280) >> at /usr/src/sys/kern/subr_bus.c:2473 >> #7 0xc0b38240 in usb2_probe_and_attach_sub (udev=0xc41fd800, >> uaa=0xe4116c1c) at >> /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_device.c:1131 #8 >> 0xc0b3871a in usb2_probe_and_attach (udev=0xc41fd800, iface_index=255 '?') >> at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_device.c:1288 #9 >> 0xc0b40ff0 in uhub_explore (udev=0xc3f07000) >> at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_hub.c:218 >> #10 0xc0b31f29 in usb2_bus_explore (pm=0xc3ed0dd4) >> >> at >> /usr/src/sys/modules/usb/usb/../../../dev/usb/controller/usb_controller.c:2 >> 15 #11 0xc0b4343a in usb2_process (arg=0xc3ed0d74) >> at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_process.c:139 >> #12 0xc0530008 in fork_exit (callout=0xc0b43360 ,. >> arg=0xc3ed0d74, frame=0xe4116d38) at /usr/src/sys/kern/kern_fork.c:830 >> #13 0xc070b550 in fork_trampoline () at >> /usr/src/sys/i386/i386/exception.s:270 >> >> At line 634 in ng_base.c, there is >> >> INIT_VNET_NETGRAPH(curvnet); >> >> I have options VIMAGE in my kernel config (actually this is first one >> succesfully compiled with mentioned option, but I did not try it too often, >> it just failed to compile before). >> >> Now I recompiled kernel again, this time without options VIMAGE in config, >> and panic does not occur. >> >> So the original problem is INIT_VNET_NETGRAPH implementation in presence of >> options VIMAGE in kernel config. If anyone has anything to test, please let >> me know. >> >> Regards, >> Milan >> _______________________________________________ >> freebsd-virtualization@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization >> To unsubscribe, send any mail to >> "freebsd-virtualization-unsubscribe@freebsd.org" > > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org" From emax at freebsd.org Tue May 26 02:46:21 2009 From: emax at freebsd.org (Maksim Yevmenkin) Date: Tue May 26 02:46:58 2009 Subject: Panic in netgraph with VIMAGE In-Reply-To: <4A1AE08E.5010007@elischer.org> References: <200905251506.27771.freebsd-virtualization@dino.sk> <200905251547.59432.zec@icir.org> <4A1AE08E.5010007@elischer.org> Message-ID: On Mon, May 25, 2009 at 11:16 AM, Julian Elischer wrote: > Marko Zec wrote: >> >> On Monday 25 May 2009 15:06:27 Milan Obuch wrote: >>> >>> Hi, >>> there is some bug in (most probably) netgraph code. I did fresh csup and >>> rebuild today. Whenever I try to turn bluetooth on (equivalent to >>> plugging >>> in the dongle), panic occurs: >>> >>> ubt0: >> 2.00/31.64, addr 2> on usbus3 >>> panic: >>> in /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:634 >>> ng_make_node_common() >>> ?vnet=0 curvnet=0 >>> cpuid = 0 >>> >>> This does not occur with kernel from sources three days old. >> >> This is a known problem related to curvnet context not being set by the >> USB device attach code - I have to lurk / shop around for some cheap USB >> ethernet or bt devices to be able to reproduce & fix this locally, the >> alternative would be wild guessing and planting context setting macros at >> random places in the USB code, i.e. without testing, which I'm reluctant to >> do. >> > > it probably requires someone who knows the bluetooth and usb-ethernet > code to decide how this is done. > > It seems to me that the bluetooth stuff should probably just always set > itself to the base (default) vimage, as it has many kinds of devices that > are not really 'interfaces' so to speak and probably deserve to be in the > base virtual machine. > It does have SOME interface type devices in theory but I don't know if they > are supported. > > Maksim, in vimage, before yo call teh netgraph code, the mbuf should have an > interface pointer and that in turn should have a pointer to the vimage.. > Alternatively, the thread coming into netgraph should run code from vimage.h > that sets the current image for that thread. ?can you suggest places that > this may occur? hmm... i do not really know anything about vimage (yet :), but the call to INIT_VNET_NETGRAPH() in ng_make_node_common() seems (to me) out of place. from what i understand, ng_make_node_common() called on all sorts of nodes. some of those are not even network related. it seems to me that network related netgraph nodes (ng_(e)iface, ng_(k)socket, etc.) obviously should set vimage etc. pointer, however for the rest of the nodes some reasonable defaults should be used. as far as setting interface pointer in mbuf its going to be tricky. bluetooth devices do not associated with any network interface, so i'm not sure how to do it. i will need to study the code for a little bit before i can make any intelligent suggestions. thanks, max From sergey at megaded.info Tue May 26 08:40:03 2009 From: sergey at megaded.info (Sergey) Date: Tue May 26 08:40:10 2009 Subject: usb/134950: Lowering DTR for USB-modem via ubsa is not possible Message-ID: <200905260830.n4Q8UDgD000254@www.freebsd.org> >Number: 134950 >Category: usb >Synopsis: Lowering DTR for USB-modem via ubsa is not possible >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 26 08:40:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Sergey >Release: 7.2-STABLE >Organization: N\a >Environment: FreeBSD irk-gw.intra 7.2-STABLE FreeBSD 7.2-STABLE #1: Sun May 24 23:32:08 IRKST 2009 root@irk-gw.intra:/usr/home/obj/usr/home/src/sys/MYGATE i386 >Description: AnyDATA ADU-500A CDMA Rev. A USB-modem works via ubsa.ko This device need to catch NO CARRIER to disconnect correctly. WinXP does it with lowering DTR to 0. In ppp.conf is following evdo: set device /dev/cuaU0 set speed 115200 set mru 1400 set mtu 1400 set timeout 160 disable mppe set phone \#777 set dial "ABORT BUSY ABORT ERROR ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATZ OK AT OK "ATE0V1&F&D2&C1S0=0" OK ATX1 OK AT OK \\dATDT\\T TIMEOUT 40 CONNECT" set logout "ABORT BUSY ABORT ERROR ABORT NO\\sCARRIER TIMEOUT 30 \"\" ATH\\sE1 OK" set authname bwc set authkey bwcbwc set login set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR All AT-commands got from windows driver. It is working good, but when I disconnect with killing ppp it doesn't disconnect and write this to log. May 25 01:10:00 irk-gw ppp[1468]: tun0: Warning: deflink: Unable to set physical to speed 0 May 25 01:10:00 irk-gw kernel: ucom0: ubsa_request(0, 18): STALLED May 25 01:10:00 irk-gw kernel: ucom0: ubsa_request(3, 0): STALLED May 25 01:10:00 irk-gw kernel: ucom0: ubsa_request(2, 3): STALLED May 25 01:10:00 irk-gw kernel: ucom0: ubsa_request(1, 0): STALLED May 25 01:10:00 irk-gw kernel: ucom0: ubsa_request(10, 180): STALLED May 25 01:10:00 irk-gw kernel: ucom0: ubsa_request(a, 0): STALLED Modem still online after disconnect and to connect again I need to swith off usb-cable and than switch it on. >How-To-Repeat: ppp -ddial evdo killall ppp. cu -l /dev/cuaU0 you'll see that modem is sending data and doesn't disconnect. Again ppp -ddial evdo will not connect. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From avg at icyb.net.ua Wed May 27 12:29:22 2009 From: avg at icyb.net.ua (Andriy Gapon) Date: Wed May 27 12:29:35 2009 Subject: usb keyboard detected after mountroot Message-ID: <4A1D321F.7060907@icyb.net.ua> I think it's time to remind of this issue again. I have no clue why it happens but on my system I consistently see that my USB keyboard is detected after mountroot. This worries me because this is a "legacy free" system, i.e. it has no PS/2 ports. So if something unexpected happens I won't be able to enter different boot device should kernel boot ever stop at mountroot prompt. Some details. With stable/7 I see that my USB mouse is consistently detected way before mountroot. But the USB keyboard most often is detected after mountroot. But sometimes, very infrequently, it is detected at the same time as the mouse. With recent current (and HPS USB, of course) I see that both of the USB devices are consistently detected after mountroot: ... Trying to mount root from zfs:pond/ROOT/original ct_to_ts([2009-05-26 18:17:07]) = 1243361827.000000000 start_init: trying /sbin/init ugen2.2: at usbus2 ugen6.2: at usbus6 ukbd0: on usbus6 kbd2 at ukbd0 kbd2: ukbd0, generic (0), config:0x0, flags:0x3d0000 ums0: on usbus2 ums0: 8 buttons and [XYZ] coordinates ID=0 uhid0: on usbus6 -- Andriy Gapon From emikulic at gmail.com Thu May 28 05:20:06 2009 From: emikulic at gmail.com (Emil Mikulic) Date: Thu May 28 05:20:13 2009 Subject: usb keyboard detected after mountroot In-Reply-To: <4A1D321F.7060907@icyb.net.ua> References: <4A1D321F.7060907@icyb.net.ua> Message-ID: <20090528045258.GA51336@dmr.ath.cx> On Wed, May 27, 2009 at 03:29:19PM +0300, Andriy Gapon wrote: > I think it's time to remind of this issue again. I have no clue why > it happens but on my system I consistently see that my USB keyboard is > detected after mountroot. This worries me because this is a "legacy > free" system, i.e. it has no PS/2 ports. So if something unexpected > happens I won't be able to enter different boot device should kernel > boot ever stop at mountroot prompt. I have the same problem and filed a PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=133989 The PR contains a patch that calls pause() in the prompt code. This gets the keyboard detected but not actually working. :( --Emil From avg at icyb.net.ua Thu May 28 15:23:47 2009 From: avg at icyb.net.ua (Andriy Gapon) Date: Thu May 28 15:23:53 2009 Subject: usb keyboard detected after mountroot In-Reply-To: <20090528045258.GA51336@dmr.ath.cx> References: <4A1D321F.7060907@icyb.net.ua> <20090528045258.GA51336@dmr.ath.cx> Message-ID: <4A1EAC7D.7000703@icyb.net.ua> on 28/05/2009 07:52 Emil Mikulic said the following: > On Wed, May 27, 2009 at 03:29:19PM +0300, Andriy Gapon wrote: >> I think it's time to remind of this issue again. I have no clue why >> it happens but on my system I consistently see that my USB keyboard is >> detected after mountroot. This worries me because this is a "legacy >> free" system, i.e. it has no PS/2 ports. So if something unexpected >> happens I won't be able to enter different boot device should kernel >> boot ever stop at mountroot prompt. > > I have the same problem and filed a PR: > http://www.freebsd.org/cgi/query-pr.cgi?pr=133989 > > The PR contains a patch that calls pause() in the prompt code. This > gets the keyboard detected but not actually working. :( Thank you for the info! I updated the PR with my details, hope this issue won't go unnoticed :-) -- Andriy Gapon From avg at icyb.net.ua Thu May 28 15:40:11 2009 From: avg at icyb.net.ua (Andriy Gapon) Date: Thu May 28 15:40:23 2009 Subject: usb/133989: [newusb] [ukbd] USB keyboard dead at mountroot> prompt Message-ID: <200905281540.n4SFe49k074629@freefall.freebsd.org> The following reply was made to PR usb/133989; it has been noted by GNATS. From: Andriy Gapon To: bug-followup@FreeBSD.org, emikulic@gmail.com Cc: Subject: Re: usb/133989: [newusb] [ukbd] USB keyboard dead at mountroot> prompt Date: Thu, 28 May 2009 18:22:29 +0300 "Me too" here. I have a "legacy-free" system with no PS/2 ports, so I have no choice but use USB keyboard and mouse. And because of this issue I am afraid that I could into a situation where I'd be stuck at mountroot prompt with no input capability. LiveCD would help, but... What's interesting is that with stable/7 my mouse is detected way before mountroot prompt. This happens during "cold explore" phase, I think. But the keyboard is usually found after mountroot phase, but sometimes, very infrequently, it happens before. Typical dmesg: [various stuff] [more usb messages] usb5: on uhci4 usb5: USB revision 1.0 uhub5: on usb5 uhub5: 2 ports with 2 removable, self powered uhci5: port 0x2040-0x205f irq 18 at device 29.2 on pci0 uhci5: Reserved 0x20 bytes for rid 0x20 type 4 at 0x2040 uhci5: [GIANT-LOCKED] uhci5: [ITHREAD] usb6: on uhci5 usb6: USB revision 1.0 uhub6: on usb6 uhub6: 2 ports with 2 removable, self powered ehci1: mem 0xe0425800-0xe0425bff irq 23 at device 29.7 on pci0 ehci1: Reserved 0x400 bytes for rid 0x10 type 3 at 0xe0425800 ehci1: [GIANT-LOCKED] ehci1: [ITHREAD] usb7: EHCI version 1.0 usb7: companion controllers, 2 ports each: usb4 usb5 usb6 usb7: on ehci1 usb7: USB revision 2.0 uhub7: on usb7 uhub7: 6 ports with 6 removable, self powered ... [more stuff] isa_probe_children: probing PnP devices ums0: on uhub2 ums0: 8 buttons and Z dir. ... [more stuff] Trying to mount root from zfs:tank/root ukbd0: on uhub6 kbd1 at ukbd0 kbd1: ukbd0, generic (0), config:0x0, flags:0x3d0000 uhid0: on uhub6 But in head (with new usb stack, of course) I see that USB mouse and keyboard are discovered about the same time and so far it is always after mountroot phase: Typical (verbose) dmesg: [various stuff] [more usb controllers] usbus5: on uhci4 uhci5: port 0x2040-0x205f irq 18 at device 29.2 on pci0 uhci5: Reserved 0x20 bytes for rid 0x20 type 4 at 0x2040 uhci5: [MPSAFE] uhci5: [ITHREAD] uhci5: LegSup = 0x0f10 usbus6: on uhci5 ehci1: mem 0xe0425800-0xe0425bff irq 23 at device 29.7 on pci0 ehci1: Reserved 0x400 bytes for rid 0x10 type 3 at 0xe0425800 ehci1: [MPSAFE] ehci1: [ITHREAD] usbus7: EHCI version 1.0 usbus7: on ehci1 ... [more stuff, interrupts enabled phase] usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 480Mbps High Speed USB v2.0 usbus4: 12Mbps Full Speed USB v1.0 usbus5: 12Mbps Full Speed USB v1.0 usbus6: 12Mbps Full Speed USB v1.0 usbus7: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub4: on usbus4 ugen5.1: at usbus5 uhub5: on usbus5 ugen6.1: at usbus6 uhub6: on usbus6 ugen7.1: at usbus7 uhub7: on usbus7 ... [more stuff] uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered uhub4: 2 ports with 2 removable, self powered uhub5: 2 ports with 2 removable, self powered uhub6: 2 ports with 2 removable, self powered uhub3: 6 ports with 6 removable, self powered uhub7: 6 ports with 6 removable, self powered ... SMP: AP CPU #1 Launched! ... Trying to mount root from zfs:pond/ROOT/original start_init: trying /sbin/init ugen2.2: at usbus2 ugen6.2: at usbus6 ukbd0: on usbus6 kbd2 at ukbd0 kbd2: ukbd0, generic (0), config:0x0, flags:0x3d0000 ums0: on usbus2 ums0: 8 buttons and [XYZ] coordinates ID=0 uhid0: on usbus6 I can provide full dmesgs, output of any tools, etc. P.S. please also see this thread about my investigation of this issue in stable/7: http://lists.freebsd.org/pipermail/freebsd-hackers/2008-November/026832.html -- Andriy Gapon From linimon at FreeBSD.org Thu May 28 21:20:37 2009 From: linimon at FreeBSD.org (linimon@FreeBSD.org) Date: Thu May 28 21:20:48 2009 Subject: usb/135009: [uath] [patch] Accton ar5523 products not in "uath" driver Message-ID: <200905282120.n4SLKaTW035808@freefall.freebsd.org> Old Synopsis: Accton ar5523 products not in "uath" driver New Synopsis: [uath] [patch] Accton ar5523 products not in "uath" driver Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Thu May 28 21:19:55 UTC 2009 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=135009 From volker at vwsoft.com Thu May 28 22:22:16 2009 From: volker at vwsoft.com (Volker) Date: Thu May 28 22:22:29 2009 Subject: usb keyboard detected after mountroot In-Reply-To: <4A1D321F.7060907@icyb.net.ua> References: <4A1D321F.7060907@icyb.net.ua> Message-ID: <4A1F087E.8030409@vwsoft.com> On 12/23/-58 20:59, Andriy Gapon wrote: > I think it's time to remind of this issue again. > I have no clue why it happens but on my system I consistently see that my USB > keyboard is detected after mountroot. This worries me because this is a "legacy > free" system, i.e. it has no PS/2 ports. So if something unexpected happens I > won't be able to enter different boot device should kernel boot ever stop at > mountroot prompt. > > Some details. > With stable/7 I see that my USB mouse is consistently detected way before > mountroot. But the USB keyboard most often is detected after mountroot. But > sometimes, very infrequently, it is detected at the same time as the mouse. > > With recent current (and HPS USB, of course) I see that both of the USB devices > are consistently detected after mountroot: > ... > Trying to mount root from zfs:pond/ROOT/original > ct_to_ts([2009-05-26 18:17:07]) = 1243361827.000000000 > start_init: trying /sbin/init > ugen2.2: at usbus2 > ugen6.2: at usbus6 > ukbd0: on usbus6 > kbd2 at ukbd0 > kbd2: ukbd0, generic (0), config:0x0, flags:0x3d0000 > ums0: on usbus2 > ums0: 8 buttons and [XYZ] coordinates ID=0 > uhid0: on usbus6 > > Andriy, I think this is related to an issue I was experiencing two days ago. I tried to boot an 8.0-CURRENT system off an USB thumb drive and it worked fine on some machines, but failed with mounting root (off the thumb drive) on some others. I think we need some more delay to give drivers the chance to complete device probing before the root mount is being tried but I hate to just blindly hack a delay somewhere. Will check that issue, eventually next week. Volker From hselasky at c2i.net Fri May 29 08:13:00 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Fri May 29 08:13:06 2009 Subject: HEADS UP: USB symbols have been renamed in 8-current Message-ID: <200905291017.04306.hselasky@c2i.net> See: http://svn.freebsd.org/changeset/base/192984 And rename script: http://people.freebsd.org/~thompsa/usbstruct.txt --HPS From weongyo at FreeBSD.org Fri May 29 08:21:54 2009 From: weongyo at FreeBSD.org (weongyo@FreeBSD.org) Date: Fri May 29 08:22:00 2009 Subject: usb/135009: [uath] [patch] Accton ar5523 products not in "uath" driver Message-ID: <200905290821.n4T8LrR2085290@freefall.freebsd.org> Synopsis: [uath] [patch] Accton ar5523 products not in "uath" driver Responsible-Changed-From-To: freebsd-usb->weongyo Responsible-Changed-By: weongyo Responsible-Changed-When: Fri May 29 08:21:30 UTC 2009 Responsible-Changed-Why: Grab. http://www.freebsd.org/cgi/query-pr.cgi?pr=135009