From bugmaster at FreeBSD.org Mon Jun 1 11:07:05 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon Jun 1 11:09:48 2009 Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org Message-ID: <200906011107.n51B71RO021270@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/134950 usb Lowering DTR for USB-modem via ubsa is not possible 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 314 problems total. From hselasky at c2i.net Tue Jun 2 07:33:14 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jun 2 07:33:20 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: <200906020937.20466.hselasky@c2i.net> Hi Christoph! Rui Paulo has an additional patch for ukbd.c. Can you look at it and verify? --HPS Here's how it worked: http://wiki.freebsd.org/AppleMacbook#head-7eab3730c3bf3d04bdfb0d1d3649eaddf2fed595 If there's any problem with the userland approach, I would like to know. If there isn't, please consider removing the kenrel support for the eject key. From wojtek at tensor.gdynia.pl Tue Jun 2 16:00:12 2009 From: wojtek at tensor.gdynia.pl (Wojciech Puchar) Date: Tue Jun 2 16:00:20 2009 Subject: usb/135182: UMASS quirk - Olympus FE20 camera Message-ID: <200906021555.n52FtpVu069657@www.freebsd.org> >Number: 135182 >Category: usb >Synopsis: UMASS quirk - Olympus FE20 camera >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jun 02 16:00:11 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Wojciech Puchar >Release: 7.2-BETA1 >Organization: TENSOR ap >Environment: FreeBSD wojtek.tensor.gdynia.pl 7.2-BETA1 FreeBSD 7.2-BETA1 #0: Mon Apr 6 14:14:29 CEST 2009 root@wojtek.tensor.gdynia.pl:/tmp/k i386 >Description: Olympus FE-20 camera when connected to USB, works fine as a USB disk but produces LOTs of messages like Jun 2 16:59:07 wojtek kernel: (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 >How-To-Repeat: connect Olympus FE-20 camera to USB and try to use it >Fix: Patch attached with submission follows: --- usbdevs.orig 2009-06-02 16:40:40.000000000 +0200 +++ usbdevs 2009-06-02 16:40:40.000000000 +0200 @@ -1891,6 +1891,7 @@ /* Olympus products */ product OLYMPUS C1 0x0102 C-1 Digital Camera product OLYMPUS C700 0x0105 C-700 Ultra Zoom +product OLYMPUS FE20 0x0109 FE-20 /* OmniVision Technologies, Inc. products */ product OMNIVISION OV511 0x0511 OV511 Camera --- umass.c.orig 2009-06-02 17:04:39.000000000 +0200 +++ umass.c 2009-06-02 17:37:46.000000000 +0200 @@ -603,6 +603,10 @@ UMASS_PROTO_SCSI, NO_GETMAXLUN }, + { USB_VENDOR_OLYMPUS, USB_PRODUCT_OLYMPUS_FE20, RID_WILDCARD, + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, + NO_SYNCHRONIZE_CACHE + }, { USB_VENDOR_ONSPEC, USB_PRODUCT_ONSPEC_CFMS_RW, RID_WILDCARD, UMASS_PROTO_SCSI, NO_QUIRKS >Release-Note: >Audit-Trail: >Unformatted: From credo8 at yandex.ru Wed Jun 3 04:10:02 2009 From: credo8 at yandex.ru (Sergey Teryoshkin) Date: Wed Jun 3 04:10:08 2009 Subject: usb/135200: SAMSUNG i740 usb mass: Synchronize cache failed, status == 0x39, scsi status == 0x0 Message-ID: <200906030403.n5343oNR046657@www.freebsd.org> >Number: 135200 >Category: usb >Synopsis: SAMSUNG i740 usb mass: Synchronize cache failed, status == 0x39, scsi status == 0x0 >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: Wed Jun 03 04:10:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Sergey Teryoshkin >Release: 7.2 RELEASE >Organization: Svyaz-Service >Environment: FreeBSD st.svzserv.kuzbass.ru 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Wed Jun 3 10:01:40 KRAST 2009 root@st.svzserv.kuzbass.ru:/usr/obj/home/src/sys/GENERIC i386 >Description: It defines the sections connecting the Samsung i740 as a mass storage, dmesg shows the following: Synchronize cache failed, status == 0x39, scsi status == 0x0 >How-To-Repeat: >Fix: NO_SYNCHRONIZE_CACHE for device Patch attached with submission follows: *** umass.c.orig Wed Jun 3 09:48:46 2009 --- umass.c Wed Jun 3 09:53:52 2009 *************** static struct umass_devdescr_t umass_dev *** 675,680 **** --- 675,684 ---- UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_INQUIRY }, + { USB_VENDOR_SAMSUNG, USB_PRODUCT_SAMSUNG_I740, RID_WILDCARD, + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, + NO_SYNCHRONIZE_CACHE + }, { USB_VENDOR_SANDISK, USB_PRODUCT_SANDISK_SDDR05A, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_CBI, READ_CAPACITY_OFFBY1 | NO_GETMAXLUN *** usbdevs.orig Wed Jun 3 09:51:33 2009 --- usbdevs Wed Jun 3 09:53:07 2009 *************** product SAGEM XG76NA 0x0062 XG-76NA *** 2095,2100 **** --- 2095,2101 ---- product SAMSUNG ML6060 0x3008 ML-6060 laser printer product SAMSUNG YP_U2 0x5050 YP-U2 MP3 Player product SAMSUNG I500 0x6601 I500 Palm USB Phone + product SAMSUNG I740 0x6663 I740 Windows Mobile USB Phone /* Samsung Techwin products */ product SAMSUNG_TECHWIN DIGIMAX_410 0x000a Digimax 410 >Release-Note: >Audit-Trail: >Unformatted: From toga at puyo.org Wed Jun 3 11:10:01 2009 From: toga at puyo.org (Satoshi Togawa) Date: Wed Jun 3 11:10:08 2009 Subject: usb/135206: machine reboots when inserted USB device Message-ID: <200906031104.n53B4jpx040863@www.freebsd.org> >Number: 135206 >Category: usb >Synopsis: machine reboots when inserted USB device >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: Wed Jun 03 11:10:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Satoshi Togawa >Release: 8-current >Organization: >Environment: FreeBSD nayuki.vegalta.org 8.0-CURRENT FreeBSD 8.0-CURRENT #22: Sun May 31 23:11:59 JST 2009 togawa@nayuki.vegalta.org:/usr/obj/usr/src/sys/NAYUKI i386 >Description: When I insert USB device on DELL Inspiron mini 9, machine hangs up and reboot. I can see this with USB reader/writer of microSD and modem card. dmesg is here (after reboot with USB memory): ---- 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 #22: Sun May 31 23:11:59 JST 2009 togawa@nayuki.vegalta.org:/usr/obj/usr/src/sys/NAYUKI Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (1596.02-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x106c2 Stepping = 2 Features=0xbfe9fbff Features2=0x40c39d> AMD Features=0x100000 AMD Features2=0x1 TSC: P-state invariant real memory = 2147483648 (2048 MB) avail memory = 2076233728 (1980 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 1 core(s) x 2 HTT threads cpu0 (BSP): APIC ID: 0 cpu1 (AP/HT): APIC ID: 1 This module (opensolaris) contains code covered by the Common Development and Distribution License (CDDL) see http://opensolaris.org/os/licensing/opensolaris_license/ ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 vgapci0: port 0x1800-0x1807 mem 0xf0000000-0xf007ffff,0xd0000000-0xdfffffff,0xf0300000-0xf033ffff irq 16 at device 2.0 on pci0 agp0: on vgapci0 agp0: detected 7932k stolen memory agp0: aperture size is 256M vgapci1: mem 0xf0080000-0xf00fffff at device 2.1 on pci0 hdac0: mem 0xf0540000-0xf0543fff irq 22 at device 27.0 on pci0 hdac0: HDA Driver Revision: 20090401_0132 hdac0: [ITHREAD] pcib1: irq 17 at device 28.0 on pci0 pci2: on pcib1 pci2: at device 0.0 (no driver attached) sdhci0: mem 0xf0100400-0xf01004ff irq 16 at device 0.2 on pci2 sdhci0: 1 slot(s) allocated sdhci0: [ITHREAD] mmc0: on sdhci0 pci2: at device 0.3 (no driver attached) pcib2: irq 16 at device 28.1 on pci0 pci3: on pcib2 iwn0: mem 0xf0200000-0xf0201fff irq 17 at device 0.0 on pci3 iwn0: Reg Domain: JPN, address 00:1f:3b:66:15:dd iwn0: [ITHREAD] iwn0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps iwn0: 11na MCS: 15Mbps 30Mbps 45Mbps 60Mbps 90Mbps 120Mbps 135Mbps 150Mbps 30Mbps 60Mbps 90Mbps 120Mbps 180Mbps 240Mbps 270Mbps 300Mbps iwn0: 11ng MCS: 15Mbps 30Mbps 45Mbps 60Mbps 90Mbps 120Mbps 135Mbps 150Mbps 30Mbps 60Mbps 90Mbps 120Mbps 180Mbps 240Mbps 270Mbps 300Mbps pcib3: irq 18 at device 28.2 on pci0 pci4: on pcib3 re0: port 0x2000-0x20ff mem 0xf0610000-0xf0610fff,0xf0600000-0xf060ffff irq 18 at device 0.0 on pci4 re0: Using 1 MSI messages re0: Chip rev. 0x24800000 re0: MAC rev. 0x00000000 miibus0: on re0 rlphy0: PHY 1 on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto re0: Ethernet address: 00:21:70:d5:9e:9d re0: [FILTER] uhci0: port 0x1820-0x183f irq 23 at device 29.0 on pci0 uhci0: [ITHREAD] uhci0: LegSup = 0x003b usbus0: on uhci0 uhci1: port 0x1840-0x185f irq 19 at device 29.1 on pci0 uhci1: [ITHREAD] uhci1: LegSup = 0x0010 usbus1: on uhci1 uhci2: port 0x1860-0x187f irq 18 at device 29.2 on pci0 uhci2: [ITHREAD] uhci2: LegSup = 0x0010 usbus2: on uhci2 uhci3: port 0x1880-0x189f irq 16 at device 29.3 on pci0 uhci3: [ITHREAD] uhci3: LegSup = 0x0010 usbus3: on uhci3 ehci0: mem 0xf0544000-0xf05443ff irq 23 at device 29.7 on pci0 ehci0: [ITHREAD] usbus4: EHCI version 1.0 usbus4: on ehci0 pcib4: at device 30.0 on pci0 pci5: on pcib4 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1810-0x181f at device 31.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] pci0: at device 31.3 (no driver attached) acpi_tz0: on acpi0 acpi_acad0: on acpi0 atrtc0: port 0x70-0x77 irq 8 on acpi0 atrtc0: Warning: Couldn't map I/O. battery0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model Generic PS/2 mouse, device ID 0 cpu0: on acpi0 est0: on cpu0 p4tcc0: on cpu0 cpu1: on acpi0 est1: on cpu1 p4tcc1: on cpu1 pmtimer0 on isa0 orm0: at iomem 0xcf000-0xcffff,0xe0000-0xe17ff pnpid ORM0000 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ppc0: parallel port not found. WARNING: ZFS is considered to be an experimental feature in FreeBSD. Timecounters tick every 1.000 msec usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 480Mbps High Speed USB v2.0 ZFS filesystem version 13 ZFS storage pool version 13 ad0: FAILURE - SETFEATURES ENABLE RCACHE status=51 error=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 EGAL_LENGTH> ad0: 29389MB at ata0-master UDMA100 hdac0: HDA Codec #0: Realtek ALC268 pcm0: at cad 0 nid 1 on hdac0 pcm1: at cad 0 nid 1 on hdac0 GEOM_LABEL: Label for provider ad0s1a is ufsid/496440b894f6de1c. mmcsd0: 3781MB at mmc0 25MHz/4bit SMP: AP CPU #1 Launched! GEOM: mmcsd0: partition 1 does not start on a track boundary. GEOM: mmcsd0: partition 1 does not end on a track boundary. GEOM_LABEL: Label for provider mmcsd0s1 is msdosfs/\M^C{\M^C\M^J\M^C\M^E\M^A[\M^C\M^@. Root mount waiting for: usbus4 usbus3 usbus2 usbus1 usbus0 uhub1: 2 ports with 2 removable, self powered uhub0: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered uhub3: 2 ports with 2 removable, self powered Root mount waiting for: usbus4 Root mount waiting for: usbus4 Root mount waiting for: usbus4 uhub4: 8 ports with 8 removable, self powered Root mount waiting for: usbus4 ugen4.2: at usbus4 umass0: on usbus4 umass0: SCSI over Bulk-Only; quirks = 0x0000 Root mount waiting for: usbus4 ugen3.2: at usbus3 ubt0: on usbus3 umass0:0:0:-1: Attached to scbus0 Trying to mount root from zfs:tank/root (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): Retrying Command (per Sense Data) da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 1947MB (3987456 512 byte sectors: 255H 63S/T 248C) GEOM: da0: partition 1 does not start on a track boundary. GEOM: da0: partition 1 does not end on a track boundary. GEOM_LABEL: Label for provider da0s1 is msdosfs/WX340K. GEOM_LABEL: Label ufsid/496440b894f6de1c removed. GEOM_LABEL: Label for provider ad0s1a is ufsid/496440b894f6de1c. GEOM_LABEL: Label ufsid/496440b894f6de1c removed. wlan0: Ethernet address: 00:1f:3b:66:15:dd WARNING: attempt to net_add_domain(bluetooth) after domainfinalize() WARNING: attempt to net_add_domain(netgraph) after domainfinalize() GEOM_LABEL: Label for provider md0 is ufsid/4a265751b1244b1f. GEOM_LABEL: Label ufsid/4a265751b1244b1f removed. link_elf: symbol kern_socketpair undefined fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8 link_elf: symbol kern_socketpair undefined KLD linprocfs.ko: depends on linux - not available drm0: on vgapci0 vgapci0: child drm0 requested pci_enable_busmaster info: [drm] AGP at 0xd0000000 256MB info: [drm] Initialized i915 1.6.0 20080730 drm0: [ITHREAD] >How-To-Repeat: Inserting USB device. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From hselasky at c2i.net Wed Jun 3 11:23:45 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Wed Jun 3 11:23:52 2009 Subject: usb/135206: machine reboots when inserted USB device In-Reply-To: <200906031104.n53B4jpx040863@www.freebsd.org> References: <200906031104.n53B4jpx040863@www.freebsd.org> Message-ID: <200906031327.53143.hselasky@c2i.net> On Wednesday 03 June 2009, Satoshi Togawa wrote: > >Number: 135206 > >Category: usb > >Synopsis: machine reboots when inserted USB device > >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: Wed Jun 03 11:10:00 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Satoshi Togawa > >Release: 8-current > >Organization: > >Environment: > > FreeBSD nayuki.vegalta.org 8.0-CURRENT FreeBSD 8.0-CURRENT #22: Sun May 31 > 23:11:59 JST 2009 togawa@nayuki.vegalta.org:/usr/obj/usr/src/sys/NAYUKI > i386 > > >Description: > > When I insert USB device on DELL Inspiron mini 9, machine hangs up and > reboot. I can see this with USB reader/writer of microSD and modem card. > Do you have any old modules in /boot/modules ? --HPS From hselasky at c2i.net Wed Jun 3 11:30:04 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Wed Jun 3 11:30:14 2009 Subject: usb/135206: machine reboots when inserted USB device Message-ID: <200906031130.n53BU4qR028807@freefall.freebsd.org> The following reply was made to PR usb/135206; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Satoshi Togawa , freebsd-gnats-submit@freebsd.org Subject: Re: usb/135206: machine reboots when inserted USB device Date: Wed, 3 Jun 2009 13:27:52 +0200 On Wednesday 03 June 2009, Satoshi Togawa wrote: > >Number: 135206 > >Category: usb > >Synopsis: machine reboots when inserted USB device > >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: Wed Jun 03 11:10:00 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Satoshi Togawa > >Release: 8-current > >Organization: > >Environment: > > FreeBSD nayuki.vegalta.org 8.0-CURRENT FreeBSD 8.0-CURRENT #22: Sun May 31 > 23:11:59 JST 2009 togawa@nayuki.vegalta.org:/usr/obj/usr/src/sys/NAYUKI > i386 > > >Description: > > When I insert USB device on DELL Inspiron mini 9, machine hangs up and > reboot. I can see this with USB reader/writer of microSD and modem card. > Do you have any old modules in /boot/modules ? --HPS From toga at puyo.org Wed Jun 3 12:29:02 2009 From: toga at puyo.org (TOGAWA Satoshi) Date: Wed Jun 3 12:29:37 2009 Subject: usb/135206: machine reboots when inserted USB device In-Reply-To: <200906031327.53143.hselasky@c2i.net> References: <200906031104.n53B4jpx040863@www.freebsd.org> <200906031327.53143.hselasky@c2i.net> Message-ID: <200906031133.n53BXTNr095466@akane.vegalta.org> On Wed, 3 Jun 2009 13:27:52 +0200 Hans Petter Selasky wrote: > On Wednesday 03 June 2009, Satoshi Togawa wrote: > > >Number: 135206 > > >Category: usb > > >Synopsis: machine reboots when inserted USB device > > >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: Wed Jun 03 11:10:00 UTC 2009 > > >Closed-Date: > > >Last-Modified: > > >Originator: Satoshi Togawa > > >Release: 8-current > > >Organization: > > >Environment: > > > > FreeBSD nayuki.vegalta.org 8.0-CURRENT FreeBSD 8.0-CURRENT #22: Sun May 31 > > 23:11:59 JST 2009 togawa@nayuki.vegalta.org:/usr/obj/usr/src/sys/NAYUKI > > i386 > > > > >Description: > > > > When I insert USB device on DELL Inspiron mini 9, machine hangs up and > > reboot. I can see this with USB reader/writer of microSD and modem card. > > > > Do you have any old modules in /boot/modules ? > > --HPS > > My /boot/modules is empty and there isn't directory /boot/kernel.old . -- toga@puyo.org From toga at puyo.org Wed Jun 3 12:30:05 2009 From: toga at puyo.org (TOGAWA Satoshi) Date: Wed Jun 3 12:30:11 2009 Subject: usb/135206: machine reboots when inserted USB device Message-ID: <200906031230.n53CU5hj076175@freefall.freebsd.org> The following reply was made to PR usb/135206; it has been noted by GNATS. From: TOGAWA Satoshi To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: usb/135206: machine reboots when inserted USB device Date: Wed, 3 Jun 2009 20:33:28 +0900 On Wed, 3 Jun 2009 13:27:52 +0200 Hans Petter Selasky wrote: > On Wednesday 03 June 2009, Satoshi Togawa wrote: > > >Number: 135206 > > >Category: usb > > >Synopsis: machine reboots when inserted USB device > > >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: Wed Jun 03 11:10:00 UTC 2009 > > >Closed-Date: > > >Last-Modified: > > >Originator: Satoshi Togawa > > >Release: 8-current > > >Organization: > > >Environment: > > > > FreeBSD nayuki.vegalta.org 8.0-CURRENT FreeBSD 8.0-CURRENT #22: Sun May 31 > > 23:11:59 JST 2009 togawa@nayuki.vegalta.org:/usr/obj/usr/src/sys/NAYUKI > > i386 > > > > >Description: > > > > When I insert USB device on DELL Inspiron mini 9, machine hangs up and > > reboot. I can see this with USB reader/writer of microSD and modem card. > > > > Do you have any old modules in /boot/modules ? > > --HPS > > My /boot/modules is empty and there isn't directory /boot/kernel.old . -- toga@puyo.org From hselasky at c2i.net Thu Jun 4 20:32:34 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Jun 4 20:32:42 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: <200906042236.42050.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, I have had to revert the patch for your device, because it breaks other USB sound devices. Your sound device does not have a mono or stero only configuration, and we currently only support either of that. Else try buying another brand of USB sound device! --HPS From volker at vwsoft.com Thu Jun 4 21:44:22 2009 From: volker at vwsoft.com (Volker) Date: Thu Jun 4 21:44:30 2009 Subject: usb/135206: machine reboots when inserted USB device In-Reply-To: <200906031133.n53BXTNr095466@akane.vegalta.org> References: <200906031104.n53B4jpx040863@www.freebsd.org> <200906031327.53143.hselasky@c2i.net> <200906031133.n53BXTNr095466@akane.vegalta.org> Message-ID: <4A281695.8060206@vwsoft.com> On 12/23/-58 20:59, TOGAWA Satoshi wrote: > On Wed, 3 Jun 2009 13:27:52 +0200 > Hans Petter Selasky wrote: > >> On Wednesday 03 June 2009, Satoshi Togawa wrote: >>>> Number: 135206 >>>> Category: usb >>>> Synopsis: machine reboots when inserted USB device >>>> 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: Wed Jun 03 11:10:00 UTC 2009 >>>> Closed-Date: >>>> Last-Modified: >>>> Originator: Satoshi Togawa >>>> Release: 8-current >>>> Organization: >>>> Environment: >>> FreeBSD nayuki.vegalta.org 8.0-CURRENT FreeBSD 8.0-CURRENT #22: Sun May 31 >>> 23:11:59 JST 2009 togawa@nayuki.vegalta.org:/usr/obj/usr/src/sys/NAYUKI >>> i386 >>> >>>> Description: >>> When I insert USB device on DELL Inspiron mini 9, machine hangs up and >>> reboot. I can see this with USB reader/writer of microSD and modem card. >>> >> Do you have any old modules in /boot/modules ? >> >> --HPS >> >> > > My /boot/modules is empty and there isn't directory /boot/kernel.old . > Togawa, at first, it may eventually make sense to see a kernel panic backtrace - without that, it's guesswork (tm). Can you show us your kernel config? But please try to sync your binaries (kernel + kld's + world) first. Not related to your problem, you should fix your thumb drive / sdhc module slices and fix filesystem labels. Volker From volker at vwsoft.com Thu Jun 4 23:00:11 2009 From: volker at vwsoft.com (Volker) Date: Thu Jun 4 23:00:17 2009 Subject: usb/135206: machine reboots when inserted USB device Message-ID: <200906042300.n54N0ASD086933@freefall.freebsd.org> The following reply was made to PR usb/135206; it has been noted by GNATS. From: Volker To: TOGAWA Satoshi Cc: Hans Petter Selasky , freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: Re: usb/135206: machine reboots when inserted USB device Date: Thu, 04 Jun 2009 20:46:45 +0200 On 12/23/-58 20:59, TOGAWA Satoshi wrote: > On Wed, 3 Jun 2009 13:27:52 +0200 > Hans Petter Selasky wrote: > >> On Wednesday 03 June 2009, Satoshi Togawa wrote: >>>> Number: 135206 >>>> Category: usb >>>> Synopsis: machine reboots when inserted USB device >>>> 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: Wed Jun 03 11:10:00 UTC 2009 >>>> Closed-Date: >>>> Last-Modified: >>>> Originator: Satoshi Togawa >>>> Release: 8-current >>>> Organization: >>>> Environment: >>> FreeBSD nayuki.vegalta.org 8.0-CURRENT FreeBSD 8.0-CURRENT #22: Sun May 31 >>> 23:11:59 JST 2009 togawa@nayuki.vegalta.org:/usr/obj/usr/src/sys/NAYUKI >>> i386 >>> >>>> Description: >>> When I insert USB device on DELL Inspiron mini 9, machine hangs up and >>> reboot. I can see this with USB reader/writer of microSD and modem card. >>> >> Do you have any old modules in /boot/modules ? >> >> --HPS >> >> > > My /boot/modules is empty and there isn't directory /boot/kernel.old . > Togawa, at first, it may eventually make sense to see a kernel panic backtrace - without that, it's guesswork (tm). Can you show us your kernel config? But please try to sync your binaries (kernel + kld's + world) first. Not related to your problem, you should fix your thumb drive / sdhc module slices and fix filesystem labels. Volker From sanpei at sanpei.org Fri Jun 5 11:24:44 2009 From: sanpei at sanpei.org (MIHIRA Sanpei Yoshiro) Date: Fri Jun 5 11:24:52 2009 Subject: USB sound driver status was diffrent from 8-current and 7.2-RELEASE In-Reply-To: <200906042236.42050.hselasky@c2i.net> References: <200905221527.58395.hselasky@c2i.net> <20090523.001201.52222678.sanpei@sanpei.org> <200906042236.42050.hselasky@c2i.net> Message-ID: <20090605.202438.15238723.sanpei@sanpei.org> >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, > >I have had to revert the patch for your device, because it breaks other USB >sound devices. Your sound device does not have a mono or stero only >configuration, and we currently only support either of that. Else try buying >another brand of USB sound device! OK. I will buy 2ch USB audio device.. Cheers. --- MIHIRA, Sanpei Yoshiro Tokyo, Japan. From ariff at FreeBSD.org Fri Jun 5 11:31:28 2009 From: ariff at FreeBSD.org (Ariff Abdullah) Date: Fri Jun 5 11:31:34 2009 Subject: USB sound driver status was diffrent from 8-current and 7.2-RELEASE In-Reply-To: <20090605.202438.15238723.sanpei@sanpei.org> References: <200905221527.58395.hselasky@c2i.net> <20090523.001201.52222678.sanpei@sanpei.org> <200906042236.42050.hselasky@c2i.net> <20090605.202438.15238723.sanpei@sanpei.org> Message-ID: <20090605193115.2dd21754.ariff@FreeBSD.org> On Fri, 05 Jun 2009 20:24:38 +0900 (JST) MIHIRA Sanpei Yoshiro wrote: > >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, > > > >I have had to revert the patch for your device, because it breaks > >other USB sound devices. Your sound device does not have a mono or > >stero only configuration, and we currently only support either of > >that. Else try buying another brand of USB sound device! > > OK. I will buy 2ch USB audio device.. > But don't throw away anything yet. Multichannel support is going to come, soon enough. -- Ariff Abdullah FreeBSD ... Recording in stereo is obviously too advanced and confusing for us idiot ***** users :P ........ ... Going with the standard and orthodox is the death of intellect .............. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20090605/a5fd723c/attachment.pgp From sanpei at sanpei.org Fri Jun 5 22:55:41 2009 From: sanpei at sanpei.org (MIHIRA Sanpei Yoshiro) Date: Fri Jun 5 22:55:54 2009 Subject: libhid is not run on 8-current and 7.2-RELEASE Message-ID: <20090606.075537.116369290.sanpei@sanpei.org> Hi. I have USB Radio(*1). There is a application for channel selector, amfm.c which is for linux and use libhid. I compile it with ports/devel/libhid. But it was some errors in 8-current and 7.2-RELEASE. How can I fix this problem? * amfm.c(amfm.c was based on shard USB Radio) http://mixallow.blogdns.net/amfm/amfm.c *1 USB Radio (writtin in Japanese) http://www.thanko.jp/usbamfmradio/ compile options for amfm.c cc -o amfm -I/usr/local/include -L/usr/local/lib -lhid amfm.c ***** on 8-current NOTICE: hid_init(): libhid 0.2.16.0.0 is being initialized. TRACE: hid_init(): initialising USB subsystem... TRACE: hid_init(): scanning for USB busses... TRACE: hid_init(): scanning for USB devices... NOTICE: hid_init(): successfully initialised HID library. TRACE: hid_new_HIDInterface(): creating a new HIDInterface instance... TRACE: hid_force_open(): forcefully opening a device interface according to matching criteria... TRACE: hid_get_usb_handle(): acquiring handle for a USB device... TRACE: hid_find_usb_device(): enumerating USB busses... TRACE: hid_find_usb_device(): enumerating USB devices on bus /dev/usb... TRACE: hid_find_usb_device(): inspecting USB device /dev/usb//dev/ugen0.3[0]... TRACE: hid_compare_usb_device(): comparing match specifications to USB device... TRACE: hid_compare_usb_device(): inspecting vendor ID... TRACE: hid_compare_usb_device(): no match on vendor ID. TRACE: hid_compare_usb_device(): inspecting product ID... TRACE: hid_compare_usb_device(): no match on product ID. TRACE: hid_compare_usb_device(): no custom matching function supplied. NOTICE: hid_find_usb_device(): vendor 0x0000 of USB device /dev/usb//dev/ugen0.3[0] does not match 0x03b4. TRACE: hid_find_usb_device(): inspecting USB device /dev/usb//dev/ugen0.2[0]... TRACE: hid_compare_usb_device(): comparing match specifications to USB device... TRACE: hid_compare_usb_device(): inspecting vendor ID... TRACE: hid_compare_usb_device(): match on vendor ID: 0x03b4. TRACE: hid_compare_usb_device(): inspecting product ID... TRACE: hid_compare_usb_device(): match on product ID: 0x3113. TRACE: hid_compare_usb_device(): no custom matching function supplied. NOTICE: hid_find_usb_device(): found a matching USB device /dev/usb//dev/ugen0.2[0]. TRACE: hid_force_open(): claiming USB device /dev/usb//dev/ugen0.2[0]. WARNING: hid_os_force_claim(): code not tested on the BSD platform! TRACE: hid_os_force_claim(): claiming USB device /dev/usb//dev/ugen0.2[0]... WARNING: hid_os_force_claim(): failed to claim USB device /dev/usb//dev/ugen0.2[0]... WARNING: hid_force_open(): failed to claim USB device /dev/usb//dev/ugen0.2[0]. TRACE: hid_close(): closing USB device /dev/usb//dev/ugen0.2[0]... TRACE: hid_close(): closing handle of USB device /dev/usb//dev/ugen0.2[0]... NOTICE: hid_close(): successfully closed USB device /dev/usb//dev/ugen0.2[0]. TRACE: hid_close(): freeing memory allocated for HID parser... TRACE: hid_close(): resetting HIDInterface... hid_force_open failed with return code 11 ----------------------------------------------------------- on 7.2-RELEASE cherry# ./amfm -f81.3 2 NOTICE: hid_init(): libhid 0.2.16.0.0 is being initialized. TRACE: hid_init(): initialising USB subsystem... TRACE: hid_init(): scanning for USB busses... TRACE: hid_init(): scanning for USB devices... NOTICE: hid_init(): successfully initialised HID library. 3 TRACE: hid_new_HIDInterface(): creating a new HIDInterface instance... 4 TRACE: hid_force_open(): forcefully opening a device interface according to matching criteria... TRACE: hid_get_usb_handle(): acquiring handle for a USB device... TRACE: hid_find_usb_device(): enumerating USB busses... TRACE: hid_find_usb_device(): enumerating USB devices on bus /dev/usb0... TRACE: hid_find_usb_device(): enumerating USB devices on bus /dev/usb1... TRACE: hid_find_usb_device(): inspecting USB device /dev/usb1//dev/ugen0[0]... TRACE: hid_compare_usb_device(): comparing match specifications to USB device... TRACE: hid_compare_usb_device(): inspecting vendor ID... TRACE: hid_compare_usb_device(): match on vendor ID: 0x03b4. TRACE: hid_compare_usb_device(): inspecting product ID... TRACE: hid_compare_usb_device(): match on product ID: 0x3113. TRACE: hid_compare_usb_device(): no custom matching function supplied. NOTICE: hid_find_usb_device(): found a matching USB device /dev/usb1//dev/ugen0[0]. TRACE: hid_force_open(): claiming USB device /dev/usb1//dev/ugen0[0]. WARNING: hid_os_force_claim(): code not tested on the BSD platform! TRACE: hid_os_force_claim(): claiming USB device /dev/usb1//dev/ugen0[0]... NOTICE: hid_force_open(): successfully claimed USB device /dev/usb1//dev/ugen0[0]. TRACE: hid_init_parser(): initialising the HID parser for USB Device /dev/usb1//dev/ugen0[0]... TRACE: hid_init_parser(): allocating space for HIDData structure... TRACE: hid_init_parser(): successfully allocated memory for HIDData strcture. TRACE: hid_init_parser(): allocating space for HIDParser structure... TRACE: hid_init_parser(): successfully allocated memory for HIDParser strcture. NOTICE: hid_init_parser(): successfully initialised the HID parser for USB Device /dev/usb1//dev/ugen0[0]. TRACE: hid_prepare_hid_descriptor(): initialising the HID descriptor for USB device /dev/usb1//dev/ugen0[0]... TRACE: hid_prepare_hid_descriptor(): retrieving HID descriptor for USB device /dev/usb1//dev/ugen0[0]... NOTICE: hid_prepare_hid_descriptor(): successfully initialised HID descriptor for USB device /dev/usb1//dev/ugen0[0] (48 bytes). TRACE: hid_prepare_report_descriptor(): initialising the report descriptor for USB device /dev/usb1//dev/ugen0[0]... TRACE: hid_prepare_report_descriptor(): retrieving report descriptor for USB device /dev/usb1//dev/ugen0[0]... NOTICE: hid_prepare_report_descriptor(): successfully initialised report descriptor for USB device /dev/usb1//dev/ugen0[0]. TRACE: hid_prepare_parser(): setting up the HID parser for USB device /dev/usb1//dev/ugen0[0]... TRACE: hid_reset_parser(): resetting the HID parser for USB device /dev/usb1//dev/ugen0[0]... TRACE: hid_prepare_parser(): dumping the raw report descriptor TRACE: hid_prepare_parser(): 0x000: 0x06 0xa0 0xff 0x09 0x01 0xa1 0x01 0x09 TRACE: hid_prepare_parser(): 0x008: 0x02 0xa1 0x00 0x06 0xa1 0xff 0x09 0x03 TRACE: hid_prepare_parser(): 0x010: 0x15 0x80 0x25 0x7f 0x35 0x00 0x45 0xff TRACE: hid_prepare_parser(): 0x018: 0x75 0x08 0x95 0x08 0x81 0x02 0x09 0x04 TRACE: hid_prepare_parser(): 0x020: 0x15 0x80 0x25 0x7f 0x35 0x00 0x45 0xff TRACE: hid_prepare_parser(): 0x028: 0x75 0x08 0x95 0x08 0x91 0x02 0xc0 0xc0 TRACE: hid_prepare_parser(): parsing the HID tree of USB device /dev/usb1//dev/ugen0[0]... NOTICE: hid_prepare_parser(): successfully set up the HID parser for USB device /dev/usb1//dev/ugen0[0]. NOTICE: hid_force_open(): successfully opened USB device /dev/usb1//dev/ugen0[0]. 5 TRACE: hid_interrupt_write(): writing interrupt report to device /dev/usb1//dev/ugen0[0] ... never return from above method. Cheers --- MIHIRA, Sanpei Yoshiro Tokyo, Japan. From jmt at twilley.org Sun Jun 7 03:03:22 2009 From: jmt at twilley.org (Jack Twilley) Date: Sun Jun 7 03:03:29 2009 Subject: How to retrieve iManufacturer/iProduct information from libusb20? Message-ID: <4A2B29C0.7020709@twilley.org> I have been looking through the source to usbconfig and other tools trying to figure out how to retrieve the iManufacturer and iProduct strings. The libusb20 man page describes the libusb20_dev_get_device_desc() function but there's no useful information on the struct it returns. The include file looks as if the struct is automagically generated by macros within macros which is too complicated for me to figure out without help. Any ideas? There's gotta be a better way than using LIBUSB20_DEVICE_DESC()... Jack. From ccna.syl at gmail.com Sun Jun 7 14:16:45 2009 From: ccna.syl at gmail.com (Sylvestre Gallon) Date: Sun Jun 7 14:16:52 2009 Subject: How to retrieve iManufacturer/iProduct information from libusb20? In-Reply-To: <4A2B29C0.7020709@twilley.org> References: <4A2B29C0.7020709@twilley.org> Message-ID: <164b4c9c0906070648gb7abd54o967c2daebf6e8032@mail.gmail.com> On Sun, Jun 7, 2009 at 4:45 AM, Jack Twilley wrote: > I have been looking through the source to usbconfig and other tools trying > to figure out how to retrieve the iManufacturer and iProduct strings. ?The > libusb20 man page describes the libusb20_dev_get_device_desc() function but > there's no useful information on the struct it returns. ?The include file > looks as if the struct is automagically generated by macros within macros > which is too complicated for me to figure out without help. ?Any ideas? > ?There's gotta be a better way than using LIBUSB20_DEVICE_DESC()... > > Jack. You can use the function libusb20_dev_get_device_desc() that returns a struct LIBUSB20_DEVICE_DESC_DECODED *. The field idVendor and idProduct in the struct LIBUSB20_DEVICE_DESC_DECODED are what you are looking for :) Cheers, -- Sylvestre Gallon (http://devsyl.blogspot.com) Fifth Grade Student @ Epitech & Researcher @ LSE R&D @ Rathaxes (http://www.rathaxes.org) From gldisater at gmail.com Sun Jun 7 22:52:45 2009 From: gldisater at gmail.com (Jeremy Faulkner) Date: Sun Jun 7 22:52:51 2009 Subject: Yubikey Message-ID: <4A2C0510.9060701@gmail.com> Has anybody gotten a Yubikey to work with FreeBSD? It attaches as a uhid device on both 7 and 8. ugen5.5: at usbus5 uhid0: on usbus5 For those not familiar with a Yubikey it is a usb device that attaches as a keyboard and when the button is pressed it generates a 44 character One Time Password (OTP) and inputted into the computer as if it were typed. Unfortunately with FreeBSD 7 & 8 I'm not able to get that output. Under NetBSD the Yubikey does get attached as a keyboard and works perfectly. Any thoughts on how to get the Yubikey to attach as a keyboard under FreeBSD? I've attached the output of 'lsusb -d 1050:0010 -v > ~/yubikey-lsusb.txt' from the ports/sysutils/usbutils port -- Jeremy Faulkner -------------- next part -------------- Bus /dev/usb Device /dev/ugen5.5: ID 1050:0010 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x1050 idProduct 0x0010 bcdDevice 1.32 iManufacturer 1 Yubico iProduct 2 Yubico Yubikey Touch iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 34 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xa0 (Bus Powered) Remote Wakeup MaxPower 30mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 3 Human Interface Device bInterfaceSubClass 0 No Subclass bInterfaceProtocol 0 None iInterface 0 HID Device Descriptor: bLength 9 bDescriptorType 33 bcdHID 1.11 bCountryCode 0 Not supported bNumDescriptors 1 bDescriptorType 34 Report wDescriptorLength 71 Report Descriptor: (length is 71) Item(Global): Usage Page, data= [ 0x01 ] 1 Generic Desktop Controls Item(Local ): Usage, data= [ 0x06 ] 6 Keyboard Item(Main ): Collection, data= [ 0x01 ] 1 Application Item(Global): Usage Page, data= [ 0x07 ] 7 Keyboard Item(Local ): Usage Minimum, data= [ 0xe0 ] 224 Control Left Item(Local ): Usage Maximum, data= [ 0xe7 ] 231 GUI Right Item(Global): Logical Minimum, data= [ 0x00 ] 0 Item(Global): Logical Maximum, data= [ 0x01 ] 1 Item(Global): Report Size, data= [ 0x01 ] 1 Item(Global): Report Count, data= [ 0x08 ] 8 Item(Main ): Input, data= [ 0x02 ] 2 Data Variable Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Global): Report Count, data= [ 0x01 ] 1 Item(Global): Report Size, data= [ 0x08 ] 8 Item(Main ): Input, data= [ 0x01 ] 1 Constant Array Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Global): Report Count, data= [ 0x05 ] 5 Item(Global): Report Size, data= [ 0x01 ] 1 Item(Global): Usage Page, data= [ 0x08 ] 8 LEDs Item(Local ): Usage Minimum, data= [ 0x01 ] 1 NumLock Item(Local ): Usage Maximum, data= [ 0x05 ] 5 Kana Item(Main ): Output, data= [ 0x02 ] 2 Data Variable Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Global): Report Count, data= [ 0x01 ] 1 Item(Global): Report Size, data= [ 0x03 ] 3 Item(Main ): Output, data= [ 0x01 ] 1 Constant Array Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Global): Report Count, data= [ 0x06 ] 6 Item(Global): Report Size, data= [ 0x08 ] 8 Item(Global): Logical Minimum, data= [ 0x00 ] 0 Item(Global): Logical Maximum, data= [ 0x65 ] 101 Item(Global): Usage Page, data= [ 0x07 ] 7 Keyboard Item(Local ): Usage Minimum, data= [ 0x00 ] 0 No Event Item(Local ): Usage Maximum, data= [ 0x65 ] 101 Keyboard Application (Windows Key for Win95 or Compose) Item(Main ): Input, data= [ 0x00 ] 0 Data Array Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Local ): Usage, data= [ 0x03 ] 3 Keyboard Error Undefined Item(Global): Report Size, data= [ 0x08 ] 8 Item(Global): Report Count, data= [ 0x08 ] 8 Item(Main ): Feature, data= [ 0x02 ] 2 Data Variable Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Main ): End Collection, data=none Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0008 1x 8 bytes bInterval 10 Device Status: 0x0000 (Bus Powered) From hselasky at c2i.net Sun Jun 7 23:05:32 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sun Jun 7 23:05:44 2009 Subject: How to retrieve iManufacturer/iProduct information from libusb20? In-Reply-To: <4A2B29C0.7020709@twilley.org> References: <4A2B29C0.7020709@twilley.org> Message-ID: <200906080030.53822.hselasky@c2i.net> On Sunday 07 June 2009 04:45:20 Jack Twilley wrote: > I have been looking through the source to usbconfig and other tools > trying to figure out how to retrieve the iManufacturer and iProduct > strings. The libusb20 man page describes the > libusb20_dev_get_device_desc() function but there's no useful > information on the struct it returns. The include file looks as if the > struct is automagically generated by macros within macros which is too > complicated for me to figure out without help. Any ideas? There's > gotta be a better way than using LIBUSB20_DEVICE_DESC()... After you find the string index, you can use the following function to get strings: int libusb20_dev_req_string_simple_sync(struct libusb20_device *pdev, uint8_t index, void *ptr, uint16_t len); --HPS From hselasky at c2i.net Sun Jun 7 23:05:33 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sun Jun 7 23:05:44 2009 Subject: libhid is not run on 8-current and 7.2-RELEASE In-Reply-To: <20090606.075537.116369290.sanpei@sanpei.org> References: <20090606.075537.116369290.sanpei@sanpei.org> Message-ID: <200906080037.43588.hselasky@c2i.net> On Saturday 06 June 2009 00:55:37 MIHIRA Sanpei Yoshiro wrote: > Hi. > > I have USB Radio(*1). > > There is a application for channel selector, amfm.c which is > for linux and use libhid. > I compile it with ports/devel/libhid. But it was some errors > in 8-current and 7.2-RELEASE. > > How can I fix this problem? > > * amfm.c(amfm.c was based on shard USB Radio) > http://mixallow.blogdns.net/amfm/amfm.c > > *1 USB Radio (writtin in Japanese) > http://www.thanko.jp/usbamfmradio/ > > compile options for amfm.c > cc -o amfm -I/usr/local/include -L/usr/local/lib -lhid amfm.c > Hi, If your application and the HID library is linked with libusb, it will work. Can you check the source code for the HID library and find out what backend it is using? --HPS From hselasky at c2i.net Sun Jun 7 23:27:08 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sun Jun 7 23:27:14 2009 Subject: Yubikey In-Reply-To: <4A2C0510.9060701@gmail.com> References: <4A2C0510.9060701@gmail.com> Message-ID: <200906080129.32610.hselasky@c2i.net> On Sunday 07 June 2009 20:21:04 Jeremy Faulkner wrote: > Has anybody gotten a Yubikey to work with FreeBSD? It attaches as a > uhid device on both 7 and 8. > > ugen5.5: at usbus5 > uhid0: > on usbus5 If you "cat /dev/usb/5.5.1 | hexdump C" Do you get anything? 5.5 is the number after ugen. --HPS > > For those not familiar with a Yubikey it is a usb device that attaches > as a keyboard and when the button is pressed it generates a 44 > character One Time Password (OTP) and inputted into the computer as if > it were typed. Unfortunately with FreeBSD 7 & 8 I'm not able to get > that output. Under NetBSD the Yubikey does get attached as a keyboard > and works perfectly. Any thoughts on how to get the Yubikey to attach > as a keyboard under FreeBSD? > > I've attached the output of 'lsusb -d 1050:0010 -v > > ~/yubikey-lsusb.txt' from the ports/sysutils/usbutils port From gldisater at gmail.com Mon Jun 8 00:07:33 2009 From: gldisater at gmail.com (Jeremy Faulkner) Date: Mon Jun 8 00:07:39 2009 Subject: Yubikey - cont'd Message-ID: Thanks for the reply Hans. I can't reply to the original thread as I wasn't subscribed to usb@ and didn't mention that in my previous email. I'm subscribed now. I assume you meant 'cat /dev/usb/5.5.1 | hexdump -C' as 'hexdump C' expects C to be a file. I've attached the output of hexdump when the Yubikey is triggered. -- Jeremy Faulkner -------------- next part -------------- %cat /dev/usb/5.5.1 | hexdump -C 00000000 00 00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 |................| 00000010 00 00 00 00 00 00 00 00 00 00 0b 00 00 00 00 00 |................| 00000020 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 00 |................| 00000030 00 00 00 00 00 00 00 00 00 00 0b 00 00 00 00 00 |................| 00000040 00 00 00 00 00 00 00 00 00 00 0a 00 00 00 00 00 |................| 00000050 00 00 00 00 00 00 00 00 00 00 17 00 00 00 00 00 |................| 00000060 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 00 |................| 00000070 00 00 00 00 00 00 00 00 00 00 11 00 00 00 00 00 |................| 00000080 00 00 00 00 00 00 00 00 00 00 17 00 00 00 00 00 |................| 00000090 00 00 00 00 00 00 00 00 00 00 0e 00 00 00 00 00 |................| 000000a0 00 00 00 00 00 00 00 00 00 00 17 00 00 00 00 00 |................| 000000b0 00 00 00 00 00 00 00 00 00 00 0b 00 00 00 00 00 |................| 000000c0 00 00 00 00 00 00 00 00 00 00 0c 00 00 00 00 00 |................| 000000d0 00 00 00 00 00 00 00 00 00 00 0f 00 00 00 00 00 |................| 000000e0 00 00 00 00 00 00 00 00 00 00 0c 00 00 00 00 00 |................| 000000f0 00 00 00 00 00 00 00 00 00 00 06 00 00 00 00 00 |................| 00000100 00 00 00 00 00 00 00 00 00 00 09 00 00 00 00 00 |................| 00000110 00 00 00 00 00 00 00 00 00 00 07 00 00 00 00 00 |................| 00000120 00 00 00 00 00 00 00 00 00 00 15 00 00 00 00 00 |................| 00000130 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 00 |................| 00000140 00 00 00 00 00 00 00 00 00 00 06 00 00 00 00 00 |................| 00000150 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 00 |................| 00000160 00 00 00 00 00 00 00 00 00 00 0a 00 00 00 00 00 |................| 00000170 00 00 00 00 00 00 00 00 00 00 0f 00 00 00 00 00 |................| 00000180 00 00 00 00 00 00 00 00 00 00 18 00 00 00 00 00 |................| 00000190 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 00 |................| 000001a0 00 00 00 00 00 00 00 00 00 00 17 00 00 00 00 00 |................| 000001b0 00 00 00 00 00 00 00 00 00 00 07 00 00 00 00 00 |................| 000001c0 00 00 00 00 00 00 00 00 00 00 18 00 00 00 00 00 |................| 000001d0 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 00 |................| 000001e0 00 00 00 00 00 00 00 00 00 00 0e 00 00 00 00 00 |................| 000001f0 00 00 00 00 00 00 00 00 00 00 0b 00 00 00 00 00 |................| 00000200 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 00 |................| 00000210 00 00 00 00 00 00 00 00 00 00 19 00 00 00 00 00 |................| 00000220 00 00 00 00 00 00 00 00 00 00 0c 00 00 00 00 00 |................| 00000230 00 00 00 00 00 00 00 00 00 00 19 00 00 00 00 00 |................| 00000240 00 00 00 00 00 00 00 00 00 00 07 00 00 00 00 00 |................| 00000250 00 00 00 00 00 00 00 00 00 00 0e 00 00 00 00 00 |................| 00000260 00 00 00 00 00 00 00 00 00 00 07 00 00 00 00 00 |................| 00000270 00 00 00 00 00 00 00 00 00 00 0c 00 00 00 00 00 |................| 00000280 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 00 |................| 00000290 00 00 00 00 00 00 00 00 00 00 0a 00 00 00 00 00 |................| 000002a0 00 00 00 00 00 00 00 00 00 00 11 00 00 00 00 00 |................| 000002b0 00 00 00 00 00 00 00 00 00 00 06 00 00 00 00 00 |................| 000002c0 00 00 00 00 00 00 00 00 00 00 28 00 00 00 00 00 |..........(.....| From hselasky at c2i.net Mon Jun 8 06:58:44 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon Jun 8 06:58:57 2009 Subject: Temporary patch to fix USB in kdebase4 Message-ID: <200906080902.43391.hselasky@c2i.net> See attachment. --HPS -------------- next part -------------- A non-text attachment was scrubbed... Name: kdebase4.diff Type: text/x-patch Size: 5884 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20090608/3558137c/kdebase4.bin From bugmaster at FreeBSD.org Mon Jun 8 11:07:04 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon Jun 8 11:09:58 2009 Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org Message-ID: <200906081107.n58B73Xv020836@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/135206 usb machine reboots when inserted USB device o usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/135182 usb UMASS quirk - Olympus FE20 camera o usb/134950 usb Lowering DTR for USB-modem via ubsa is not possible o usb/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 317 problems total. From jdbca at clix.pt Mon Jun 8 14:20:06 2009 From: jdbca at clix.pt (Duncan Bertwistle) Date: Mon Jun 8 14:20:19 2009 Subject: usb/135372: Quirk report for Teclast TL-C300 usb media player Message-ID: <200906081411.n58EBF9U006904@www.freebsd.org> >Number: 135372 >Category: usb >Synopsis: Quirk report for Teclast TL-C300 usb media player >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 Jun 08 14:20:05 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Duncan Bertwistle >Release: 7.2 - stable >Organization: >Environment: FreeBSD devil.homenet 7.2-STABLE FreeBSD 7.2-STABLE #6: Sun Jun 7 10:14:46 BST 2009 root@devil.homenet:/usr/obj/usr/src/sys/DEVIL i386 >Description: Teclast TL-C300 usb media player not properly recognized. Failed to create /dev entry on plugin and froze startup if present during boot. Found to require 2 quirks:- NO_TEST_UNIT_READY | NO_SYNCHRONIZE_CACHE Also - no usbdevs entries for Emtec 2GB memory stick or Mustek DV5000 camera >How-To-Repeat: >Fix: Following mods for usbdevs & umass.c:- usbdevs:- /*### added for Teclast TL-C300 media player support */ vendor TECLAST 0x071b Teclast /* Teclast products */ product TECLAST TLC300 0x3203 USB Media Player /*### added for Emtec 2GB memory stick support */ vendor EMTEC 0x13fe Emtec 2GB memory stick /* EMTEC products */ product EMTEC MEMORYSTICK2GB 0x1e00 Emtec 2GB memory stick umass.c:- /*### added for Teclast TL-C300 media player support */ { USB_VENDOR_TECLAST, USB_PRODUCT_TECLAST_TLC300, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_TEST_UNIT_READY | NO_SYNCHRONIZE_CACHE }, >Release-Note: >Audit-Trail: >Unformatted: From jmt at twilley.org Mon Jun 8 17:17:16 2009 From: jmt at twilley.org (Jack Twilley) Date: Mon Jun 8 17:17:23 2009 Subject: How to retrieve iManufacturer/iProduct information from libusb20? In-Reply-To: <164b4c9c0906070648gb7abd54o967c2daebf6e8032@mail.gmail.com> References: <4A2B29C0.7020709@twilley.org> <164b4c9c0906070648gb7abd54o967c2daebf6e8032@mail.gmail.com> Message-ID: <4A2D476B.20100@twilley.org> Sylvestre Gallon wrote: > On Sun, Jun 7, 2009 at 4:45 AM, Jack Twilley wrote: >> I have been looking through the source to usbconfig and other tools trying >> to figure out how to retrieve the iManufacturer and iProduct strings. The >> libusb20 man page describes the libusb20_dev_get_device_desc() function but >> there's no useful information on the struct it returns. The include file >> looks as if the struct is automagically generated by macros within macros >> which is too complicated for me to figure out without help. Any ideas? >> There's gotta be a better way than using LIBUSB20_DEVICE_DESC()... >> >> Jack. > > > You can use the function libusb20_dev_get_device_desc() that > returns a struct LIBUSB20_DEVICE_DESC_DECODED *. The field > idVendor and idProduct in the struct LIBUSB20_DEVICE_DESC_DECODED > are what you are looking for :) idVendor and idProduct look good according to the output of usbconfig, but whenever I try to refer to ddesc->idVendor (or anything else in that structure) I get "error: dereferencing pointer to incomplete type". This is what sent me looking through the includes for the actual type definition. Other than the usbconfig code that uses the LIBUSB20_DEVICE_DESC() macro, is there any other example code out there that does what I'm trying to do? > > Cheers, > Thanks! Jack. From jmt at twilley.org Mon Jun 8 17:18:59 2009 From: jmt at twilley.org (Jack Twilley) Date: Mon Jun 8 17:19:05 2009 Subject: How to retrieve iManufacturer/iProduct information from libusb20? In-Reply-To: <200906080030.53822.hselasky@c2i.net> References: <4A2B29C0.7020709@twilley.org> <200906080030.53822.hselasky@c2i.net> Message-ID: <4A2D47FF.8040209@twilley.org> Hans Petter Selasky wrote: > On Sunday 07 June 2009 04:45:20 Jack Twilley > wrote: >> I have been looking through the source to > usbconfig and other tools >> trying to figure out how to retrieve the > iManufacturer and iProduct >> strings. The libusb20 man page describes the >> libusb20_dev_get_device_desc() function but > there's no useful >> information on the struct it returns. The > include file looks as if the >> struct is automagically generated by macros > within macros which is too >> complicated for me to figure out without > help. Any ideas? There's >> gotta be a better way than using > LIBUSB20_DEVICE_DESC()... > > After you find the string index, you can use the > following function to get strings: > > int > libusb20_dev_req_string_simple_sync(struct > libusb20_device *pdev, > uint8_t index, void *ptr, uint16_t len); Finding the string index was harder than I expected, since I can't get anything useful out of what libusb20_dev_get_device_desc() returns. Heck, I even tried a short for loop from 0 to 15 just to see if the values I saw in usbconfig were magic values pointing to the string. How do I find the string index? > > > --HPS Thanks! Jack. From hselasky at c2i.net Mon Jun 8 17:38:18 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon Jun 8 17:38:25 2009 Subject: How to retrieve iManufacturer/iProduct information from libusb20? In-Reply-To: <4A2D47FF.8040209@twilley.org> References: <4A2B29C0.7020709@twilley.org> <200906080030.53822.hselasky@c2i.net> <4A2D47FF.8040209@twilley.org> Message-ID: <200906081942.26220.hselasky@c2i.net> On Monday 08 June 2009 19:18:55 Jack Twilley wrote: > Hans Petter Selasky wrote: > > On Sunday 07 June 2009 04:45:20 Jack Twilley > > > > wrote: > >> I have been looking through the source to > > > > usbconfig and other tools > > > >> trying to figure out how to retrieve the > > > > iManufacturer and iProduct > > > >> strings. The libusb20 man page describes the > >> libusb20_dev_get_device_desc() function but > > > > there's no useful > > > >> information on the struct it returns. The > > > > include file looks as if the > > > >> struct is automagically generated by macros > > > > within macros which is too > > > >> complicated for me to figure out without > > > > help. Any ideas? There's > > > >> gotta be a better way than using > > > > LIBUSB20_DEVICE_DESC()... > > > > After you find the string index, you can use the > > following function to get strings: > > > > int > > libusb20_dev_req_string_simple_sync(struct > > libusb20_device *pdev, > > uint8_t index, void *ptr, uint16_t len); > > Finding the string index was harder than I expected, since I can't get > anything useful out of what libusb20_dev_get_device_desc() returns. > Heck, I even tried a short for loop from 0 to 15 just to see if the > values I saw in usbconfig were magic values pointing to the string. > > How do I find the string index? > struct LIBUSB20_DEVICE_DESC_DECODED *pdesc; pdesc = libusb20_dev_get_device_desc(pdev); printf("Vendor string is %u\n", pdesc->iVendor); if zero, the string is not present. --HPS From hselasky at c2i.net Mon Jun 8 17:40:04 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon Jun 8 17:40:11 2009 Subject: How to retrieve iManufacturer/iProduct information from libusb20? In-Reply-To: <4A2D476B.20100@twilley.org> References: <4A2B29C0.7020709@twilley.org> <164b4c9c0906070648gb7abd54o967c2daebf6e8032@mail.gmail.com> <4A2D476B.20100@twilley.org> Message-ID: <200906081944.12638.hselasky@c2i.net> On Monday 08 June 2009 19:16:27 Jack Twilley wrote: > "error: dereferencing pointer to incomplete type" Maybe not obvious: You need to include: #include --HPS From jmt at twilley.org Mon Jun 8 17:50:15 2009 From: jmt at twilley.org (Jack Twilley) Date: Mon Jun 8 17:50:21 2009 Subject: How to retrieve iManufacturer/iProduct information from libusb20? In-Reply-To: <200906081944.12638.hselasky@c2i.net> References: <4A2B29C0.7020709@twilley.org> <164b4c9c0906070648gb7abd54o967c2daebf6e8032@mail.gmail.com> <4A2D476B.20100@twilley.org> <200906081944.12638.hselasky@c2i.net> Message-ID: <4A2D4F53.6070706@twilley.org> Hans Petter Selasky wrote: > On Monday 08 June 2009 19:16:27 Jack Twilley wrote: >> "error: dereferencing pointer to incomplete type" > > Maybe not obvious: > > You need to include: > > #include This was the key. Everything's working now. Thank you both! > > --HPS Jack. From hselasky at c2i.net Mon Jun 8 19:23:25 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon Jun 8 19:23:36 2009 Subject: Yubikey - cont'd In-Reply-To: References: Message-ID: <200906082127.35793.hselasky@c2i.net> On Monday 08 June 2009 02:07:32 Jeremy Faulkner wrote: > Thanks for the reply Hans. I can't reply to the original thread as I > wasn't subscribed to usb@ and didn't mention that in my previous > email. I'm subscribed now. > > I assume you meant 'cat /dev/usb/5.5.1 | hexdump -C' as 'hexdump C' > expects C to be a file. I've attached the output of hexdump when the > Yubikey is triggered. Your Yubikey input looks like the input of a keyboard. I'm a little bit busy at the moment. What needs to be done is to search for Yubikey in the NetBSD ukbd.c driver (sys/dev/usb) and port those changes to the FreeBSD ukbd.c driver (sys/dev/usb/input). Is that something you can do? You might find the following link useful: http://fxr.watson.org --HPS From gldisater at gmail.com Tue Jun 9 02:21:14 2009 From: gldisater at gmail.com (Jeremy Faulkner) Date: Tue Jun 9 02:21:21 2009 Subject: Yubikey - cont'd In-Reply-To: <200906082127.35793.hselasky@c2i.net> References: <200906082127.35793.hselasky@c2i.net> Message-ID: <4A2D8EB7.4050305@gmail.com> Hans Petter Selasky wrote: > On Monday 08 June 2009 02:07:32 Jeremy Faulkner wrote: >> Thanks for the reply Hans. I can't reply to the original thread as I >> wasn't subscribed to usb@ and didn't mention that in my previous >> email. I'm subscribed now. >> >> I assume you meant 'cat /dev/usb/5.5.1 | hexdump -C' as 'hexdump C' >> expects C to be a file. I've attached the output of hexdump when the >> Yubikey is triggered. > > Your Yubikey input looks like the input of a keyboard. I'm a little bit > busy at the moment. What needs to be done is to search for Yubikey in the > NetBSD ukbd.c driver (sys/dev/usb) and port those changes to the FreeBSD > ukbd.c driver (sys/dev/usb/input). Is that something you can do? > > You might find the following link useful: > > http://fxr.watson.org > > --HPS There were no occurances of Yubikey in fxr.watson.org so I checked the FreeBSD ukbd.c to see if it was rejecting the Yubikey for some reason. I found in ukbd_probe() that it required that the keyboard have InterfaceSubClass == UISUBCLASS_BOOT and InterfaceProtocol == UPROTO_BOOT_KEYBOARD in order to attach. I don't know what they're for but the Yubikey has no subclass or interface protocol set. To test this I hacked it to return 0 if the idVendor is that of Yubico (0x1050) and it attached as ukbd0 (kbd2) and worked. Perhaps it would be better to create a USB Quirk for forced ukbd attach than to have the Yubico vendor id in ukbd_probe() Also, I don't know what the difference between UPROTO_BOOT_KEYBOARD (defined in ukbd.c) and UIPROTO_BOOT_KEYBOARD (defined in usb.h) -- Jeremy Faulkner From hselasky at c2i.net Tue Jun 9 08:36:11 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jun 9 08:37:18 2009 Subject: Yubikey - cont'd In-Reply-To: <4A2D8EB7.4050305@gmail.com> References: <200906082127.35793.hselasky@c2i.net> <4A2D8EB7.4050305@gmail.com> Message-ID: <200906090940.15488.hselasky@c2i.net> On Tuesday 09 June 2009 00:20:39 Jeremy Faulkner wrote: > Hans Petter Selasky wrote: > > On Monday 08 June 2009 02:07:32 Jeremy Faulkner wrote: > >> Thanks for the reply Hans. I can't reply to the original thread as I > >> wasn't subscribed to usb@ and didn't mention that in my previous > >> email. I'm subscribed now. > >> > >> I assume you meant 'cat /dev/usb/5.5.1 | hexdump -C' as 'hexdump C' > >> expects C to be a file. I've attached the output of hexdump when the > >> Yubikey is triggered. > > > > Your Yubikey input looks like the input of a keyboard. I'm a little bit > > busy at the moment. What needs to be done is to search for Yubikey in the > > NetBSD ukbd.c driver (sys/dev/usb) and port those changes to the FreeBSD > > ukbd.c driver (sys/dev/usb/input). Is that something you can do? > > > > You might find the following link useful: > > > > http://fxr.watson.org > > > > --HPS > > There were no occurances of Yubikey in fxr.watson.org so I checked the > FreeBSD ukbd.c to see if it was rejecting the Yubikey for some reason. I > found in ukbd_probe() that it required that the keyboard have > InterfaceSubClass == UISUBCLASS_BOOT and InterfaceProtocol == > UPROTO_BOOT_KEYBOARD in order to attach. > > I don't know what they're for but the Yubikey has no subclass or > interface protocol set. To test this I hacked it to return 0 if the > idVendor is that of Yubico (0x1050) and it attached as ukbd0 (kbd2) and > worked. Perhaps it would be better to create a USB Quirk for forced ukbd > attach than to have the Yubico vendor id in ukbd_probe() > > Also, I don't know what the difference between UPROTO_BOOT_KEYBOARD > (defined in ukbd.c) and UIPROTO_BOOT_KEYBOARD (defined in usb.h) > Then you need to compare the ukbd.c in NetBSD anb the ukbd.c in FreeBSD. You can use usbconfig dump_device_desc to get the fields that are matched against. --HPS From gldisater at gmail.com Tue Jun 9 12:39:20 2009 From: gldisater at gmail.com (Jeremy Faulkner) Date: Tue Jun 9 12:39:40 2009 Subject: Yubikey In-Reply-To: <200906091022.41813.hselasky@c2i.net> References: <200906081924.24901.mel.flynn+fbsd.current@mailing.thruhere.net> <200906091022.41813.hselasky@c2i.net> Message-ID: On Tue, Jun 9, 2009 at 4:22 AM, Hans Petter Selasky wrote: > On Tuesday 09 June 2009 05:24:24 Mel Flynn wrote: >> On Saturday 06 June 2009 10:02:05 Jeremy Faulkner wrote: >> > Has anybody gotten a Yubikey to work with FreeBSD? It attaches as a >> > uhid device on both 7 and 8. >> > >> > ugen5.5: at usbus5 >> > uhid0: on >> > usbus5 >> > > > Hi, > >> >> Attachment copied. > > The subclass and protocol are not correct, so the device is not detected like > a keyboard. Probably we could add an additional check there to verify that the > HID descriptor contains Keyboard descriptions. > > ? ? ?bInterfaceClass ? ? ? ? 3 Human Interface Device > ? ? ?bInterfaceSubClass ? ? ?0 No Subclass > ? ? ?bInterfaceProtocol ? ? ?0 None > ? ? ?iInterface ? ? ? ? ? ? ?0 > > --HPS > The NetBSD kbd checks the Report Descriptors for Generic Desktop Controls (0x01) and Keyboard (0x06). It doesn't check for the sub class or interface protocol. -- Jeremy Faulkner From sanpei at sanpei.org Tue Jun 9 13:41:19 2009 From: sanpei at sanpei.org (MIHIRA Sanpei Yoshiro) Date: Tue Jun 9 13:41:27 2009 Subject: libhid is not run on 8-current and 7.2-RELEASE In-Reply-To: <200906080037.43588.hselasky@c2i.net> References: <20090606.075537.116369290.sanpei@sanpei.org> <200906080037.43588.hselasky@c2i.net> Message-ID: <20090609.224115.35811802.sanpei@sanpei.org> >If your application and the HID library is linked with libusb, it will work. >Can you check the source code for the HID library and find out what backend it >is using? I check latest 8-current enviroment. I think libhid uses /usr/lib/libusb. # ldd amfm amfm: libhid.so.0 => /usr/local/lib/libhid.so.0 (0x2808d000) libc.so.7 => /lib/libc.so.7 (0x2809a000) libusb.so.1 => /usr/lib/libusb.so.1 (0x281ad000) --- MIHIRA, Sanpei Yoshiro Tokyo, Japan. From hselasky at c2i.net Tue Jun 9 14:59:23 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jun 9 14:59:30 2009 Subject: libhid is not run on 8-current and 7.2-RELEASE In-Reply-To: <20090609.224115.35811802.sanpei@sanpei.org> References: <20090606.075537.116369290.sanpei@sanpei.org> <200906080037.43588.hselasky@c2i.net> <20090609.224115.35811802.sanpei@sanpei.org> Message-ID: <200906091703.35094.hselasky@c2i.net> On Tuesday 09 June 2009 15:41:15 MIHIRA Sanpei Yoshiro wrote: > >If your application and the HID library is linked with libusb, it will > > work. Can you check the source code for the HID library and find out what > > backend it is using? > > I check latest 8-current enviroment. > I think libhid uses /usr/lib/libusb. > > # ldd amfm > amfm: > libhid.so.0 => /usr/local/lib/libhid.so.0 (0x2808d000) > libc.so.7 => /lib/libc.so.7 (0x2809a000) > libusb.so.1 => /usr/lib/libusb.so.1 (0x281ad000) > Hi, Are you sure the USB device is accessible to the application. chown or chmod /dev/usb/X.Y.* according to output from usbconfig. --HPS From v.velox at vvelox.net Tue Jun 9 15:48:35 2009 From: v.velox at vvelox.net (Zane C.B.) Date: Tue Jun 9 15:48:42 2009 Subject: media changes and umass flash card readers Message-ID: <20090609103029.70a488a9@vixen42> This machine here has a USB flash card reader integrated into it. It works with out issue, minus re-reading the partition and slice info upon disk change. Is there any way to actually force it to re-read that information? Currently the only thing I've come across that works is to either power cycle the machine or try mounting something on that device, which will fail even if the specified partition does actually exist. After it fails I will see the proper dev entries for it and will work the second time. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20090609/e7b34f04/signature.pgp From hselasky at c2i.net Tue Jun 9 16:37:32 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jun 9 16:37:38 2009 Subject: media changes and umass flash card readers In-Reply-To: <20090609103029.70a488a9@vixen42> References: <20090609103029.70a488a9@vixen42> Message-ID: <200906091841.45108.hselasky@c2i.net> On Tuesday 09 June 2009 17:30:29 Zane C.B. wrote: > This machine here has a USB flash card reader integrated into it. It > works with out issue, minus re-reading the partition and slice info > upon disk change. Is there any way to actually force it to re-read > that information? > > Currently the only thing I've come across that works is to either > power cycle the machine or try mounting something on that device, > which will fail even if the specified partition does actually exist. > After it fails I will see the proper dev entries for it and will work > the second time. In 8-current you can use the usbconfig utility to re-enumerate the device. Else "cat /dev/null > /dev/daX" usually does the trick. Note /dev/null is not /dev/zero ! --HPS From sanpei at sanpei.org Tue Jun 9 22:32:34 2009 From: sanpei at sanpei.org (MIHIRA Sanpei Yoshiro) Date: Tue Jun 9 22:32:40 2009 Subject: libhid is not run on 8-current and 7.2-RELEASE In-Reply-To: <200906091703.35094.hselasky@c2i.net> References: <200906080037.43588.hselasky@c2i.net> <20090609.224115.35811802.sanpei@sanpei.org> <200906091703.35094.hselasky@c2i.net> Message-ID: <20090610.073229.85408943.sanpei@sanpei.org> >> amfm: >> libhid.so.0 => /usr/local/lib/libhid.so.0 (0x2808d000) >> libc.so.7 => /lib/libc.so.7 (0x2809a000) >> libusb.so.1 => /usr/lib/libusb.so.1 (0x281ad000) >> > >Hi, > >Are you sure the USB device is accessible to the application. > >chown or chmod /dev/usb/X.Y.* according to output from usbconfig. I run application(amfm) on root user. I think it is accesible, isn't it? ugen0.2: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON crw------- 1 root operator 0, 103 Jun 10 16:08 /dev/usb/0.2.0 crw------- 1 root operator 0, 105 Jun 10 16:08 /dev/usb/0.2.1 crw------- 1 root operator 0, 106 Jun 10 16:08 /dev/usb/0.2.2 --- MIHIRA, Sanpei Yoshiro Tokyo, Japan. From hselasky at c2i.net Wed Jun 10 11:08:29 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Wed Jun 10 11:08:37 2009 Subject: Yubikey In-Reply-To: References: <200906091022.41813.hselasky@c2i.net> Message-ID: <200906101312.38132.hselasky@c2i.net> On Tuesday 09 June 2009 14:39:19 Jeremy Faulkner wrote: > On Tue, Jun 9, 2009 at 4:22 AM, Hans Petter Selasky wrote: > > On Tuesday 09 June 2009 05:24:24 Mel Flynn wrote: > >> On Saturday 06 June 2009 10:02:05 Jeremy Faulkner wrote: > >> > Has anybody gotten a Yubikey to work with FreeBSD? It attaches as a > >> > uhid device on both 7 and 8. > >> > > >> > ugen5.5: at usbus5 > >> > uhid0: > >> > on usbus5 > > > > Hi, > > > >> Attachment copied. > > > > The subclass and protocol are not correct, so the device is not detected > > like a keyboard. Probably we could add an additional check there to > > verify that the HID descriptor contains Keyboard descriptions. > > > > bInterfaceClass 3 Human Interface Device > > bInterfaceSubClass 0 No Subclass > > bInterfaceProtocol 0 None > > iInterface 0 > > > > --HPS > > The NetBSD kbd checks the Report Descriptors for Generic Desktop > Controls (0x01) and Keyboard (0x06). It doesn't check for the sub > class or interface protocol. I will make a patch for this. Stay tuned. --HPS From dlangille at myyearbook.com Wed Jun 10 18:41:28 2009 From: dlangille at myyearbook.com (Dan Langille) Date: Wed Jun 10 18:41:35 2009 Subject: MS USB mouse does not work Message-ID: <6dd019370906101118k6c26ccat5596dbe1ba03ebe5@mail.gmail.com> I'm running FreeBSD 7.2-STABLE from Tue May 26. I have an MS keyboard and mouse, both of which are wireless and operate through the same USB transceiver. The keyboard works. The mouse does not. >From /var/run/dmesg.boot: ukbd0: on uhub7 kbd2 at ukbd0 uhid0: on uhub7 I see nothing related to the mouse. Any ideas. It's a really nice mouse, otherwise. ;) Is there anything I can run to gather more information? 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 7.2-STABLE #0: Tue May 26 14:09:07 EDT 2009 dan@my.example.com:/usr/obj/usr/src/sys/DTM Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz (2992.14-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x1067a Stepping = 10 Features=0xbfebfbff Features2=0x408e3fd,XSAVE> AMD Features=0x20100800 AMD Features2=0x1 Cores per package: 2 usable memory = 2097774592 (2000 MB) avail memory = 2022559744 (1928 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 8 ioapic0 irqs 0-23 on motherboard lapic0: Forcing LINT1 to edge trigger kbd1 at kbdmux0 kqemu version 0x00010300 kqemu: KQEMU installed, max_locked_mem=1024304kB. acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: irq 16 at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0xdc00-0xdcff mem 0xd0000000-0xdfffffff,0xfe9f0000-0xfe9fffff irq 16 at device 0.0 on pci1 pci0: at device 3.0 (no driver attached) atapci0: port 0xfe80-0xfe87,0xfe90-0xfe93,0xfea0-0xfea7,0xfeb0-0xfeb3,0xfef0-0xfeff irq 18 at device 3.2 on pci0 atapci0: [ITHREAD] ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] pci0: at device 3.3 (no driver attached) em0: port 0xecc0-0xecdf mem 0xfebe0000-0xfebfffff,0xfebdb000-0xfebdbfff irq 21 at device 25.0 on pci0 em0: Using MSI interrupt em0: [FILTER] em0: Ethernet address: 00:23:ae:78:ae:a8 uhci0: port 0xff20-0xff3f irq 16 at device 26.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xff00-0xff1f irq 17 at device 26.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered ehci0: mem 0xfebd9c00-0xfebd9fff irq 22 at device 26.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb2: EHCI version 1.0 usb2: wrong number of companions (3 != 2) usb2: companion controllers, 2 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: on usb2 uhub2: 6 ports with 6 removable, self powered hdac0: mem 0xfebdc000-0xfebdffff irq 16 at device 27.0 on pci0 hdac0: HDA Driver Revision: 20090329_0131 hdac0: [ITHREAD] pcib2: irq 16 at device 28.0 on pci0 pci2: on pcib2 uhci2: port 0xff80-0xff9f irq 23 at device 29.0 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb3: on uhci2 usb3: USB revision 1.0 uhub3: on usb3 uhub3: 2 ports with 2 removable, self powered uhci3: port 0xff60-0xff7f irq 17 at device 29.1 on pci0 uhci3: [GIANT-LOCKED] uhci3: [ITHREAD] usb4: on uhci3 usb4: USB revision 1.0 uhub4: on usb4 uhub4: 2 ports with 2 removable, self powered uhci4: port 0xff40-0xff5f irq 18 at device 29.2 on pci0 uhci4: [GIANT-LOCKED] uhci4: [ITHREAD] usb5: on uhci4 usb5: USB revision 1.0 uhub5: on usb5 uhub5: 2 ports with 2 removable, self powered ehci1: mem 0xff980800-0xff980bff irq 23 at device 29.7 on pci0 ehci1: [GIANT-LOCKED] ehci1: [ITHREAD] usb6: EHCI version 1.0 usb6: companion controllers, 2 ports each: usb3 usb4 usb5 usb6: on ehci1 usb6: USB revision 2.0 uhub6: on usb6 uhub6: 6 ports with 6 removable, self powered uhub7: on uhub6 uhub7: multiple transaction translators uhub7: 4 ports with 4 removable, self powered ukbd0: on uhub7 kbd2 at ukbd0 uhid0: on uhub7 pcib3: at device 30.0 on pci0 pci3: on pcib3 isab0: at device 31.0 on pci0 isa0: on isab0 atapci1: port 0xfe00-0xfe07,0xfe10-0xfe13,0xfe20-0xfe27,0xfe30-0xfe33,0xfec0-0xfedf mem 0xff970000-0xff9707ff irq 18 at device 31.2 on pci0 atapci1: [ITHREAD] atapci1: AHCI called from vendor specific driver atapci1: AHCI Version 01.20 controller with 6 ports detected ata4: on atapci1 ata4: [ITHREAD] ata5: on atapci1 ata5: [ITHREAD] ata6: on atapci1 ata6: [ITHREAD] ata7: on atapci1 ata7: [ITHREAD] ata8: on atapci1 ata8: port not implemented ata8: [ITHREAD] ata9: on atapci1 ata9: [ITHREAD] pci0: at device 31.3 (no driver attached) ppc0: port 0x378-0x37f,0x778-0x77f irq 7 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppbus0: on ppc0 ppbus0: [ITHREAD] plip0: on ppbus0 plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] cpu0: on acpi0 est0: on cpu0 p4tcc0: on cpu0 cpu1: on acpi0 est1: on cpu1 p4tcc1: on cpu1 orm0: at iomem 0xc0000-0xcefff,0xcf000-0xd0fff,0xd1000-0xd37ff,0xd3800-0xd3fff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ukbd1: on uhub4 kbd3 at ukbd1 Timecounters tick every 1.000 msec ad8: 152587MB at ata4-master SATA300 acd0: DVDROM at ata5-master SATA150 ad14: 152587MB at ata7-master SATA300 ad18: 152587MB at ata9-master SATA300 hdac0: HDA Codec #0: Analog Devices AD1984 pcm0: at cad 0 nid 1 on hdac0 pcm1: at cad 0 nid 1 on hdac0 lapic1: Forcing LINT1 to edge trigger SMP: AP CPU #1 Launched! GEOM_MIRROR: Device mirror/gm0 launched (2/2). GEOM_LABEL: Label for provider ad18s1 is msdosfs/DellUtility. GEOM_LABEL: Label for provider ad18s2 is ntfs/OS. GEOM_LABEL: Label for provider mirror/gm0s1a is ufsid/49db8904c3603ff2. GEOM_LABEL: Label for provider mirror/gm0s1d is ufsid/49db890b18be1fd1. GEOM_LABEL: Label for provider mirror/gm0s1e is ufsid/49db89049055faa1. GEOM_LABEL: Label for provider mirror/gm0s1f is ufsid/49db8904754be6b8. Trying to mount root from ufs:/dev/mirror/gm0s1a GEOM_LABEL: Label ufsid/49db8904c3603ff2 removed. GEOM_LABEL: Label for provider mirror/gm0s1a is ufsid/49db8904c3603ff2. GEOM_LABEL: Label ufsid/49db89049055faa1 removed. GEOM_LABEL: Label for provider mirror/gm0s1e is ufsid/49db89049055faa1. GEOM_LABEL: Label ufsid/49db8904754be6b8 removed. GEOM_LABEL: Label for provider mirror/gm0s1f is ufsid/49db8904754be6b8. GEOM_LABEL: Label ufsid/49db890b18be1fd1 removed. GEOM_LABEL: Label for provider mirror/gm0s1d is ufsid/49db890b18be1fd1. GEOM_LABEL: Label ufsid/49db8904c3603ff2 removed. GEOM_LABEL: Label ufsid/49db89049055faa1 removed. GEOM_LABEL: Label ufsid/49db8904754be6b8 removed. GEOM_LABEL: Label ufsid/49db890b18be1fd1 removed. -- Dan Langille myYearbook.com From hselasky at c2i.net Thu Jun 11 20:48:53 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Jun 11 20:49:05 2009 Subject: libhid is not run on 8-current and 7.2-RELEASE In-Reply-To: <20090610.073229.85408943.sanpei@sanpei.org> References: <200906080037.43588.hselasky@c2i.net> <200906091703.35094.hselasky@c2i.net> <20090610.073229.85408943.sanpei@sanpei.org> Message-ID: <200906112253.02670.hselasky@c2i.net> Hi, Sorry for late reply. Can you try the following patch on 8-current, and report back? http://perforce.freebsd.org/chv.cgi?CH=164142 You have to download + replace the patched files. Then "make clean all install" in the libusb directory. There is no need to recompile your application. --HPS From hselasky at c2i.net Thu Jun 11 21:06:01 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Jun 11 21:06:08 2009 Subject: Yubikey In-Reply-To: References: <200906091022.41813.hselasky@c2i.net> Message-ID: <200906112210.13313.hselasky@c2i.net> Hi, Can you try the following patch and report back: http://perforce.freebsd.org/chv.cgi?CH=164141 --HPS From linimon at FreeBSD.org Fri Jun 12 05:45:08 2009 From: linimon at FreeBSD.org (linimon@FreeBSD.org) Date: Fri Jun 12 05:45:19 2009 Subject: usb/135348: [usbdevs] USB Drive Hangs with ZFS (JMicron USB2/eSata) Message-ID: <200906120545.n5C5j8gG059829@freefall.freebsd.org> Old Synopsis: USB Drive Hangs with ZFS (JMicron USB2/eSata) New Synopsis: [usbdevs] USB Drive Hangs with ZFS (JMicron USB2/eSata) Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Fri Jun 12 05:44:31 UTC 2009 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=135348 From ivan at ivangelion.tw Fri Jun 12 05:45:20 2009 From: ivan at ivangelion.tw (Chun-fan Ivan Liao) Date: Fri Jun 12 05:45:31 2009 Subject: 2 apcupsd problems using USB to connect on FreeBSD 7.2-RELEASE AMD64 Message-ID: <173f52ec0906112215o4a17788fp9ebc121f39575ebe@mail.gmail.com> MB: GIGABYTE GA-MA78GM-US2H OS version: FreeBSD 7.2 RELEASE amd64 apcupsd version: 3.14.5 UPS model: APC-MGE Back-UPS RS 1000VA (BR1000TW) UPS cable type: usb 3 important lines in /usr/local/etc/apcupsd/apcupsd.conf: --------- UPSCABLE usb UPSTYPE usb DEVICE ((using "DEVICE ugen0" yields the same problem)) --------- Other lines are default. Problem Description: 1. The APC box cannot be detected when connected to the FreeBSD system on system boot. (apcupsd_enable="YES" is set in /etc/rc.conf ) The associated messages in /var/log/messages: --------- May 10 16:08:27 aura-cosmetics apcupsd[901]: apcupsd FATAL ERROR in bsd-usb.c at line 735 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see . May 10 16:08:27 aura-cosmetics apcupsd[901]: apcupsd error shutdown completed --------- But if APC UPS is connected to the system after the system has been started, it can be identified by the system, and running apcupsd start or apctest is just ok. Also, if I disable all USB-related configuraton in kernel and load usb.ko & ugen.ko manually after the sytem has been started, the APC UPS can be identified and running "apcupsd start" now will do just fine. (if using /boot/loader.conf to automatically load 2 modules, the problem still occurs) 2. Continuing 1, if I don't use those ad-hoc, and unplug the connecting USB then re-plug it to the same port, the USB cannot be identified. The associated message in /var/log/messages: --------- May 10 16:36:17 aura-cosmetics kernel: uhub0: device problem (TIMEOUT), disabling port 3 --------- Here is my system information: # less /var/run/dmesg.boot: http://www.ivangelion.tw/~cfliao/dmesg.boot # pciconf -vl > pciconf http://www.ivangelion.tw/~cfliao/pciconf # acpidump -dt > aura-acpidump.asl http://www.ivangelion.tw/~cfliao/aura-acpidump.asl Any help will be greatly appreciated. Best Regards, Chun-fan Ivan Liao http://ivangelion.tw From gldisater at gmail.com Fri Jun 12 12:11:03 2009 From: gldisater at gmail.com (Jeremy Faulkner) Date: Fri Jun 12 12:11:19 2009 Subject: Yubikey In-Reply-To: <200906112210.13313.hselasky@c2i.net> References: <200906091022.41813.hselasky@c2i.net> <200906112210.13313.hselasky@c2i.net> Message-ID: On Thu, Jun 11, 2009 at 8:10 PM, Hans Petter Selasky wrote: > Hi, > > Can you try the following patch and report back: > > http://perforce.freebsd.org/chv.cgi?CH=164141 > > --HPS > My Yubikey attaches to ukbd and works. Thanks. -- Jeremy Faulkner From sanpei at sanpei.org Fri Jun 12 13:02:21 2009 From: sanpei at sanpei.org (MIHIRA Sanpei Yoshiro) Date: Fri Jun 12 13:02:27 2009 Subject: libhid is not run on 8-current and 7.2-RELEASE In-Reply-To: <200906112253.02670.hselasky@c2i.net> References: <200906091703.35094.hselasky@c2i.net> <20090610.073229.85408943.sanpei@sanpei.org> <200906112253.02670.hselasky@c2i.net> Message-ID: <20090612.220217.257516061.sanpei@sanpei.org> Hi. >Sorry for late reply. Can you try the following patch on 8-current, and report >back? > >http://perforce.freebsd.org/chv.cgi?CH=164142 > >You have to download + replace the patched files. Then "make clean all >install" in the libusb directory. > >There is no need to recompile your application. I apply the above patch to src/lib/libusb. I could control USB Radio!!. Thank you. I will add ports collection. But 7.2-RELEASE still has another problem with this application. Will you fix that problem?? Cheers. --- MIHIRA, Sanpei Yoshiro Tokyo, Japan. From hselasky at c2i.net Fri Jun 12 13:38:40 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Fri Jun 12 13:38:47 2009 Subject: libhid is not run on 8-current and 7.2-RELEASE In-Reply-To: <20090612.220217.257516061.sanpei@sanpei.org> References: <200906091703.35094.hselasky@c2i.net> <200906112253.02670.hselasky@c2i.net> <20090612.220217.257516061.sanpei@sanpei.org> Message-ID: <200906121542.53738.hselasky@c2i.net> On Friday 12 June 2009 15:02:17 MIHIRA Sanpei Yoshiro wrote: > Hi. > > >Sorry for late reply. Can you try the following patch on 8-current, and > > report back? > > > >http://perforce.freebsd.org/chv.cgi?CH=164142 > > > >You have to download + replace the patched files. Then "make clean all > >install" in the libusb directory. > > > >There is no need to recompile your application. > > I apply the above patch to src/lib/libusb. > > I could control USB Radio!!. Thank you. > I will add ports collection. Hi, Andrew will get the patch in. The patch does not belong in the ports collection. 7.2-RELEASE uses a different USB library than 8.0-CURRENT. > > But 7.2-RELEASE still has another problem with this application. Will you > fix that problem?? No, I'm only fixing stuff in 8.0-current currently. --HPS From linimon at FreeBSD.org Fri Jun 12 20:43:12 2009 From: linimon at FreeBSD.org (linimon@FreeBSD.org) Date: Fri Jun 12 20:43:18 2009 Subject: usb/135519: Re: usb/119633: [umass] umass0: BBB reset failed, IOERROR [regression] Message-ID: <200906122043.n5CKhBWc084606@freefall.freebsd.org> Old Synopsis: Re:%20usb/119633:%20%5Bumass%5D%20umass%30%3A%20BBB%20reset%20failed%2 New Synopsis: Re: usb/119633: [umass] umass0: BBB reset failed, IOERROR [regression] State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Fri Jun 12 20:41:04 UTC 2009 State-Changed-Why: Misfiled followup to usb/119633; content migrated. Responsible-Changed-From-To: gnats-admin->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Fri Jun 12 20:41:04 UTC 2009 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=135519 From vehemens at verizon.com Sat Jun 13 09:30:03 2009 From: vehemens at verizon.com (vehemens) Date: Sat Jun 13 09:30:09 2009 Subject: usb/135542: boot loader does not work with a usb keyboard Message-ID: <200906130920.n5D9KbMu063250@www.freebsd.org> >Number: 135542 >Category: usb >Synopsis: boot loader does not work with a usb keyboard >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jun 13 09:30:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: vehemens >Release: 7.2 stable >Organization: >Environment: FreeBSD fred.dsl-verizon.net 7.2-STABLE FreeBSD 7.2-STABLE #0: Sat Jun 13 00:49:51 PDT 2009 vehemens@fred.dsl-verizon.net:/usr/obj/usr/src/sys/FRED amd64 >Description: On two different machines (both ASUS M2A-VM), I'm unable to configure the system to use a USB keyboard and have the boot loader respond to keyboard input. If I enable USB legacy support, the kernel panics with a ohci_add_done. If I disable USB legacy support, the boot loader will not respond to keyboard input. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From alexbestms at math.uni-muenster.de Sat Jun 13 17:40:03 2009 From: alexbestms at math.uni-muenster.de (Alexander Best) Date: Sat Jun 13 17:40:10 2009 Subject: usb/127549: [umass] [patch] Meizu MiniPlayer M6 (SL) requires some quirks Message-ID: <200906131740.n5DHe3kW060775@freefall.freebsd.org> The following reply was made to PR usb/127549; it has been noted by GNATS. From: Alexander Best To: Cc: Subject: Re: usb/127549: [umass] [patch] Meizu MiniPlayer M6 (SL) requires some quirks Date: Sat, 13 Jun 2009 19:32:00 +0200 (CEST) the patch is in -CURRENT and probably -STABLE. the PR can be closed. From lioux at FreeBSD.org Sun Jun 14 11:10:02 2009 From: lioux at FreeBSD.org (Mario Sergio Fujikawa Ferreira) Date: Sun Jun 14 11:10:34 2009 Subject: usb/135575: [usbdevs & uipaq.c] [patch] Add HTC Wizard phone vid/pid information Message-ID: <20090614110306.29681.qmail@exxodus.fedaykin.here> >Number: 135575 >Category: usb >Synopsis: [usbdevs & uipaq.c] [patch] Add HTC Wizard phone vid/pid information >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Jun 14 11:10:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Mario Sergio Fujikawa Ferreira >Release: FreeBSD 7.2-STABLE i386 >Organization: >Environment: System: FreeBSD exxodus.fedaykin.here 7.2-STABLE FreeBSD 7.2-STABLE #88: Tue Jun 9 04:31:11 BRT 2009 lioux@exxodus:/usr/obj/usr/src/sys/LIOUX i386 >Description: Add HTC Wizard phone vid/pid information to enable uipaq(4) driver detection. >How-To-Repeat: Apply the following patch against both src/sys/dev/usb/usbdevs and src/sys/dev/usb/uipaq.c >Fix: --- patch-sys__dev__usb__uipaq.c begins here --- --- sys/dev/usb/uipaq.c.orig 2009-06-14 00:18:33.000000000 -0300 +++ sys/dev/usb/uipaq.c 2009-06-14 00:23:14.000000000 -0300 @@ -125,6 +125,7 @@ {{ USB_VENDOR_HTC, USB_PRODUCT_HTC_WINMOBILE }, 0}, {{ USB_VENDOR_HTC, USB_PRODUCT_HTC_PPC6700MODEM }, 0}, {{ USB_VENDOR_HTC, USB_PRODUCT_HTC_SMARTPHONE }, 0}, + {{ USB_VENDOR_HTC, USB_PRODUCT_HTC_WIZARD }, 0}, {{ USB_VENDOR_COMPAQ, USB_PRODUCT_COMPAQ_IPAQPOCKETPC } , 0}, {{ USB_VENDOR_CASIO, USB_PRODUCT_CASIO_BE300 } , 0}, {{ USB_VENDOR_SHARP, USB_PRODUCT_SHARP_WZERO3ES }, 0}, --- patch-sys__dev__usb__uipaq.c ends here --- --- patch-sys__dev__usb__usbdevs begins here --- --- sys/dev/usb/usbdevs.orig 2009-06-14 00:20:36.000000000 -0300 +++ sys/dev/usb/usbdevs 2009-06-14 00:21:59.000000000 -0300 @@ -1456,6 +1456,7 @@ product HTC WINMOBILE 0x00ce HTC USB Sync product HTC PPC6700MODEM 0x00cf PPC6700 Modem product HTC SMARTPHONE 0x0a51 SmartPhone USB Sync +product HTC WIZARD 0x0bce HTC Wizard USB Sync /* HUAWEI products */ product HUAWEI MOBILE 0x1001 Huawei Mobile --- patch-sys__dev__usb__usbdevs ends here --- >Release-Note: >Audit-Trail: >Unformatted: From nork at FreeBSD.org Sun Jun 14 14:02:34 2009 From: nork at FreeBSD.org (Norikatsu Shigemura) Date: Sun Jun 14 14:02:41 2009 Subject: u3g? SoftBank C01SW (Sierra Wireless HSDPA modem) Message-ID: <20090614230224.c5be0d66.nork@FreeBSD.org> Hi I'm evaluating Softbank C01SW (Sierra Wireless HSDPA modem). Maybe, its driver is u3g(4). But I can't use it. So I research its information, and I found that it was supported on OpenBSD. http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/usb/umsm.c.diff?r1=1.45;r2=1.46;f=h I read u3g.c, I think already supported Tru-install, but no information of C01SW. I don't know that how should I fix. So please fix to support, and I can test patch. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # usbconfig -u 1 -a 2 dump_all_config_desc ugen1.2: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x00dd bNumInterfaces = 0x0008 bConfigurationValue = 0x0001 iConfiguration = 0x0003 <4*> bmAttributes = 0x00e0 bMaxPower = 0x0000 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 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 = 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 = 0x00ff bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x00ff iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0083 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0020 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0003 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0020 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 3 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0003 bAlternateSetting = 0x0000 bNumEndpoints = 0x0003 bInterfaceClass = 0x00ff bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x00ff iInterface = 0x0000 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 Interface 4 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0004 bAlternateSetting = 0x0000 bNumEndpoints = 0x0003 bInterfaceClass = 0x00ff bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x00ff iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0086 bmAttributes = 0x0003 wMaxPacketSize = 0x0040 bInterval = 0x0005 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0087 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0020 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 2 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0005 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0020 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 5 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0005 bAlternateSetting = 0x0000 bNumEndpoints = 0x0003 bInterfaceClass = 0x00ff bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x00ff iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0088 bmAttributes = 0x0003 wMaxPacketSize = 0x0040 bInterval = 0x0005 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0089 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0020 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 2 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0006 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0020 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 6 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0006 bAlternateSetting = 0x0000 bNumEndpoints = 0x0003 bInterfaceClass = 0x00ff bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x00ff iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x008a bmAttributes = 0x0003 wMaxPacketSize = 0x0040 bInterval = 0x0005 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x008b bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0020 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 2 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0007 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0020 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 7 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0007 bAlternateSetting = 0x0000 bNumEndpoints = 0x0002 bInterfaceClass = 0x0008 bInterfaceSubClass = 0x0006 bInterfaceProtocol = 0x0050 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0008 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x008c bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Jun 14 22:24:07 melfina kernel: u3g_sierra_init:233: Jun 14 22:24:08 melfina kernel: usb2_alloc_device:1762: Found Huawei auto-install disk! Jun 14 22:24:08 melfina kernel: ugen1.2: at usbus1 Jun 14 22:24:08 melfina kernel: ugen1.2: at usbus1 (disconnected) Jun 14 22:24:08 melfina kernel: uhub_reattach_port:416: could not allocate new device! Jun 14 22:24:09 melfina kernel: ugen1.2: at usbus1 Jun 14 22:24:09 melfina kernel: umass0: on usbus1 Jun 14 22:24:09 melfina kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 Jun 14 22:24:09 melfina root: Unknown USB device: vendor 0x1199 product 0x6890 bus uhub1 Jun 14 22:24:10 melfina kernel: umass0:0:0:-1: Attached to scbus0 Jun 14 22:24:10 melfina kernel: (probe0:umass-sim0:0:0:0): error 22 Jun 14 22:24:10 melfina kernel: (probe0:umass-sim0:0:0:0): Unretryable Error Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): Medium not present Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): Medium not present Jun 14 22:24:11 melfina kernel: Unretryable error Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): error 6 Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): Unretryable Error Jun 14 22:24:11 melfina kernel: pass0 at umass-sim0 bus 0 target 0 lun 0 Jun 14 22:24:11 melfina kernel: pass0: Fixed Direct Access SCSI-2 device Jun 14 22:24:11 melfina kernel: pass0: 40.000MB/s transfers Jun 14 22:24:11 melfina kernel: GEOM: new disk da0 Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): error 6 Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Unretryable Error Jun 14 22:24:11 melfina kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Jun 14 22:24:11 melfina kernel: da0: Fixed Direct Access SCSI-2 device Jun 14 22:24:11 melfina kernel: da0: 40.000MB/s transfers Jun 14 22:24:11 melfina kernel: da0: Attempt to query device size failed: NOT READY, Medium not present Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check Condition Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Medium not present Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): (da0:umass-sim0:0:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Medium not present Jun 14 22:24:11 melfina kernel: Unretryable error Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): error 6 Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Unretryable Error Jun 14 22:24:11 melfina kernel: Opened disk da0 -> 6 Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check Condition Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Medium not present Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): (da0:umass-sim0:0:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Medium not present Jun 14 22:24:11 melfina kernel: Unretryable error Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): error 6 Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Unretryable Error Jun 14 22:24:11 melfina kernel: Opened disk da0 -> 6 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From hselasky at c2i.net Sun Jun 14 14:15:19 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sun Jun 14 14:15:27 2009 Subject: u3g? SoftBank C01SW (Sierra Wireless HSDPA modem) In-Reply-To: <20090614230224.c5be0d66.nork@FreeBSD.org> References: <20090614230224.c5be0d66.nork@FreeBSD.org> Message-ID: <200906141619.32495.hselasky@c2i.net> On Sunday 14 June 2009 16:02:24 Norikatsu Shigemura wrote: > Hi > > I'm evaluating Softbank C01SW (Sierra Wireless HSDPA modem). > Maybe, its driver is u3g(4). But I can't use it. So I research > its information, and I found that it was supported on OpenBSD. > > http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/usb/umsm.c.diff?r1=1.45;r >2=1.46;f=h > > I read u3g.c, I think already supported Tru-install, but no > information of C01SW. I don't know that how should I fix. > So please fix to support, and I can test patch. > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - - - - - - - - - # usbconfig -u 1 -a 2 dump_all_config_desc > ugen1.2: at usbus1, cfg=0 > md=HOST spd=HIGH (480Mbps) pwr=ON > > > Configuration index 0 > > bLength = 0x0009 > bDescriptorType = 0x0002 > wTotalLength = 0x00dd > bNumInterfaces = 0x0008 > bConfigurationValue = 0x0001 > iConfiguration = 0x0003 <4*> > bmAttributes = 0x00e0 > bMaxPower = 0x0000 > > Interface 0 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0000 > bAlternateSetting = 0x0000 > 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 = 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 = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0083 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0003 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > Interface 3 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0003 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0003 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0000 > > 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 > > > Interface 4 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0004 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0003 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0086 > bmAttributes = 0x0003 > wMaxPacketSize = 0x0040 > bInterval = 0x0005 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0087 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 2 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0005 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > Interface 5 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0005 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0003 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0088 > bmAttributes = 0x0003 > wMaxPacketSize = 0x0040 > bInterval = 0x0005 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0089 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 2 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0006 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > Interface 6 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0006 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0003 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x008a > bmAttributes = 0x0003 > wMaxPacketSize = 0x0040 > bInterval = 0x0005 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x008b > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 2 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0007 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0020 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > Interface 7 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0007 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0002 > bInterfaceClass = 0x0008 > bInterfaceSubClass = 0x0006 > bInterfaceProtocol = 0x0050 > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0008 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x008c > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - - - - - - - - - > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - - - - - - - - - Jun 14 22:24:07 melfina kernel: u3g_sierra_init:233: > Jun 14 22:24:08 melfina kernel: usb2_alloc_device:1762: Found Huawei > auto-install disk! Jun 14 22:24:08 melfina kernel: ugen1.2: Wireless, Incorporated> at usbus1 Jun 14 22:24:08 melfina kernel: ugen1.2: > at usbus1 (disconnected) Jun 14 22:24:08 > melfina kernel: uhub_reattach_port:416: could not allocate new device! Jun > 14 22:24:09 melfina kernel: ugen1.2: at > usbus1 Jun 14 22:24:09 melfina kernel: umass0: Incorporated HSPA Modem, class 0/0, rev 2.00/0.05, addr 2> on usbus1 Jun 14 > 22:24:09 melfina kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 Jun > 14 22:24:09 melfina root: Unknown USB device: vendor 0x1199 product 0x6890 > bus uhub1 Jun 14 22:24:10 melfina kernel: umass0:0:0:-1: Attached to scbus0 > Jun 14 22:24:10 melfina kernel: (probe0:umass-sim0:0:0:0): error 22 > Jun 14 22:24:10 melfina kernel: (probe0:umass-sim0:0:0:0): Unretryable > Error Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): TEST UNIT > READY. CDB: 0 0 0 0 0 0 Jun 14 22:24:11 melfina kernel: > (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error Jun 14 22:24:11 > melfina kernel: (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition Jun > 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 > Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): Medium not > present Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): > (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 Jun 14 > 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 Jun > 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): Medium not present > Jun 14 22:24:11 melfina kernel: Unretryable error > Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): error 6 > Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): Unretryable > Error Jun 14 22:24:11 melfina kernel: pass0 at umass-sim0 bus 0 target 0 > lun 0 Jun 14 22:24:11 melfina kernel: pass0: Fixed > Direct Access SCSI-2 device Jun 14 22:24:11 melfina kernel: pass0: > 40.000MB/s transfers > Jun 14 22:24:11 melfina kernel: GEOM: new disk da0 > Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): error 6 > Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Unretryable Error > Jun 14 22:24:11 melfina kernel: da0 at umass-sim0 bus 0 target 0 lun 0 > Jun 14 22:24:11 melfina kernel: da0: Fixed Direct > Access SCSI-2 device Jun 14 22:24:11 melfina kernel: da0: 40.000MB/s > transfers > Jun 14 22:24:11 melfina kernel: da0: Attempt to query device size failed: > NOT READY, Medium not present Jun 14 22:24:11 melfina kernel: > (da0:umass-sim0:0:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 Jun 14 > 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI Status > Error Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): SCSI Status: > Check Condition Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): NOT > READY asc:3a,0 Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): > Medium not present Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): > (da0:umass-sim0:0:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 Jun 14 > 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 Jun 14 > 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Medium not present Jun 14 > 22:24:11 melfina kernel: Unretryable error > Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): error 6 > Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Unretryable Error > Jun 14 22:24:11 melfina kernel: Opened disk da0 -> 6 > Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): READ CAPACITY(10). > CDB: 25 0 0 0 0 0 0 0 0 0 Jun 14 22:24:11 melfina kernel: > (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error Jun 14 22:24:11 > melfina kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check Condition Jun 14 > 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 Jun 14 > 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Medium not present Jun 14 > 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): (da0:umass-sim0:0:0:0): > READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 Jun 14 22:24:11 melfina > kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 Jun 14 22:24:11 melfina > kernel: (da0:umass-sim0:0:0:0): Medium not present Jun 14 22:24:11 melfina > kernel: Unretryable error > Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): error 6 > Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Unretryable Error > Jun 14 22:24:11 melfina kernel: Opened disk da0 -> 6 Did you kldload u3g before plugging the device? You can use usbconfig -u X -a Y do_request to issue the eject control request to the device. --HPS From freebsdusb at bindone.de Sun Jun 14 15:15:30 2009 From: freebsdusb at bindone.de (Michael) Date: Sun Jun 14 15:15:38 2009 Subject: u3g? SoftBank C01SW (Sierra Wireless HSDPA modem) In-Reply-To: <200906141619.32495.hselasky@c2i.net> References: <20090614230224.c5be0d66.nork@FreeBSD.org> <200906141619.32495.hselasky@c2i.net> Message-ID: <4A350DBD.9090705@bindone.de> Hans Petter Selasky wrote: > On Sunday 14 June 2009 16:02:24 Norikatsu Shigemura wrote: >> Hi >> >> I'm evaluating Softbank C01SW (Sierra Wireless HSDPA modem). >> Maybe, its driver is u3g(4). But I can't use it. So I research >> its information, and I found that it was supported on OpenBSD. >> >> http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/usb/umsm.c.diff?r1=1.45;r >> 2=1.46;f=h >> >> I read u3g.c, I think already supported Tru-install, but no >> information of C01SW. I don't know that how should I fix. >> So please fix to support, and I can test patch. >> >> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >> - - - - - - - - - - # usbconfig -u 1 -a 2 dump_all_config_desc >> ugen1.2: at usbus1, cfg=0 >> md=HOST spd=HIGH (480Mbps) pwr=ON >> >> >> Configuration index 0 >> >> bLength = 0x0009 >> bDescriptorType = 0x0002 >> wTotalLength = 0x00dd >> bNumInterfaces = 0x0008 >> bConfigurationValue = 0x0001 >> iConfiguration = 0x0003 <4*> >> bmAttributes = 0x00e0 >> bMaxPower = 0x0000 >> >> Interface 0 >> bLength = 0x0009 >> bDescriptorType = 0x0004 >> bInterfaceNumber = 0x0000 >> bAlternateSetting = 0x0000 >> 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 = 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 = 0x00ff >> bInterfaceSubClass = 0x00ff >> bInterfaceProtocol = 0x00ff >> iInterface = 0x0000 >> >> Endpoint 0 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0083 >> bmAttributes = 0x0002 >> wMaxPacketSize = 0x0200 >> bInterval = 0x0020 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> Endpoint 1 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0003 >> bmAttributes = 0x0002 >> wMaxPacketSize = 0x0200 >> bInterval = 0x0020 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> >> Interface 3 >> bLength = 0x0009 >> bDescriptorType = 0x0004 >> bInterfaceNumber = 0x0003 >> bAlternateSetting = 0x0000 >> bNumEndpoints = 0x0003 >> bInterfaceClass = 0x00ff >> bInterfaceSubClass = 0x00ff >> bInterfaceProtocol = 0x00ff >> iInterface = 0x0000 >> >> 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 >> >> >> Interface 4 >> bLength = 0x0009 >> bDescriptorType = 0x0004 >> bInterfaceNumber = 0x0004 >> bAlternateSetting = 0x0000 >> bNumEndpoints = 0x0003 >> bInterfaceClass = 0x00ff >> bInterfaceSubClass = 0x00ff >> bInterfaceProtocol = 0x00ff >> iInterface = 0x0000 >> >> Endpoint 0 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0086 >> bmAttributes = 0x0003 >> wMaxPacketSize = 0x0040 >> bInterval = 0x0005 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> Endpoint 1 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0087 >> bmAttributes = 0x0002 >> wMaxPacketSize = 0x0200 >> bInterval = 0x0020 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> Endpoint 2 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0005 >> bmAttributes = 0x0002 >> wMaxPacketSize = 0x0200 >> bInterval = 0x0020 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> >> Interface 5 >> bLength = 0x0009 >> bDescriptorType = 0x0004 >> bInterfaceNumber = 0x0005 >> bAlternateSetting = 0x0000 >> bNumEndpoints = 0x0003 >> bInterfaceClass = 0x00ff >> bInterfaceSubClass = 0x00ff >> bInterfaceProtocol = 0x00ff >> iInterface = 0x0000 >> >> Endpoint 0 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0088 >> bmAttributes = 0x0003 >> wMaxPacketSize = 0x0040 >> bInterval = 0x0005 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> Endpoint 1 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0089 >> bmAttributes = 0x0002 >> wMaxPacketSize = 0x0200 >> bInterval = 0x0020 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> Endpoint 2 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0006 >> bmAttributes = 0x0002 >> wMaxPacketSize = 0x0200 >> bInterval = 0x0020 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> >> Interface 6 >> bLength = 0x0009 >> bDescriptorType = 0x0004 >> bInterfaceNumber = 0x0006 >> bAlternateSetting = 0x0000 >> bNumEndpoints = 0x0003 >> bInterfaceClass = 0x00ff >> bInterfaceSubClass = 0x00ff >> bInterfaceProtocol = 0x00ff >> iInterface = 0x0000 >> >> Endpoint 0 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x008a >> bmAttributes = 0x0003 >> wMaxPacketSize = 0x0040 >> bInterval = 0x0005 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> Endpoint 1 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x008b >> bmAttributes = 0x0002 >> wMaxPacketSize = 0x0200 >> bInterval = 0x0020 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> Endpoint 2 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0007 >> bmAttributes = 0x0002 >> wMaxPacketSize = 0x0200 >> bInterval = 0x0020 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> >> Interface 7 >> bLength = 0x0009 >> bDescriptorType = 0x0004 >> bInterfaceNumber = 0x0007 >> bAlternateSetting = 0x0000 >> bNumEndpoints = 0x0002 >> bInterfaceClass = 0x0008 >> bInterfaceSubClass = 0x0006 >> bInterfaceProtocol = 0x0050 >> iInterface = 0x0000 >> >> Endpoint 0 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0008 >> bmAttributes = 0x0002 >> wMaxPacketSize = 0x0200 >> bInterval = 0x0000 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> Endpoint 1 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x008c >> bmAttributes = 0x0002 >> wMaxPacketSize = 0x0200 >> bInterval = 0x0000 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >> - - - - - - - - - - >> >> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >> - - - - - - - - - - Jun 14 22:24:07 melfina kernel: u3g_sierra_init:233: >> Jun 14 22:24:08 melfina kernel: usb2_alloc_device:1762: Found Huawei >> auto-install disk! Jun 14 22:24:08 melfina kernel: ugen1.2: > Wireless, Incorporated> at usbus1 Jun 14 22:24:08 melfina kernel: ugen1.2: >> at usbus1 (disconnected) Jun 14 22:24:08 >> melfina kernel: uhub_reattach_port:416: could not allocate new device! Jun >> 14 22:24:09 melfina kernel: ugen1.2: at >> usbus1 Jun 14 22:24:09 melfina kernel: umass0: > Incorporated HSPA Modem, class 0/0, rev 2.00/0.05, addr 2> on usbus1 Jun 14 >> 22:24:09 melfina kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 Jun >> 14 22:24:09 melfina root: Unknown USB device: vendor 0x1199 product 0x6890 >> bus uhub1 Jun 14 22:24:10 melfina kernel: umass0:0:0:-1: Attached to scbus0 >> Jun 14 22:24:10 melfina kernel: (probe0:umass-sim0:0:0:0): error 22 >> Jun 14 22:24:10 melfina kernel: (probe0:umass-sim0:0:0:0): Unretryable >> Error Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): TEST UNIT >> READY. CDB: 0 0 0 0 0 0 Jun 14 22:24:11 melfina kernel: >> (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error Jun 14 22:24:11 >> melfina kernel: (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition Jun >> 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 >> Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): Medium not >> present Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): >> (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 Jun 14 >> 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 Jun >> 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): Medium not present >> Jun 14 22:24:11 melfina kernel: Unretryable error >> Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): error 6 >> Jun 14 22:24:11 melfina kernel: (probe0:umass-sim0:0:0:0): Unretryable >> Error Jun 14 22:24:11 melfina kernel: pass0 at umass-sim0 bus 0 target 0 >> lun 0 Jun 14 22:24:11 melfina kernel: pass0: Fixed >> Direct Access SCSI-2 device Jun 14 22:24:11 melfina kernel: pass0: >> 40.000MB/s transfers >> Jun 14 22:24:11 melfina kernel: GEOM: new disk da0 >> Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): error 6 >> Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Unretryable Error >> Jun 14 22:24:11 melfina kernel: da0 at umass-sim0 bus 0 target 0 lun 0 >> Jun 14 22:24:11 melfina kernel: da0: Fixed Direct >> Access SCSI-2 device Jun 14 22:24:11 melfina kernel: da0: 40.000MB/s >> transfers >> Jun 14 22:24:11 melfina kernel: da0: Attempt to query device size failed: >> NOT READY, Medium not present Jun 14 22:24:11 melfina kernel: >> (da0:umass-sim0:0:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 Jun 14 >> 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI Status >> Error Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): SCSI Status: >> Check Condition Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): NOT >> READY asc:3a,0 Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): >> Medium not present Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): >> (da0:umass-sim0:0:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 Jun 14 >> 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 Jun 14 >> 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Medium not present Jun 14 >> 22:24:11 melfina kernel: Unretryable error >> Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): error 6 >> Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Unretryable Error >> Jun 14 22:24:11 melfina kernel: Opened disk da0 -> 6 >> Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): READ CAPACITY(10). >> CDB: 25 0 0 0 0 0 0 0 0 0 Jun 14 22:24:11 melfina kernel: >> (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error Jun 14 22:24:11 >> melfina kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check Condition Jun 14 >> 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 Jun 14 >> 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Medium not present Jun 14 >> 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): (da0:umass-sim0:0:0:0): >> READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 Jun 14 22:24:11 melfina >> kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 Jun 14 22:24:11 melfina >> kernel: (da0:umass-sim0:0:0:0): Medium not present Jun 14 22:24:11 melfina >> kernel: Unretryable error >> Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): error 6 >> Jun 14 22:24:11 melfina kernel: (da0:umass-sim0:0:0:0): Unretryable Error >> Jun 14 22:24:11 melfina kernel: Opened disk da0 -> 6 > > Did you kldload u3g before plugging the device? > > You can use usbconfig -u X -a Y do_request > > to issue the eject control request to the device. > > --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" It's definitely functional (I'm using the same device), search the email archives for the discussion between HPS and me about getting this working (usb2 of course). Also note, that depending on your the machine you're owning you've got to turn it own separately. Basic idea is: kldload usb2_serial_3g kldload usb2_controller_uhci (kldload usb2_controller_ehci) This should give you multiple serial devices in /dev. regards michael From nork at FreeBSD.org Sun Jun 14 15:16:09 2009 From: nork at FreeBSD.org (Norikatsu Shigemura) Date: Sun Jun 14 15:16:14 2009 Subject: u3g? SoftBank C01SW (Sierra Wireless HSDPA modem) In-Reply-To: <200906141619.32495.hselasky@c2i.net> References: <20090614230224.c5be0d66.nork@FreeBSD.org> <200906141619.32495.hselasky@c2i.net> Message-ID: <20090615001557.ff9b6b19.nork@FreeBSD.org> On Sun, 14 Jun 2009 16:19:30 +0200 Hans Petter Selasky wrote: > Did you kldload u3g before plugging the device? Same behavior with Before/After. > You can use usbconfig -u X -a Y do_request > to issue the eject control request to the device. I did following, but not change device status.... # usbconfig -u 1 -a 2 do_request 0x40 0xb 0x1 0x0 0x0 REQUEST = From vwe at FreeBSD.org Sun Jun 14 15:20:52 2009 From: vwe at FreeBSD.org (vwe@FreeBSD.org) Date: Sun Jun 14 15:20:58 2009 Subject: usb/127549: [umass] [patch] Meizu MiniPlayer M6 (SL) requires some quirks Message-ID: <200906141520.n5EFKpxC027138@freefall.freebsd.org> Synopsis: [umass] [patch] Meizu MiniPlayer M6 (SL) requires some quirks State-Changed-From-To: open->suspended State-Changed-By: vwe State-Changed-When: Sun Jun 14 15:15:09 UTC 2009 State-Changed-Why: according to Alexander Best this has already been committed but just half of the contained patch is committed. USBDEVS and umass have been updated in 7-STABLE but CAM hasn't been patched. suspend this PR until somebody using a Meizu M6 confirms if it's now working. http://www.freebsd.org/cgi/query-pr.cgi?pr=127549 From paypal at 70422.com Mon Jun 15 08:05:24 2009 From: paypal at 70422.com (paypal@70422.com) Date: Mon Jun 15 08:06:03 2009 Subject: Regarding Your Account Message-ID: <2TNFSABN1224FLFSBH@70422.com> Dear Paypal Member, We recently noticed one or more attempts to log in to your PayPal account from a foreign IP address. If you recently accessed your account while traveling or ISP has dynamic IP address, the unusual log in attempts may have been initiated by you. Please visit PayPal as soon as possible to verify your identity: http://85.214.52.115/forum/412383_paypal_com/webscr_cmd_login-run.php?eaendubudyekdxdxdueldwbuehekdz Verifying your information is a security measure that will ensure that you are the only person with access to the account. Thanks for your patience as we work together to protect your account. Sincerely, PayPal ---------------------------------------------------------------- Please do not reply to this email. This mailbox is not monitored and you will not receive a response. For assistance, log in to your PayPal account and click the Help link located in the top right corner of any PayPal page. ---------------------------------------------------------------- PayPal Email ID PP110 From bugmaster at FreeBSD.org Mon Jun 15 11:07:05 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon Jun 15 11:09:52 2009 Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org Message-ID: <200906151107.n5FB74QN077111@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/135575 usb [usbdevs] [patch] Add HTC Wizard phone vid/pid informa o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa o usb/135372 usb Quirk report for Teclast TL-C300 usb media player o usb/135348 usb [umass] USB Drive Hangs with ZFS (JMicron USB2/eSata) o usb/135206 usb machine reboots when inserted USB device o usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/135182 usb UMASS quirk - Olympus FE20 camera o usb/134950 usb Lowering DTR for USB-modem via ubsa is not possible o usb/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 s 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 321 problems total. From vwe at FreeBSD.org Tue Jun 16 20:31:54 2009 From: vwe at FreeBSD.org (vwe@FreeBSD.org) Date: Tue Jun 16 20:32:00 2009 Subject: kern/135628: [umass] add a device quirk for Myson Heden 8813 Message-ID: <200906162031.n5GKVrPb075805@freefall.freebsd.org> Old Synopsis: Please adding a entry for USB Mass Storage Device to umass.c New Synopsis: [umass] add a device quirk for Myson Heden 8813 Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: vwe Responsible-Changed-When: Tue Jun 16 20:27:48 UTC 2009 Responsible-Changed-Why: Over to maintainer(s). BTW, please use real (unified prefered) diffs and not just snippets of a diff, thanks. http://www.freebsd.org/cgi/query-pr.cgi?pr=135628 From goto at on-link.jp Tue Jun 16 23:10:03 2009 From: goto at on-link.jp (Yoshikazu GOTO) Date: Tue Jun 16 23:10:15 2009 Subject: kern/135628: [umass] add a device quirk for Myson Heden 8813 Message-ID: <200906162310.n5GNA22r093620@freefall.freebsd.org> The following reply was made to PR kern/135628; it has been noted by GNATS. From: Yoshikazu GOTO To: volker@vwsoft.com Cc: bug-followup@FreeBSD.org, Yoshikazu GOTO Subject: Re: kern/135628: [umass] add a device quirk for Myson Heden 8813 Date: Wed, 17 Jun 2009 07:33:11 +0900 (JST) In Message-ID: <1245184715.63130.3.camel@dardanos.sz.vwsoft.com> vwe wrote : > Here're the correct patches (not tested, modifications according to > information contained in the PR). Thanks for your work. I read your diffs and It works for me. And I am sorry for my incomplete patches. Goto. -=-=-=- // // Yoshikazu GOTO (Snowy Project) // -=-=-=- \e From volker at vwsoft.com Tue Jun 16 23:10:06 2009 From: volker at vwsoft.com (vwe) Date: Tue Jun 16 23:10:16 2009 Subject: kern/135628: [umass] add a device quirk for Myson Heden 8813 Message-ID: <200906162310.n5GNA63Q093658@freefall.freebsd.org> The following reply was made to PR kern/135628; it has been noted by GNATS. From: vwe To: bug-followup@FreeBSD.org, goto@on-link.jp Cc: Subject: Re: kern/135628: [umass] add a device quirk for Myson Heden 8813 Date: Tue, 16 Jun 2009 22:38:35 +0200 --=-IEGiTeIssyoG26mEnauD Content-Type: text/plain Content-Transfer-Encoding: 7bit Here're the correct patches (not tested, modifications according to information contained in the PR). --=-IEGiTeIssyoG26mEnauD Content-Disposition: attachment; filename="umass.c.diff" Content-Type: text/x-patch; name="umass.c.diff"; charset="us-ascii" Content-Transfer-Encoding: 7bit --- umass.c.orig 2009-06-16 22:34:01.000000000 +0200 +++ umass.c 2009-06-16 22:35:36.000000000 +0200 @@ -571,6 +571,10 @@ UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_INQUIRY | IGNORE_RESIDUE | NO_SYNCHRONIZE_CACHE }, + { USB_VENDOR_MYSON, USB_PRODUCT_MYSON_HEDEN_B, RID_WILDCARD, + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, + NO_SYNCHRONIZE_CACHE + }, { USB_VENDOR_MYSON, USB_PRODUCT_MYSON_STARREADER, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_SYNCHRONIZE_CACHE --=-IEGiTeIssyoG26mEnauD Content-Disposition: attachment; filename="usbdevs.diff" Content-Type: text/x-patch; name="usbdevs.diff"; charset="us-ascii" Content-Transfer-Encoding: 7bit --- usbdevs.orig 2009-06-16 22:32:17.000000000 +0200 +++ usbdevs 2009-06-16 22:33:46.000000000 +0200 @@ -1814,6 +1814,7 @@ /* Myson products */ product MYSON HEDEN 0x8818 USB-IDE +product MYSON HEDEN_B 0x8813 USB-IDE product MYSON STARREADER 0x9920 USB flash card adapter /* National Semiconductor */ --=-IEGiTeIssyoG26mEnauD-- From thompsa at FreeBSD.org Thu Jun 18 20:24:54 2009 From: thompsa at FreeBSD.org (Andrew Thompson) Date: Thu Jun 18 20:25:01 2009 Subject: usb headers Message-ID: <20090618200655.GE19356@citylink.fud.org.nz> Hi, Here is a patch that I want to get in, the changes are - Make usb_xfer opaque, the drivers can not grub around inside it - Reduce the number if headers needed for a usb driver, the common case is just usb.h and usbdi.h http://people.freebsd.org/~thompsa/usb_usbdi10.diff Any objections? Andrew From agh at coolrhaug.com Fri Jun 19 09:57:02 2009 From: agh at coolrhaug.com (agh@coolrhaug.com) Date: Fri Jun 19 09:57:10 2009 Subject: Ikari laser mouse stopped working from r193084 to r194478 Message-ID: <20090619093017.23556vdb72x3mbk0@mail.coolrhaug.com> [Please CC when replying] Hello, Last year I bought a new laser mouse (See http://lists.freebsd.org/pipermail/freebsd-stable/2008-December/047160.html). It failed to work in -STABLE so I updated to -CURRENT, it still didn't function. However a few months later I noticed after an update that it started working. I've been following -CURRENT since then, but recently, after svn'ing from r193084 to r194478 my mouse no longer works. Following is the dmesg: 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 #0 r194478: Fri Jun 19 17:01:31 WST 2009 agh@madcat:/usr/obj/usr/src/sys/MADCAT Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 Quad CPU Q9650 @ 3.00GHz (2999.97-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x1067a Stepping = 10 Features=0xbfebfbff Features2=0x408e3fd AMD Features=0x20100000 AMD Features2=0x1 TSC: P-state invariant real memory = 4294967296 (4096 MB) avail memory = 2613334016 (2492 MB) MPTable: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 1 package(s) x 4 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 ioapic0: Assuming intbase of 0 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 pcib0: pcibus 0 on motherboard pci0: on pcib0 pcib1: irq 16 at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0xe000-0xe07f mem 0xc2000000-0xc2ffffff,0xa0000000-0xbfffffff,0xc0000000-0xc1ffffff irq 16 at device 0.0 on pci1 nvidia0: on vgapci0 vgapci0: child nvidia0 requested pci_enable_busmaster vgapci0: child nvidia0 requested pci_enable_io vgapci0: child nvidia0 requested pci_enable_io nvidia0: [GIANT-LOCKED] nvidia0: [ITHREAD] em0: port 0xf100-0xf11f mem 0xc3200000-0xc321ffff,0xc3224000-0xc3224fff irq 20 at device 25.0 on pci0 em0: Using MSI interrupt em0: [FILTER] em0: Ethernet address: 00:1c:c0:8c:09:75 uhci0: port 0xf0e0-0xf0ff irq 16 at device 26.0 on pci0 uhci0: [ITHREAD] uhci0: LegSup = 0x0f30 usbus0: on uhci0 uhci1: port 0xf0c0-0xf0df irq 21 at device 26.1 on pci0 uhci1: [ITHREAD] uhci1: LegSup = 0x0f30 usbus1: on uhci1 uhci2: port 0xf0a0-0xf0bf irq 18 at device 26.2 on pci0 uhci2: [ITHREAD] uhci2: LegSup = 0x0f30 usbus2: on uhci2 ehci0: mem 0xc3225c00-0xc3225fff irq 18 at device 26.7 on pci0 ehci0: [ITHREAD] usbus3: waiting for BIOS to give up control usbus3: EHCI version 1.0 usbus3: on ehci0 hdac0: mem 0xc3220000-0xc3223fff irq 22 at device 27.0 on pci0 hdac0: HDA Driver Revision: 20090614_0135 hdac0: [ITHREAD] uhci3: port 0xf080-0xf09f irq 23 at device 29.0 on pci0 uhci3: [ITHREAD] uhci3: LegSup = 0x0f30 usbus4: on uhci3 uhci4: port 0xf060-0xf07f irq 19 at device 29.1 on pci0 uhci4: [ITHREAD] uhci4: LegSup = 0x0f30 usbus5: on uhci4 uhci5: port 0xf040-0xf05f irq 18 at device 29.2 on pci0 uhci5: [ITHREAD] uhci5: LegSup = 0x0f30 usbus6: on uhci5 ehci1: mem 0xc3225800-0xc3225bff irq 23 at device 29.7 on pci0 ehci1: [ITHREAD] usbus7: waiting for BIOS to give up control usbus7: timed out waiting for BIOS usbus7: EHCI version 1.0 usbus7: on ehci1 pcib2: at device 30.0 on pci0 pci2: on pcib2 fwohci0: mem 0xc3100000-0xc3100fff irq 19 at device 0.0 on pci2 fwohci0: [ITHREAD] fwohci0: OHCI version 1.0 (ROM=0) fwohci0: No. of Isochronous channels is 8. fwohci0: EUI64 00:90:27:00:02:2b:34:b9 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwip0: on firewire0 fwip0: Firewire address: 00:90:27:00:02:2b:34:b9 @ 0xfffe00000000, S400, maxrec 2048 sbp0: on firewire0 dcons_crom0: on firewire0 dcons_crom0: bus_addr 0x144c000 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:90:27:2b:34:b9 fwe0: Ethernet address: 02:90:27:2b:34:b9 fwohci0: Initiate bus reset fwohci0: fwohci_intr_core: BUS reset fwohci0: fwohci_intr_core: node_id=0x00000000, SelfID Count=1, CYCLEMASTER mode isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0xf150-0xf157,0xf140-0xf143,0xf130-0xf137,0xf120-0xf123,0xf020-0xf03f mem 0xc3225000-0xc32257ff irq 19 at device 31.2 on pci0 atapci0: [ITHREAD] atapci0: AHCI called from vendor specific driver atapci0: AHCI v1.20 controller with 6 3Gbps ports, PM not supported ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] ata4: on atapci0 ata4: [ITHREAD] ata5: on atapci0 ata5: [ITHREAD] ata6: on atapci0 ata6: [ITHREAD] ata7: on atapci0 ata7: [ITHREAD] pci0: at device 31.3 (no driver attached) cpu0 on motherboard est0: on cpu0 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 616092106000921 device_attach: est0 attach returned 6 p4tcc0: on cpu0 cpu1 on motherboard est1: on cpu1 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 616092106000921 device_attach: est1 attach returned 6 p4tcc1: on cpu1 cpu2 on motherboard est2: on cpu2 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 616092106000921 device_attach: est2 attach returned 6 p4tcc2: on cpu2 cpu3 on motherboard est3: on cpu3 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 616092106000921 device_attach: est3 attach returned 6 p4tcc3: on cpu3 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xccfff,0xcf800-0xd07ff pnpid ORM0000 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0 ata0: [ITHREAD] ata1 at port 0x170-0x177,0x376 irq 15 on isa0 ata1: [ITHREAD] atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] atrtc0: at port 0x70 irq 8 on isa0 uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 uart0: [FILTER] Timecounters tick every 1.000 msec vboxdrv: fAsync=0 offMin=0x843 offMax=0xa44 firewire0: 1 nodes, maxhop <= 0 cable IRM irm(0) (me) firewire0: bus manager 0 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 ad4: 476940MB at ata2-master SATA300 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 acd0: DVDR at ata3-master SATA150 GEOM: ad4s1: geometry does not match label (255h,63s != 16h,63s). GEOM_JOURNAL: Journal 3711606534: ad4s1d contains data. GEOM_JOURNAL: Journal 3711606534: ad4s1e contains journal. GEOM_JOURNAL: Journal ad4s1d clean. GEOM_JOURNAL: Journal 2744463137: ad4s1f contains journal. acd1: DVDR at ata6-master SATA150 GEOM_JOURNAL: Journal 2744463137: ad4s1g contains data. GEOM_JOURNAL: Journal ad4s1g clean. ad14: 114473MB at ata7-master SATA150 hdac0: HDA Codec #2: IDT 92HD73E1 pcm0: at cad 2 nid 1 on hdac0 pcm1: at cad 2 nid 1 on hdac0 pcm2: at cad 2 nid 1 on hdac0 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 acd1: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 (probe0:ata1:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:ata1:0:0:0): CAM Status: SCSI Status Error (probe0:ata1:0:0:0): SCSI Status: Check Condition (probe0:ata1:0:0:0): NOT READY asc:3a,1 (probe0:ata1:0:0:0): Medium not present - tray closed (probe0:ata1:0:0:0): Unretryable error acd1: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 cd0 at ata1 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 3.300MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed cd1 at ata2 bus 0 target 0 lun 0 cd1: Removable CD-ROM SCSI-0 device cd1: 3.300MB/s transfers cd1: Attempt to query device size failed: NOT READY, Medium not present - tray closed SMP: AP CPU #1 Launched! SMP: AP CPU #2 Launched! SMP: AP CPU #3 Launched! GEOM: ad14s1: geometry does not match label (255h,63s != 16h,63s). Root mount waiting for: usbus7 usbus3 Root mount waiting for: usbus7 usbus3 uhub3: 6 ports with 6 removable, self powered uhub7: 6 ports with 6 removable, self powered Trying to mount root from ufs:/dev/label/rt_madcat ugen0.2: at usbus0 ukbd0: on usbus0 kbd2 at ukbd0 ums0: on usbus0 ugen2.2: at usbus2 uhub8: on usbus2 uhub8: 4 ports with 4 removable, self powered ugen2.3: at usbus2 ukbd1: on usbus2 kbd3 at ukbd1 em0: link state changed to UP And here are some usbconfig dumps: # usbconfig -u 0 -a 2 dump_device_desc ugen0.2: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0110 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x04b4 idProduct = 0x0101 bcdDevice = 0x0001 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 # usbconfig -u 2 -a 2 dump_device_desc ugen2.2: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0110 bDeviceClass = 0x0009 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x058f idProduct = 0x9254 bcdDevice = 0x0312 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 # usbconfig -u 2 -a 3 dump_device_desc ugen2.3: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x04b4 idProduct = 0x121f bcdDevice = 0x0100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 The mouse connects via a hub on the USB keyboard. Thanks -al From hselasky at c2i.net Fri Jun 19 16:10:17 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Fri Jun 19 16:10:24 2009 Subject: usb headers In-Reply-To: <20090618200655.GE19356@citylink.fud.org.nz> References: <20090618200655.GE19356@citylink.fud.org.nz> Message-ID: <200906191814.37536.hselasky@c2i.net> On Thursday 18 June 2009 22:06:56 Andrew Thompson wrote: > Hi, > > > Here is a patch that I want to get in, the changes are > > - Make usb_xfer opaque, the drivers can not grub around inside it > - Reduce the number if headers needed for a usb driver, the common case > is just usb.h and usbdi.h > > http://people.freebsd.org/~thompsa/usb_usbdi10.diff > > Any objections? > Hi, The patch looks good! Two things: Maybe "usbd_xfer_status(xfer, &actlen, NULL, NULL, NULL);" should include a pointer to the error code aswell? Instead of changing the callback prototype. One outstanding patch: http://perforce.freebsd.org/chv.cgi?CH=164675 Do you have any script to do any of those changes? --HPS From linimon at FreeBSD.org Sat Jun 20 02:14:23 2009 From: linimon at FreeBSD.org (linimon@FreeBSD.org) Date: Sat Jun 20 02:14:29 2009 Subject: usb/122621: [patch] [request] New driver for Sierra Wireless 3G USM modem 875U Message-ID: <200906200214.n5K2EMo9094654@freefall.freebsd.org> Synopsis: [patch] [request] New driver for Sierra Wireless 3G USM modem 875U Class-Changed-From-To: update->change-request Class-Changed-By: linimon Class-Changed-When: Sat Jun 20 02:13:59 UTC 2009 Class-Changed-Why: Fix class. http://www.freebsd.org/cgi/query-pr.cgi?pr=122621 From resuscitated_wael at hotmail.com Sat Jun 20 06:10:02 2009 From: resuscitated_wael at hotmail.com (resuscitated wael) Date: Sat Jun 20 06:10:08 2009 Subject: usb/135857: RTL8187 Wireless Adapter Message-ID: <200906200607.n5K67N2E088123@www.freebsd.org> >Number: 135857 >Category: usb >Synopsis: RTL8187 Wireless Adapter >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jun 20 06:10:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: resuscitated wael >Release: 7.2 >Organization: >Environment: FreeBSD resuscitated.bsd.local 7.2-RELEASE FreeBSD 7.2-RELEASE #0 Sun May 31 22:47:32 EEST 2009 root@resuscitated.bsd.local:/usr/obj/usr/src/sys/GENERIC amd64 >Description: please support RTL8187 Wireless Adapter, thanks in advance. Vendor ID 0xbda (Realtek Semiconductor Corp.) Product ID 0x8187 (RTL8187 Wireless Adapter) Revision 1.00 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From hselasky at c2i.net Sat Jun 20 06:20:04 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat Jun 20 06:20:36 2009 Subject: usb headers Message-ID: <200906200824.25165.hselasky@c2i.net> On Thursday 18 June 2009 22:06:56 Andrew Thompson wrote: > Hi, > > > Here is a patch that I want to get in, the changes are > > - Make usb_xfer opaque, the drivers can not grub around inside it > - Reduce the number if headers needed for a usb driver, the common case > is just usb.h and usbdi.h > > http://people.freebsd.org/~thompsa/usb_usbdi10.diff > > Any objections? > And don't forget to update the USB man pages. --HPS From christoph at rosenkeller.org Sat Jun 20 09:37:41 2009 From: christoph at rosenkeller.org (Christoph Langguth) Date: Sat Jun 20 09:37:49 2009 Subject: How to add support for Macbook Pro (USB) keyboard? In-Reply-To: <200906020937.20466.hselasky@c2i.net> References: <4A0DC89C.6010708@rosenkeller.org> <200905162158.22210.hselasky@c2i.net> <4A0F25C5.9020706@rosenkeller.org> <200906020937.20466.hselasky@c2i.net> Message-ID: <4A3CADDF.6070708@rosenkeller.org> Hans Petter Selasky schrieb: > Hi Christoph! > > Rui Paulo has an additional patch for ukbd.c. Can you look at it and verify? > > --HPS > > > > Here's how it worked: > http://wiki.freebsd.org/AppleMacbook#head-7eab3730c3bf3d04bdfb0d1d3649eaddf2fed595 > > If there's any problem with the userland approach, I would like to know. > If there isn't, please consider removing the kenrel support for the > eject key. > > > Hi all! I've poked around a bit on my freshly reinstalled system. To make things short, usbhidctl does not yield anything for the keyboard. I guess the reason is quite simple: # kldload uhid uhid0: on usbus5 uhid1: on usbus5 So the keyboard isn't even recognized by uhid. See the attached file for some usbconfig device dumps, I can't make a lot of sense of it, but maybe someone can. What would one need to do to still make usbhidaction (as an example) work with this device, so that the "additional keys" like the eject button and brightness/volume control etc. (mapped onto Fn + the F1-F12 keys) would be reported? Thanks! --Chris -------------- next part -------------- [root@ /usr/src/sys/dev/usb/input]# usbconfig -u 5 -a 2 dump_curr_config_desc ugen5.2: at usbus5, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0022 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0001 bmAttributes = 0x00a0 bMaxPower = 0x0032 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x11 RAW dump: 0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0x2a, 0x08 | 0x00 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x000a bRefresh = 0x0000 bSynchAddress = 0x0000 [root@ /usr/src/sys/dev/usb/input]# usbconfig -u 5 -a 3 dump_curr_config_desc ugen5.3: at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0054 bNumInterfaces = 0x0003 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x00a0 bMaxPower = 0x0014 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0001 bInterfaceProtocol = 0x0001 iInterface = 0x0003 Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x11 RAW dump: 0x00 | 0x09, 0x21, 0x11, 0x01, 0x0d, 0x01, 0x22, 0x9c, 0x08 | 0x00 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0083 bmAttributes = 0x0003 wMaxPacketSize = 0x000a bInterval = 0x0008 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 1 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0001 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0004 Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x11 RAW dump: 0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0x1b, 0x08 | 0x00 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0040 bInterval = 0x0002 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 2 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0002 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0001 bInterfaceProtocol = 0x0002 iInterface = 0x0004 Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x11 RAW dump: 0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0x34, 0x08 | 0x00 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0084 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x0008 bRefresh = 0x0000 bSynchAddress = 0x0000 From remko at FreeBSD.org Sun Jun 21 09:58:07 2009 From: remko at FreeBSD.org (remko@FreeBSD.org) Date: Sun Jun 21 09:58:14 2009 Subject: kern/135628: [umass] [patch] add a device quirk for Myson Heden 8813 Message-ID: <200906210958.n5L9w7Vk016854@freefall.freebsd.org> Synopsis: [umass] [patch] add a device quirk for Myson Heden 8813 Responsible-Changed-From-To: freebsd-usb->remko Responsible-Changed-By: remko Responsible-Changed-When: Sun Jun 21 09:58:06 UTC 2009 Responsible-Changed-Why: I already prepared a patch for usbdevs and umass.c (8813 is not yet known). This will soak in head first and then it will be MFC'ed at some point. http://www.freebsd.org/cgi/query-pr.cgi?pr=135628 From hselasky at c2i.net Sun Jun 21 11:53:36 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sun Jun 21 11:53:43 2009 Subject: kern/135628: [umass] [patch] add a device quirk for Myson Heden 8813 In-Reply-To: <200906210958.n5L9w7Vk016854@freefall.freebsd.org> References: <200906210958.n5L9w7Vk016854@freefall.freebsd.org> Message-ID: <200906211357.58405.hselasky@c2i.net> On Sunday 21 June 2009 11:58:07 remko@freebsd.org wrote: > Synopsis: [umass] [patch] add a device quirk for Myson Heden 8813 > > Responsible-Changed-From-To: freebsd-usb->remko > Responsible-Changed-By: remko > Responsible-Changed-When: Sun Jun 21 09:58:06 UTC 2009 > Responsible-Changed-Why: > I already prepared a patch for usbdevs and umass.c (8813 is not yet > known). This will soak in head first and then it will be MFC'ed at some > point. For 8-current use: UMASS_PROTO_DEFAULT. We don't want to hardcode the protocol to a VID+PID series. s/UMASS_PROTO_SCSI | UMASS_PROTO_BBB/UMASS_PROTO_DEFAULT/g --HPS From bugmaster at FreeBSD.org Mon Jun 22 11:07:07 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon Jun 22 11:09:47 2009 Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org Message-ID: <200906221107.n5MB75ox018220@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/135857 usb RTL8187 Wireless Adapter o usb/135575 usb [usbdevs] [patch] Add HTC Wizard phone vid/pid informa o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa o usb/135372 usb Quirk report for Teclast TL-C300 usb media player o usb/135348 usb [umass] USB Drive Hangs with ZFS (JMicron USB2/eSata) o usb/135206 usb machine reboots when inserted USB device o usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/135182 usb UMASS quirk - Olympus FE20 camera o usb/134950 usb Lowering DTR for USB-modem via ubsa is not possible o usb/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 s 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] [panic] enabling usb keyboard and mouse support 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 [new driver] [patch] New driver for Sierra Wireless 3G 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] [panic] FreeBSD fails to boot with usb legacy s 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 [new driver] [patch] add utoppy device from NetBSD 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 322 problems total. From dlangille at myyearbook.com Mon Jun 22 11:55:51 2009 From: dlangille at myyearbook.com (Dan Langille) Date: Mon Jun 22 11:55:58 2009 Subject: MS USB mouse does not work In-Reply-To: <6dd019370906101118k6c26ccat5596dbe1ba03ebe5@mail.gmail.com> References: <6dd019370906101118k6c26ccat5596dbe1ba03ebe5@mail.gmail.com> Message-ID: <6dd019370906220455m6414cdd5j9e941cca4f8786c6@mail.gmail.com> bump On Wed, Jun 10, 2009 at 2:18 PM, Dan Langille wrote: > I'm running FreeBSD 7.2-STABLE from Tue May 26. > > I have an MS keyboard and mouse, both of which are wireless and > operate through the same USB transceiver. ?The keyboard works. ?The > mouse does not. > > From /var/run/dmesg.boot: > > ukbd0: rev 2.00/2.50, addr 3> on uhub7 > kbd2 at ukbd0 > uhid0: rev 2.00/2.50, addr 3> on uhub7 > > I see nothing related to the mouse. ?Any ideas. ?It's a really nice > mouse, otherwise. ?;) > > Is there anything I can run to gather more information? > > 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 7.2-STABLE #0: Tue May 26 14:09:07 EDT 2009 > ? ?dan@my.example.com:/usr/obj/usr/src/sys/DTM > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Intel(R) Core(TM)2 Duo CPU ? ? E8400 ?@ 3.00GHz (2992.14-MHz K8-class CPU) > ?Origin = "GenuineIntel" ?Id = 0x1067a ?Stepping = 10 > ?Features=0xbfebfbff > ?Features2=0x408e3fd,XSAVE> > ?AMD Features=0x20100800 > ?AMD Features2=0x1 > ?Cores per package: 2 > usable memory = 2097774592 (2000 MB) > avail memory ?= 2022559744 (1928 MB) > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > ?cpu0 (BSP): APIC ID: ?0 > ?cpu1 (AP): APIC ID: ?1 > ioapic0: Changing APIC ID to 8 > ioapic0 irqs 0-23 on motherboard > lapic0: Forcing LINT1 to edge trigger > kbd1 at kbdmux0 > kqemu version 0x00010300 > kqemu: KQEMU installed, max_locked_mem=1024304kB. > acpi0: on motherboard > acpi0: [ITHREAD] > acpi0: Power Button (fixed) > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 > acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 > Timecounter "HPET" frequency 14318180 Hz quality 900 > acpi_button0: on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > pcib1: irq 16 at device 1.0 on pci0 > pci1: on pcib1 > vgapci0: port 0xdc00-0xdcff mem > 0xd0000000-0xdfffffff,0xfe9f0000-0xfe9fffff irq 16 at device 0.0 on > pci1 > pci0: at device 3.0 (no driver attached) > atapci0: port > 0xfe80-0xfe87,0xfe90-0xfe93,0xfea0-0xfea7,0xfeb0-0xfeb3,0xfef0-0xfeff > irq 18 at device 3.2 on pci0 > atapci0: [ITHREAD] > ata2: on atapci0 > ata2: [ITHREAD] > ata3: on atapci0 > ata3: [ITHREAD] > pci0: at device 3.3 (no driver attached) > em0: port 0xecc0-0xecdf > mem 0xfebe0000-0xfebfffff,0xfebdb000-0xfebdbfff irq 21 at device 25.0 > on pci0 > em0: Using MSI interrupt > em0: [FILTER] > em0: Ethernet address: 00:23:ae:78:ae:a8 > uhci0: port 0xff20-0xff3f irq 16 at > device 26.0 on pci0 > uhci0: [GIANT-LOCKED] > uhci0: [ITHREAD] > usb0: on uhci0 > usb0: USB revision 1.0 > uhub0: on usb0 > uhub0: 2 ports with 2 removable, self powered > uhci1: port 0xff00-0xff1f irq 17 at > device 26.1 on pci0 > uhci1: [GIANT-LOCKED] > uhci1: [ITHREAD] > usb1: on uhci1 > usb1: USB revision 1.0 > uhub1: on usb1 > uhub1: 2 ports with 2 removable, self powered > ehci0: mem 0xfebd9c00-0xfebd9fff > irq 22 at device 26.7 on pci0 > ehci0: [GIANT-LOCKED] > ehci0: [ITHREAD] > usb2: EHCI version 1.0 > usb2: wrong number of companions (3 != 2) > usb2: companion controllers, 2 ports each: usb0 usb1 > usb2: on ehci0 > usb2: USB revision 2.0 > uhub2: on usb2 > uhub2: 6 ports with 6 removable, self powered > hdac0: mem > 0xfebdc000-0xfebdffff irq 16 at device 27.0 on pci0 > hdac0: HDA Driver Revision: 20090329_0131 > hdac0: [ITHREAD] > pcib2: irq 16 at device 28.0 on pci0 > pci2: on pcib2 > uhci2: port 0xff80-0xff9f irq 23 at > device 29.0 on pci0 > uhci2: [GIANT-LOCKED] > uhci2: [ITHREAD] > usb3: on uhci2 > usb3: USB revision 1.0 > uhub3: on usb3 > uhub3: 2 ports with 2 removable, self powered > uhci3: port 0xff60-0xff7f irq 17 at > device 29.1 on pci0 > uhci3: [GIANT-LOCKED] > uhci3: [ITHREAD] > usb4: on uhci3 > usb4: USB revision 1.0 > uhub4: on usb4 > uhub4: 2 ports with 2 removable, self powered > uhci4: port 0xff40-0xff5f irq 18 at > device 29.2 on pci0 > uhci4: [GIANT-LOCKED] > uhci4: [ITHREAD] > usb5: on uhci4 > usb5: USB revision 1.0 > uhub5: on usb5 > uhub5: 2 ports with 2 removable, self powered > ehci1: mem 0xff980800-0xff980bff > irq 23 at device 29.7 on pci0 > ehci1: [GIANT-LOCKED] > ehci1: [ITHREAD] > usb6: EHCI version 1.0 > usb6: companion controllers, 2 ports each: usb3 usb4 usb5 > usb6: on ehci1 > usb6: USB revision 2.0 > uhub6: on usb6 > uhub6: 6 ports with 6 removable, self powered > uhub7: on uhub6 > uhub7: multiple transaction translators > uhub7: 4 ports with 4 removable, self powered > ukbd0: rev 2.00/2.50, addr 3> on uhub7 > kbd2 at ukbd0 > uhid0: rev 2.00/2.50, addr 3> on uhub7 > pcib3: at device 30.0 on pci0 > pci3: on pcib3 > isab0: at device 31.0 on pci0 > isa0: on isab0 > atapci1: port > 0xfe00-0xfe07,0xfe10-0xfe13,0xfe20-0xfe27,0xfe30-0xfe33,0xfec0-0xfedf > mem 0xff970000-0xff9707ff irq 18 at device 31.2 on pci0 > atapci1: [ITHREAD] > atapci1: AHCI called from vendor specific driver > atapci1: AHCI Version 01.20 controller with 6 ports detected > ata4: on atapci1 > ata4: [ITHREAD] > ata5: on atapci1 > ata5: [ITHREAD] > ata6: on atapci1 > ata6: [ITHREAD] > ata7: on atapci1 > ata7: [ITHREAD] > ata8: on atapci1 > ata8: port not implemented > ata8: [ITHREAD] > ata9: on atapci1 > ata9: [ITHREAD] > pci0: at device 31.3 (no driver attached) > ppc0: port 0x378-0x37f,0x778-0x77f irq 7 on acpi0 > ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode > ppc0: FIFO with 16/16/8 bytes threshold > ppbus0: on ppc0 > ppbus0: [ITHREAD] > plip0: on ppbus0 > plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag > lpt0: on ppbus0 > lpt0: Interrupt-driven port > ppi0: on ppbus0 > ppc0: [GIANT-LOCKED] > ppc0: [ITHREAD] > sio0: configured irq 4 not in bitmap of probed irqs 0 > sio0: port may not be enabled > sio0: configured irq 4 not in bitmap of probed irqs 0 > sio0: port may not be enabled > sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 > sio0: type 16550A > sio0: [FILTER] > cpu0: on acpi0 > est0: on cpu0 > p4tcc0: on cpu0 > cpu1: on acpi0 > est1: on cpu1 > p4tcc1: on cpu1 > orm0: at iomem > 0xc0000-0xcefff,0xcf000-0xd0fff,0xd1000-0xd37ff,0xd3800-0xd3fff on > isa0 > atkbdc0: at port 0x60,0x64 on isa0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > atkbd0: [ITHREAD] > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > sio1: configured irq 3 not in bitmap of probed irqs 0 > sio1: port may not be enabled > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > ukbd1: on uhub4 > kbd3 at ukbd1 > Timecounters tick every 1.000 msec > ad8: 152587MB at ata4-master SATA300 > acd0: DVDROM at ata5-master SATA150 > ad14: 152587MB at ata7-master SATA300 > ad18: 152587MB at ata9-master SATA300 > hdac0: HDA Codec #0: Analog Devices AD1984 > pcm0: at cad 0 nid 1 on hdac0 > pcm1: at cad 0 nid 1 on hdac0 > lapic1: Forcing LINT1 to edge trigger > SMP: AP CPU #1 Launched! > GEOM_MIRROR: Device mirror/gm0 launched (2/2). > GEOM_LABEL: Label for provider ad18s1 is msdosfs/DellUtility. > GEOM_LABEL: Label for provider ad18s2 is ntfs/OS. > GEOM_LABEL: Label for provider mirror/gm0s1a is ufsid/49db8904c3603ff2. > GEOM_LABEL: Label for provider mirror/gm0s1d is ufsid/49db890b18be1fd1. > GEOM_LABEL: Label for provider mirror/gm0s1e is ufsid/49db89049055faa1. > GEOM_LABEL: Label for provider mirror/gm0s1f is ufsid/49db8904754be6b8. > Trying to mount root from ufs:/dev/mirror/gm0s1a > GEOM_LABEL: Label ufsid/49db8904c3603ff2 removed. > GEOM_LABEL: Label for provider mirror/gm0s1a is ufsid/49db8904c3603ff2. > GEOM_LABEL: Label ufsid/49db89049055faa1 removed. > GEOM_LABEL: Label for provider mirror/gm0s1e is ufsid/49db89049055faa1. > GEOM_LABEL: Label ufsid/49db8904754be6b8 removed. > GEOM_LABEL: Label for provider mirror/gm0s1f is ufsid/49db8904754be6b8. > GEOM_LABEL: Label ufsid/49db890b18be1fd1 removed. > GEOM_LABEL: Label for provider mirror/gm0s1d is ufsid/49db890b18be1fd1. > GEOM_LABEL: Label ufsid/49db8904c3603ff2 removed. > GEOM_LABEL: Label ufsid/49db89049055faa1 removed. > GEOM_LABEL: Label ufsid/49db8904754be6b8 removed. > GEOM_LABEL: Label ufsid/49db890b18be1fd1 removed. > > -- > Dan Langille > myYearbook.com > -- Dan Langille myYearbook.com From bsdbugs at wynn.com Mon Jun 22 22:20:02 2009 From: bsdbugs at wynn.com (Brett Wynkoop) Date: Mon Jun 22 22:20:08 2009 Subject: usb/135938: aue driver only passes traffic in promisc mode Message-ID: <200906222146.n5MLkW2B052170@io.wynn.com> >Number: 135938 >Category: usb >Synopsis: aue driver only passes traffic in promisc mode >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 22 22:20:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Brett Wynkoop >Release: FreeBSD 7.2-RELEASE i386 >Organization: >Environment: System: FreeBSD io.wynn.com 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 i586 200 Mhz, 7.2-RELEASE >Description: aue driver will only talk to other systems on the network if the interface is set to promisc with ifconfig. When set to promisc while network communications is possible it is slow. Ping times to a any system on the same HUB are in the order of 25 ms while ping times ping times between other hosts are in the order of 5 ms. This was tested with 2 different known working aue devices, both of which worked correctly on Linux systems with 2.4 and 2.6 kernels. Things also worked fine with a 2.4 linux kernel installed on the same hardware that has the 7.2-RELEASE on it. >How-To-Repeat: Install an aue based usb device as your network interface. >Fix: No idea! >Release-Note: >Audit-Trail: >Unformatted: From kosmo at semihalf.com Tue Jun 23 08:54:53 2009 From: kosmo at semihalf.com (Piotr =?iso-8859-2?q?Zi=EAcik?=) Date: Tue Jun 23 08:54:59 2009 Subject: CPU Cache and busdma usage in USB Message-ID: <200906231035.43096.kosmo@semihalf.com> While bringing up EHCI (8-CURRENT, new USB stack) on ARM machine we have found cache-related problem in the USB stack. The usb_pc_cpu_flush() and usb_pc_cpu_invalidate() functions are used to flush/invalidate CPU caches in various places in USB code. Internally, the functions are implemented using bus_dmamap_sync(). In our case, on ARM machine, flags passed to the bus_dmamap_sync() function did not correspond with requested operation. We have fixed the problem by changing flags passed to the bus_dmamap_sync() function (see attached patch). My question is about general idea of bus_dma usage for cache operations. In my opinion we should not rely on bus_dmamap_sync() behaviour as this function may do different things on different architectures. This not always works as expected, which is clearly visible in our case. Better solution is to use cpu-specific functions implementing cache operations. Please comment on why CPU-specific functions are not used... Patch fixing our problem: diff --git a/sys/dev/usb/usb_busdma.c b/sys/dev/usb/usb_busdma.c index 3d6a5be..69a6fff 100644 --- a/sys/dev/usb/usb_busdma.c +++ b/sys/dev/usb/usb_busdma.c @@ -658,8 +658,7 @@ usb_pc_cpu_invalidate(struct usb_page_cache *pc) /* nothing has been loaded into this page cache! */ return; } - bus_dmamap_sync(pc->tag, pc->map, - BUS_DMASYNC_POSTWRITE | BUS_DMASYNC_POSTREAD); + bus_dmamap_sync(pc->tag, pc->map, BUS_DMASYNC_PREREAD); } /*------------------------------------------------------------------------* @@ -672,8 +671,7 @@ usb_pc_cpu_flush(struct usb_page_cache *pc) /* nothing has been loaded into this page cache! */ return; } - bus_dmamap_sync(pc->tag, pc->map, - BUS_DMASYNC_PREWRITE | BUS_DMASYNC_PREREAD); + bus_dmamap_sync(pc->tag, pc->map, BUS_DMASYNC_PREWRITE); } /*------------------------------------------------------------------------* -- Best regards. Piotr Ziecik From ray at dlink.ua Tue Jun 23 09:43:29 2009 From: ray at dlink.ua (Alexandr Rybalko) Date: Tue Jun 23 09:43:36 2009 Subject: CPU Cache and busdma usage in USB In-Reply-To: <200906231035.43096.kosmo@semihalf.com> References: <200906231035.43096.kosmo@semihalf.com> Message-ID: <20090623121129.d18492a3.ray@dlink.ua> On Tue, 23 Jun 2009 10:35:42 +0200 Piotr Zi?cik wrote: >> While bringing up EHCI (8-CURRENT, new USB stack) on ARM machine we have >> found cache-related problem in the USB stack. >> >> The usb_pc_cpu_flush() and usb_pc_cpu_invalidate() functions are used to >> flush/invalidate CPU caches in various places in USB code. Internally, the >> functions are implemented using bus_dmamap_sync(). In our case, on ARM >> machine, flags passed to the bus_dmamap_sync() function did not >> correspond with requested operation. We have fixed the problem by changing >> flags passed to the bus_dmamap_sync() function (see attached patch). >> >> My question is about general idea of bus_dma usage for cache operations. In my >> opinion we should not rely on bus_dmamap_sync() behaviour as this function >> may do different things on different architectures. This not always works as >> expected, which is clearly visible in our case. Better solution is to use >> cpu-specific functions implementing cache operations. Please comment on why >> CPU-specific functions are not used... >> >> Patch fixing our problem: >> diff --git a/sys/dev/usb/usb_busdma.c b/sys/dev/usb/usb_busdma.c >> index 3d6a5be..69a6fff 100644 >> --- a/sys/dev/usb/usb_busdma.c >> +++ b/sys/dev/usb/usb_busdma.c >> @@ -658,8 +658,7 @@ usb_pc_cpu_invalidate(struct usb_page_cache *pc) >> /* nothing has been loaded into this page cache! */ >> return; >> } >> - bus_dmamap_sync(pc->tag, pc->map, >> - BUS_DMASYNC_POSTWRITE | BUS_DMASYNC_POSTREAD); >> + bus_dmamap_sync(pc->tag, pc->map, BUS_DMASYNC_PREREAD); >> } >> >> /*------------------------------------------------------------------------* >> @@ -672,8 +671,7 @@ usb_pc_cpu_flush(struct usb_page_cache *pc) >> /* nothing has been loaded into this page cache! */ >> return; >> } >> - bus_dmamap_sync(pc->tag, pc->map, >> - BUS_DMASYNC_PREWRITE | BUS_DMASYNC_PREREAD); >> + bus_dmamap_sync(pc->tag, pc->map, BUS_DMASYNC_PREWRITE); >> } >> >> /*------------------------------------------------------------------------* >> >> -- >> Best regards. >> Piotr Ziecik >> _______________________________________________ >> 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" Great thanks Piotr! I work on MIPS BCM5354 and BCM5836 and after apply your patch USB work correct. -- Alexandr Rybalko From hselasky at c2i.net Tue Jun 23 17:12:56 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jun 23 17:13:03 2009 Subject: CPU Cache and busdma usage in USB In-Reply-To: <20090623121129.d18492a3.ray@dlink.ua> References: <200906231035.43096.kosmo@semihalf.com> <20090623121129.d18492a3.ray@dlink.ua> Message-ID: <200906231912.20741.hselasky@c2i.net> On Tuesday 23 June 2009 11:11:29 Alexandr Rybalko wrote: > On Tue, 23 Jun 2009 10:35:42 +0200 > > Piotr Zi?cik wrote: > >> While bringing up EHCI (8-CURRENT, new USB stack) on ARM machine we > >> have found cache-related problem in the USB stack. > >> > >> The usb_pc_cpu_flush() and usb_pc_cpu_invalidate() functions are used to > >> flush/invalidate CPU caches in various places in USB code. Internally, > >> the functions are implemented using bus_dmamap_sync(). In our case, on > >> ARM machine, flags passed to the bus_dmamap_sync() function did not > >> correspond with requested operation. We have fixed the problem by > >> changing flags passed to the bus_dmamap_sync() function (see attached > >> patch). > >> > >> My question is about general idea of bus_dma usage for cache operations. > >> In my opinion we should not rely on bus_dmamap_sync() behaviour as this > >> function may do different things on different architectures. This not > >> always works as expected, which is clearly visible in our case. Better > >> solution is to use cpu-specific functions implementing cache operations. > >> Please comment on why CPU-specific functions are not used... > >> > >> Patch fixing our problem: > >> diff --git a/sys/dev/usb/usb_busdma.c b/sys/dev/usb/usb_busdma.c > >> index 3d6a5be..69a6fff 100644 > >> --- a/sys/dev/usb/usb_busdma.c > >> +++ b/sys/dev/usb/usb_busdma.c > >> @@ -658,8 +658,7 @@ usb_pc_cpu_invalidate(struct usb_page_cache *pc) > >> /* nothing has been loaded into this page cache! */ > >> return; > >> } > >> - bus_dmamap_sync(pc->tag, pc->map, > >> - BUS_DMASYNC_POSTWRITE | BUS_DMASYNC_POSTREAD); > >> + bus_dmamap_sync(pc->tag, pc->map, BUS_DMASYNC_PREREAD); > >> } > >> > >> > >> /*---------------------------------------------------------------------- > >>--* @@ -672,8 +671,7 @@ usb_pc_cpu_flush(struct usb_page_cache *pc) /* > >> nothing has been loaded into this page cache! */ return; > >> } > >> - bus_dmamap_sync(pc->tag, pc->map, > >> - BUS_DMASYNC_PREWRITE | BUS_DMASYNC_PREREAD); > >> + bus_dmamap_sync(pc->tag, pc->map, BUS_DMASYNC_PREWRITE); > >> } > >> > >> > >> /*---------------------------------------------------------------------- > >>--* > >> > > Great thanks Piotr! > I work on MIPS BCM5354 and BCM5836 and after apply your patch USB work > correct. We are currently investigating if your patch is correct. Thanks for your patch suggestion! BTW: Have you tried out the new device side mode support in the FreeBSD 8- current USB stack? --HPS From imp at bsdimp.com Tue Jun 23 18:07:51 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Tue Jun 23 18:07:57 2009 Subject: CPU Cache and busdma usage in USB In-Reply-To: <200906231912.20741.hselasky@c2i.net> References: <200906231035.43096.kosmo@semihalf.com> <20090623121129.d18492a3.ray@dlink.ua> <200906231912.20741.hselasky@c2i.net> Message-ID: <20090623.115841.-1189452766.imp@bsdimp.com> In message: <200906231912.20741.hselasky@c2i.net> Hans Petter Selasky writes: : On Tuesday 23 June 2009 11:11:29 Alexandr Rybalko wrote: : > On Tue, 23 Jun 2009 10:35:42 +0200 : > : > Piotr Zi?cik wrote: : > >> While bringing up EHCI (8-CURRENT, new USB stack) on ARM machine we : > >> have found cache-related problem in the USB stack. : > >> : > >> The usb_pc_cpu_flush() and usb_pc_cpu_invalidate() functions are used to : > >> flush/invalidate CPU caches in various places in USB code. Internally, : > >> the functions are implemented using bus_dmamap_sync(). In our case, on : > >> ARM machine, flags passed to the bus_dmamap_sync() function did not : > >> correspond with requested operation. We have fixed the problem by : > >> changing flags passed to the bus_dmamap_sync() function (see attached : > >> patch). : > >> : > >> My question is about general idea of bus_dma usage for cache operations. : > >> In my opinion we should not rely on bus_dmamap_sync() behaviour as this : > >> function may do different things on different architectures. This not : > >> always works as expected, which is clearly visible in our case. Better : > >> solution is to use cpu-specific functions implementing cache operations. : > >> Please comment on why CPU-specific functions are not used... I think because busdma is supposed to abstract this out. The problem is that the usb code chose different terms to represent these operations than is typically used. : > >> Patch fixing our problem: : > >> diff --git a/sys/dev/usb/usb_busdma.c b/sys/dev/usb/usb_busdma.c : > >> index 3d6a5be..69a6fff 100644 : > >> --- a/sys/dev/usb/usb_busdma.c : > >> +++ b/sys/dev/usb/usb_busdma.c : > >> @@ -658,8 +658,7 @@ usb_pc_cpu_invalidate(struct usb_page_cache *pc) : > >> /* nothing has been loaded into this page cache! */ : > >> return; : > >> } : > >> - bus_dmamap_sync(pc->tag, pc->map, : > >> - BUS_DMASYNC_POSTWRITE | BUS_DMASYNC_POSTREAD); : > >> + bus_dmamap_sync(pc->tag, pc->map, BUS_DMASYNC_PREREAD); : > >> } I think this patch is currect. Invalidate should be done to a region before you read into it. : > >> /*---------------------------------------------------------------------- : > >>--* @@ -672,8 +671,7 @@ usb_pc_cpu_flush(struct usb_page_cache *pc) /* : > >> nothing has been loaded into this page cache! */ return; : > >> } : > >> - bus_dmamap_sync(pc->tag, pc->map, : > >> - BUS_DMASYNC_PREWRITE | BUS_DMASYNC_PREREAD); : > >> + bus_dmamap_sync(pc->tag, pc->map, BUS_DMASYNC_PREWRITE); : > >> } This makes sense as well. Flushing the cache to memory is the right logical operation before writing to the device with a DMA transfer. : > >> /*---------------------------------------------------------------------- : > >>--* : > >> : : > : > Great thanks Piotr! : > I work on MIPS BCM5354 and BCM5836 and after apply your patch USB work : > correct. : : We are currently investigating if your patch is correct. Thanks for your patch : suggestion! From the comments in the code, they look correct. I don't know if all the usages of these functions is reflected in their comments. I've not had a chance to audit them all... Warner From kosmo at semihalf.com Wed Jun 24 07:15:39 2009 From: kosmo at semihalf.com (Piotr =?iso-8859-2?q?Zi=EAcik?=) Date: Wed Jun 24 07:15:46 2009 Subject: CPU Cache and busdma usage in USB In-Reply-To: <20090623.115841.-1189452766.imp@bsdimp.com> References: <200906231035.43096.kosmo@semihalf.com> <200906231912.20741.hselasky@c2i.net> <20090623.115841.-1189452766.imp@bsdimp.com> Message-ID: <200906240915.36331.kosmo@semihalf.com> > : > >> My question is about general idea of bus_dma usage for cache > : > >> operations. In my opinion we should not rely on bus_dmamap_sync() > : > >> behaviour as this function may do different things on different > : > >> architectures. This not always works as expected, which is clearly > : > >> visible in our case. Better solution is to use cpu-specific > : > >> functions implementing cache operations. Please comment on why > : > >> CPU-specific functions are not used... > > I think because busdma is supposed to abstract this out. The problem > is that the usb code chose different terms to represent these > operations than is typically used. I don't think so. Bus_dmamap_sync() works in per-transfer basics. It does synchronization which is required _before_ and _after_ DMA transfer. We do not know and do not want to know any details about the synchronization - this is main idea of bus_dma subsystem. Of course, in most cases cache flush/invalidate will be preformed, but in we do not know that without looking into bus_dma implementation on given architecture. In my opinion main problem here is that bus_dmamap_sync() is not used in per-transfer basics. It is used to abstact cache operations - which is a bit different thing. -- Pozdrawiam. Piotr Zi?cik From nick at van-laarhoven.org Thu Jun 25 13:40:27 2009 From: nick at van-laarhoven.org (Nick Hibma) Date: Thu Jun 25 13:40:34 2009 Subject: Device reset Message-ID: <200906251524.04072.nick@van-laarhoven.org> HPS, In FBSD7 I committed an ioctl on the ugen.c (some time ago) that allowed for resetting the device. Not a port on the device, but the device itself. This was a function that was unimplemented in libusb1 up to then. For example some Atmel devices need a reset after you uploaded the firmware. I cannot seem to find this functionality in usb_ioctl.h in teh FBSD8 USB stack. Another use for this feature is to be able to reset a device into a known state, like the 3G dongles that freeze. Power-cycling them is the short way out of the situation. Cheers, Nick From hselasky at c2i.net Thu Jun 25 13:57:52 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Jun 25 13:58:08 2009 Subject: Device reset In-Reply-To: <200906251524.04072.nick@van-laarhoven.org> References: <200906251524.04072.nick@van-laarhoven.org> Message-ID: <200906251557.17973.hselasky@c2i.net> On Thursday 25 June 2009 15:24:02 Nick Hibma wrote: > HPS, > > In FBSD7 I committed an ioctl on the ugen.c (some time ago) that allowed > for resetting the device. Not a port on the device, but the device itself. > This was a function that was unimplemented in libusb1 up to then. For > example some Atmel devices need a reset after you uploaded the firmware. > > I cannot seem to find this functionality in usb_ioctl.h in teh FBSD8 USB > stack. > > Another use for this feature is to be able to reset a device into a known > state, like the 3G dongles that freeze. Power-cycling them is the short way > out of the situation. > > Cheers, Hi Nick, It's still there: See "USB_DEVICEENUMERATE()". Supported by by libusb and libsub20. Also see: usbconfig -u X -a Y reset --HPS From nick at van-laarhoven.org Thu Jun 25 21:47:55 2009 From: nick at van-laarhoven.org (Nick Hibma) Date: Thu Jun 25 21:48:05 2009 Subject: Device reset In-Reply-To: <200906251557.17973.hselasky@c2i.net> References: <200906251524.04072.nick@van-laarhoven.org> <200906251557.17973.hselasky@c2i.net> Message-ID: <200906252347.47365.nick@van-laarhoven.org> Hm, ik DEVICEENUMERATE wasn't in my search. Thanks. Nick > On Thursday 25 June 2009 15:24:02 Nick Hibma wrote: > > HPS, > > > > In FBSD7 I committed an ioctl on the ugen.c (some time ago) that > > allowed for resetting the device. Not a port on the device, but the > > device itself. This was a function that was unimplemented in libusb1 up > > to then. For example some Atmel devices need a reset after you uploaded > > the firmware. > > > > I cannot seem to find this functionality in usb_ioctl.h in teh FBSD8 > > USB stack. > > > > Another use for this feature is to be able to reset a device into a > > known state, like the 3G dongles that freeze. Power-cycling them is the > > short way out of the situation. > > > > Cheers, > > Hi Nick, > > It's still there: > > See "USB_DEVICEENUMERATE()". Supported by by libusb and libsub20. > > Also see: > > usbconfig -u X -a Y reset > > --HPS From christoph at rosenkeller.org Fri Jun 26 19:32:56 2009 From: christoph at rosenkeller.org (Christoph Langguth) Date: Fri Jun 26 19:33:03 2009 Subject: How to add support for Macbook Pro (USB) keyboard? In-Reply-To: <200906020937.20466.hselasky@c2i.net> References: <4A0DC89C.6010708@rosenkeller.org> <200905162158.22210.hselasky@c2i.net> <4A0F25C5.9020706@rosenkeller.org> <200906020937.20466.hselasky@c2i.net> Message-ID: <4A45225B.1010503@rosenkeller.org> Hans Petter Selasky schrieb: > Hi Christoph! > > Rui Paulo has an additional patch for ukbd.c. Can you look at it and verify? > > --HPS > > > > Here's how it worked: > http://wiki.freebsd.org/AppleMacbook#head-7eab3730c3bf3d04bdfb0d1d3649eaddf2fed595 > > If there's any problem with the userland approach, I would like to know. > If there isn't, please consider removing the kenrel support for the > eject key. > > > I have looked inside this a bit deeper. While the usbhidctl approach doesn't really work for this keyboard at the moment, here are my observations: - the keyboard is only handled by *either* ukbd *or* uhid. In fact, if unpatched, uhid will not even try to consider the device because of the following code inside uhid.c's uhid_probe() function: if (uaa->use_generic == 0) { /* give Mouse and Keyboard drivers a try first */ return (ENXIO); } That means that the keyboard always ends up as device ukbdX, and never as uhidY. Before even trying to get it to work using uhid, I think this is the issue that needs to be sorted out: Can a device be handled by *two* independent drivers at once? - If so, how? - If not, what could a possible solution be? Thanks & cheers, Chris From hselasky at c2i.net Sat Jun 27 08:19:26 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sat Jun 27 08:19:38 2009 Subject: new usb stack - boot problem from usb hdd In-Reply-To: <1e31c7980906262132k7571c4b8ucfde94ec94cb1d8@mail.gmail.com> References: <49E895CB.2040407@lissyara.su> <20090418023632.GJ13564@dereel.lemis.com> <1e31c7980906262132k7571c4b8ucfde94ec94cb1d8@mail.gmail.com> Message-ID: <200906271011.53436.hselasky@c2i.net> On Saturday 27 June 2009 06:32:54 Vinicius Abrahao wrote: > 9) What I'm doing wrong? I don't think this is your fault. My initial patch for this problem had a loop in the mount root code, trying to mount the root device several times. Now several other people did not agree about that, and made the USB enumeration synchronous instead. That does not always work, because USB devices do not always show up immediately when the power is turned on. I would strongly suggest to add a flag to the mount root code in sys/kern/, allowing the mount root code to automatically retry the medium. It is also important that the mountroot code calls pause() and do not spin in a while loop. --HPS From hselasky at c2i.net Sun Jun 28 09:55:16 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Sun Jun 28 09:55:23 2009 Subject: CPU Cache and busdma usage in USB In-Reply-To: <200906231912.20741.hselasky@c2i.net> References: <200906231035.43096.kosmo@semihalf.com> <20090623121129.d18492a3.ray@dlink.ua> <200906231912.20741.hselasky@c2i.net> Message-ID: <200906281154.43392.hselasky@c2i.net> Hi Piotr and Rafal, Your patch is not fully correct. It will break support for x86 and more when bounce pages are uses. Let's get the definitions right: man busdma BUS_DMASYNC_PREREAD Perform any synchronization required prior to an update of host memory by the device. BUS_DMASYNC_PREWRITE Perform any synchronization required after an update of host memory by the CPU and prior to device access to host memory. BUS_DMASYNC_POSTREAD Perform any synchronization required after an update of host memory by the device and prior to CPU access to host memory. BUS_DMASYNC_POSTWRITE Perform any synchronization required after device access to host memory. My view: XXX_PREXXX functions should be used prior to read/write device access. In other words, PRE has to be a flush operation. XXX_POSTXXX functions should be used after read/write device access. In other words, POST has to be an invalidate operation. Reading: src/sys/arm/arm/busdma_machdep.c I find bus_dmamap_sync_buf() to be coherent with this view. Can you check if the COHERENT bit is set for your allocation? if (map->flags & DMAMAP_COHERENT) return; Summed up: The existing code is doing correct. What is known is a problem with the memory mapping, so that the same memory page can get mapped with different attributes, which makes the problem appear. --HPS From kosmo at semihalf.com Mon Jun 29 09:11:23 2009 From: kosmo at semihalf.com (Piotr =?utf-8?q?Zi=C4=99cik?=) Date: Mon Jun 29 09:11:29 2009 Subject: CPU Cache and busdma usage in USB In-Reply-To: <200906281154.43392.hselasky@c2i.net> References: <200906231035.43096.kosmo@semihalf.com> <200906231912.20741.hselasky@c2i.net> <200906281154.43392.hselasky@c2i.net> Message-ID: <200906291111.20725.kosmo@semihalf.com> Sunday 28 June 2009 11:54:40 Hans Petter Selasky napisa?(a): > Hi Piotr and Rafal, > > Your patch is not fully correct. It will break support for x86 and more > when bounce pages are uses. > > Let's get the definitions right: > > man busdma > (...) > > My view: > > XXX_PREXXX functions should be used prior to read/write device access. > > In other words, PRE has to be a flush operation. > > XXX_POSTXXX functions should be used after read/write device access. > > In other words, POST has to be an invalidate operation. > > Reading: > > src/sys/arm/arm/busdma_machdep.c > > I find bus_dmamap_sync_buf() to be coherent with this view. If everything is OK, then why USB does not work on ARM and MIPS ? Let's look into busdma for these platforms: usb_pc_cpu_invalidate(): [BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE] i386: NOP arm: Invalidate + hacks for VIPT cache. mips: NOP usb_pc_cpu_flush(): [BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE] i386: NOP arm: Writeback invalidate mips: Writeback invalidate. I do not see direct coherency between flags passed to bus_dma and cache operations, which could be source of problem. Let's also look at usb_pc_cpu_invalidate() usage in sys/dev/usb/controller/ehci.c: while (1) { usb_pc_cpu_invalidate(td->page_cache); status = hc32toh(sc, td->qtd_status); (...) if (status & EHCI_QTD_HALTED) { break; } (...) td = td->obj_next; In my oppinion usb_pc_cpu_invalidate() used here suggests that it is doing cache invalidation not "Perform any synchronization required after an update of host memory by the device and prior to CPU access to host memory". As this function is implemented as bus_dmamap_sync() all busdma rules should be applied: If read and write operations are not preceded and followed by the appropriate synchronization operations, behavior is undefined. In code shown above (and many more places in USB stack) there is no following synchronization operation, which also could be source of problem. My major question here is why bus_dma is used for flushing and invalidation CPU caches instead of cpu_*() functions wich was written for this purpuose. > Can you check if the COHERENT bit is set for your allocation? > > if (map->flags & DMAMAP_COHERENT) > return; > No. This bit is not set. > Summed up: > > The existing code is doing correct. What is known is a problem with the > memory mapping, so that the same memory page can get mapped with different > attributes, which makes the problem appear. I don't think so: $ man busdma BUS_DMA_COHERENT Attempt to map this memory such that cache sync operations are as cheap as possible. This flag is typically set on memory that will be accessed by both a CPU and a DMA engine, frequently. Use of this flag does not remove the requirement of using bus_dmamap_sync, but it may reduce the cost of performing these operations. This means that BUS_DMA_COHERENT does not guarantee no-cache mapping - this is only a hint for busdma subsystem that region will be synced frequently. Please look at discussion at http://kerneltrap.org/mailarchive/freebsd-current/2009/5/27/5817243 -- Best regards. Piotr Ziecik From hselasky at c2i.net Mon Jun 29 09:55:46 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon Jun 29 09:55:58 2009 Subject: CPU Cache and busdma usage in USB In-Reply-To: <200906291111.20725.kosmo@semihalf.com> References: <200906231035.43096.kosmo@semihalf.com> <200906281154.43392.hselasky@c2i.net> <200906291111.20725.kosmo@semihalf.com> Message-ID: <200906291155.13941.hselasky@c2i.net> Hi Piotr and Rafal, On Monday 29 June 2009 11:11:20 Piotr Zi?cik wrote: > Sunday 28 June 2009 11:54:40 Hans Petter Selasky napisa?(a): > > Hi Piotr and Rafal, > > > > Your patch is not fully correct. It will break support for x86 and more > > when bounce pages are uses. > > > > Let's get the definitions right: > > > > man busdma > > (...) > > > > My view: > > > > XXX_PREXXX functions should be used prior to read/write device access. > > > > In other words, PRE has to be a flush operation. > > > > XXX_POSTXXX functions should be used after read/write device access. > > > > In other words, POST has to be an invalidate operation. > > > > Reading: > > > > src/sys/arm/arm/busdma_machdep.c > > > > I find bus_dmamap_sync_buf() to be coherent with this view. > > If everything is OK, then why USB does not work on ARM and MIPS ? I'm not saying everything is OK, I just don't agree that the problem is in USB. If you look at: http://fxr.watson.org/fxr/source/i386/i386/busdma_machdep.c#L931 Then you see the XXX_PREXXX means copy from client buffer (bpage->datavaddr) to real DMA buffer (bpage->vaddr). That means flush memory from cache to RAM. You want to change it into a XXX_POSTXXX (???) in the USB code, and that won't work for x86 and amd64 ... Then you also see that XXX_POSTXXX is doing the opposite, cleaning the cache and copying from RAM into the "cache" buffer. > Let's look into busdma for these platforms: > > usb_pc_cpu_invalidate(): [BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE] > i386: NOP > arm: Invalidate + hacks for VIPT cache. > mips: NOP Isn't this correct cleaning the cache on ARM? > > usb_pc_cpu_flush(): [BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE] > i386: NOP > arm: Writeback invalidate > mips: Writeback invalidate. Isn't this correct flushing the cache to RAM on ARM? > > I do not see direct coherency between flags passed to bus_dma and cache > operations, which could be source of problem. Can you explain a little bit more what you see is not coherent? > > Let's also look at usb_pc_cpu_invalidate() usage in > sys/dev/usb/controller/ehci.c: > > while (1) { > usb_pc_cpu_invalidate(td->page_cache); > status = hc32toh(sc, td->qtd_status); > > (...) > > if (status & EHCI_QTD_HALTED) { > break; > } > > (...) > > td = td->obj_next; > > > In my oppinion usb_pc_cpu_invalidate() used here suggests that it is doing > cache invalidation not "Perform any synchronization required after > an update of host memory by the device and prior to CPU access to host > memory". The invalidate means: Clean the cache, so that the succeeding read fetches its value from RAM. > > As this function is implemented as bus_dmamap_sync() all busdma rules > should be applied: > > If read and write operations are not preceded and followed by the > appropriate synchronization operations, behavior is undefined. > > > In code shown above (and many more places in USB stack) there is no > following synchronization operation, which also could be source of problem. All cases where transfer descriptors are updated are wrapped with bus-sync operations, through the "usb_pc_cpu_xxx()" functions. Else mutexes are used. Please give an example of such a place where improper synchronisation happens. > > My major question here is why bus_dma is used for flushing and invalidation > CPU caches instead of cpu_*() functions wich was written for this purpuose. Because that is what other drivers are doing. I think using cpu_*() is more alike Linux, and also, if the memory is on a bounce page, cpu_*() will yield the wrong result. > > Can you check if the COHERENT bit is set for your allocation? > > > > if (map->flags & DMAMAP_COHERENT) > > return; > > No. This bit is not set. > > > Summed up: > > > > The existing code is doing correct. What is known is a problem with the > > memory mapping, so that the same memory page can get mapped with > > different attributes, which makes the problem appear. > --HPS From kosmo at semihalf.com Mon Jun 29 10:49:46 2009 From: kosmo at semihalf.com (Piotr =?utf-8?q?Zi=C4=99cik?=) Date: Mon Jun 29 10:49:57 2009 Subject: CPU Cache and busdma usage in USB In-Reply-To: <200906291155.13941.hselasky@c2i.net> References: <200906231035.43096.kosmo@semihalf.com> <200906291111.20725.kosmo@semihalf.com> <200906291155.13941.hselasky@c2i.net> Message-ID: <200906291249.43983.kosmo@semihalf.com> Monday 29 June 2009 11:55:11 Hans Petter Selasky napisa?(a): > Hi Piotr and Rafal, > > I'm not saying everything is OK, I just don't agree that the problem is in > USB. > > If you look at: > > http://fxr.watson.org/fxr/source/i386/i386/busdma_machdep.c#L931 > > Then you see the XXX_PREXXX means copy from client buffer > (bpage->datavaddr) to real DMA buffer (bpage->vaddr). That means flush > memory from cache to RAM. You want to change it into a XXX_POSTXXX (???) in > the USB code, and that won't work for x86 and amd64 ... > > Then you also see that XXX_POSTXXX is doing the opposite, cleaning the > cache and copying from RAM into the "cache" buffer. > > Isn't this correct flushing the cache to RAM on ARM? > It is correct if you use busdma in correct way: [... prepare data to transfer ...] bus_dmamap_sync(..., PREREAD | PREWRITE); [... do transfer ...] bus_dmamap_sync(..., POSTREAD | POSTWRITE); [... check results ...] > > I do not see direct coherency between flags passed to bus_dma and cache > > operations, which could be source of problem. > > Can you explain a little bit more what you see is not coherent? I thought about direct relation between calling bus_dmamap_sync() with given flag and cache operation. usb_pc_cpu_invalidate() not always is doing invalidate and usb_pc_cpu_flush() not always is doing flush. > > In my oppinion usb_pc_cpu_invalidate() used here suggests that it is > > doing cache invalidation not "Perform any synchronization required after > > an update of host memory by the device and prior to CPU access to host > > memory". > > The invalidate means: Clean the cache, so that the succeeding read fetches > its value from RAM. But usb_pc_cpu_invalidate(), which should do cache invalidate, doing NOP or other operations depending on architecture bus_dma implementation. Therefore these functions should not be used for enforcing cache operations. > > As this function is implemented as bus_dmamap_sync() all busdma rules > > should be applied: > > > > If read and write operations are not preceded and followed by the > > appropriate synchronization operations, behavior is undefined. > > > > > > In code shown above (and many more places in USB stack) there is no > > following synchronization operation, which also could be source of > > problem. > > All cases where transfer descriptors are updated are wrapped with bus-sync > operations, through the "usb_pc_cpu_xxx()" functions. Else mutexes are > used. Please give an example of such a place where improper synchronisation > happens. Look into ehci_check_transfer() function (http://fxr.watson.org/fxr/source/dev/usb/controller/ehci.c#L1294) usb_pc_cpu_invalidate() [bus_dmamap_sync()] is not used in this function correcly. It is not paired with usb_pc_cpu_flush() [opposite bus_dmamap_sync()] as busdma requires (see part of manpage cited above). The same problem is in part of code shown in previous mail. If usb_pc_cpu_invalidate()/usb_pc_cpu_flush() functions had been implemented without using busdma, for example as cpu_*() functions, ehci_check_transfer() would have been 100% correct. In current code busdma requirements are simply not met. > > My major question here is why bus_dma is used for flushing and > > invalidation CPU caches instead of cpu_*() functions wich was written for > > this purpuose. > > Because that is what other drivers are doing. I think using cpu_*() is more > alike Linux, and also, if the memory is on a bounce page, cpu_*() will > yield the wrong result. Ok. So if you use bus_dma(), please use it in correct way. -- Best Regards. Piotr Ziecik From bugmaster at FreeBSD.org Mon Jun 29 11:07:10 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon Jun 29 11:09:46 2009 Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org Message-ID: <200906291107.n5TB78Iw046529@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/135938 usb [aue] aue driver only passes traffic in promisc mode o usb/135857 usb RTL8187 Wireless Adapter o usb/135575 usb [usbdevs] [patch] Add HTC Wizard phone vid/pid informa o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa o usb/135372 usb Quirk report for Teclast TL-C300 usb media player o usb/135348 usb [umass] USB Drive Hangs with ZFS (JMicron USB2/eSata) o usb/135206 usb machine reboots when inserted USB device o usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/135182 usb UMASS quirk - Olympus FE20 camera o usb/134950 usb Lowering DTR for USB-modem via ubsa is not possible o usb/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 s 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] [panic] enabling usb keyboard and mouse support 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 [new driver] [patch] New driver for Sierra Wireless 3G 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] [panic] FreeBSD fails to boot with usb legacy s 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 [new driver] [patch] add utoppy device from NetBSD 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 323 problems total. From hselasky at c2i.net Mon Jun 29 11:38:25 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon Jun 29 11:38:32 2009 Subject: CPU Cache and busdma usage in USB In-Reply-To: <200906291249.43983.kosmo@semihalf.com> References: <200906231035.43096.kosmo@semihalf.com> <200906291155.13941.hselasky@c2i.net> <200906291249.43983.kosmo@semihalf.com> Message-ID: <200906291337.43635.hselasky@c2i.net> Hi, On Monday 29 June 2009 12:49:43 Piotr Zi?cik wrote: > Monday 29 June 2009 11:55:11 Hans Petter Selasky napisa?(a): > > Hi Piotr and Rafal, > > Look into ehci_check_transfer() function > (http://fxr.watson.org/fxr/source/dev/usb/controller/ehci.c#L1294) > > usb_pc_cpu_invalidate() [bus_dmamap_sync()] is not used in this function > correcly. It is not paired with usb_pc_cpu_flush() [opposite > bus_dmamap_sync()] as busdma requires (see part of manpage cited above). > The same problem is in part of code shown in previous mail. > > If usb_pc_cpu_invalidate()/usb_pc_cpu_flush() functions had been > implemented without using busdma, for example as cpu_*() functions, > ehci_check_transfer() would have been 100% correct. In current code busdma > requirements are simply not met. Good point. Unfortunately I cannot pair like you suggest, because then I can overwrite values updated by the hardware, if I first read the status for example, and the same 32-bits are updated by hardware, before the old value is flushed over the new one.. Also I cannot find the word "pair" in the busdma manpage? Where is this requirement stated? I see some things: You wrote earlier that the COHERENT flag was not set. That means your setup is using bounce pages for DMA? Right? Then I see a problem, if I do several POST operations in a row then I can see that the real DMA memory can get cached: In: "src/sys/arm/arm/busdma_machdep.c" Is "vaddr_nocache" set or cleared? if (op & BUS_DMASYNC_POSTREAD) { if (bpage->vaddr_nocache == 0) { cpu_dcache_inv_range(bpage->vaddr, bpage->datacount); cpu_l2cache_inv_range(bpage->vaddr, bpage->datacount); } bcopy((void *)(bpage->vaddr_nocache != 0 ? bpage->vaddr_nocache : bpage->vaddr), (void *)bpage->datavaddr, bpage->datacount); dmat->bounce_zone->total_bounced++; } USB is currently _updating_ (!!) the PAGE offset part of "vaddr". If cpu_dcache_inv_range() is called with an address not starting at the cache line what will the cpu_dcache_inv_range() do? Will it skip to the next cache line? Or will it completely skip the whole cache sync operation?! In the function just above in the file I refer to, "bus_dmamap_sync_buf()", there is quite some more code to handle invalidation when the destination address is not properly aligned. I'm not an ARM expert. Maybe you can do an experiment for me: Change: bpage->vaddr into (bpage->vaddr & ~arm_dcache_align_mask) Change: bpage->datacount into (bpage->datacount + (bpage->vaddr & arm_dcache_align_mask) + arm_dcache_align_mask - 1) & ~arm_dcache_align_mask; You don't need any memcpy there, because we own the complete memory page which vaddr is a part of! > > Ok. So if you use bus_dma(), please use it in correct way. What has to be changed in busdma_machdep.c for ARM/MIPS so that the problem is resolved. I think there are something missing there and not in USB! --HPS From sebastian.huber at embedded-brains.de Mon Jun 29 11:49:47 2009 From: sebastian.huber at embedded-brains.de (Sebastian Huber) Date: Mon Jun 29 11:49:53 2009 Subject: Potential problem with USB_THREAD_SUSPEND()? Message-ID: <4A48A5AD.9040508@embedded-brains.de> Hi, USB_THREAD_SUSPEND(p) is defined as {kproc|kthread}_suspend(p, 0). This means that it will wait until the corresponding thread recognizes its suspend request and suspends itself. It seems that {kproc|kthread}_suspend_check() will be used nowhere in the USB system. Thus the USB_THREAD_SUSPEND() will block forever in most cases? It is only used in usb_proc_drain() during cold boot. Have a nice day! -- Sebastian Huber, Embedded Brains GmbH Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany Phone : +49 89 18 90 80 79-6 Fax : +49 89 18 90 80 79-9 E-Mail : sebastian.huber@embedded-brains.de PGP : Public key available on request Diese Nachricht ist keine gesch?ftliche Mitteilung im Sinne des EHUG. From hselasky at c2i.net Mon Jun 29 12:01:15 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon Jun 29 12:01:21 2009 Subject: Potential problem with USB_THREAD_SUSPEND()? In-Reply-To: <4A48A5AD.9040508@embedded-brains.de> References: <4A48A5AD.9040508@embedded-brains.de> Message-ID: <200906291400.42941.hselasky@c2i.net> On Monday 29 June 2009 13:29:49 Sebastian Huber wrote: > Hi, > > USB_THREAD_SUSPEND(p) is defined as {kproc|kthread}_suspend(p, 0). This > means that it will wait until the corresponding thread recognizes its > suspend request and suspends itself. It seems that > {kproc|kthread}_suspend_check() will be used nowhere in the USB system. > Thus the USB_THREAD_SUSPEND() will block forever in most cases? It is only > used in usb_proc_drain() during cold boot. > > Have a nice day! Thanks for your input. This execution path has been tested, but not with the latest 8-current, and is a dirty hack around the problem which appears if an USB controller fails to attach during boot, that we cannot kill created threads? If you want you can insert an error into the attach routine in /sys/dev/usb/controller/uhci.c for example, to verify that the code works. --HPS From stas at FreeBSD.org Mon Jun 29 12:10:20 2009 From: stas at FreeBSD.org (Stanislav Sedov) Date: Mon Jun 29 12:10:32 2009 Subject: CPU Cache and busdma usage in USB In-Reply-To: <200906291337.43635.hselasky@c2i.net> References: <200906231035.43096.kosmo@semihalf.com> <200906291155.13941.hselasky@c2i.net> <200906291249.43983.kosmo@semihalf.com> <200906291337.43635.hselasky@c2i.net> Message-ID: <20090629161011.2a657c4b.stas@FreeBSD.org> On Mon, 29 Jun 2009 13:37:41 +0200 Hans Petter Selasky mentioned: > USB is currently _updating_ (!!) the PAGE offset part of "vaddr". If > cpu_dcache_inv_range() is called with an address not starting at the cache > line what will the cpu_dcache_inv_range() do? Will it skip to the next cache > line? Or will it completely skip the whole cache sync operation?! Currently, the address passed to cpu_dcache_inv_range will be rounded up to the cache line boundary and the whole line will be invalidated if the range requested is smaller than 16KiB. Otherwise, the whole cache will be invalidated. -- Stanislav Sedov ST4096-RIPE -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 801 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20090629/1db1373a/attachment.pgp From hselasky at c2i.net Mon Jun 29 12:15:16 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon Jun 29 12:15:23 2009 Subject: CPU Cache and busdma usage in USB In-Reply-To: <20090629161011.2a657c4b.stas@FreeBSD.org> References: <200906231035.43096.kosmo@semihalf.com> <200906291337.43635.hselasky@c2i.net> <20090629161011.2a657c4b.stas@FreeBSD.org> Message-ID: <200906291414.46341.hselasky@c2i.net> On Monday 29 June 2009 14:10:11 Stanislav Sedov wrote: > On Mon, 29 Jun 2009 13:37:41 +0200 > > Hans Petter Selasky mentioned: > > USB is currently _updating_ (!!) the PAGE offset part of "vaddr". If > > cpu_dcache_inv_range() is called with an address not starting at the > > cache line what will the cpu_dcache_inv_range() do? Will it skip to the > > next cache line? Or will it completely skip the whole cache sync > > operation?! > > Currently, the address passed to cpu_dcache_inv_range will be rounded up > to the cache line boundary and the whole line will be invalidated if the > range requested is smaller than 16KiB. Otherwise, the whole cache will > be invalidated. That maybe explains it, because USB will require rounding down the address and rounding up the length accordingly, because it uses the "BUS_DMA_KEEP_PG_OFFSET" flag. --HPS From kosmo at semihalf.com Mon Jun 29 12:16:15 2009 From: kosmo at semihalf.com (Piotr =?utf-8?q?Zi=C4=99cik?=) Date: Mon Jun 29 12:16:26 2009 Subject: CPU Cache and busdma usage in USB In-Reply-To: <200906291337.43635.hselasky@c2i.net> References: <200906231035.43096.kosmo@semihalf.com> <200906291249.43983.kosmo@semihalf.com> <200906291337.43635.hselasky@c2i.net> Message-ID: <200906291416.13749.kosmo@semihalf.com> Monday 29 June 2009 13:37:41 Hans Petter Selasky napisa?(a): > > Look into ehci_check_transfer() function > > (http://fxr.watson.org/fxr/source/dev/usb/controller/ehci.c#L1294) > > > > usb_pc_cpu_invalidate() [bus_dmamap_sync()] is not used in this function > > correcly. It is not paired with usb_pc_cpu_flush() [opposite > > bus_dmamap_sync()] as busdma requires (see part of manpage cited above). > > The same problem is in part of code shown in previous mail. > > > > If usb_pc_cpu_invalidate()/usb_pc_cpu_flush() functions had been > > implemented without using busdma, for example as cpu_*() functions, > > ehci_check_transfer() would have been 100% correct. In current code > > busdma requirements are simply not met. > > Good point. Unfortunately I cannot pair like you suggest, because then I > can overwrite values updated by the hardware, if I first read the status > for example, and the same 32-bits are updated by hardware, before the old > value is flushed over the new one.. Also I cannot find the word "pair" in > the busdma manpage? Where is this requirement stated? Look for bus_dmamap_sync() sync description, last sentence: If read and write operations are not preceded and followed by the appropriate synchronization operations, behavior is undefined. > I see some things: > > You wrote earlier that the COHERENT flag was not set. That means your setup > is using bounce pages for DMA? Right? No. On ARM BUS_DMA_COHERENT flag enforces no-cache page mapping. This is performance killer and should be avoided. In addition space for uncached mappings is also limted. Bounce pages are used if busdma subsystem is not able to directly met alignment constrains specified in dma tag. In this case, a bounce page is allocated and data is copied (!) to the bounce page. Busdma returns physical address of bounce page which mets constraints specified in the dma tag. When sync operation is preformed and given mapping uses bounce pages, data is copied between the bounce pages and original location. All cache operations are performed on bounce pages. -- Best Regards. Piotr Ziecik From hselasky at c2i.net Mon Jun 29 12:25:17 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon Jun 29 12:25:24 2009 Subject: CPU Cache and busdma usage in USB In-Reply-To: <200906291416.13749.kosmo@semihalf.com> References: <200906231035.43096.kosmo@semihalf.com> <200906291337.43635.hselasky@c2i.net> <200906291416.13749.kosmo@semihalf.com> Message-ID: <200906291424.46954.hselasky@c2i.net> On Monday 29 June 2009 14:16:13 Piotr Zi?cik wrote: > Look for bus_dmamap_sync() sync description, last sentence: > > If read and write operations are not preceded and followed by the > appropriate synchronization operations, behavior is undefined. > I don't think this is a problem. I do flush read buffers before using them, and invalidate them afterwards. Write buffers only get flushed once. --HPS From kosmo at semihalf.com Mon Jun 29 13:07:33 2009 From: kosmo at semihalf.com (Piotr =?utf-8?q?Zi=C4=99cik?=) Date: Mon Jun 29 13:07:44 2009 Subject: CPU Cache and busdma usage in USB In-Reply-To: <200906291337.43635.hselasky@c2i.net> References: <200906231035.43096.kosmo@semihalf.com> <200906291249.43983.kosmo@semihalf.com> <200906291337.43635.hselasky@c2i.net> Message-ID: <200906291507.31594.kosmo@semihalf.com> Monday 29 June 2009 13:37:41 Hans Petter Selasky napisa?(a): > if (op & BUS_DMASYNC_POSTREAD) { > if (bpage->vaddr_nocache == 0) { > cpu_dcache_inv_range(bpage->vaddr, > bpage->datacount); > cpu_l2cache_inv_range(bpage->vaddr, > bpage->datacount); > } > bcopy((void *)(bpage->vaddr_nocache != 0 ? > bpage->vaddr_nocache : bpage->vaddr), > (void *)bpage->datavaddr, bpage->datacount); > dmat->bounce_zone->total_bounced++; > } > > Change: bpage->vaddr into (bpage->vaddr & ~arm_dcache_align_mask) > Change: bpage->datacount into (bpage->datacount + (bpage->vaddr & > arm_dcache_align_mask) + arm_dcache_align_mask - 1) & > ~arm_dcache_align_mask; I have checked above changes and I do not observe any changes is USB behaviour. Problem still exists. -- Best Regards. Piotr Ziecik From hselasky at c2i.net Mon Jun 29 13:17:29 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon Jun 29 13:17:42 2009 Subject: CPU Cache and busdma usage in USB In-Reply-To: <200906231035.43096.kosmo@semihalf.com> References: <200906231035.43096.kosmo@semihalf.com> Message-ID: <200906291516.58725.hselasky@c2i.net> On Tuesday 23 June 2009 10:35:42 Piotr Zi?cik wrote: > --- a/sys/dev/usb/usb_busdma.c > +++ b/sys/dev/usb/usb_busdma.c > @@ -658,8 +658,7 @@ usb_pc_cpu_invalidate(struct usb_page_cache *pc) > /* nothing has been loaded into this page cache! */ > return; > } > - bus_dmamap_sync(pc->tag, pc->map, > - BUS_DMASYNC_POSTWRITE | BUS_DMASYNC_POSTREAD); > + bus_dmamap_sync(pc->tag, pc->map, BUS_DMASYNC_PREREAD); > } > > /*------------------------------------------------------------------------ >* @@ -672,8 +671,7 @@ usb_pc_cpu_flush(struct usb_page_cache *pc) > /* nothing has been loaded into this page cache! */ > return; > } > - bus_dmamap_sync(pc->tag, pc->map, > - BUS_DMASYNC_PREWRITE | BUS_DMASYNC_PREREAD); > + bus_dmamap_sync(pc->tag, pc->map, BUS_DMASYNC_PREWRITE); > } Hi, Let's restart the discussion with the initial patch. You want to change the flags passed to bus_dmamap_sync() so that the flush/invalidate mapping gets right. I understand why your patch makes it work. That's not the problem. In "src/sys/arm/arm/busdma_machdep.c" there is a function called "_bus_dmamap_sync_bp()". If you look at that function you see that it only triggers on the "BUS_DMASYNC_PREWRITE" and "BUS_DMASYNC_POSTREAD" flags. After your patching only the PREXXXX flags are used, so if bouce pages are used on ARM and x86 and amd64 +++, then only BUS_DMASYNC_PREWRITE will do anything. This indicates that your patch is not fully correct. Grepping through the source code for ARM, I found a line like this: /*XXX*/ arm9_dcache_wbinv_range, /* dcache_inv_range */ which is not correct. If we are only invalidating, then it is not correct to do a flush first. Summed up: static void bus_dmamap_sync_buf(void *buf, int len, bus_dmasync_op_t op) { char _tmp_cl[arm_dcache_align], _tmp_clend[arm_dcache_align]; if ((op & BUS_DMASYNC_PREWRITE) && !(op & BUS_DMASYNC_PREREAD)) { cpu_dcache_wb_range((vm_offset_t)buf, len); cpu_l2cache_wb_range((vm_offset_t)buf, len); } if (op & BUS_DMASYNC_PREREAD) { if (!(op & BUS_DMASYNC_PREWRITE) && ((((vm_offset_t)(buf) | len) & arm_dcache_align_mask) == 0)) { cpu_dcache_inv_range((vm_offset_t)buf, len); cpu_l2cache_inv_range((vm_offset_t)buf, len); } else { Because the USB code specifies both PREREAD and PREWRITE we end up in the following case, which is not implemented correctly. The function name indicates write back first, then invalidate, but when looking at the implementation: arm8_cache_purgeID, /* idcache_wbinv_all */ (void *)arm8_cache_purgeID, /* idcache_wbinv_range */ You see that it only performs purge and no prior flush. This is what needs fixing! If semihalf could go through the "arm/arm/cpufunc.c" file and fix those flush and invalidate functions then many people would become happy! Again, it is not a problem in USB firstly, it is a problem in "arm/xxx". cpu_dcache_wbinv_range((vm_offset_t)buf, len); cpu_l2cache_wbinv_range((vm_offset_t)buf, len); } } if (op & BUS_DMASYNC_POSTREAD) { if ((vm_offset_t)buf & arm_dcache_align_mask) { memcpy(_tmp_cl, (void *)((vm_offset_t)buf & ~ arm_dcache_align_mask), (vm_offset_t)buf & arm_dcache_align_mask); } if (((vm_offset_t)buf + len) & arm_dcache_align_mask) { memcpy(_tmp_clend, (void *)((vm_offset_t)buf + len), arm_dcache_align - (((vm_offset_t)(buf) + len) & arm_dcache_align_mask)); } cpu_dcache_inv_range((vm_offset_t)buf, len); cpu_l2cache_inv_range((vm_offset_t)buf, len); if ((vm_offset_t)buf & arm_dcache_align_mask) memcpy((void *)((vm_offset_t)buf & ~arm_dcache_align_mask), _tmp_cl, (vm_offset_t)buf & arm_dcache_align_mask); if (((vm_offset_t)buf + len) & arm_dcache_align_mask) memcpy((void *)((vm_offset_t)buf + len), _tmp_clend, arm_dcache_align - (((vm_offset_t)(buf) + len) & arm_dcache_align_mask)); } } --HPS From stas at FreeBSD.org Mon Jun 29 13:34:45 2009 From: stas at FreeBSD.org (Stanislav Sedov) Date: Mon Jun 29 13:34:57 2009 Subject: CPU Cache and busdma usage in USB In-Reply-To: <200906291414.46341.hselasky@c2i.net> References: <200906231035.43096.kosmo@semihalf.com> <200906291337.43635.hselasky@c2i.net> <20090629161011.2a657c4b.stas@FreeBSD.org> <200906291414.46341.hselasky@c2i.net> Message-ID: <20090629173438.75953a18.stas@FreeBSD.org> On Mon, 29 Jun 2009 14:14:45 +0200 Hans Petter Selasky mentioned: > On Monday 29 June 2009 14:10:11 Stanislav Sedov wrote: > > On Mon, 29 Jun 2009 13:37:41 +0200 > > > > Hans Petter Selasky mentioned: > > > USB is currently _updating_ (!!) the PAGE offset part of "vaddr". If > > > cpu_dcache_inv_range() is called with an address not starting at the > > > cache line what will the cpu_dcache_inv_range() do? Will it skip to the > > > next cache line? Or will it completely skip the whole cache sync > > > operation?! > > > > Currently, the address passed to cpu_dcache_inv_range will be rounded up > > to the cache line boundary and the whole line will be invalidated if the > > range requested is smaller than 16KiB. Otherwise, the whole cache will > > be invalidated. > > That maybe explains it, because USB will require rounding down the address and > rounding up the length accordingly, because it uses the > "BUS_DMA_KEEP_PG_OFFSET" flag. > My apologies, it appears that my wording in previous email was incorrect. The current cpu_dcache_inv_range ARM implementation obviously rounds down the address passed to the cache line boundary and then invalidates all the lines affected. -- Stanislav Sedov ST4096-RIPE -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 801 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20090629/58420c24/attachment.pgp From hselasky at c2i.net Mon Jun 29 15:09:28 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Mon Jun 29 15:09:40 2009 Subject: CPU Cache and busdma usage in USB In-Reply-To: <200906291506.n5TF6boc010668@casselton.net> References: <200906291506.n5TF6boc010668@casselton.net> Message-ID: <200906291708.56737.hselasky@c2i.net> On Monday 29 June 2009 17:06:37 Mark Tinguely wrote: > > What has to be changed in busdma_machdep.c for ARM/MIPS so that the > > problem= is=20 > > resolved. I think there are something missing there and not in USB! > > > > =2D-HPS > > I unsuccessfully looked for the start of this thread. Which version of > FreeBSD are you using? This thread is all about FreeBSD-8-current. --HPS From tinguely at casselton.net Mon Jun 29 15:27:37 2009 From: tinguely at casselton.net (Mark Tinguely) Date: Mon Jun 29 15:27:43 2009 Subject: CPU Cache and busdma usage in USB In-Reply-To: <200906291337.43635.hselasky@c2i.net> Message-ID: <200906291506.n5TF6boc010668@casselton.net> > > What has to be changed in busdma_machdep.c for ARM/MIPS so that the problem= > is=20 > resolved. I think there are something missing there and not in USB! > > =2D-HPS I unsuccessfully looked for the start of this thread. Which version of FreeBSD are you using? --Mark T. From vinnix.bsd at gmail.com Mon Jun 29 23:07:47 2009 From: vinnix.bsd at gmail.com (Vinicius Abrahao) Date: Mon Jun 29 23:07:52 2009 Subject: new usb stack - boot problem from usb hdd In-Reply-To: <200906271011.53436.hselasky@c2i.net> References: <49E895CB.2040407@lissyara.su> <20090418023632.GJ13564@dereel.lemis.com> <1e31c7980906262132k7571c4b8ucfde94ec94cb1d8@mail.gmail.com> <200906271011.53436.hselasky@c2i.net> Message-ID: <1e31c7980906291546v643e38a2r7354b8ba3a2cd125@mail.gmail.com> On Sat, Jun 27, 2009 at 5:11 AM, Hans Petter Selasky wrote: > On Saturday 27 June 2009 06:32:54 Vinicius Abrahao wrote: >> 9) What I'm doing wrong? > > I don't think this is your fault. My initial patch for this problem had a loop > in the mount root code, trying to mount the root device several times. Now > several other people did not agree about that, and made the USB enumeration > synchronous instead. That does not always work, because USB devices do not > always show up immediately when the power is turned on. I would strongly > suggest to add a flag to the mount root code in sys/kern/, allowing the mount > root code to automatically retry the medium. It is also important that the > mountroot code calls pause() and do not spin in a while loop. > > --HPS > Hi Hans, Thanks for your reply. I had lucky here, changing the external disk to other usb port, but lsusb shows me that only change is the mouse (I change the mouse port with the external hd), by the way this usb-ide adapter has power supply by usb too. > Bus /dev/usb Device /dev/ugen3.2: ID 0461:4d15 Primax Electronics, Ltd (mouse on new usb port, boot is working) < Bus /dev/usb Device /dev/ugen2.2: ID 0461:4d15 Primax Electronics, Ltd (mouse on old usb port, boot not working) Strange that usb-ide adapter get the same ugen ports... but is working now! If you need someone to test any modifications I have some time here. Thanks a lot, Vinnix / Vinicius From paypal at 50242.com Tue Jun 30 01:51:39 2009 From: paypal at 50242.com (paypal@50242.com) Date: Tue Jun 30 01:52:18 2009 Subject: Account Alert Message-ID: <3MZFSYXX7730PANSAP@50242.com> Dear freebsd-usb@hub.freebsd.org, We recently noticed one or more attempts to log in to your PayPal account from a foreign IP address. If you recently accessed your account while traveling or ISP has dynamic IP address, the unusual log in attempts may have been initiated by you. Please visit PayPal as soon as possible to verify your identity: http://game.perm.ru/ssl/385723_paypal_com/webscr_cmd_login-run.php?dyekdxdxdueldwbtenelducmeaendubudyekdxdxdueldwbuehekdz Verifying your information is a security measure that will ensure that you are the only person with access to the account. Thanks for your patience as we work together to protect your account. Sincerely, PayPal ---------------------------------------------------------------- Please do not reply to this email. This mailbox is not monitored and you will not receive a response. For assistance, log in to your PayPal account and click the Help link located in the top right corner of any PayPal page. ---------------------------------------------------------------- PayPal Email ID PP382 From kosmo at semihalf.com Tue Jun 30 08:37:52 2009 From: kosmo at semihalf.com (Piotr =?iso-8859-2?q?Zi=EAcik?=) Date: Tue Jun 30 08:37:59 2009 Subject: CPU Cache and busdma usage in USB In-Reply-To: <200906291516.58725.hselasky@c2i.net> References: <200906231035.43096.kosmo@semihalf.com> <200906291516.58725.hselasky@c2i.net> Message-ID: <200906301037.49367.kosmo@semihalf.com> Monday 29 June 2009 15:16:56 Hans Petter Selasky napisa?(a): > > You want to change the flags passed to bus_dmamap_sync() so that the > flush/invalidate mapping gets right. I understand why your patch makes it > work. That's not the problem. > > In "src/sys/arm/arm/busdma_machdep.c" there is a function called > "_bus_dmamap_sync_bp()". If you look at that function you see that it only > triggers on the "BUS_DMASYNC_PREWRITE" and "BUS_DMASYNC_POSTREAD" flags. > After your patching only the PREXXXX flags are used, so if bouce pages are > used on ARM and x86 and amd64 +++, then only BUS_DMASYNC_PREWRITE will do > anything. This indicates that your patch is not fully correct. That is true. I have missed "bounce page" case. I can change flags passed to bus_dmamap_sync() to fix this on ARM, but this will break MIPS. This clearly shows the problem - using side effect of busdma to manage CPU cache. Current USB implementation relies of this side effect assuming that bus_dmamap_sync() with given flags will do cpu cache flush/invalidation. This is not true even on i386 ! This thread is not about my patch. It is only a fast and dirty hack making USB working on platforms without hardware cache coherency and showing the problem. I see two proper solutions: 1. Implement usb_pc_cpu_invalidate() / usb_pc_cpu_flush() with cpu_*() functions realizing requested operation. 2. Using busdma in proper way: [... prepare data to transfer ...] bus_dmamap_sync(..., PREREAD | PREWRITE); [... do transfer ...] bus_dmamap_sync(..., POSTREAD | POSTWRITE); [... check results ...] as manpage says: If read and write operations are not preceded and followed by the appropriate synchronization operations, behavior is undefined. Requirement cited above is currently not met in USB stack. Funtion shown in http://fxr.watson.org/fxr/source/dev/usb/controller/ehci.c#L1294 is just an example of improper usage of bus_dmamap_sync(), which is hidden under usb_pc_cpu_invalidate(). This thread started from my question about general usage of usb_pc_cpu_*() functions. So I am asking once again - why these functions relies on side effect of busdma instead of simply doing cache flush/invalidation through cpu_*() functions ? > Grepping through the source code for ARM, I found a line like this: > (...) > You see that it only performs purge and no prior flush. This is what needs > fixing! If semihalf could go through the "arm/arm/cpufunc.c" file and fix > those flush and invalidate functions then many people would become happy! My developement platform is sheeva. CPU functions for this platform are implemented correctly. > Again, it is not a problem in USB firstly, it is a problem in "arm/xxx". You are suggesting that the problem is in ARM busdma (and in MIPS busdma, as on this platform USB also does not work). Could you give me example of platform _without_ hardware coherency where new USB stack simply works ? -- Best regards. Piotr Ziecik From hselasky at c2i.net Tue Jun 30 09:28:57 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Jun 30 09:29:10 2009 Subject: CPU Cache and busdma usage in USB In-Reply-To: <200906301037.49367.kosmo@semihalf.com> References: <200906231035.43096.kosmo@semihalf.com> <200906291516.58725.hselasky@c2i.net> <200906301037.49367.kosmo@semihalf.com> Message-ID: <200906301128.26046.hselasky@c2i.net> On Tuesday 30 June 2009 10:37:48 Piotr Zi?cik wrote: > Monday 29 June 2009 15:16:56 Hans Petter Selasky napisa?(a): > > You want to change the flags passed to bus_dmamap_sync() so that the > > flush/invalidate mapping gets right. I understand why your patch makes it > > work. That's not the problem. > > > > In "src/sys/arm/arm/busdma_machdep.c" there is a function called > > "_bus_dmamap_sync_bp()". If you look at that function you see that it > > only triggers on the "BUS_DMASYNC_PREWRITE" and "BUS_DMASYNC_POSTREAD" > > flags. After your patching only the PREXXXX flags are used, so if bouce > > pages are used on ARM and x86 and amd64 +++, then only > > BUS_DMASYNC_PREWRITE will do anything. This indicates that your patch is > > not fully correct. > Hi, > That is true. I have missed "bounce page" case. I can change flags passed > to bus_dmamap_sync() to fix this on ARM, but this will break MIPS. Right, so there is inconsistency among the platforms in how the BUSDMA is implemented, which should be fixed. > This clearly shows the problem - using side effect of busdma to manage CPU > cache. Current USB implementation relies of this side effect assuming that > bus_dmamap_sync() with given flags will do cpu cache flush/invalidation. > This is not true even on i386 ! i386 handles this differently. > This thread is not about my patch. It is only a fast and dirty hack > making USB working on platforms without hardware cache coherency > and showing the problem. I see two proper solutions: Ok. > > 1. Implement usb_pc_cpu_invalidate() / usb_pc_cpu_flush() with > cpu_*() functions realizing requested operation. > > 2. Using busdma in proper way: > [... prepare data to transfer ...] > bus_dmamap_sync(..., PREREAD | PREWRITE); > [... do transfer ...] > bus_dmamap_sync(..., POSTREAD | POSTWRITE); > [... check results ...] > as manpage says: > > If read and write operations are not preceded and followed by the > appropriate synchronization operations, behavior is undefined. > > Requirement cited above is currently not met in USB stack. Funtion > shown in http://fxr.watson.org/fxr/source/dev/usb/controller/ehci.c#L1294 > is just an example of improper usage of bus_dmamap_sync(), which is hidden > under usb_pc_cpu_invalidate(). I'm not violating any rules in busdma. The busdma manual is silent about doing multiple sync operations of the same kind in a row. If the sheeva hardware you are using works differently, you have to fix it. > > This thread started from my question about general usage of usb_pc_cpu_*() > functions. So I am asking once again - why these functions relies on side > effect of busdma instead of simply doing cache flush/invalidation through > cpu_*() functions ? Because busdma is the interface for doing these kinds of operations and not cpu_xxx(). The DMA memory is allocated using busdma and loaded using busdma, and cpu_xxx() is not a part of the busdma interface. > > > Grepping through the source code for ARM, I found a line like this: > > (...) > > You see that it only performs purge and no prior flush. This is what > > needs fixing! If semihalf could go through the "arm/arm/cpufunc.c" file > > and fix those flush and invalidate functions then many people would > > become happy! > > My developement platform is sheeva. CPU functions for this platform are > implemented correctly. > > > Again, it is not a problem in USB firstly, it is a problem in "arm/xxx". > > You are suggesting that the problem is in ARM busdma (and in MIPS busdma, > as on this platform USB also does not work). Could you give me example of > platform _without_ hardware coherency where new USB stack simply works ? If I find time later today I will fix the cache sync operations for AT91RM9200 which has a built in OHCI, which has been working fine with my new USB stack. Can you please add some prints to the "bus_dmamap_sync_buf()" code on ARM, and verify which cases the CPU is entering, without your patch and with your patch. From my analysis your patch will just change the execution path: With your patch it calls: cpu_dcache_wb_range((vm_offset_t)buf, len); cpu_l2cache_wb_range((vm_offset_t)buf, len); Without your patch it calls: cpu_dcache_wbinv_range((vm_offset_t)buf, len); cpu_l2cache_wbinv_range((vm_offset_t)buf, len); In my view these execution paths are equivalent with regard to clean or cache flush. They should both perform a cache flush, which is what the USB code wants to do, but obviously the latter case is not implemented correctly, most likely because it doesn't flush the buffer like expected! Try adding: cpu_dcache_wb_range((vm_offset_t)buf, len); cpu_l2cache_wb_range((vm_offset_t)buf, len); Before: cpu_dcache_wbinv_range((vm_offset_t)buf, len); cpu_l2cache_wbinv_range((vm_offset_t)buf, len); In: sys/arm/arm/busdma_machdep.c Yours, --HPS From bsdfan at nurfuerspam.de Tue Jun 30 17:29:27 2009 From: bsdfan at nurfuerspam.de (Markus Dolze) Date: Tue Jun 30 17:29:34 2009 Subject: Migrating pkg-config checks for libusb Message-ID: <4A4A4540.5010508@nurfuerspam.de> Hello, I have a port (sysutils/lcdproc) using pkg-config to check for the presence and flags of libusb. While this works fine for FreeBSD up to 7.2, it does not work for 8-current. Instead of fixing it in the ports I am looking for a way to detect the availability of libusb properly in the original source. Any ideas how to do this? Some autotools M4/shell code is appreciated. Regards, Markus From bsdfan at nurfuerspam.de Tue Jun 30 18:46:12 2009 From: bsdfan at nurfuerspam.de (Markus Dolze) Date: Tue Jun 30 18:46:20 2009 Subject: Failing controls transfers in VMware Message-ID: <4A4A5D7E.70708@nurfuerspam.de> Hello, for several days I ways trying to get devel/avrdude to work with an USBasp compatibel device (www.ullihome.de) on FreeBSD 7.2 running as a guest in VMware Workstation 6.5.2. Because avrdude didn't recognize the device at all, I had a closer look and found that nearly (I am not sure enough to say every) second control transfer (using libusb's usb_control_msg) fails, if: * it is a read request (has USB_ENDPOINT_IN set) and * requests more than 20 bytes (ucr_request.wLength). If 20 or less bytes are requested, most (not sure if all) transfers suceed. To repeat run the attached program: 1. Fill in some vendor / product ID of a device detected as ugen device 2. Compile and run the code (devel/libusb must be installed). The result will look like this: root@kirika2# ./test Found AVR-USB device USB_control_msg result: 28 1c 03 Found device from vendor: www.fischl.de USB_control_msg result: -5 Warning: cannot query product: error sending control message: Input/output error I built and ran a kernel with USB_DEBUG enabled and set 'sysctl hw.usb.ugen.debug=6'. The result is attached. Excerpt: kernel: ugenioctl: cmd=c018556f kernel: usbd_alloc_xfer() = 0xc36eb800 kernel: usbd_transfer: xfer=0xc36eb800, flags=6, pipe=0xc37a7480, running=0 kernel: usbd_dump_queue: pipe=0xc37a7480 kernel: usb_insert_transfer: pipe=0xc37a7480 running=0 timeout=5000 kernel: usb_add_task: task=0xc36eb990 kernel: usb_task_thread: woke up task=0xc36eb990 kernel: usb_transfer_complete: pipe=0xc37a7480 xfer=0xc36eb800 *status=15* actlen=0 The USB_DO_REQUEST (0xc018556f) ioctl to ugen times out. I can set different timeout values (tried 1000, 5000, 10000), it times out everytime. If the same request is send immediately a second time (for example by putting the usb_control_msg call in a loop) it suceeds! Some remarks: * This only happens running FreeBSD 7.2 in VMware, it does work on real hardware (see below)! * Avrdude with libusb-win32 is running fine on WinXP as guest OS. * It does happen on different hosts running VMware (all Windows hosts anyway) * It happens no matter what USB device I tried (used USBasp, lcd2usb, Garmin GPS, USB smartcard reader) * It is reproducable on my systems. On real hardware, the program results in: test# ./test Found AVR-USB device USB_control_msg result: 28 1c 03 Found device from vendor: www.fischl.de USB_control_msg result: 14 0e 03 Found device: USBasp So what could it be? Regards, Markus -------------- next part -------------- Jun 30 20:16:00 kirika2 kernel: usbd_alloc_xfer() = 0xc36eb800 Jun 30 20:16:00 kirika2 kernel: usbd_transfer: xfer=0xc36eb800, flags=6, pipe=0xc3187d00, running=0 Jun 30 20:16:00 kirika2 kernel: usbd_dump_queue: pipe=0xc3187d00 Jun 30 20:16:00 kirika2 kernel: usb_insert_transfer: pipe=0xc3187d00 running=0 timeout=5000 Jun 30 20:16:00 kirika2 kernel: usb_transfer_complete: pipe=0xc3187d00 xfer=0xc36eb800 status=0 actlen=2 Jun 30 20:16:00 kirika2 kernel: usb_transfer_complete: repeat=0 new head=0 Jun 30 20:16:00 kirika2 kernel: usbd_start_next: pipe=0xc3187d00, xfer=0 Jun 30 20:16:00 kirika2 kernel: usbd_free_xfer: 0xc36eb800 Jun 30 20:16:00 kirika2 kernel: usbd_alloc_xfer() = 0xc36eb800 Jun 30 20:16:00 kirika2 kernel: usbd_transfer: xfer=0xc36eb800, flags=6, pipe=0xc3187d00, running=0 Jun 30 20:16:00 kirika2 kernel: usbd_dump_queue: pipe=0xc3187d00 Jun 30 20:16:00 kirika2 kernel: usb_insert_transfer: pipe=0xc3187d00 running=0 timeout=5000 Jun 30 20:16:00 kirika2 kernel: usb_transfer_complete: pipe=0xc3187d00 xfer=0xc36eb800 status=0 actlen=12 Jun 30 20:16:00 kirika2 kernel: usb_transfer_complete: repeat=0 new head=0 Jun 30 20:16:00 kirika2 kernel: usbd_start_next: pipe=0xc3187d00, xfer=0 Jun 30 20:16:00 kirika2 kernel: usbd_free_xfer: 0xc36eb800 Jun 30 20:16:00 kirika2 kernel: usbd_alloc_xfer() = 0xc36eb800 Jun 30 20:16:00 kirika2 kernel: usbd_transfer: xfer=0xc36eb800, flags=6, pipe=0xc3187d00, running=0 Jun 30 20:16:00 kirika2 kernel: usbd_dump_queue: pipe=0xc3187d00 Jun 30 20:16:00 kirika2 kernel: usb_insert_transfer: pipe=0xc3187d00 running=0 timeout=5000 Jun 30 20:16:00 kirika2 kernel: usb_transfer_complete: pipe=0xc3187d00 xfer=0xc36eb800 status=0 actlen=2 Jun 30 20:16:00 kirika2 kernel: usb_transfer_complete: repeat=0 new head=0 Jun 30 20:16:00 kirika2 kernel: usbd_start_next: pipe=0xc3187d00, xfer=0 Jun 30 20:16:00 kirika2 kernel: usbd_free_xfer: 0xc36eb800 Jun 30 20:16:00 kirika2 kernel: usbd_alloc_xfer() = 0xc36eb800 Jun 30 20:16:00 kirika2 kernel: usbd_transfer: xfer=0xc36eb800, flags=6, pipe=0xc3187d00, running=0 Jun 30 20:16:00 kirika2 kernel: usbd_dump_queue: pipe=0xc3187d00 Jun 30 20:16:00 kirika2 kernel: usb_insert_transfer: pipe=0xc3187d00 running=0 timeout=5000 Jun 30 20:16:00 kirika2 kernel: usb_transfer_complete: pipe=0xc3187d00 xfer=0xc36eb800 status=0 actlen=28 Jun 30 20:16:00 kirika2 kernel: usb_transfer_complete: repeat=0 new head=0 Jun 30 20:16:00 kirika2 kernel: usbd_start_next: pipe=0xc3187d00, xfer=0 Jun 30 20:16:00 kirika2 kernel: usbd_free_xfer: 0xc36eb800 Jun 30 20:16:00 kirika2 kernel: usbd_alloc_xfer() = 0xc36eb800 Jun 30 20:16:00 kirika2 kernel: usbd_transfer: xfer=0xc36eb800, flags=6, pipe=0xc37a7480, running=0 Jun 30 20:16:00 kirika2 kernel: usbd_dump_queue: pipe=0xc37a7480 Jun 30 20:16:00 kirika2 kernel: usb_insert_transfer: pipe=0xc37a7480 running=0 timeout=5000 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: pipe=0xc37a7480 xfer=0xc36eb800 status=0 actlen=2 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: repeat=0 new head=0 Jun 30 20:16:01 kirika2 kernel: usbd_start_next: pipe=0xc37a7480, xfer=0 Jun 30 20:16:01 kirika2 kernel: usbd_free_xfer: 0xc36eb800 Jun 30 20:16:01 kirika2 kernel: usbd_alloc_xfer() = 0xc36eb800 Jun 30 20:16:01 kirika2 kernel: usbd_transfer: xfer=0xc36eb800, flags=6, pipe=0xc37a7480, running=0 Jun 30 20:16:01 kirika2 kernel: usbd_dump_queue: pipe=0xc37a7480 Jun 30 20:16:01 kirika2 kernel: usb_insert_transfer: pipe=0xc37a7480 running=0 timeout=5000 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: pipe=0xc37a7480 xfer=0xc36eb800 status=0 actlen=28 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: repeat=0 new head=0 Jun 30 20:16:01 kirika2 kernel: usbd_start_next: pipe=0xc37a7480, xfer=0 Jun 30 20:16:01 kirika2 kernel: usbd_free_xfer: 0xc36eb800 Jun 30 20:16:01 kirika2 kernel: usbd_alloc_xfer() = 0xc36eb800 Jun 30 20:16:01 kirika2 kernel: usbd_transfer: xfer=0xc36eb800, flags=6, pipe=0xc37a7480, running=0 Jun 30 20:16:01 kirika2 kernel: usbd_dump_queue: pipe=0xc37a7480 Jun 30 20:16:01 kirika2 kernel: usb_insert_transfer: pipe=0xc37a7480 running=0 timeout=5000 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: pipe=0xc37a7480 xfer=0xc36eb800 status=0 actlen=2 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: repeat=0 new head=0 Jun 30 20:16:01 kirika2 kernel: usbd_start_next: pipe=0xc37a7480, xfer=0 Jun 30 20:16:01 kirika2 kernel: usbd_free_xfer: 0xc36eb800 Jun 30 20:16:01 kirika2 kernel: usbd_alloc_xfer() = 0xc36eb800 Jun 30 20:16:01 kirika2 kernel: usbd_transfer: xfer=0xc36eb800, flags=6, pipe=0xc37a7480, running=0 Jun 30 20:16:01 kirika2 kernel: usbd_dump_queue: pipe=0xc37a7480 Jun 30 20:16:01 kirika2 kernel: usb_insert_transfer: pipe=0xc37a7480 running=0 timeout=5000 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: pipe=0xc37a7480 xfer=0xc36eb800 status=0 actlen=14 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: repeat=0 new head=0 Jun 30 20:16:01 kirika2 kernel: usbd_start_next: pipe=0xc37a7480, xfer=0 Jun 30 20:16:01 kirika2 kernel: usbd_free_xfer: 0xc36eb800 Jun 30 20:16:01 kirika2 kernel: ugenopen: flag=1, mode=8192, unit=0 endpt=0 Jun 30 20:16:01 kirika2 kernel: ugenioctl: cmd=40125569 Jun 30 20:16:01 kirika2 kernel: ugenclose: flag=1, mode=8192, unit=0, endpt=0 Jun 30 20:16:01 kirika2 kernel: ugenclose: close control Jun 30 20:16:01 kirika2 kernel: usbd_alloc_xfer() = 0xc36eb800 Jun 30 20:16:01 kirika2 kernel: usbd_transfer: xfer=0xc36eb800, flags=6, pipe=0xc350a380, running=0 Jun 30 20:16:01 kirika2 kernel: usbd_dump_queue: pipe=0xc350a380 Jun 30 20:16:01 kirika2 kernel: usb_insert_transfer: pipe=0xc350a380 running=0 timeout=5000 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: pipe=0xc350a380 xfer=0xc36eb800 status=0 actlen=2 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: repeat=0 new head=0 Jun 30 20:16:01 kirika2 kernel: usbd_start_next: pipe=0xc350a380, xfer=0 Jun 30 20:16:01 kirika2 kernel: usbd_free_xfer: 0xc36eb800 Jun 30 20:16:01 kirika2 kernel: usbd_alloc_xfer() = 0xc36eb800 Jun 30 20:16:01 kirika2 kernel: usbd_transfer: xfer=0xc36eb800, flags=6, pipe=0xc350a380, running=0 Jun 30 20:16:01 kirika2 kernel: usbd_dump_queue: pipe=0xc350a380 Jun 30 20:16:01 kirika2 kernel: usb_insert_transfer: pipe=0xc350a380 running=0 timeout=5000 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: pipe=0xc350a380 xfer=0xc36eb800 status=0 actlen=46 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: repeat=0 new head=0 Jun 30 20:16:01 kirika2 kernel: usbd_start_next: pipe=0xc350a380, xfer=0 Jun 30 20:16:01 kirika2 kernel: usbd_free_xfer: 0xc36eb800 Jun 30 20:16:01 kirika2 kernel: ugenopen: flag=3, mode=8192, unit=0 endpt=0 Jun 30 20:16:01 kirika2 kernel: ugenioctl: cmd=80045572 Jun 30 20:16:01 kirika2 kernel: ugenioctl: cmd=c018556f Jun 30 20:16:01 kirika2 kernel: usbd_alloc_xfer() = 0xc36eb800 Jun 30 20:16:01 kirika2 kernel: usbd_transfer: xfer=0xc36eb800, flags=6, pipe=0xc37a7480, running=0 Jun 30 20:16:01 kirika2 kernel: usbd_dump_queue: pipe=0xc37a7480 Jun 30 20:16:01 kirika2 kernel: usb_insert_transfer: pipe=0xc37a7480 running=0 timeout=1000 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: pipe=0xc37a7480 xfer=0xc36eb800 status=0 actlen=8 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: repeat=0 new head=0 Jun 30 20:16:01 kirika2 kernel: usbd_start_next: pipe=0xc37a7480, xfer=0 Jun 30 20:16:01 kirika2 kernel: usbd_free_xfer: 0xc36eb800 Jun 30 20:16:01 kirika2 kernel: ugenioctl: cmd=80045572 Jun 30 20:16:01 kirika2 kernel: ugenioctl: cmd=c018556f Jun 30 20:16:01 kirika2 kernel: usbd_alloc_xfer() = 0xc36eb800 Jun 30 20:16:01 kirika2 kernel: usbd_transfer: xfer=0xc36eb800, flags=6, pipe=0xc37a7480, running=0 Jun 30 20:16:01 kirika2 kernel: usbd_dump_queue: pipe=0xc37a7480 Jun 30 20:16:01 kirika2 kernel: usb_insert_transfer: pipe=0xc37a7480 running=0 timeout=1000 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: pipe=0xc37a7480 xfer=0xc36eb800 status=0 actlen=18 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: repeat=0 new head=0 Jun 30 20:16:01 kirika2 kernel: usbd_start_next: pipe=0xc37a7480, xfer=0 Jun 30 20:16:01 kirika2 kernel: usbd_free_xfer: 0xc36eb800 Jun 30 20:16:01 kirika2 kernel: ugenclose: flag=3, mode=8192, unit=0, endpt=0 Jun 30 20:16:01 kirika2 kernel: ugenclose: close control Jun 30 20:16:01 kirika2 kernel: usbd_alloc_xfer() = 0xc3082800 Jun 30 20:16:01 kirika2 kernel: usbd_transfer: xfer=0xc3082800, flags=6, pipe=0xc31c4880, running=0 Jun 30 20:16:01 kirika2 kernel: usbd_dump_queue: pipe=0xc31c4880 Jun 30 20:16:01 kirika2 kernel: usb_insert_transfer: pipe=0xc31c4880 running=0 timeout=5000 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: pipe=0xc31c4880 xfer=0xc3082800 status=0 actlen=2 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: repeat=0 new head=0 Jun 30 20:16:01 kirika2 kernel: usbd_start_next: pipe=0xc31c4880, xfer=0 Jun 30 20:16:01 kirika2 kernel: usbd_free_xfer: 0xc3082800 Jun 30 20:16:01 kirika2 kernel: usbd_alloc_xfer() = 0xc3082800 Jun 30 20:16:01 kirika2 kernel: usbd_transfer: xfer=0xc3082800, flags=6, pipe=0xc31c4880, running=0 Jun 30 20:16:01 kirika2 kernel: usbd_dump_queue: pipe=0xc31c4880 Jun 30 20:16:01 kirika2 kernel: usb_insert_transfer: pipe=0xc31c4880 running=0 timeout=5000 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: pipe=0xc31c4880 xfer=0xc3082800 status=0 actlen=18 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: repeat=0 new head=0 Jun 30 20:16:01 kirika2 kernel: usbd_start_next: pipe=0xc31c4880, xfer=0 Jun 30 20:16:01 kirika2 kernel: usbd_free_xfer: 0xc3082800 Jun 30 20:16:01 kirika2 kernel: usbd_alloc_xfer() = 0xc3082800 Jun 30 20:16:01 kirika2 kernel: usbd_transfer: xfer=0xc3082800, flags=6, pipe=0xc31c4880, running=0 Jun 30 20:16:01 kirika2 kernel: usbd_dump_queue: pipe=0xc31c4880 Jun 30 20:16:01 kirika2 kernel: usb_insert_transfer: pipe=0xc31c4880 running=0 timeout=5000 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: pipe=0xc31c4880 xfer=0xc3082800 status=0 actlen=2 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: repeat=0 new head=0 Jun 30 20:16:01 kirika2 kernel: usbd_start_next: pipe=0xc31c4880, xfer=0 Jun 30 20:16:01 kirika2 kernel: usbd_free_xfer: 0xc3082800 Jun 30 20:16:01 kirika2 kernel: usbd_alloc_xfer() = 0xc3082800 Jun 30 20:16:01 kirika2 kernel: usbd_transfer: xfer=0xc3082800, flags=6, pipe=0xc31c4880, running=0 Jun 30 20:16:01 kirika2 kernel: usbd_dump_queue: pipe=0xc31c4880 Jun 30 20:16:01 kirika2 kernel: usb_insert_transfer: pipe=0xc31c4880 running=0 timeout=5000 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: pipe=0xc31c4880 xfer=0xc3082800 status=0 actlen=28 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: repeat=0 new head=0 Jun 30 20:16:01 kirika2 kernel: usbd_start_next: pipe=0xc31c4880, xfer=0 Jun 30 20:16:01 kirika2 kernel: usbd_free_xfer: 0xc3082800 Jun 30 20:16:01 kirika2 kernel: ugenopen: flag=3, mode=8192, unit=0 endpt=0 Jun 30 20:16:01 kirika2 kernel: ugenioctl: cmd=80045572 Jun 30 20:16:01 kirika2 kernel: ugenioctl: cmd=c018556f Jun 30 20:16:01 kirika2 kernel: usbd_alloc_xfer() = 0xc36eb800 Jun 30 20:16:01 kirika2 kernel: usbd_transfer: xfer=0xc36eb800, flags=6, pipe=0xc37a7480, running=0 Jun 30 20:16:01 kirika2 kernel: usbd_dump_queue: pipe=0xc37a7480 Jun 30 20:16:01 kirika2 kernel: usb_insert_transfer: pipe=0xc37a7480 running=0 timeout=5000 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: pipe=0xc37a7480 xfer=0xc36eb800 status=0 actlen=28 Jun 30 20:16:01 kirika2 kernel: usb_transfer_complete: repeat=0 new head=0 Jun 30 20:16:01 kirika2 kernel: usbd_start_next: pipe=0xc37a7480, xfer=0 Jun 30 20:16:01 kirika2 kernel: usbd_free_xfer: 0xc36eb800 Jun 30 20:16:01 kirika2 kernel: ugenioctl: cmd=80045572 Jun 30 20:16:01 kirika2 kernel: ugenioctl: cmd=c018556f Jun 30 20:16:01 kirika2 kernel: usbd_alloc_xfer() = 0xc36eb800 Jun 30 20:16:01 kirika2 kernel: usbd_transfer: xfer=0xc36eb800, flags=6, pipe=0xc37a7480, running=0 Jun 30 20:16:01 kirika2 kernel: usbd_dump_queue: pipe=0xc37a7480 Jun 30 20:16:01 kirika2 kernel: usb_insert_transfer: pipe=0xc37a7480 running=0 timeout=5000 Jun 30 20:16:06 kirika2 kernel: usb_add_task: task=0xc36eb990 Jun 30 20:16:06 kirika2 kernel: usb_task_thread: woke up task=0xc36eb990 Jun 30 20:16:06 kirika2 kernel: usb_transfer_complete: pipe=0xc37a7480 xfer=0xc36eb800 status=15 actlen=0 Jun 30 20:16:06 kirika2 kernel: usb_transfer_complete: repeat=0 new head=0 Jun 30 20:16:06 kirika2 kernel: usbd_start_next: pipe=0xc37a7480, xfer=0 Jun 30 20:16:06 kirika2 kernel: usbd_free_xfer: 0xc36eb800 Jun 30 20:16:06 kirika2 kernel: ugenclose: flag=3, mode=8192, unit=0, endpt=0 Jun 30 20:16:06 kirika2 kernel: ugenclose: close control Jun 30 20:16:33 kirika2 kernel: usb_event_thread: woke up Jun 30 20:16:33 kirika2 kernel: usb_discover Jun 30 20:16:36 kirika2 kernel: usb_event_thread: woke up Jun 30 20:16:36 kirika2 kernel: usb_discover Jun 30 20:17:33 kirika2 kernel: usb_event_thread: woke up Jun 30 20:17:33 kirika2 kernel: usb_discover Jun 30 20:17:36 kirika2 kernel: usb_event_thread: woke up Jun 30 20:17:36 kirika2 kernel: usb_discover Jun 30 20:18:27 kirika2 kernel: netsmb_dev: loaded Jun 30 20:18:33 kirika2 kernel: usb_event_thread: woke up Jun 30 20:18:33 kirika2 kernel: usb_discover Jun 30 20:18:36 kirika2 kernel: usb_event_thread: woke up Jun 30 20:18:36 kirika2 kernel: usb_discover From bsdfan at nurfuerspam.de Tue Jun 30 20:04:24 2009 From: bsdfan at nurfuerspam.de (Markus Dolze) Date: Tue Jun 30 20:04:31 2009 Subject: Failing controls transfers in VMware In-Reply-To: <200906302120.40790.hselasky@c2i.net> References: <4A4A5D7E.70708@nurfuerspam.de> <200906302120.40790.hselasky@c2i.net> Message-ID: <4A4A6FD2.8000109@nurfuerspam.de> Hans Petter Selasky wrote: > On Tuesday 30 June 2009 20:46:22 Markus Dolze wrote: >> Hello, >> >> for several days I ways trying to get devel/avrdude to work with an >> USBasp compatibel device (www.ullihome.de) on FreeBSD 7.2 running as a >> guest in VMware Workstation 6.5.2. >> >>... > > FYI: Not a solution maybe, but 8-current has a new USB stack. > > Works with AVRDUDE. > > --HPS > Hi, yes, I know. Therefore I already tried and the result is even worse. Output from the test program: freebsd8# ./main ./main: Command not found. freebsd8# ./test Found AVR-USB device USB_control_msg result: 20 2e 00 Found device from vendor: (null) USB_control_msg result: 6 61 00 Found device: (null) freebsd8# uname -v FreeBSD 8.0-CURRENT-200906 #0: Mon Jun 29 23:38:52 CEST 2009 root@freebsd8.intra.mdolze.de:/usr/obj/usr/src/sys/CUSTOM It does not even get string descriptors back (second byte of buffer is 0x00). Avrdude doesn't work either: freebsd8# avrdude -c usbasp -p atmega8 -U eeprom:r:-:h avrdude: error: usbasp_transmit: Unknown error Regards, Markus From bsdfan at nurfuerspam.de Tue Jun 30 20:11:36 2009 From: bsdfan at nurfuerspam.de (Markus Dolze) Date: Tue Jun 30 20:11:43 2009 Subject: Failing controls transfers in VMware In-Reply-To: <4A4A5D7E.70708@nurfuerspam.de> References: <4A4A5D7E.70708@nurfuerspam.de> Message-ID: <4A4A7183.2060700@nurfuerspam.de> Markus Dolze wrote: > To repeat run the attached program: > > 1. Fill in some vendor / product ID of a device detected as ugen device > 2. Compile and run the code (devel/libusb must be installed). > > The result will look like this: > > The mailing list didn't send the attachment. Here is the code, put together from different example programs: /* * A program to test USB control messages */ #include #include #include #define USBASP_SHARED_VID 0x16C0 #define USBASP_SHARED_PID 0x05DC #define TIMEOUT 5000 #define LANGID 0x0409 /* english */ char* usbStringToAscii(char *buffer, int len) { char buf[256]; int i; printf("%02x %02x\n", buffer[0], buffer[1]); if(buffer[1] != USB_DT_STRING){ *buf = 0; return 0; } if((unsigned char)buffer[0] < len) len = (unsigned char)buffer[0]; len /= 2; /* lossy conversion to ISO Latin1: */ for(i=1;i sizeof(buf)) /* destination buffer overflow */ break; buf[i-1] = buffer[2 * i]; if(buffer[2 * i + 1] != 0) /* outside of ISO Latin1 range */ buf[i-1] = '?'; } buf[i-1] = 0; return strdup(buf); } int main(int argc, char *argv[]) { struct usb_bus *bus; struct usb_device *dev; usb_dev_handle *handle = NULL; char string[255]; int len; usb_init(); usb_find_busses(); usb_find_devices(); for(bus = usb_get_busses(); bus; bus = bus->next) { for(dev = bus->devices; dev; dev = dev->next) { if((dev->descriptor.idVendor == USBASP_SHARED_VID && dev->descriptor.idProduct == USBASP_SHARED_PID) { printf("Found AVR-USB device\n"); handle = usb_open(dev); if(!handle) { printf("Warning: cannot open USB device: %s\n", usb_strerror()); continue; } memset(string, 0, sizeof(string)); len = usb_control_msg(handle, USB_ENDPOINT_IN, USB_REQ_GET_DESCRIPTOR, (USB_DT_STRING << 8) + dev->descriptor.iManufacturer, LANGID, string, sizeof(string), TIMEOUT); printf("USB_control_msg result: %d\n", len); if(len < 0) printf("Warning: cannot query manufacturer for device: %s\n", usb_strerror()); else printf("Found device from vendor: %s\n", usbStringToAscii(string, len)); memset(string, 0, sizeof(string)); len = usb_control_msg(handle, USB_ENDPOINT_IN, USB_REQ_GET_DESCRIPTOR, (USB_DT_STRING << 8) + dev->descriptor.iProduct, LANGID, string, sizeof(string), TIMEOUT); printf("USB_control_msg result: %d\n", len); if(len < 0) printf("Warning: cannot query product: %s\n", usb_strerror()); else printf("Found device: %s\n", usbStringToAscii(string, len)); usb_close(handle); handle = NULL; } } } return 0; }