From owner-freebsd-usb@FreeBSD.ORG Mon Nov 19 11:06:54 2012 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F17A221D for ; Mon, 19 Nov 2012 11:06:53 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id D68938FC17 for ; Mon, 19 Nov 2012 11:06:53 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qAJB6rCt013484 for ; Mon, 19 Nov 2012 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qAJB6rn5013482 for freebsd-usb@FreeBSD.org; Mon, 19 Nov 2012 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 19 Nov 2012 11:06:53 GMT Message-Id: <201211191106.qAJB6rn5013482@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Nov 2012 11:06:54 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/173666 usb [USB, LIBUSB] usb_reset() behavior different between G o usb/173616 usb LG USB DVD-RW USB STALL o usb/173503 usb Add IDs for Huawei K3770 and K4507 o usb/173182 usb usbus appears as a network device o usb/172937 usb FreeBSD 9.1-RC2 usb3 port disconnects o usb/172633 usb Sony Cybershot not recognized as USB mem stick o usb/172199 usb high interrupts load xhci o usb/171354 usb [umass] Medium not present error on flash drive [regre o usb/171262 usb plug in sdhc via usb reader reboots machine o usb/171197 usb ADATA Classic CH11 USB HDD doesn't work in FreeBSD 9.1 o usb/170699 usb FreeBSD 9.0 Doesn't list HDD or its partitions in part o usb/170688 usb patch][usbdevs][wlan] Patch for ASUS Black Diamond USB o usb/170606 usb r239222 kernel panic at boot - usb locking issue o usb/170358 usb [ums] Wrong (duplicate) button numbers o usb/170123 usb [umass] HP v210w USB stick not supported o usb/169935 usb [keyboard] Unable use USB keyboard while panic o usb/169789 usb [u3g] [patch] add support for huawei e3131 o usb/169461 usb [ugen] USB2 high-speed device detected as full speed o usb/169428 usb [ugen] ugen not detecting all endpoints on device [reg o usb/168551 usb [umass] Issues with embedded card reader (Laptop ASUS o usb/168132 usb [umass] MATSHITA memory card size reported wrong, moun o usb/167847 usb [ural] dlink dwl-122g e crashes(?) when trying wap2 cr o usb/167001 usb [USB] [PATCH] add support for Smart G2 64MB memory key o usb/165815 usb [usbdevs] [patch] add k3772z 3g modem support o usb/165163 usb [keyboard] The USB RF keyboard and mouse become non-re o usb/164058 usb [umass] Lexar 8GB USB flash drive doesn't work by defa f usb/163328 usb [usb] Support for Atheros USB abgn devices o kern/163091 usb [panic] Fatal trap 12: page fault while in kernel mode f usb/162306 usb usb devices cant get address asignation, no memories, o usb/162054 usb usbdump just hangs on 9.0-RC1 f usb/161793 usb poor EHCI usb2 i/o performance o usb/160436 usb ucom wedges machine on parity error ? o usb/160299 usb MicroSDHC-to-USB adapters do not work in FreeBSD 8.x o usb/160192 usb [install] Installation from USB-Stick doesn't find the o usb/159274 usb USB 3.0 Etron EJ168A does not work. f usb/159191 usb [fusefs-ntfs] write on fusefs-ntfs mounted partition r o usb/157376 usb LaCie USB disk not recognized o usb/157074 usb [boot] [usb8] vfs_mountroot_ask is called when no usb o usb/156898 usb [keyboard] usb keyboard does not work while boot (ps2 f usb/156735 usb Need Quirk for Goflex USB Disk Drives o usb/156726 usb [snd_uaudio]: snd_uaudio(4) fails to detach when mixer o usb/156725 usb USB stack stall cause complete system input loss o usb/156596 usb [ehci] Extremely high interrupt rate on ehci/uhci IRQ1 o usb/156000 usb rum(4) Fatal trap 18: integer divide fault while in ke f usb/155996 usb NanoBSD not booted as Disk o usb/155784 usb Problem with Transcend StoreJet 25M3 (2AJ1) on Asus M2 o usb/155663 usb [usbdevs] [patch] Add support for Supertop Nano 1GB US o usb/154753 usb [usbdevs] [patch] Support for Qualcomm USB modem/stora o usb/154506 usb [umass] Copying dir with large files makes FreeBSD loa o usb/154192 usb [umass] In Garmin Oregon GPS, only the first umass dev o i386/153851 usb [keyboard] keyboard issues on new Intel Mother boards. o usb/153703 usb [keyboard] My USB keyboard can not be used in 8-STABLE o usb/153609 usb [zyd] [panic] kernel: Fatal trap 12: page fault while o usb/153149 usb [umass] USB stick quirk regression [regression] o usb/152075 usb [usb8] [ehci] [request] Add quirk for CS5536 USB o usb/150892 usb [zyd] Whenever network contacted in any shape, way or o usb/150189 usb [run] [usb8] [patch] if_run appears to corrupt IP traf p usb/149764 usb [u3g] [patch] usbdevs update: Huawei K3765 3G modem o usb/149283 usb [uftdi] avrdude unable to talk to Arduino board (via u o usb/149162 usb [ural] ASUS WL-167g doesn't work in 8.1 (continue of 1 s usb/148702 usb [usb8] [request] IO DATA USB-RSAQ5 support on FreeBSD- o usb/148080 usb usbconfig(8) sometimes does not turn off the device o i386/147475 usb [install] FreeBSD 8.x does not install on ASUS K8N4-E o usb/146840 usb [hang] FreeBSD 7.2 / 7.3 / 8.0 hang at startup after e o usb/146153 usb [axe] [usb8] Hosts in network doesn't receive any pack f usb/146054 usb [urtw] [usb8] urtw driver potentially out of date f usb/145513 usb [usb8] New USB stack: no new devices after forced usb p usb/145455 usb [usb8] [patch] USB debug support cannot be disabled o usb/145415 usb [umass] [usb8] USB card reader does not create slices a usb/145184 usb GENERIC can't mount root from USB on Asus EEE o usb/145165 usb [keyboard] [usb8] ukbd_set_leds_callback: error=USB_ER f kern/144938 usb [keyboard] [boot] Boot Failure with Apple (MB869LL/A) o usb/144387 usb [run] [panic] if_run panic o usb/144043 usb [umass] [usb8] USB DLT tape drive throws random errors a usb/143790 usb [boot] [cam] can not boot from usb hdd f usb/143620 usb [cdce] [usb8] the module if_cdce doesn't support my Op f usb/143294 usb [usb8] copying process stops at some time (10 - 50 sec o usb/143286 usb [ukbd] [usb8] [boot] boot failures on RELENG_8 system p usb/143186 usb [usbdevs] [usb8] [patch] add USB device IDs for Google a usb/143139 usb [umass] [usb8] [patch] Quirk for Century EX35SW4_SB4 J p usb/143045 usb [umass] [usb8] [patch] mounting Fujitsu 2600Z camera d f usb/142989 usb [usb8] canon eos 50D attaches but detaches after few s f usb/142957 usb [umass] [usb8] [patch] patch for USB disk SYNCHRONIZE o usb/142719 usb [urtw] [usb8] AirLive WL-1600USB (RTL8187L chipset) fa f usb/142276 usb [umass] [usb8] Cache Synchronization Error with Olympu o usb/142229 usb [ums] [usb8] [hang] connecting a USB mouse to a Dell P f usb/141680 usb [uath] [usb8] Netgear WG111T not working with uath dri o usb/141664 usb [pcm] [usb8] Logitech USB microphone failure [regressi o usb/141474 usb [boot] [usb8] FreeBSD 8.0 can not install from USB CDR o usb/141212 usb [ukbd] [usb8] ukbd_set_leds_callback:700: error=USB_ER o kern/141011 usb [usb8] Encrypted root, geli password at boot; enter ke o usb/140920 usb [install] [usb8] USB based install fails on 8.0-RELEAS o usb/140893 usb [urtw] [usb8] WPA2 not working on rtl8187b o kern/140849 usb [ums] [usb8] USB mouse doesn't work under FreeBSD 8.0- a usb/140810 usb [uftdi] [usb8] 8.X copy and paste problem / tty overfl o usb/140477 usb [umass] [usb8] [patch] allow boot-time attachment of d o usb/140236 usb [msdosfs] [usb8] Labels wiped on external Journaled US o usb/140160 usb [usb8] [acpi] USB ports are no longer "active" after A o usb/138798 usb [boot] [usb8] 8.0-BETA4 can't boot from USB flash driv o usb/138659 usb [usb8][uftdi] driver broken in RELENG_8/CURRENT o usb/138124 usb [snd_uaudio] [usb8] Axed uaudio functionality in the u o usb/137377 usb [usb8] request support for Huawei E180 o usb/137341 usb [usb8][rum] driver if_rum doesn't work at all and thro f usb/137190 usb [usb8][patch] inhibit spurious button releases for som o usb/137189 usb [usb8][patch] create and use sysctl nodes for HID repo p usb/137188 usb [usb8][patch] correctly handle USB report descriptors o usb/137129 usb [ums] [usb8] SteelSeries Ikari USB laser mouse not att o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa o usb/135206 usb machine reboots when inserted USB device f usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/134950 usb Lowering DTR for USB-modem via ubsa is not possible o usb/134299 usb Kernel Panic plugging in MF626 USB UMTS Stick u3g o usb/134193 usb System freeze on usb MP3 player insertion o usb/134085 usb [umass] [patch] Adding usb quirk for Sony USB flash dr o usb/133989 usb [usb8] [ukbd] USB keyboard dead at mountroot> prompt o usb/133712 usb [ural] [patch] RE: Fixed an issue with ural(4) that wa o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb [rum] driver not working properly in hostap mode o usb/132594 usb USB subsystem causes page fault and crashes o usb/132080 usb [patch] [usb] [rum] [panic] Kernel panic after NOMEM c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c 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/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [usb8] DVD drive detects as 'da' device f usb/129766 usb [usb] [panic] plugging in usb modem HUAWEI E226 panics o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive o usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/127926 usb [boot] USB Timeout during bootup o usb/127342 usb [boot] [panic] enabling usb keyboard and mouse support o usb/127248 usb [ucom] panic while uplcom devices attach and detach o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c o usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d f usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o kern/124130 usb [usb] gmirror fails to start usb devices that were pre o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa 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/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/121275 usb [boot] [panic] FreeBSD fails to boot with usb legacy s o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS f usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o conf/120406 usb [devd] [patch] Handle newly attached pcm devices (eg. o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/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/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [snd_uaudio] [patch] Not possible to record with Plant o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a 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/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 conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar 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/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 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/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg f usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. f usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device 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/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent 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. s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails f usb/80040 usb [sound] [hang] Use of sound mixer causes system freeze o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for 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/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/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports 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 s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 276 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Nov 19 15:40:01 2012 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 39DC69BE for ; Mon, 19 Nov 2012 15:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id E61008FC0C for ; Mon, 19 Nov 2012 15:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qAJFe0sY030360 for ; Mon, 19 Nov 2012 15:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qAJFe0TS030355; Mon, 19 Nov 2012 15:40:00 GMT (envelope-from gnats) Resent-Date: Mon, 19 Nov 2012 15:40:00 GMT Resent-Message-Id: <201211191540.qAJFe0TS030355@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Florian Jung Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E562F92E for ; Mon, 19 Nov 2012 15:36:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id CC9318FC0C for ; Mon, 19 Nov 2012 15:36:45 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qAJFajmD006252 for ; Mon, 19 Nov 2012 15:36:45 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id qAJFajns006251; Mon, 19 Nov 2012 15:36:45 GMT (envelope-from nobody) Message-Id: <201211191536.qAJFajns006251@red.freebsd.org> Date: Mon, 19 Nov 2012 15:36:45 GMT From: Florian Jung To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: usb/173722: XHCI driver bug after suspend to ram (ACPI S3 mode) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Nov 2012 15:40:01 -0000 >Number: 173722 >Category: usb >Synopsis: XHCI driver bug after suspend to ram (ACPI S3 mode) >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 Nov 19 15:40:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Florian Jung >Release: 9.0-RELEASE-p3 >Organization: >Environment: FreeBSD beastie 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: After entering and waking up from suspend to ram aka ACPI S3 state, the dmesg get flooded with "xhci_interrupt: host controller halted", and my USB3.0 device stops working. (It is a external hard disk drive, and the device node just vanished and won't re-appear) My USB2.0 and 1.x devices however do still work. It seems that i can provoke the generation of these "xhci_interrupt: host controller halted" messages by typing on my USB-2.0-Keyboard or by moving my USB-2.0-Mouse. >How-To-Repeat: - Start up FreeBSD - Plug in USB3.0 Harddisk - It will work. - sudo acpiconf -S 3 - re-awake the computer - ls /dev/ tells you that the harddisk is gone - dmesg tells you the "xhci_interrupt: host controller halted" messages. - replug the harddisk - it still does not work. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Mon Nov 19 18:19:42 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7EB21D1E; Mon, 19 Nov 2012 18:19:42 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.c2i.net [212.247.154.98]) by mx1.freebsd.org (Postfix) with ESMTP id C4E858FC0C; Mon, 19 Nov 2012 18:19:41 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 345354959; Mon, 19 Nov 2012 19:19:33 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: usb/173722: XHCI driver bug after suspend to ram (ACPI S3 mode) Date: Mon, 19 Nov 2012 19:21:13 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <201211191536.qAJFajns006251@red.freebsd.org> In-Reply-To: <201211191536.qAJFajns006251@red.freebsd.org> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201211191921.13989.hselasky@c2i.net> Cc: Florian Jung , freebsd-gnats-submit@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Nov 2012 18:19:42 -0000 On Monday 19 November 2012 16:36:45 Florian Jung wrote: > >Number: 173722 > >Category: usb > >Synopsis: XHCI driver bug after suspend to ram (ACPI S3 mode) > >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 Nov 19 15:40:00 UTC 2012 > >Closed-Date: > >Last-Modified: > >Originator: Florian Jung > >Release: 9.0-RELEASE-p3 > >Organization: > > >Environment: > FreeBSD beastie 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 > 02:52:29 UTC 2012 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 > > >Description: > After entering and waking up from suspend to ram aka ACPI S3 state, the > dmesg get flooded with "xhci_interrupt: host controller halted", and my > USB3.0 device stops working. > > (It is a external hard disk drive, and the device node just vanished and > won't re-appear) > > My USB2.0 and 1.x devices however do still work. > > It seems that i can provoke the generation of these "xhci_interrupt: host > controller halted" messages by typing on my USB-2.0-Keyboard or by moving > my USB-2.0-Mouse. > > >How-To-Repeat: > - Start up FreeBSD > - Plug in USB3.0 Harddisk > - It will work. > - sudo acpiconf -S 3 > - re-awake the computer > - ls /dev/ tells you that the harddisk is gone > - dmesg tells you the "xhci_interrupt: host controller halted" messages. > - replug the harddisk > - it still does not work. > If you unplug the harddisk before the suspend, does it work afterwards then? --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Nov 19 18:20:01 2012 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 76BA2D4C for ; Mon, 19 Nov 2012 18:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 3F20E8FC13 for ; Mon, 19 Nov 2012 18:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qAJIK0Q1038179 for ; Mon, 19 Nov 2012 18:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qAJIK0hf038175; Mon, 19 Nov 2012 18:20:00 GMT (envelope-from gnats) Date: Mon, 19 Nov 2012 18:20:00 GMT Message-Id: <201211191820.qAJIK0hf038175@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Hans Petter Selasky Subject: Re: usb/173722: XHCI driver bug after suspend to ram (ACPI S3 mode) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Nov 2012 18:20:01 -0000 The following reply was made to PR usb/173722; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Florian Jung , freebsd-gnats-submit@freebsd.org Subject: Re: usb/173722: XHCI driver bug after suspend to ram (ACPI S3 mode) Date: Mon, 19 Nov 2012 19:21:13 +0100 On Monday 19 November 2012 16:36:45 Florian Jung wrote: > >Number: 173722 > >Category: usb > >Synopsis: XHCI driver bug after suspend to ram (ACPI S3 mode) > >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 Nov 19 15:40:00 UTC 2012 > >Closed-Date: > >Last-Modified: > >Originator: Florian Jung > >Release: 9.0-RELEASE-p3 > >Organization: > > >Environment: > FreeBSD beastie 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 > 02:52:29 UTC 2012 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 > > >Description: > After entering and waking up from suspend to ram aka ACPI S3 state, the > dmesg get flooded with "xhci_interrupt: host controller halted", and my > USB3.0 device stops working. > > (It is a external hard disk drive, and the device node just vanished and > won't re-appear) > > My USB2.0 and 1.x devices however do still work. > > It seems that i can provoke the generation of these "xhci_interrupt: host > controller halted" messages by typing on my USB-2.0-Keyboard or by moving > my USB-2.0-Mouse. > > >How-To-Repeat: > - Start up FreeBSD > - Plug in USB3.0 Harddisk > - It will work. > - sudo acpiconf -S 3 > - re-awake the computer > - ls /dev/ tells you that the harddisk is gone > - dmesg tells you the "xhci_interrupt: host controller halted" messages. > - replug the harddisk > - it still does not work. > If you unplug the harddisk before the suspend, does it work afterwards then? --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Nov 19 19:22:29 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 72527EC5; Mon, 19 Nov 2012 19:22:29 +0000 (UTC) (envelope-from florian.a.jung@web.de) Received: from mout.web.de (mout.web.de [212.227.15.3]) by mx1.freebsd.org (Postfix) with ESMTP id 02FD18FC12; Mon, 19 Nov 2012 19:22:28 +0000 (UTC) Received: from [172.17.0.179] ([131.188.24.12]) by smtp.web.de (mrweb003) with ESMTPSA (Nemesis) id 0MVu2q-1Tler70FTs-00XGTU; Mon, 19 Nov 2012 20:21:49 +0100 Message-ID: <50AA86CB.2080007@web.de> Date: Mon, 19 Nov 2012 20:21:47 +0100 From: Florian Jung User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120726 Iceowl/1.0b1 Icedove/3.0.11 MIME-Version: 1.0 To: Hans Petter Selasky Subject: Re: usb/173722: XHCI driver bug after suspend to ram (ACPI S3 mode) References: <201211191536.qAJFajns006251@red.freebsd.org> <201211191921.13989.hselasky@c2i.net> In-Reply-To: <201211191921.13989.hselasky@c2i.net> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:IDpeVMorW3gG4Be5Ct0999CvqLJcREEhtGnnt+wZCbu GXoR/sJlGw8IhlcMLLZCiOkeJ0+Ft+JUvM/eSFd7w86SzpAypi JcLbtR66zF6/A67vc+sTrSAZNqEvwd1RCkoTb2eE4xiI/dfzHK 2L7+IodBk/6GoZJpSzZu8ptag6D2jSwWCQyzMyS5cbzzXL5w7d dKhpMGkjFWQRBW7LdTyhQ== Cc: freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Nov 2012 19:22:29 -0000 Am 19.11.2012 19:21, schrieb Hans Petter Selasky: > On Monday 19 November 2012 16:36:45 Florian Jung wrote: >>> Number: 173722 >>> Category: usb >>> Synopsis: XHCI driver bug after suspend to ram (ACPI S3 mode) >>> 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 Nov 19 15:40:00 UTC 2012 >>> Closed-Date: >>> Last-Modified: >>> Originator: Florian Jung >>> Release: 9.0-RELEASE-p3 >>> Organization: >> >>> Environment: >> FreeBSD beastie 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 >> 02:52:29 UTC 2012 >> root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >> >>> Description: >> After entering and waking up from suspend to ram aka ACPI S3 state, the >> dmesg get flooded with "xhci_interrupt: host controller halted", and my >> USB3.0 device stops working. >> >> (It is a external hard disk drive, and the device node just vanished and >> won't re-appear) >> >> My USB2.0 and 1.x devices however do still work. >> >> It seems that i can provoke the generation of these "xhci_interrupt: host >> controller halted" messages by typing on my USB-2.0-Keyboard or by moving >> my USB-2.0-Mouse. >> >>> How-To-Repeat: >> - Start up FreeBSD >> - Plug in USB3.0 Harddisk >> - It will work. >> - sudo acpiconf -S 3 >> - re-awake the computer >> - ls /dev/ tells you that the harddisk is gone >> - dmesg tells you the "xhci_interrupt: host controller halted" messages. >> - replug the harddisk >> - it still does not work. >> > > If you unplug the harddisk before the suspend, does it work afterwards then? > > --HPS > No, that causes the same problem. I don't even need to attach it: boot freebsd, enter acpi s3, wake up, and then plug in the disk leads to the same problem. i have found out that compiling XHCI has loadable module, and unloading it before suspend and re-loading it afterwards solves the problem. the "xhci_interrupt: host controller halted"-messages don't appear, and i can use my harddisk afterwards. looks like xhci is failing to reinitalize properly after suspend? greetings, flo From owner-freebsd-usb@FreeBSD.ORG Mon Nov 19 19:30:01 2012 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9906561F for ; Mon, 19 Nov 2012 19:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 624908FC08 for ; Mon, 19 Nov 2012 19:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qAJJU1A4041930 for ; Mon, 19 Nov 2012 19:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qAJJU1jl041929; Mon, 19 Nov 2012 19:30:01 GMT (envelope-from gnats) Date: Mon, 19 Nov 2012 19:30:01 GMT Message-Id: <201211191930.qAJJU1jl041929@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Florian Jung Subject: Re: usb/173722: XHCI driver bug after suspend to ram (ACPI S3 mode) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Florian Jung List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Nov 2012 19:30:01 -0000 The following reply was made to PR usb/173722; it has been noted by GNATS. From: Florian Jung To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: usb/173722: XHCI driver bug after suspend to ram (ACPI S3 mode) Date: Mon, 19 Nov 2012 20:21:47 +0100 Am 19.11.2012 19:21, schrieb Hans Petter Selasky: > On Monday 19 November 2012 16:36:45 Florian Jung wrote: >>> Number: 173722 >>> Category: usb >>> Synopsis: XHCI driver bug after suspend to ram (ACPI S3 mode) >>> 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 Nov 19 15:40:00 UTC 2012 >>> Closed-Date: >>> Last-Modified: >>> Originator: Florian Jung >>> Release: 9.0-RELEASE-p3 >>> Organization: >> >>> Environment: >> FreeBSD beastie 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 >> 02:52:29 UTC 2012 >> root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >> >>> Description: >> After entering and waking up from suspend to ram aka ACPI S3 state, the >> dmesg get flooded with "xhci_interrupt: host controller halted", and my >> USB3.0 device stops working. >> >> (It is a external hard disk drive, and the device node just vanished and >> won't re-appear) >> >> My USB2.0 and 1.x devices however do still work. >> >> It seems that i can provoke the generation of these "xhci_interrupt: host >> controller halted" messages by typing on my USB-2.0-Keyboard or by moving >> my USB-2.0-Mouse. >> >>> How-To-Repeat: >> - Start up FreeBSD >> - Plug in USB3.0 Harddisk >> - It will work. >> - sudo acpiconf -S 3 >> - re-awake the computer >> - ls /dev/ tells you that the harddisk is gone >> - dmesg tells you the "xhci_interrupt: host controller halted" messages. >> - replug the harddisk >> - it still does not work. >> > > If you unplug the harddisk before the suspend, does it work afterwards then? > > --HPS > No, that causes the same problem. I don't even need to attach it: boot freebsd, enter acpi s3, wake up, and then plug in the disk leads to the same problem. i have found out that compiling XHCI has loadable module, and unloading it before suspend and re-loading it afterwards solves the problem. the "xhci_interrupt: host controller halted"-messages don't appear, and i can use my harddisk afterwards. looks like xhci is failing to reinitalize properly after suspend? greetings, flo From owner-freebsd-usb@FreeBSD.ORG Mon Nov 19 19:51:03 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E182441D; Mon, 19 Nov 2012 19:51:03 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id 1292D8FC0C; Mon, 19 Nov 2012 19:51:02 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 349359696; Mon, 19 Nov 2012 20:50:54 +0100 From: Hans Petter Selasky To: Florian Jung Subject: Re: usb/173722: XHCI driver bug after suspend to ram (ACPI S3 mode) Date: Mon, 19 Nov 2012 20:52:35 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <201211191536.qAJFajns006251@red.freebsd.org> <201211191921.13989.hselasky@c2i.net> <50AA86CB.2080007@web.de> In-Reply-To: <50AA86CB.2080007@web.de> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201211192052.35438.hselasky@c2i.net> Cc: freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Nov 2012 19:51:03 -0000 On Monday 19 November 2012 20:21:47 Florian Jung wrote: > Am 19.11.2012 19:21, schrieb Hans Petter Selasky: > > On Monday 19 November 2012 16:36:45 Florian Jung wrote: > >>> Number: 173722 > >>> Category: usb > >>> Synopsis: XHCI driver bug after suspend to ram (ACPI S3 mode) > >>> 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 Nov 19 15:40:00 UTC 2012 > >>> Closed-Date: > >>> Last-Modified: > >>> Originator: Florian Jung > >>> Release: 9.0-RELEASE-p3 > >>> Organization: > >> > >>> Environment: > >> FreeBSD beastie 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 > >> 02:52:29 UTC 2012 > >> root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 > >> > >>> Description: > >> After entering and waking up from suspend to ram aka ACPI S3 state, the > >> dmesg get flooded with "xhci_interrupt: host controller halted", and my > >> USB3.0 device stops working. > >> > >> (It is a external hard disk drive, and the device node just vanished and > >> won't re-appear) > >> > >> My USB2.0 and 1.x devices however do still work. > >> > >> It seems that i can provoke the generation of these "xhci_interrupt: > >> host controller halted" messages by typing on my USB-2.0-Keyboard or by > >> moving my USB-2.0-Mouse. > >> > >>> How-To-Repeat: > >> - Start up FreeBSD > >> - Plug in USB3.0 Harddisk > >> - It will work. > >> - sudo acpiconf -S 3 > >> - re-awake the computer > >> - ls /dev/ tells you that the harddisk is gone > >> - dmesg tells you the "xhci_interrupt: host controller halted" messages. > >> - replug the harddisk > >> - it still does not work. > > > > If you unplug the harddisk before the suspend, does it work afterwards > > then? > > > > --HPS > > No, that causes the same problem. > I don't even need to attach it: boot freebsd, enter acpi s3, wake up, > and then plug in the disk leads to the same problem. > > i have found out that compiling XHCI has loadable module, and unloading > it before suspend and re-loading it afterwards solves the problem. > > the "xhci_interrupt: host controller halted"-messages don't appear, and > i can use my harddisk afterwards. > > looks like xhci is failing to reinitalize properly after suspend? > > greetings, > flo Hi, Do you have a USB 3.0 compatible BIOS? I think we might need to halt the XHCI as part of the resume process. Can you try this patch: diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c index 756b1ed..576ed71 100644 --- a/sys/dev/usb/controller/xhci.c +++ b/sys/dev/usb/controller/xhci.c @@ -578,6 +578,8 @@ xhci_set_hw_power_sleep(struct usb_bus *bus, uint32_t state) xhci_halt_controller(sc); break; case USB_HW_POWER_RESUME: + DPRINTF("Halting the XHCI\n"); + xhci_halt_controller(sc); DPRINTF("Starting the XHCI\n"); xhci_start_controller(sc); break; --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Nov 19 20:00:01 2012 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9C5346BB for ; Mon, 19 Nov 2012 20:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 747268FC14 for ; Mon, 19 Nov 2012 20:00:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qAJK01xd042746 for ; Mon, 19 Nov 2012 20:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qAJK014c042743; Mon, 19 Nov 2012 20:00:01 GMT (envelope-from gnats) Date: Mon, 19 Nov 2012 20:00:01 GMT Message-Id: <201211192000.qAJK014c042743@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Hans Petter Selasky Subject: Re: usb/173722: XHCI driver bug after suspend to ram (ACPI S3 mode) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Nov 2012 20:00:01 -0000 The following reply was made to PR usb/173722; it has been noted by GNATS. From: Hans Petter Selasky To: Florian Jung Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: usb/173722: XHCI driver bug after suspend to ram (ACPI S3 mode) Date: Mon, 19 Nov 2012 20:52:35 +0100 On Monday 19 November 2012 20:21:47 Florian Jung wrote: > Am 19.11.2012 19:21, schrieb Hans Petter Selasky: > > On Monday 19 November 2012 16:36:45 Florian Jung wrote: > >>> Number: 173722 > >>> Category: usb > >>> Synopsis: XHCI driver bug after suspend to ram (ACPI S3 mode) > >>> 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 Nov 19 15:40:00 UTC 2012 > >>> Closed-Date: > >>> Last-Modified: > >>> Originator: Florian Jung > >>> Release: 9.0-RELEASE-p3 > >>> Organization: > >> > >>> Environment: > >> FreeBSD beastie 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 > >> 02:52:29 UTC 2012 > >> root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 > >> > >>> Description: > >> After entering and waking up from suspend to ram aka ACPI S3 state, the > >> dmesg get flooded with "xhci_interrupt: host controller halted", and my > >> USB3.0 device stops working. > >> > >> (It is a external hard disk drive, and the device node just vanished and > >> won't re-appear) > >> > >> My USB2.0 and 1.x devices however do still work. > >> > >> It seems that i can provoke the generation of these "xhci_interrupt: > >> host controller halted" messages by typing on my USB-2.0-Keyboard or by > >> moving my USB-2.0-Mouse. > >> > >>> How-To-Repeat: > >> - Start up FreeBSD > >> - Plug in USB3.0 Harddisk > >> - It will work. > >> - sudo acpiconf -S 3 > >> - re-awake the computer > >> - ls /dev/ tells you that the harddisk is gone > >> - dmesg tells you the "xhci_interrupt: host controller halted" messages. > >> - replug the harddisk > >> - it still does not work. > > > > If you unplug the harddisk before the suspend, does it work afterwards > > then? > > > > --HPS > > No, that causes the same problem. > I don't even need to attach it: boot freebsd, enter acpi s3, wake up, > and then plug in the disk leads to the same problem. > > i have found out that compiling XHCI has loadable module, and unloading > it before suspend and re-loading it afterwards solves the problem. > > the "xhci_interrupt: host controller halted"-messages don't appear, and > i can use my harddisk afterwards. > > looks like xhci is failing to reinitalize properly after suspend? > > greetings, > flo Hi, Do you have a USB 3.0 compatible BIOS? I think we might need to halt the XHCI as part of the resume process. Can you try this patch: diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c index 756b1ed..576ed71 100644 --- a/sys/dev/usb/controller/xhci.c +++ b/sys/dev/usb/controller/xhci.c @@ -578,6 +578,8 @@ xhci_set_hw_power_sleep(struct usb_bus *bus, uint32_t state) xhci_halt_controller(sc); break; case USB_HW_POWER_RESUME: + DPRINTF("Halting the XHCI\n"); + xhci_halt_controller(sc); DPRINTF("Starting the XHCI\n"); xhci_start_controller(sc); break; --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Nov 19 21:07:51 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1FA22BA8; Mon, 19 Nov 2012 21:07:51 +0000 (UTC) (envelope-from florian.a.jung@web.de) Received: from mout.web.de (mout.web.de [212.227.15.4]) by mx1.freebsd.org (Postfix) with ESMTP id B42368FC18; Mon, 19 Nov 2012 21:07:50 +0000 (UTC) Received: from [172.17.0.179] ([131.188.24.12]) by smtp.web.de (mrweb002) with ESMTPSA (Nemesis) id 0Lsy7e-1T7MZX0Qtm-011xUu; Mon, 19 Nov 2012 22:07:13 +0100 Message-ID: <50AA9F80.4000500@web.de> Date: Mon, 19 Nov 2012 22:07:12 +0100 From: Florian Jung User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120726 Iceowl/1.0b1 Icedove/3.0.11 MIME-Version: 1.0 To: Hans Petter Selasky Subject: Re: usb/173722: XHCI driver bug after suspend to ram (ACPI S3 mode) References: <201211191536.qAJFajns006251@red.freebsd.org> <201211191921.13989.hselasky@c2i.net> <50AA86CB.2080007@web.de> <201211192052.35438.hselasky@c2i.net> In-Reply-To: <201211192052.35438.hselasky@c2i.net> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig64F0B7CF7B9CE9B2E0868F3C" X-Provags-ID: V02:K0:UiTqBCtfCNLjkponEKuVmaAgMFL3xm/it8PdVyBwif8 3DOWWFDsV9atpnEQLFvJmtA5iF0aK0Eo2tbCWgwNr4JyO2Sr69 xxWRAzQ6Z+sWSmpEJ0lK9LBy/nWYRLzAkmjSKmhxN1uCEelwZ+ +56L7J6qRMfYskRreeA6OdEW8w81YBhMpPWnPfmitEALrTUz/h +LOuF+FW0tQLQxruxz2nA== Cc: freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Nov 2012 21:07:51 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig64F0B7CF7B9CE9B2E0868F3C Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 19.11.2012 20:52, schrieb Hans Petter Selasky: > On Monday 19 November 2012 20:21:47 Florian Jung wrote: >> Am 19.11.2012 19:21, schrieb Hans Petter Selasky: >>> On Monday 19 November 2012 16:36:45 Florian Jung wrote: >>>>> Number: 173722 >>>>> Category: usb >>>>> Synopsis: XHCI driver bug after suspend to ram (ACPI S3 mode)= >>>>> 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 Nov 19 15:40:00 UTC 2012 >>>>> Closed-Date: >>>>> Last-Modified: >>>>> Originator: Florian Jung >>>>> Release: 9.0-RELEASE-p3 >>>>> Organization: >>>> >>>>> Environment: >>>> FreeBSD beastie 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12= >>>> 02:52:29 UTC 2012 >>>> root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd= 64 >>>> >>>>> Description: >>>> After entering and waking up from suspend to ram aka ACPI S3 state, = the >>>> dmesg get flooded with "xhci_interrupt: host controller halted", and= my >>>> USB3.0 device stops working. >>>> >>>> (It is a external hard disk drive, and the device node just vanished= and >>>> won't re-appear) >>>> >>>> My USB2.0 and 1.x devices however do still work. >>>> >>>> It seems that i can provoke the generation of these "xhci_interrupt:= >>>> host controller halted" messages by typing on my USB-2.0-Keyboard or= by >>>> moving my USB-2.0-Mouse. >>>> >>>>> How-To-Repeat: >>>> - Start up FreeBSD >>>> - Plug in USB3.0 Harddisk >>>> - It will work. >>>> - sudo acpiconf -S 3 >>>> - re-awake the computer >>>> - ls /dev/ tells you that the harddisk is gone >>>> - dmesg tells you the "xhci_interrupt: host controller halted" messa= ges. >>>> - replug the harddisk >>>> - it still does not work. >>> >>> If you unplug the harddisk before the suspend, does it work afterward= s >>> then? >>> >>> --HPS >> >> No, that causes the same problem. >> I don't even need to attach it: boot freebsd, enter acpi s3, wake up, >> and then plug in the disk leads to the same problem. >> >> i have found out that compiling XHCI has loadable module, and unloadin= g >> it before suspend and re-loading it afterwards solves the problem. >> >> the "xhci_interrupt: host controller halted"-messages don't appear, an= d >> i can use my harddisk afterwards. >> >> looks like xhci is failing to reinitalize properly after suspend? >> >> greetings, >> flo >=20 > Hi, >=20 > Do you have a USB 3.0 compatible BIOS? >=20 > I think we might need to halt the XHCI as part of the resume process. C= an you=20 > try this patch: >=20 > diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhc= i.c > index 756b1ed..576ed71 100644 > --- a/sys/dev/usb/controller/xhci.c > +++ b/sys/dev/usb/controller/xhci.c > @@ -578,6 +578,8 @@ xhci_set_hw_power_sleep(struct usb_bus *bus, uint32= _t=20 > state) > xhci_halt_controller(sc); > break; > case USB_HW_POWER_RESUME: > + DPRINTF("Halting the XHCI\n"); > + xhci_halt_controller(sc); > DPRINTF("Starting the XHCI\n"); > xhci_start_controller(sc); > break; >=20 >=20 > --HPS >=20 Hi i have a USB3.0-compatible BIOS. uhm, i am unable to apply this patch. my xhci.c file looks pretty different, there is no xhci_set_hw_power_sleep function, but there are xhci_suspend() and xhci_resume(). both are empty and contain only a /* XXX TODO */ uname -r now reports 9.0-RELEASE-p4, btw, i must have mistyped that :/ i've set up my freebsd system ~2 months ago, and ran freebsd-update fetch install today. that are the kernel sources i'm using. there is a line: __FBSDID("$FreeBSD: release/9.0.0/sys/dev/usb/controller/xhci.c 226904 2011-10-29 12:39:05Z hselasky $"); do i have to download different sources (how?), or did you diff against the wrong kernel tree? (sorry, i'm a freeBSD-newbie ;) ) thanks flo --------------enig64F0B7CF7B9CE9B2E0868F3C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQEcBAEBAgAGBQJQqp+AAAoJEHPd9QK/nPqlkbMH/0rXXl56OCqLswtxO2o0iUg/ /Pw6covi1+z2K8nugwp5oPic2lC73WmdVd2jT2m57LPlGuBqR7XxAaFKtk16us9Y pqOvinKjKcv8q+GKDk7G8TmEn512Nm8/7e9Wsd3BdMLuvx0w0keqExnEbGCsjtao OUb94RdgOUbI8zS2054/moLhmhiwDix4gf2UEVyWSlyAmcWE6zoCpXTD/fK9X/x4 i2PL6cM4wbIIgsDmzfaS6/gv1NVCHqw3ltTrpSFsinT4jQYatgvAqLam0Cp+EqwI c17bkXedl7eS9X4jCj5G8vfR7OOu3xQtN3FUscpJN+pgKCpenD86/o3pEI4n+ZQ= =ob+r -----END PGP SIGNATURE----- --------------enig64F0B7CF7B9CE9B2E0868F3C-- From owner-freebsd-usb@FreeBSD.ORG Mon Nov 19 21:10:02 2012 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1FD40E01 for ; Mon, 19 Nov 2012 21:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id EF0968FC12 for ; Mon, 19 Nov 2012 21:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qAJLA1Ma046178 for ; Mon, 19 Nov 2012 21:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qAJLA1A5046177; Mon, 19 Nov 2012 21:10:01 GMT (envelope-from gnats) Date: Mon, 19 Nov 2012 21:10:01 GMT Message-Id: <201211192110.qAJLA1A5046177@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Florian Jung Subject: Re: usb/173722: XHCI driver bug after suspend to ram (ACPI S3 mode) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Florian Jung List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Nov 2012 21:10:02 -0000 The following reply was made to PR usb/173722; it has been noted by GNATS. From: Florian Jung To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: usb/173722: XHCI driver bug after suspend to ram (ACPI S3 mode) Date: Mon, 19 Nov 2012 22:07:12 +0100 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig64F0B7CF7B9CE9B2E0868F3C Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 19.11.2012 20:52, schrieb Hans Petter Selasky: > On Monday 19 November 2012 20:21:47 Florian Jung wrote: >> Am 19.11.2012 19:21, schrieb Hans Petter Selasky: >>> On Monday 19 November 2012 16:36:45 Florian Jung wrote: >>>>> Number: 173722 >>>>> Category: usb >>>>> Synopsis: XHCI driver bug after suspend to ram (ACPI S3 mode)= >>>>> 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 Nov 19 15:40:00 UTC 2012 >>>>> Closed-Date: >>>>> Last-Modified: >>>>> Originator: Florian Jung >>>>> Release: 9.0-RELEASE-p3 >>>>> Organization: >>>> >>>>> Environment: >>>> FreeBSD beastie 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12= >>>> 02:52:29 UTC 2012 >>>> root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd= 64 >>>> >>>>> Description: >>>> After entering and waking up from suspend to ram aka ACPI S3 state, = the >>>> dmesg get flooded with "xhci_interrupt: host controller halted", and= my >>>> USB3.0 device stops working. >>>> >>>> (It is a external hard disk drive, and the device node just vanished= and >>>> won't re-appear) >>>> >>>> My USB2.0 and 1.x devices however do still work. >>>> >>>> It seems that i can provoke the generation of these "xhci_interrupt:= >>>> host controller halted" messages by typing on my USB-2.0-Keyboard or= by >>>> moving my USB-2.0-Mouse. >>>> >>>>> How-To-Repeat: >>>> - Start up FreeBSD >>>> - Plug in USB3.0 Harddisk >>>> - It will work. >>>> - sudo acpiconf -S 3 >>>> - re-awake the computer >>>> - ls /dev/ tells you that the harddisk is gone >>>> - dmesg tells you the "xhci_interrupt: host controller halted" messa= ges. >>>> - replug the harddisk >>>> - it still does not work. >>> >>> If you unplug the harddisk before the suspend, does it work afterward= s >>> then? >>> >>> --HPS >> >> No, that causes the same problem. >> I don't even need to attach it: boot freebsd, enter acpi s3, wake up, >> and then plug in the disk leads to the same problem. >> >> i have found out that compiling XHCI has loadable module, and unloadin= g >> it before suspend and re-loading it afterwards solves the problem. >> >> the "xhci_interrupt: host controller halted"-messages don't appear, an= d >> i can use my harddisk afterwards. >> >> looks like xhci is failing to reinitalize properly after suspend? >> >> greetings, >> flo >=20 > Hi, >=20 > Do you have a USB 3.0 compatible BIOS? >=20 > I think we might need to halt the XHCI as part of the resume process. C= an you=20 > try this patch: >=20 > diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhc= i.c > index 756b1ed..576ed71 100644 > --- a/sys/dev/usb/controller/xhci.c > +++ b/sys/dev/usb/controller/xhci.c > @@ -578,6 +578,8 @@ xhci_set_hw_power_sleep(struct usb_bus *bus, uint32= _t=20 > state) > xhci_halt_controller(sc); > break; > case USB_HW_POWER_RESUME: > + DPRINTF("Halting the XHCI\n"); > + xhci_halt_controller(sc); > DPRINTF("Starting the XHCI\n"); > xhci_start_controller(sc); > break; >=20 >=20 > --HPS >=20 Hi i have a USB3.0-compatible BIOS. uhm, i am unable to apply this patch. my xhci.c file looks pretty different, there is no xhci_set_hw_power_sleep function, but there are xhci_suspend() and xhci_resume(). both are empty and contain only a /* XXX TODO */ uname -r now reports 9.0-RELEASE-p4, btw, i must have mistyped that :/ i've set up my freebsd system ~2 months ago, and ran freebsd-update fetch install today. that are the kernel sources i'm using. there is a line: __FBSDID("$FreeBSD: release/9.0.0/sys/dev/usb/controller/xhci.c 226904 2011-10-29 12:39:05Z hselasky $"); do i have to download different sources (how?), or did you diff against the wrong kernel tree? (sorry, i'm a freeBSD-newbie ;) ) thanks flo --------------enig64F0B7CF7B9CE9B2E0868F3C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQEcBAEBAgAGBQJQqp+AAAoJEHPd9QK/nPqlkbMH/0rXXl56OCqLswtxO2o0iUg/ /Pw6covi1+z2K8nugwp5oPic2lC73WmdVd2jT2m57LPlGuBqR7XxAaFKtk16us9Y pqOvinKjKcv8q+GKDk7G8TmEn512Nm8/7e9Wsd3BdMLuvx0w0keqExnEbGCsjtao OUb94RdgOUbI8zS2054/moLhmhiwDix4gf2UEVyWSlyAmcWE6zoCpXTD/fK9X/x4 i2PL6cM4wbIIgsDmzfaS6/gv1NVCHqw3ltTrpSFsinT4jQYatgvAqLam0Cp+EqwI c17bkXedl7eS9X4jCj5G8vfR7OOu3xQtN3FUscpJN+pgKCpenD86/o3pEI4n+ZQ= =ob+r -----END PGP SIGNATURE----- --------------enig64F0B7CF7B9CE9B2E0868F3C-- From owner-freebsd-usb@FreeBSD.ORG Tue Nov 20 02:57:50 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EDC7A4FF for ; Tue, 20 Nov 2012 02:57:49 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by mx1.freebsd.org (Postfix) with ESMTP id B085D8FC12 for ; Tue, 20 Nov 2012 02:57:49 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id s9so1692915iec.13 for ; Mon, 19 Nov 2012 18:57:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=ad7b5dOLuI0rBrjg/L/YdHWg/BbjhewOaDaznyqfVGI=; b=AwH7jviFFRgYVOmbE7gDA5qRG0aZCDhG+Ib/9qQAOdtSg1qEbhhDMOP1PUmxWC0Ltu h1aucrHxw5f7SDG7NPza0J8H0oymKTtxxhA1GGgoLgw8PSJOp9OaDLS5GPgJPwdi50/o pq6mreWRNaoMNTT49+ez9HUwQ26CTmgJS3HseIY+oxkrTyyqz7o4ArN5OAzJ9JKSzpU/ L69FSx5zIceSbzpM/NgklQSEdAxRhLcv2yFIK/WNL/IPUXz3sbu1F++/kkNPqiS0Ye36 h6WEx4L9cU0QK/629bg3CzUBzUI3+RO1B2t41Xptu9R2j2T0JJQLt3y/5LrCOFCzJlQa F9BA== Received: by 10.50.173.37 with SMTP id bh5mr8798427igc.45.1353380268775; Mon, 19 Nov 2012 18:57:48 -0800 (PST) Received: from oddish ([66.11.160.25]) by mx.google.com with ESMTPS id gs6sm9391544igc.11.2012.11.19.18.57.47 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Nov 2012 18:57:48 -0800 (PST) Date: Mon, 19 Nov 2012 21:57:22 -0500 From: Mark Johnston To: freebsd-usb@freebsd.org Subject: [patch] fix uplcom(4) clear stall logic for PL2303HX Message-ID: <20121120025722.GA3338@oddish> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Nov 2012 02:57:50 -0000 Hello all, I recently bought a PL-2303 USB to serial converter (VID 0x067b, DID 0x2303) to use with an ARM board. When I start cu(1) and power on the board no messages show up, and if I enter any input, cu exits without printing anything and uplcom detaches and reinitializes itself. No error messages are printed by the kernel - all I see is that uplcom(4) disconnects and reattaches. After some debugging I found that when the USB stack sends a ENDPOINT_HALT clear to the OUT bulk endpoint, the hw seems to respond with an endpoint stalled error, and after that, the uplcom callbacks are called with error set to USB_ERROR_CANCELLED. I looked at the Linux driver for this device and found the following code in pl2303.c: if (priv->type != HX) { usb_clear_halt(serial->dev, port->write_urb->pipe); usb_clear_halt(serial->dev, port->read_urb->pipe); } else { /* reset upstream data pipes */ pl2303_vendor_write(8, 0, serial); pl2303_vendor_write(9, 0, serial); } Unfortunately, I couldn't find any datasheets which indicate what these vendor-specific commands mean. However I ended up with the patch below, and now the device works perfectly. :) In particular, it seems that we don't want to send a clear ENDPOINT_HALT request to the HX variant of the device, which is what I have. I noticed that the device still seems to work if I omit the vendor commands, and being a total USB newbie I thought I'd ask the following questions: 1. What exactly is the purpose of clearing ENDPOINT_HALT when a userspace program attaches to a device? Is it just to make sure that the device fw is in some known good state before starting to transmit data? 2. uplcom(4) tries to clear any stalls after an error in its r/w and intr callbacks. Is there some way I can trigger an error so that I can test and fix that code too? I'm happy to test alternative fixes, provide debug output, etc., etc. Thanks, -Mark diff --git a/sys/dev/usb/serial/uplcom.c b/sys/dev/usb/serial/uplcom.c index 4549bad..4d9ac32 100644 --- a/sys/dev/usb/serial/uplcom.c +++ b/sys/dev/usb/serial/uplcom.c @@ -433,10 +433,18 @@ uplcom_attach(device_t dev) goto detach; } /* clear stall at first run */ - mtx_lock(&sc->sc_mtx); - usbd_xfer_set_stall(sc->sc_xfer[UPLCOM_BULK_DT_WR]); - usbd_xfer_set_stall(sc->sc_xfer[UPLCOM_BULK_DT_RD]); - mtx_unlock(&sc->sc_mtx); + if (sc->sc_chiptype != TYPE_PL2303HX) { + mtx_lock(&sc->sc_mtx); + usbd_xfer_set_stall(sc->sc_xfer[UPLCOM_BULK_DT_WR]); + usbd_xfer_set_stall(sc->sc_xfer[UPLCOM_BULK_DT_RD]); + mtx_unlock(&sc->sc_mtx); + } else { + if (uplcom_pl2303_do(sc->sc_udev, UT_WRITE_VENDOR_DEVICE, + UPLCOM_SET_REQUEST, 8, 0, 0) || + uplcom_pl2303_do(sc->sc_udev, UT_WRITE_VENDOR_DEVICE, + UPLCOM_SET_REQUEST, 9, 0, 0)) + goto detach; + } error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, &uplcom_callback, &sc->sc_mtx); @@ -555,9 +563,6 @@ uplcom_pl2303_init(struct usb_device *udev, uint8_t chiptype) if (err) return (EIO); - if (uplcom_pl2303_do(udev, UT_WRITE_VENDOR_DEVICE, UPLCOM_SET_REQUEST, 8, 0, 0) - || uplcom_pl2303_do(udev, UT_WRITE_VENDOR_DEVICE, UPLCOM_SET_REQUEST, 9, 0, 0)) - return (EIO); return (0); } From owner-freebsd-usb@FreeBSD.ORG Tue Nov 20 07:13:42 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A1A6E752 for ; Tue, 20 Nov 2012 07:13:42 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.c2i.net [212.247.154.226]) by mx1.freebsd.org (Postfix) with ESMTP id 29AEF8FC12 for ; Tue, 20 Nov 2012 07:13:41 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 347756475; Tue, 20 Nov 2012 08:13:39 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: [patch] fix uplcom(4) clear stall logic for PL2303HX Date: Tue, 20 Nov 2012 08:15:19 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <20121120025722.GA3338@oddish> In-Reply-To: <20121120025722.GA3338@oddish> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201211200815.19192.hselasky@c2i.net> Cc: Mark Johnston X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Nov 2012 07:13:42 -0000 On Tuesday 20 November 2012 03:57:22 Mark Johnston wrote: > Hello all, > > I recently bought a PL-2303 USB to serial converter (VID 0x067b, DID > 0x2303) to use with an ARM board. When I start cu(1) and power on the > board no messages show up, and if I enter any input, cu exits without > printing anything and uplcom detaches and reinitializes itself. No error > messages are printed by the kernel - all I see is that uplcom(4) > disconnects and reattaches. > > After some debugging I found that when the USB stack sends a > ENDPOINT_HALT clear to the OUT bulk endpoint, the hw seems to respond > with an endpoint stalled error, and after that, the uplcom callbacks are > called with error set to USB_ERROR_CANCELLED. I looked at the Linux > driver for this device and found the following code in pl2303.c: > > if (priv->type != HX) { > usb_clear_halt(serial->dev, port->write_urb->pipe); > usb_clear_halt(serial->dev, port->read_urb->pipe); > } else { > /* reset upstream data pipes */ > pl2303_vendor_write(8, 0, serial); > pl2303_vendor_write(9, 0, serial); > } > > Unfortunately, I couldn't find any datasheets which indicate what these > vendor-specific commands mean. However I ended up with the patch below, > and now the device works perfectly. :) > In particular, it seems that we don't want to send a clear ENDPOINT_HALT > request to the HX variant of the device, which is what I have. > > I noticed that the device still seems to work if I omit the vendor > commands, and being a total USB newbie I thought I'd ask the following > questions: > > 1. What exactly is the purpose of clearing ENDPOINT_HALT when a > userspace program attaches to a device? Is it just to make sure that the > device fw is in some known good state before starting to transmit data? Hi, The purpose is to ensure that the so-called data toggle is reset to zero. If a packet is sent using the wrong data-toggle, it will simply get dropped. This is not so important for Serial devices, but for other device classes it is. If a USB device does not support clear-stall, it is not complying with the basics of the USB standards defined at usb.org, and I think it is not USB certified either. > > 2. uplcom(4) tries to clear any stalls after an error in its r/w and > intr callbacks. Is there some way I can trigger an error so that I can > test and fix that code too? > Does the device choke on clear-stall? You can test that simply by adding a sysctl to the code, which you set to make the code go to the error case upon transfer completion. I suggest you look at storage/umass.c and the reset states for an example on how to make a non-default asynchronous control transfer. When you have a patch I can commit it. --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Nov 21 08:43:09 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F2ECC55D for ; Wed, 21 Nov 2012 08:43:08 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-ia0-f182.google.com (mail-ia0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id B475B8FC15 for ; Wed, 21 Nov 2012 08:43:08 +0000 (UTC) Received: by mail-ia0-f182.google.com with SMTP id x2so6182591iad.13 for ; Wed, 21 Nov 2012 00:43:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=FETzZJ+JxFUqJZRyjPAzUtK17fcHJxZq6S1fZEdXjpY=; b=iYBtfYGG7Q6Sneetgi6cyMw3SpiO81K1AGGiQ9o1/GprFjZ09XLoT7EoK03aNUvmtl 9+2KDUhvv6Zo+6uJfHuvrMik4CrqjV9vPI0Ux743YcezC6iIFqSM5aVoiP9gcPRuUusK EDXS12+Z6Vjku6Uwzf0dLyhoinUSue9yw1+vN0+5KdPKfk4ppN7WtoFWFf5J9LDDCnav tf/HX12jr7uc1gcTNe1kGx5NpCla00XaQbn+ZikKphr6O8fj9dkRyxtviEG3wupdgXF5 ayIAt7dUwwd4Ttsx93NRODUWYtMqMdbs5AUNaKsndys+wKpDPZclLAdrYE+ImO3rpKil /qUg== Received: by 10.43.50.197 with SMTP id vf5mr16515973icb.13.1353487387703; Wed, 21 Nov 2012 00:43:07 -0800 (PST) Received: from oddish ([66.11.160.25]) by mx.google.com with ESMTPS id wm10sm11520788igc.2.2012.11.21.00.43.06 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Nov 2012 00:43:06 -0800 (PST) Date: Wed, 21 Nov 2012 03:43:02 -0500 From: Mark Johnston To: Hans Petter Selasky Subject: Re: [patch] fix uplcom(4) clear stall logic for PL2303HX Message-ID: <20121121084302.GA4136@oddish> References: <20121120025722.GA3338@oddish> <201211200815.19192.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201211200815.19192.hselasky@c2i.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Nov 2012 08:43:09 -0000 On Tue, Nov 20, 2012 at 08:15:19AM +0100, Hans Petter Selasky wrote: > On Tuesday 20 November 2012 03:57:22 Mark Johnston wrote: > > > > 1. What exactly is the purpose of clearing ENDPOINT_HALT when a > > userspace program attaches to a device? Is it just to make sure that the > > device fw is in some known good state before starting to transmit data? > > The purpose is to ensure that the so-called data toggle is reset to zero. If a > packet is sent using the wrong data-toggle, it will simply get dropped. This > is not so important for Serial devices, but for other device classes it is. > > If a USB device does not support clear-stall, it is not complying with the > basics of the USB standards defined at usb.org, and I think it is not USB > certified either. That seems to be the case unfortunately, i.e. the device is responding with USB_ERROR_STALLED when it receives a clear stall request over the intr or bulk transfers. > > > > > 2. uplcom(4) tries to clear any stalls after an error in its r/w and > > intr callbacks. Is there some way I can trigger an error so that I can > > test and fix that code too? > > > > Does the device choke on clear-stall? > > You can test that simply by adding a sysctl to the code, which you set to make > the code go to the error case upon transfer completion. > > I suggest you look at storage/umass.c and the reset states for an example on > how to make a non-default asynchronous control transfer. > > When you have a patch I can commit it. > It doesn't seem like the vendor-specific commands help at all in clearing errors. I spent some time playing around with the patch at [1], which adds some reset callbacks that submit the vendor commands, but I couldn't get the device to recover - I just get more STALLED errors back. Looking at the Linux driver (pl2303) doesn't reveal anything helpful - I don't really see any kind of error-handling code. At any rate, my original patch below fixes my problems. I don't like the fact that the error handling is broken, but at least everything (seems) to clean itself up nicely in the error case - the driver just disconnects and reattaches. Thanks, -Mark [1] https://www.student.cs.uwaterloo.ca/~m6johnst/patch/uplcom_reset_logic.patch diff --git a/sys/dev/usb/serial/uplcom.c b/sys/dev/usb/serial/uplcom.c index 4549bad..4998c3f 100644 --- a/sys/dev/usb/serial/uplcom.c +++ b/sys/dev/usb/serial/uplcom.c @@ -433,10 +433,19 @@ uplcom_attach(device_t dev) goto detach; } /* clear stall at first run */ - mtx_lock(&sc->sc_mtx); - usbd_xfer_set_stall(sc->sc_xfer[UPLCOM_BULK_DT_WR]); - usbd_xfer_set_stall(sc->sc_xfer[UPLCOM_BULK_DT_RD]); - mtx_unlock(&sc->sc_mtx); + if (sc->sc_chiptype != TYPE_PL2303HX) { + /* HX variants seem to lock up after a clear stall request. */ + mtx_lock(&sc->sc_mtx); + usbd_xfer_set_stall(sc->sc_xfer[UPLCOM_BULK_DT_WR]); + usbd_xfer_set_stall(sc->sc_xfer[UPLCOM_BULK_DT_RD]); + mtx_unlock(&sc->sc_mtx); + } else { + if (uplcom_pl2303_do(sc->sc_udev, UT_WRITE_VENDOR_DEVICE, + UPLCOM_SET_REQUEST, 8, 0, 0) || + uplcom_pl2303_do(sc->sc_udev, UT_WRITE_VENDOR_DEVICE, + UPLCOM_SET_REQUEST, 9, 0, 0)) + goto detach; + } error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, &uplcom_callback, &sc->sc_mtx); @@ -555,9 +564,6 @@ uplcom_pl2303_init(struct usb_device *udev, uint8_t chiptype) if (err) return (EIO); - if (uplcom_pl2303_do(udev, UT_WRITE_VENDOR_DEVICE, UPLCOM_SET_REQUEST, 8, 0, 0) - || uplcom_pl2303_do(udev, UT_WRITE_VENDOR_DEVICE, UPLCOM_SET_REQUEST, 9, 0, 0)) - return (EIO); return (0); } From owner-freebsd-usb@FreeBSD.ORG Wed Nov 21 22:10:53 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 63155AA9 for ; Wed, 21 Nov 2012 22:10:53 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id D98118FC1B for ; Wed, 21 Nov 2012 22:10:51 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 343451833; Wed, 21 Nov 2012 23:05:42 +0100 From: Hans Petter Selasky To: Mark Johnston Subject: Re: [patch] fix uplcom(4) clear stall logic for PL2303HX Date: Wed, 21 Nov 2012 23:07:20 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <20121120025722.GA3338@oddish> <201211200815.19192.hselasky@c2i.net> <20121121084302.GA4136@oddish> In-Reply-To: <20121121084302.GA4136@oddish> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201211212307.20224.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Nov 2012 22:10:53 -0000 On Wednesday 21 November 2012 09:43:02 Mark Johnston wrote: > Mark Johnston Here you go: http://svnweb.freebsd.org/changeset/base/243380 Please test and verify. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Nov 22 05:09:39 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E09AD6F for ; Thu, 22 Nov 2012 05:09:39 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9F83D8FC12 for ; Thu, 22 Nov 2012 05:09:39 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id s9so6237506iec.13 for ; Wed, 21 Nov 2012 21:09:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=N6twd3RATIgSKXazXtDeHwzxdKGQg0/xodeOTlpyTTs=; b=Dk8kMfuGCHeBzJsOMwZGxknCplmIfHkwPvmg9GxE4xuzppgk9mwt0G/T7etmjrlEXE UOUKobXrRqjx7ftcFuP58wpPHZnUm5jFmklr/hHZnaGSbd22MFAoD/FmiNyRkdYC2QCj MP3xvzIy9XocZjL9uYcp0EbZBu/c3yIFRx8FUU/y6SKv5BnENllLbZ2IQC2P8J7vU71P QvPmM/+fzsQNw8SpTKdFYxIMouZWZiG/ONrRMA0hloyXa4I2xhDJ0DDplbwyAqo4BYg/ iL4YgBLHzkv6xBPRzNoWdtVwJG6dZAnXU8sjUiJGR3C3MK9MPQx0ojAplaCt7yGJ0BMl qr3w== Received: by 10.50.209.65 with SMTP id mk1mr2008700igc.8.1353560979174; Wed, 21 Nov 2012 21:09:39 -0800 (PST) Received: from oddish ([66.11.160.25]) by mx.google.com with ESMTPS id x7sm1544936igk.8.2012.11.21.21.09.37 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Nov 2012 21:09:38 -0800 (PST) Date: Thu, 22 Nov 2012 00:09:19 -0500 From: Mark Johnston To: Hans Petter Selasky Subject: Re: [patch] fix uplcom(4) clear stall logic for PL2303HX Message-ID: <20121122050919.GA1683@oddish> References: <20121120025722.GA3338@oddish> <201211200815.19192.hselasky@c2i.net> <20121121084302.GA4136@oddish> <201211212307.20224.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201211212307.20224.hselasky@c2i.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Nov 2012 05:09:40 -0000 On Wed, Nov 21, 2012 at 11:07:20PM +0100, Hans Petter Selasky wrote: > Here you go: > > http://svnweb.freebsd.org/changeset/base/243380 > > Please test and verify. > > --HPS Yep, it's working. Thanks a lot! When I was debugging the problem I noticed the UQ_OPEN_CLEARSTALL quirk, and then later discovered that it no longer has any effect. Is there any reason for keeping it around? Or can it be removed (patch below)? Thanks, -Mark diff --git a/share/man/man4/usb_quirk.4 b/share/man/man4/usb_quirk.4 index 65deafa..f017e01 100644 --- a/share/man/man4/usb_quirk.4 +++ b/share/man/man4/usb_quirk.4 @@ -76,8 +76,6 @@ mouse sends an unknown leading byte mouse has Z-axis reversed .It UQ_NO_STRINGS string descriptors are broken -.It UQ_OPEN_CLEARSTALL -device needs clear endpoint stall .It UQ_POWER_CLAIM hub lies about power status .It UQ_SPUR_BUT_UP diff --git a/sys/dev/usb/quirk/usb_quirk.c b/sys/dev/usb/quirk/usb_quirk.c index fe15a0a..8f35584 100644 --- a/sys/dev/usb/quirk/usb_quirk.c +++ b/sys/dev/usb/quirk/usb_quirk.c @@ -508,7 +508,6 @@ static const char *usb_quirk_str[USB_QUIRK_MAX] = { [UQ_MS_LEADING_BYTE] = "UQ_MS_LEADING_BYTE", [UQ_MS_REVZ] = "UQ_MS_REVZ", [UQ_NO_STRINGS] = "UQ_NO_STRINGS", - [UQ_OPEN_CLEARSTALL] = "UQ_OPEN_CLEARSTALL", [UQ_POWER_CLAIM] = "UQ_POWER_CLAIM", [UQ_SPUR_BUT_UP] = "UQ_SPUR_BUT_UP", [UQ_SWAP_UNICODE] = "UQ_SWAP_UNICODE", diff --git a/sys/dev/usb/quirk/usb_quirk.h b/sys/dev/usb/quirk/usb_quirk.h index 32a60a1..15d5f15 100644 --- a/sys/dev/usb/quirk/usb_quirk.h +++ b/sys/dev/usb/quirk/usb_quirk.h @@ -54,7 +54,6 @@ enum { UQ_MS_LEADING_BYTE, /* mouse sends an unknown leading byte */ UQ_MS_REVZ, /* mouse has Z-axis reversed */ UQ_NO_STRINGS, /* string descriptors are broken */ - UQ_OPEN_CLEARSTALL, /* device needs clear endpoint stall */ UQ_POWER_CLAIM, /* hub lies about power status */ UQ_SPUR_BUT_UP, /* spurious mouse button up events */ UQ_SWAP_UNICODE, /* has some Unicode strings swapped */ From owner-freebsd-usb@FreeBSD.ORG Thu Nov 22 07:50:01 2012 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 78EB9C2E for ; Thu, 22 Nov 2012 07:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 5C1F88FC14 for ; Thu, 22 Nov 2012 07:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qAM7o1ds076272 for ; Thu, 22 Nov 2012 07:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qAM7o10u076266; Thu, 22 Nov 2012 07:50:01 GMT (envelope-from gnats) Date: Thu, 22 Nov 2012 07:50:01 GMT Message-Id: <201211220750.qAM7o10u076266@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: "Victor van Vlaardingen" Subject: Re: usb/172199: high interrupts load xhci X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Victor van Vlaardingen List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Nov 2012 07:50:01 -0000 The following reply was made to PR usb/172199; it has been noted by GNATS. From: "Victor van Vlaardingen" To: , Cc: Subject: Re: usb/172199: high interrupts load xhci Date: Thu, 22 Nov 2012 08:09:03 +0100 This is a multi-part message in MIME format. ------=_NextPart_000_0224_01CDC888.A290ABB0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable >Hi, > >Can you collect some dmesg? > >sysctl hw.usb.xhci.debug=3D16 ; sleep 1; sysctl hw.usb.xhci.debug=3D0 > >--HPS Hi, I have the same symptom, but with plugging and unplugging a monitor and = also just toggling the monitor's power. With the high interrupt happening I did your dmesg test. I got a whole = bunch of : xhci_interrupt: real interrupt (sts=3D0x00000000, iman=3D0x00000002) I have seen this on a : Gigabyte GA-Z77-DS3H (with Core i3-2120T) Intel DH77KC (same Core i3-2120T) I'm using the intergrated graphics on the cpu. It doesn't matter whether the DSUB (only on the GA) or DVI port is used. Currently I'm on the Intel board and its interrupt usage reported by = systat -vmstat is : Interrupts 159k total atkbd0 1 158k xhci0 ehci 4 em1 17 56 ath0 19 2 ehci1 23 1127 cpu0:timer 2 em0 256 35 ahci0 257 16 cpu1:timer 10 cpu3:timer 22 cpu2:timer Some more info about the system follows : [root@bsd /]# uptime 6:57AM up 11:28, 1 user, load averages: 0.51, 0.38, 0.23 [root@bsd /]# uname -a FreeBSD bsd.hostname.here 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue = Jun 12 02:52:29 UTC 2012 = root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 Note that I saw the same thing when I tried 9.1RC3 amd64 [root@bsd /]# dmesg Copyright (c) 1992-2012 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 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC = amd64 CPU: Intel(R) Core(TM) i3-2120T CPU @ 2.60GHz (2594.16-MHz K8-class CPU) Origin =3D "GenuineIntel" Id =3D 0x206a7 Family =3D 6 Model =3D 2a = Stepping =3D 7 = Features=3D0xbfebfbff = Features2=3D0x159ae3bf AMD Features=3D0x28100800 AMD Features2=3D0x1 TSC: P-state invariant, performance statistics real memory =3D 17179869184 (16384 MB) avail memory =3D 16423026688 (15662 MB) Event timer "LAPIC" quality 600 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 SMT threads cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 ACPI Warning: FADT (revision 5) is longer than ACPI 2.0 version, = truncating length 268 to 244 (20110527/tbfadt-320) ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: Power Button (fixed) acpi0: reservation of 67, 1 (4) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 cpu0: on acpi0 cpu1: on acpi0 cpu2: on acpi0 cpu3: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 vgapci0: port 0xf000-0xf03f mem = 0xf7800000-0xf7bfffff,0xe0000000-0xefffffff irq 16 at device 2.0 on pci0 xhci0: mem 0xf7d20000-0xf7d2ffff irq = 16 at device 20.0 on pci0 xhci0: 32 byte context size. usbus0 on xhci0 pci0: at device 22.0 (no driver attached) em0: port 0xf080-0xf09f mem = 0xf7d00000-0xf7d1ffff,0xf7d35000-0xf7d35fff irq 20 at device 25.0 on = pci0 em0: Using an MSI interrupt em0: Ethernet address: e8:40:f2:ab:e1:13 ehci0: mem 0xf7d34000-0xf7d343ff irq = 16 at device 26.0 on pci0 usbus1: EHCI version 1.0 usbus1: on ehci0 pcib1: irq 16 at device 28.0 on pci0 pci1: on pcib1 pcib2: irq 19 at device 28.7 on pci0 pci2: on pcib2 pcib3: irq 19 at device 0.0 on pci2 pci3: on pcib3 ath0: mem 0xf7c60000-0xf7c6ffff irq 19 at device 0.0 on = pci3 ath0: AR2413 mac 7.9 RF2413 phy 4.5 em1: port = 0xe000-0xe03f mem 0xf7c40000-0xf7c5ffff,0xf7c20000-0xf7c3ffff irq 17 at = device 2.0 on pci3 em1: Ethernet address: 00:1b:21:29:a6:4c ehci1: mem 0xf7d33000-0xf7d333ff irq = 23 at device 29.0 on pci0 usbus2: EHCI version 1.0 usbus2: on ehci1 isab0: at device 31.0 on pci0 isa0: on isab0 ahci0: port = 0xf0d0-0xf0d7,0xf0c0-0xf0c3,0xf0b0-0xf0b7,0xf0a0-0xf0a3,0xf060-0xf07f = mem 0xf7d32000-0xf7d327ff irq 19 at device 31.2 on pci0 ahci0: AHCI v1.30 with 6 6Gbps ports, Port Multiplier not supported ahcich0: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 ahcich2: at channel 5 on ahci0 pci0: at device 31.3 (no driver attached) acpi_button0: on acpi0 acpi_tz0: on acpi0 acpi_tz1: on acpi0 hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 550 Event timer "HPET1" frequency 14318180 Hz quality 440 Event timer "HPET2" frequency 14318180 Hz quality 440 Event timer "HPET3" frequency 14318180 Hz quality 440 Event timer "HPET4" frequency 14318180 Hz quality 440 atrtc0: port 0x70-0x77 irq 8 on acpi0 atrtc0: Warning: Couldn't map I/O. Event timer "RTC" frequency 32768 Hz quality 0 attimer0: port 0x40-0x43,0x50-0x53 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on = isa0 ppc0: cannot reserve I/O port range coretemp0: on cpu0 est0: on cpu0 coretemp1: on cpu1 est1: on cpu1 coretemp2: on cpu2 est2: on cpu2 coretemp3: on cpu3 est3: on cpu3 ZFS filesystem version 5 ZFS storage pool version 28 Timecounters tick every 1.000 msec usbus0: 5.0Gbps Super Speed USB v3.0 usbus1: 480Mbps High Speed USB v2.0 usbus2: 480Mbps High Speed USB v2.0 ugen0.1: <0x8086> at usbus0 uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on = usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ATA-8 SATA 3.x device ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) ada0: Previously was known as ad4 ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 ada1: ATA-8 SATA 3.x device ada1: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) ada1: Command Queueing enabled ada1: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) ada1: Previously was known as ad6 SMP: AP CPU #1 Launched! SMP: AP CPU #3 Launched! SMP: AP CPU #2 Launched! Timecounter "TSC-low" frequency 10133456 Hz quality 1000 Root mount waiting for: usbus2 usbus1 usbus0 uhub0: 8 ports with 8 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered Root mount waiting for: usbus2 usbus1 ugen1.2: at usbus1 uhub3: = on usbus1 ugen2.2: at usbus2 uhub4: = on usbus2 Root mount waiting for: usbus2 usbus1 uhub3: 6 ports with 6 removable, self powered uhub4: 8 ports with 8 removable, self powered Trying to mount root from zfs:zroot []... [root@bsd /]# pciconf -lv vgapci0@pci0:0:2:0: class=3D0x030000 card=3D0x20318086 = chip=3D0x01028086 rev=3D0x09 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D '2nd Generation Core Processor Family Integrated = Graphics Controller' class =3D display subclass =3D VGA xhci0@pci0:0:20:0: class=3D0x0c0330 card=3D0x20318086 = chip=3D0x1e318086 rev=3D0x04 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D 'Panther Point USB xHCI Host Controller' class =3D serial bus subclass =3D USB -Victor ------=_NextPart_000_0224_01CDC888.A290ABB0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
>Hi,
>
>Can you collect = some=20 dmesg?
>
>sysctl hw.usb.xhci.debug=3D16 ; sleep 1; sysctl=20 hw.usb.xhci.debug=3D0
>
>--HPS
 
Hi,
 
I have the same symptom, but with = plugging and=20 unplugging a monitor and also just toggling the monitor's=20 power.
With the high interrupt happening I did = your dmesg=20 test. I got a whole bunch of :
xhci_interrupt: real interrupt = (sts=3D0x00000000,=20 iman=3D0x00000002)
 
I have seen this on a :
Gigabyte GA-Z77-DS3H (with Core=20 i3-2120T)
Intel DH77KC (same Core = i3-2120T)
 
I'm using the intergrated graphics on = the=20 cpu.
It doesn't matter whether the DSUB = (only on the GA)=20 or DVI port is used.
 
Currently I'm on the Intel board and = its interrupt=20 usage reported by systat -vmstat is :
Interrupts
159k total
atkbd0 = 1
158k xhci0=20 ehci
4 em1 17
56 ath0 19
2 ehci1 23
1127 cpu0:timer
2 em0 = 256
35 ahci0 257
16 cpu1:timer
10 cpu3:timer
22=20 cpu2:timer
 
Some more info about the system = follows=20 :
 
[root@bsd /]# = uptime
 6:57AM  up=20 11:28, 1 user, load averages: 0.51, 0.38, 0.23
 
[root@bsd /]# uname -a
FreeBSD = bsd.hostname.here=20 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC=20 2012     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC =20 amd64
 
Note that I saw the same thing when I = tried 9.1RC3=20 amd64
 
 
[root@bsd /]# dmesg
Copyright (c) = 1992-2012 The=20 FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, = 1991,=20 1992, 1993, 1994
        The = Regents of=20 the University of California. All rights reserved.
FreeBSD is a = registered=20 trademark of The FreeBSD Foundation.
FreeBSD 9.0-RELEASE-p3 #0: Tue = Jun 12=20 02:52:29 UTC 2012
    root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC=20 amd64
CPU: Intel(R) Core(TM) i3-2120T CPU @ 2.60GHz (2594.16-MHz = K8-class=20 CPU)
  Origin =3D "GenuineIntel"  Id =3D 0x206a7  = Family =3D 6 =20 Model =3D 2a  Stepping =3D 7
 =20 Features=3D0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR= ,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE&= gt;
 =20 Features2=3D0x159ae3bf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SS= SE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,TSCDLT,XSAVE,AVX>
&nbs= p;=20 AMD Features=3D0x28100800<SYSCALL,NX,RDTSCP,LM>
  AMD=20 Features2=3D0x1<LAHF>
  TSC: P-state invariant, = performance=20 statistics
real memory  =3D 17179869184 (16384 MB)
avail = memory =3D=20 16423026688 (15662 MB)
Event timer "LAPIC" quality 600
ACPI APIC = Table:=20 <INTEL  DH77KC  >
FreeBSD/SMP: Multiprocessor System=20 Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 SMT=20 threads
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC = ID: =20 1
 cpu2 (AP): APIC ID:  2
 cpu3 (AP): APIC = ID: =20 3
ACPI Warning: FADT (revision 5) is longer than ACPI 2.0 version, = truncating=20 length 268 to 244 (20110527/tbfadt-320)
ioapic0 <Version 2.0> = irqs 0-23=20 on motherboard
kbd1 at kbdmux0
acpi0: <INTEL DH77KC> on=20 motherboard
acpi0: Power Button (fixed)
acpi0: reservation of 67, = 1 (4)=20 failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality=20 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b = on=20 acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on=20 acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on=20 acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on = acpi0
pci0:=20 <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> = port=20 0xf000-0xf03f mem 0xf7800000-0xf7bfffff,0xe0000000-0xefffffff irq 16 at = device=20 2.0 on pci0
xhci0: <XHCI (generic) USB 3.0 controller> mem=20 0xf7d20000-0xf7d2ffff irq 16 at device 20.0 on pci0
xhci0: 32 byte = context=20 size.
usbus0 on xhci0
pci0: <simple comms> at device 22.0 = (no driver=20 attached)
em0: <Intel(R) PRO/1000 Network Connection 7.2.3> = port=20 0xf080-0xf09f mem 0xf7d00000-0xf7d1ffff,0xf7d35000-0xf7d35fff irq 20 at = device=20 25.0 on pci0
em0: Using an MSI interrupt
em0: Ethernet address:=20 e8:40:f2:ab:e1:13
ehci0: <EHCI (generic) USB 2.0 controller> = mem=20 0xf7d34000-0xf7d343ff irq 16 at device 26.0 on pci0
usbus1: EHCI = version=20 1.0
usbus1: <EHCI (generic) USB 2.0 controller> on = ehci0
pcib1:=20 <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
pci1: = <ACPI PCI=20 bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> irq 19 at device = 28.7 on=20 pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI=20 bridge> irq 19 at device 0.0 on pci2
pci3: <ACPI PCI bus> on = pcib3
ath0: <Atheros 5212> mem 0xf7c60000-0xf7c6ffff irq 19 at = device=20 0.0 on pci3
ath0: AR2413 mac 7.9 RF2413 phy 4.5
em1: <Intel(R) = PRO/1000=20 Legacy Network Connection 1.0.3> port 0xe000-0xe03f mem=20 0xf7c40000-0xf7c5ffff,0xf7c20000-0xf7c3ffff irq 17 at device 2.0 on = pci3
em1:=20 Ethernet address: 00:1b:21:29:a6:4c
ehci1: <EHCI (generic) USB 2.0 = controller> mem 0xf7d33000-0xf7d333ff irq 23 at device 29.0 on=20 pci0
usbus2: EHCI version 1.0
usbus2: <EHCI (generic) USB 2.0=20 controller> on ehci1
isab0: <PCI-ISA bridge> at device 31.0 = on=20 pci0
isa0: <ISA bus> on isab0
ahci0: <Intel Panther Point = AHCI=20 SATA controller> port=20 0xf0d0-0xf0d7,0xf0c0-0xf0c3,0xf0b0-0xf0b7,0xf0a0-0xf0a3,0xf060-0xf07f = mem=20 0xf7d32000-0xf7d327ff irq 19 at device 31.2 on pci0
ahci0: AHCI v1.30 = with 6=20 6Gbps ports, Port Multiplier not supported
ahcich0: <AHCI = channel> at=20 channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on=20 ahci0
ahcich2: <AHCI channel> at channel 5 on ahci0
pci0: = <serial=20 bus, SMBus> at device 31.3 (no driver attached)
acpi_button0: = <Power=20 Button> on acpi0
acpi_tz0: <Thermal Zone> on = acpi0
acpi_tz1:=20 <Thermal Zone> on acpi0
hpet0: <High Precision Event = Timer> iomem=20 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 = Hz=20 quality 950
Event timer "HPET" frequency 14318180 Hz quality = 550
Event=20 timer "HPET1" frequency 14318180 Hz quality 440
Event timer "HPET2" = frequency=20 14318180 Hz quality 440
Event timer "HPET3" frequency 14318180 Hz = quality=20 440
Event timer "HPET4" frequency 14318180 Hz quality 440
atrtc0: = <AT=20 realtime clock> port 0x70-0x77 irq 8 on acpi0
atrtc0: Warning: = Couldn't=20 map I/O.
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: = <AT=20 timer> port 0x40-0x43,0x50-0x53 irq 0 on acpi0
Timecounter "i8254" = frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 = Hz=20 quality 100
atkbdc0: <Keyboard controller (i8042)> port = 0x60,0x64 irq 1=20 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at=20 atkbd0
atkbd0: [GIANT-LOCKED]
uart0: <16550 or compatible> = port=20 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sc0: <System console> at = flags=20 0x100 on isa0
sc0: VGA <16 virtual consoles, = flags=3D0x300>
vga0:=20 <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on=20 isa0
ppc0: cannot reserve I/O port range
coretemp0: <CPU On-Die = Thermal=20 Sensors> on cpu0
est0: <Enhanced SpeedStep Frequency = Control> on=20 cpu0
coretemp1: <CPU On-Die Thermal Sensors> on cpu1
est1:=20 <Enhanced SpeedStep Frequency Control> on cpu1
coretemp2: = <CPU=20 On-Die Thermal Sensors> on cpu2
est2: <Enhanced SpeedStep = Frequency=20 Control> on cpu2
coretemp3: <CPU On-Die Thermal Sensors> on=20 cpu3
est3: <Enhanced SpeedStep Frequency Control> on = cpu3
ZFS=20 filesystem version 5
ZFS storage pool version 28
Timecounters tick = every=20 1.000 msec
usbus0: 5.0Gbps Super Speed USB v3.0
usbus1: 480Mbps = High Speed=20 USB v2.0
usbus2: 480Mbps High Speed USB v2.0
ugen0.1: = <0x8086> at=20 usbus0
uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, = addr 1>=20 on usbus0
ugen1.1: <Intel> at usbus1
uhub1: <Intel EHCI = root HUB,=20 class 9/0, rev 2.00/1.00, addr 1> on usbus1
ugen2.1: <Intel> = at=20 usbus2
uhub2: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr = 1>=20 on usbus2
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0:=20 <ST2000DM001-9YN164 CC4H> ATA-8 SATA 3.x device
ada0: = 600.000MB/s=20 transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing=20 enabled
ada0: 1907729MB (3907029168 512 byte sectors: 16H 63S/T=20 16383C)
ada0: Previously was known as ad4
ada1 at ahcich1 bus 0 = scbus1=20 target 0 lun 0
ada1: <ST2000DM001-1CH164 CC24> ATA-8 SATA 3.x=20 device
ada1: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO = 8192bytes)
ada1:=20 Command Queueing enabled
ada1: 1907729MB (3907029168 512 byte = sectors: 16H=20 63S/T 16383C)
ada1: Previously was known as ad6
SMP: AP CPU #1=20 Launched!
SMP: AP CPU #3 Launched!
SMP: AP CPU #2 = Launched!
Timecounter=20 "TSC-low" frequency 10133456 Hz quality 1000
Root mount waiting for: = usbus2=20 usbus1 usbus0
uhub0: 8 ports with 8 removable, self powered
uhub1: = 2 ports=20 with 2 removable, self powered
uhub2: 2 ports with 2 removable, self=20 powered
Root mount waiting for: usbus2 usbus1
ugen1.2: <vendor=20 0x8087> at usbus1
uhub3: <vendor 0x8087 product 0x0024, class = 9/0, rev=20 2.00/0.00, addr 2> on usbus1
ugen2.2: <vendor 0x8087> at=20 usbus2
uhub4: <vendor 0x8087 product 0x0024, class 9/0, rev = 2.00/0.00,=20 addr 2> on usbus2
Root mount waiting for: usbus2 usbus1
uhub3: = 6 ports=20 with 6 removable, self powered
uhub4: 8 ports with 8 removable, self=20 powered
Trying to mount root from zfs:zroot []...
[root@bsd /]# pciconf -lv
vgapci0@pci0:0:2:0:  &nb= sp; =20 class=3D0x030000 card=3D0x20318086 chip=3D0x01028086 rev=3D0x09=20 hdr=3D0x00
    vendor     =3D = 'Intel=20 Corporation'
    device     =3D = '2nd=20 Generation Core Processor Family Integrated Graphics=20 Controller'
    class      = =3D=20 display
    subclass   =3D VGA

xhci0@pci0:0:20:0:   = ;  =20 class=3D0x0c0330 card=3D0x20318086 chip=3D0x1e318086 rev=3D0x04=20 hdr=3D0x00
    vendor     =3D = 'Intel=20 Corporation'
    device     =3D = 'Panther=20 Point USB xHCI Host Controller'
   =20 class      =3D serial bus
    = subclass   =3D USB
-Victor
------=_NextPart_000_0224_01CDC888.A290ABB0-- From owner-freebsd-usb@FreeBSD.ORG Thu Nov 22 16:50:59 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1C254358 for ; Thu, 22 Nov 2012 16:50:59 +0000 (UTC) (envelope-from mailreturn@smtp.ymlp43.net) Received: from smtp.ymlp43.net (smtp.ymlp43.net [85.158.212.99]) by mx1.freebsd.org (Postfix) with SMTP id 600348FC14 for ; Thu, 22 Nov 2012 16:50:58 +0000 (UTC) Received: (qmail 18734 invoked by uid 0); 22 Nov 2012 16:44:17 -0000 Date: Thu, 22 Nov 2012 17:44:17 +0100 To: freebsd-usb@freebsd.org From: Hosiery Street Subject: Black Friday thru Cyber Monday Mega Sale at HosieryStreet.com Message-ID: <91236a1ea9a80e8c1a6c093e77b11f53@smtp.ymlp43.net> X-YMLPcode: 8ryt+405+93824 MIME-Version: 1.0 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: sales@hosierystreet.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Nov 2012 16:50:59 -0000 --------------------------------------------------------------------------= ------ This email newsletter was sent to you in graphical HTML format. If you're seeing this version, your email program prefers plain text = emails. You can read the original version online: http://ymlp237.net/zyciXt --------------------------------------------------------------------------= ------ Dear Customer THANK YOU, THANK YOU, THANK YOU!!! BLACK FRIDAY BEGINS RIGHT NOW AND CONTINUES THRU CYBER MONDAY=C2=A0THE 26th!!! FOR A LIMITED TIME - HOSIERYSTREET.com IS OFFERING=C2=A0FREE SHIPPING on all orders in contiguous US over $25!! This is our way of saying THANK YOU to all of our loyal customers for making us the GREATEST HOSIERY and LINGERIE website on the net. As in every email we would like to remind you first and foremost that if you don't want to be on our sale list please click below to unsubscribe and you will be removed from the email list immediately. We do not want to SPAM anyone. PLEASE DO NOT REPORT THIS AS SPAM. HAPPY THANKSGIVING!!! ( http://hosierystreet.com/&refer=3Dem_1112 ) The following is a few of our HOTTEST items you may be interested in: 5 HOTTEST DEALS FROM BESTFORM ( http://www.hosierystreet.com/system/scripts/search.cgi?&p=3D1&&Company=3DB= estform&Submit2=3DSearch&action=3Dsearch&per_page=3D90&sort_by=3DBrand#Sea= rch&refer=3Dem_1112 ). =C2=A0 NOW ONLY: $8.99 Bestform Double Lined Front Close Cotton Sport Bra. #6014 Click here for more info >>> ( http://www.hosierystreet.com/system/scripts/results_big.cgi?product=3Dbef6= 014&refer=3Dem_1112 )NOW ONLY: $7.99 Bestform INVISABRA Undewire # 6502 =C2=A0 Click here for more info >>> ( http://www.hosierystreet.com/system/scripts/results_big.cgi?product=3Dbf65= 02&refer=3Dem_1112 ) NOW ONLY: $7.99 Bestform Relax Wear # 6088 =C2=A0 Click here for more info >>> ( http://www.hosierystreet.com/system/scripts/results_big.cgi?product=3Dbf60= 88&refer=3Dem_1112 )NOW ONLY: $10.99 Bestform Shirred Front Sport Bra. #6040 =C2=A0 Click here for more info >>> ( http://www.hosierystreet.com/system/scripts/results_big.cgi?product=3Dbef6= 040&refer=3Dem_1112 )NOW ONLY: $11.99 Bestform Posture back sport bra with double lined front Cris-Cross Click here for more info >>> ( http://www.hosierystreet.com/system/scripts/results_big.cgi?product=3Dbef6= 092x&refer=3Dem_1112 ) or click here for more BestForm Bras at Greatly Discounted Prices... ( http://www.hosierystreet.com/system/scripts/search.cgi?&p=3D1&&Company=3DB= estform&Submit2=3DSearch&action=3Dsearch&per_page=3D90&sort_by=3DBrand#Sea= rch&refer=3Dem_1112 ) =C2=A0 DUE TO POULAR DEMAND NOW BACK IN STOCK!!! 3 HOT DEALS FROM Round the Clock ( http://www.hosierystreet.com/system/scripts/search.cgi?Company=3DRound+The= +Clock&Submit2=3DSearch&action=3Dsearch&refer=3Dem_1112 )! NOW ONLY: $4.99 Round The Clock Silky Sheer Control Top Pantyhose =C2=A0 Click here for more info >>> ( http://www.hosierystreet.com/system/scripts/results_big.cgi?product=3Drtc1= 40&refer=3Dem_1112 ) NOW ONLY: $10.99 Round The Clock Classic Sheer, Girdle at the Top # 135 =C2=A0 Click here for more info >>> ( http://www.hosierystreet.com/system/scripts/results_big.cgi?product=3Drtc1= 35&refer=3Dem_1112 )NOW ONLY: $12.99 Round The Clock Girdle at the Top, Lycra Silky Sheer Leg Pantyhose # 137 Click here for more info >>> ( http://www.hosierystreet.com/system/scripts/results_big.cgi?product=3Drtc1= 37&refer=3Dem_1112 ) or click here for more Round The Clock Deals... ( http://www.hosierystreet.com/system/scripts/search.cgi?Company=3DRound+The= +Clock&Submit2=3DSearch&action=3Dsearch&refer=3Dem_1112 ) =C2=A0 6 MORE GREAT DEALS FROM VASSARETTE ( http://www.hosierystreet.com/system/scripts/search.cgi?&p=3D1&&txtSearch= =3D&search_type=3Din_all&category=3D21&Company=3DVassarette&price_from=3D&= price_to=3D&command=3Dadvance_search&action=3Dsearch&cmdGetCustomers=3DGet= +Result&per_page=3D90&sort_by=3DBrand#Search&refer=3Dem_1112 ). NOW ONLY: $3.99 Vassarette Light Control Hi-Cut Brief Click here for more info >>> ( http://www.hosierystreet.com/system/scripts/results_big.cgi?product=3D48-0= 01&refer=3Dem_1112 )NOW ONLY: $3.99 Vassarette Light Control Brief Click here for more info >>> ( http://www.hosierystreet.com/system/scripts/results_big.cgi?product=3D40-0= 01&refer=3Dem_1112 )NOW ONLY: $10.99 Vassarette BodyCurves Cotton F/C Contour UW #75-606 Click here for more info >>> ( http://www.hosierystreet.com/system/scripts/results_big.cgi?product=3D75-6= 06&refer=3Dem_1112 ) NOW ONLY: $9.89 Vassarette BodyCurves Microfiber Wireless Contour Click here for more info >>> ( http://www.hosierystreet.com/system/scripts/results_big.cgi?product=3D72-2= 39&refer=3Dem_1112 )NOW ONLY: $11.49 Vassarette RealSexy Her Secret Push Up UW Click here for more info >>> ( http://www.hosierystreet.com/system/scripts/results_big.cgi?product=3D75-3= 20&refer=3Dem_1112 ) NOW ONLY: $12.99 Vassarette BodyCurves Flir-T FF Contour UW. #75-818 Click here for more info >>> ( http://www.hosierystreet.com/system/scripts/results_big.cgi?product=3D75-8= 18&refer=3Dem_1112 ) or click here for more ON SALE Vassarette Bras... ( http://www.hosierystreet.com/system/scripts/search.cgi?&p=3D1&&txtSearch= =3D&search_type=3Din_all&category=3D21&Company=3DVassarette&price_from=3D&= price_to=3D&command=3Dadvance_search&action=3Dsearch&cmdGetCustomers=3DGet= +Result&per_page=3D90&sort_by=3DBrand#Search&refer=3Dem_1112 ) =C2=A0 ------------------------- PLEASE CHECK OUT OUR VANITY FAIR BRA LINE!!! ( http://www.hosierystreet.com/system/scripts/search.cgi?txtSearch=3D&search= _type=3Din_all&category=3D21&Company=3DVanity+Fair&price_from=3D&price_to= =3D&command=3Dadvance_search&action=3Dsearch&cmdGetCustomers=3DGet+Result&= refer=3Dem_1112 ) =C2=A0MORE INFO >>> CLICK HERE >>> ( http://www.hosierystreet.com/system/scripts/search.cgi?txtSearch=3D&search= _type=3Din_all&category=3D21&Company=3DVanity+Fair&price_from=3D&price_to= =3D&command=3Dadvance_search&action=3Dsearch&cmdGetCustomers=3DGet+Result&= refer=3Dem_1112 ) _____________________________ Unsubscribe / Change Profile: = http://ymlp237.net/ugmjwyjqgsgymqejgjsbggeheeqy Powered by YourMailingListProvider From owner-freebsd-usb@FreeBSD.ORG Fri Nov 23 08:24:19 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 204C296F for ; Fri, 23 Nov 2012 08:24:19 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.c2i.net [212.247.154.98]) by mx1.freebsd.org (Postfix) with ESMTP id 9601C8FC12 for ; Fri, 23 Nov 2012 08:24:17 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 346982595; Fri, 23 Nov 2012 09:24:10 +0100 From: Hans Petter Selasky To: Mark Johnston Subject: Re: [patch] fix uplcom(4) clear stall logic for PL2303HX Date: Fri, 23 Nov 2012 09:25:48 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <20121120025722.GA3338@oddish> <201211212307.20224.hselasky@c2i.net> <20121122050919.GA1683@oddish> In-Reply-To: <20121122050919.GA1683@oddish> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201211230925.48512.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Nov 2012 08:24:19 -0000 On Thursday 22 November 2012 06:09:19 Mark Johnston wrote: > On Wed, Nov 21, 2012 at 11:07:20PM +0100, Hans Petter Selasky wrote: > > Here you go: > > > > http://svnweb.freebsd.org/changeset/base/243380 > > > > Please test and verify. > > > > --HPS > > Yep, it's working. Thanks a lot! > > When I was debugging the problem I noticed the UQ_OPEN_CLEARSTALL quirk, > and then later discovered that it no longer has any effect. Is there any > reason for keeping it around? Or can it be removed (patch below)? > > Thanks, > -Mark > Done: http://svnweb.freebsd.org/changeset/base/243435 --HPS