From owner-freebsd-usb@FreeBSD.ORG Sun Jun 30 04:20:00 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 90654D55 for ; Sun, 30 Jun 2013 04:20:00 +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 6EBF1114C for ; Sun, 30 Jun 2013 04:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r5U4K0pU030946 for ; Sun, 30 Jun 2013 04:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r5U4K0Ij030945; Sun, 30 Jun 2013 04:20:00 GMT (envelope-from gnats) Resent-Date: Sun, 30 Jun 2013 04:20:00 GMT Resent-Message-Id: <201306300420.r5U4K0Ij030945@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, Ted Nolan Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id ED3D4D25 for ; Sun, 30 Jun 2013 04:15:28 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id DED811133 for ; Sun, 30 Jun 2013 04:15:28 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5U4FSu7045801 for ; Sun, 30 Jun 2013 04:15:28 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5U4FSer045800; Sun, 30 Jun 2013 04:15:28 GMT (envelope-from nobody) Message-Id: <201306300415.r5U4FSer045800@oldred.freebsd.org> Date: Sun, 30 Jun 2013 04:15:28 GMT From: Ted Nolan To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: usb/180119: FreeBSD 9.1 umass driver does not correctly handle Panasonic Lumix DMC-LX7 Camera 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: Sun, 30 Jun 2013 04:20:00 -0000 >Number: 180119 >Category: usb >Synopsis: FreeBSD 9.1 umass driver does not correctly handle Panasonic Lumix DMC-LX7 Camera >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 30 04:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Ted Nolan >Release: 9.1 AMD64 >Organization: self >Environment: FreeBSD brookside-ether 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: The Panasonic Lumix DMC-LX11 camera has a USB connection. When connected over USB to a computer, the camera operates as a USB mass storage device allowing access to the MSDOS filesystem (containing pictures) on the camera's internal SDHC/SDXC card. This works correctly when connecting the camera to my FreeBSD8.1 i386 box over USB1.0. The following messages appear in dmesg on the 8.1 machine: =====START 8.1 messages=========================== ugen0.2: at usbus0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:2:0:-1: Attached to scbus2 (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:29,0 (Power on, reset, or bus device reset occurred) da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 da0: Removable Direct Access SCSI-5 device da0: 1.000MB/s transfers da0: 15193MB (31116288 512 byte sectors: 255H 63S/T 1936C) GEOM: da0: partition 1 does not start on a track boundary. GEOM: da0: partition 1 does not end on a track boundary. ========================END 8.1 messages=========================== The camera also appears as expected in /dev (although the name shows up twice -- something I can't ever recall seeing before): ls -l /dev/da* crw-rw---- 1 root wheel 0, 128 Jun 29 23:46 /dev/da0 crw-rw---- 1 root wheel 0, 129 Jun 29 23:46 /dev/da0s1 crw-rw---- 1 root wheel 0, 129 Jun 29 23:46 /dev/da0s1 However, when connecting the same camera over USB2.0 with the same cable to my 9.1 AMD64 box, mass storage mode does not work, and the following messages show up in dmesg: ======================Start 9.1 messages============================ ugen1.3: at usbus1 umass2: on usbus1 umass2: SCSI over Bulk-Only; quirks = 0x4000 umass2:7:2:-1: Attached to scbus7 (probe0:umass-sim2:2:0:0): REPORT LUNS. CDB: a0 0 0 0 0 0 0 0 0 10 0 0 (probe0:umass-sim2:2:0:0): CAM status: SCSI Status Error (probe0:umass-sim2:2:0:0): SCSI status: Check Condition (probe0:umass-sim2:2:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not ready to ready change, medium may have changed) (probe0:umass-sim2:2:0:0): Retrying command (per sense data) da2 at umass-sim2 bus 2 scbus7 target 0 lun 0 da2: Removable Direct Access SCSI-5 device da2: 40.000MB/s transfers da2: 12479025381376MB (133643435037949953 512 byte sectors: 255H 63S/T -432571248C) ==================================END 9.1 messages======================= Note the negative number in the "cylinder" parameter in the last line! Also, no partitions show up in /dev, just the main node for da2: crw-rw---- 1 root wheel 0, 107 Jun 20 00:31 /dev/da0 crw-rw---- 1 root wheel 0, 143 Jun 20 00:32 /dev/da1 crw-rw---- 1 root wheel 0, 145 Jun 20 00:32 /dev/da1s1 crw-rw---- 1 root wheel 0, 146 Jun 20 00:32 /dev/da1s2 crw-rw---- 1 root wheel 0, 149 Jun 20 23:43 /dev/da1s2s1 crw-rw---- 1 root wheel 0, 147 Jun 20 00:32 /dev/da1s5 crw-rw---- 1 root wheel 0, 154 Jun 29 23:59 /dev/da2 >How-To-Repeat: Connect a Panasonic Lumix DMC-LX7 camera to an AMD64 FreeBSD 9.1 system over USB2.0. (I don't know whether 9.1 on i386 works with it or not). >Fix: No fix. The only workaround is to take the SDXC card out of the camera and connect to it with a card reader. I don't like doing this because I figure the card connectors are more delicate than the camera USB connector. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sun Jun 30 14:22:21 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6D6D041E; Sun, 30 Jun 2013 14:22:21 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id ABA821FE2; Sun, 30 Jun 2013 14:22:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id r5UEM9O2027295; Mon, 1 Jul 2013 00:22:10 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Mon, 1 Jul 2013 00:22:09 +1000 (EST) From: Ian Smith To: Adrian Chadd Subject: Re: USB ports on Lenovo T400 do not work after a suspend/resume In-Reply-To: Message-ID: <20130630233640.Y23789@sola.nimnet.asn.au> References: <20130621220013.X55167@sola.nimnet.asn.au> <20130626152833.M78748@sola.nimnet.asn.au> <20130626195154.GK88288@e-new.0x20.net> <20130627213331.W26984@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-acpi@freebsd.org, freebsd-stable@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: Sun, 30 Jun 2013 14:22:21 -0000 On Sat, 29 Jun 2013, Adrian Chadd wrote: > On 27 June 2013 04:58, Ian Smith wrote: > > We don't yet know if this is a bus, ACPI &/or USB issue. Home yet? :) > > Yup: > > http://people.freebsd.org/~adrian/usb/ > > dmesg.boot = dmesg at startup > > 1 - after powerup, usb device in > 2 - after acpiconf -s3 suspend/resume, w/ a USB device plugged in > 3 - after acpiconf -s3 suspend/resume, with a USB device removed > before suspend/resume After removing [numbers] (for WITNESS?), diff started making sense. The below is between the first and second suspend/resume cycles in dmesg-3.txt, encompassing the others. Nothing of note that I can see, if that usb hub-to-bus remapping is normal. As you said, 'CPU0: local APIC error 0x40' looks maybe sus. Maybe someone who knows might comment on that? Just checking: you've tried other USB devices apart from uftdi0? Out of ideas, and my depth, Ian ======= --- dm3.a 2013-06-30 21:49:48.000000000 +1000 +++ dm3.b 2013-06-30 21:50:30.000000000 +1000 @@ -1,23 +1,21 @@ -ugen3.2: at usbus3 -[] uftdi0: on usbus3 +ugen3.2: at usbus3 (disconnected) +[] uftdi0: at uhub4, port 2, addr 2 (disconnected) (ada0:ahcich0:0:0:0): spin-down [] acpi_lid0: wake_prep enabled for \134_SB_.LID_ (S3) [] acpi_button0: wake_prep enabled for \134_SB_.SLPB (S3) -[] uhub0: at usbus0, port 1, addr 1 (disconnected) -[] uhub1: at usbus1, port 1, addr 1 (disconnected) +[] uhub2: at usbus0, port 1, addr 1 (disconnected) +[] uhub0: at usbus1, port 1, addr 1 (disconnected) ugen1.2: at usbus1 (disconnected) ugen1.3: at usbus1 (disconnected) -[] ubt0: at uhub1, port 2, addr 3 (disconnected) -[] uhub2: at usbus2, port 1, addr 1 (disconnected) +[] ubt0: at uhub0, port 2, addr 3 (disconnected) +[] uhub1: at usbus2, port 1, addr 1 (disconnected) ugen2.2: at usbus2 (disconnected) pci0:0:28:0: Transition from D0 to D3 pci0:0:28:1: Transition from D0 to D3 pci0:0:28:3: Transition from D0 to D3 pci0:0:28:4: Transition from D0 to D3 -[] uhub3: at usbus3, port 1, addr 1 (disconnected) -ugen3.2: at usbus3 (disconnected) -[] uftdi0: at uhub3, port 2, addr 2 (disconnected) -[] uhub4: at usbus4, port 1, addr 1 (disconnected) +[] uhub4: at usbus3, port 1, addr 1 (disconnected) +[] uhub3: at usbus4, port 1, addr 1 (disconnected) [] uhub5: at usbus5, port 1, addr 1 (disconnected) pci0:21:0:0: Transition from D0 to D2 [] pci21: failed to set ACPI power state D2 on \134_SB_.PCI0.PCI1.CDBS: AE_BAD_PARAMETER @@ -73,12 +71,12 @@ kbdc: RESET_AUX ID:0000 [] battery0: battery initialization start [] ahcich0: AHCI reset: device ready after 100ms -[] uhub0: on usbus1 -[] uhub1: on usbus2 -[] uhub2: on usbus0 -[] uhub3: on usbus4 -[] uhub4: on usbus3 -[] uhub5: on usbus5 +[] uhub0: on usbus0 +[] uhub1: on usbus1 +[] uhub2: on usbus3 +[] uhub3: on usbus2 +[] uhub4: on usbus5 +[] uhub5: on usbus4 CPU0: local APIC error 0x40 [] battery0: battery initialization done, tried 1 times (ada0:ahcich0:0:0:0): resume @@ -92,15 +90,13 @@ intpin=a, irq=16 powerspec 2 supports D0 D3 current D0 [] cardbus0: at device 0.0 (no driver attached) -[] uhub0: 2 ports with 2 removable, self powered [] uhub1: 2 ports with 2 removable, self powered [] uhub2: 2 ports with 2 removable, self powered +[] uhub0: 2 ports with 2 removable, self powered [] uhub3: 2 ports with 2 removable, self powered -[] uhub5: 2 ports with 2 removable, self powered [] uhub4: 2 ports with 2 removable, self powered +[] uhub5: 2 ports with 2 removable, self powered ugen1.2: at usbus1 -ugen3.2: at usbus3 -[] uftdi0: on usbus3 ugen2.2: at usbus2 ugen1.3: at usbus1 [] ubt0: on usbus1 ======= From owner-freebsd-usb@FreeBSD.ORG Sun Jun 30 22:02:58 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CA9D865A; Sun, 30 Jun 2013 22:02:58 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qa0-x230.google.com (mail-qa0-x230.google.com [IPv6:2607:f8b0:400d:c00::230]) by mx1.freebsd.org (Postfix) with ESMTP id 69A6E1D8F; Sun, 30 Jun 2013 22:02:58 +0000 (UTC) Received: by mail-qa0-f48.google.com with SMTP id cm16so1683943qab.14 for ; Sun, 30 Jun 2013 15:02:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=RJdUV8rwkvE5t6AFUwjOG0lq8zpFGTnw8dKR53O6p6A=; b=fzSP5YaXZUPV4pkQM39gVBRdZfcyYrHZKDbStsrDO69o/EFb3P1QFpqwgRiZO2Zp1T +oH4J52Go+Y/Pij6qoa0xujhBcVFlAiTMEzI+lKEeXbEjrqqd+ErxYK5DzTxhOesW2x4 3H1UTH0Xeofxtqpj8XRy6t3abM5mHFcx1EOpsAqeOvWPCCJ/8cX6yfAdY/UXSJDW6jvn vM/XdJMw8OFQMXC5a988aFzYT5xzMRVBvaA/8AvYgx5RkM5kNsNrcJ2EKaMNQsJVavPg rW6lrr6XsElMPnW7Kos5ItM1M5JZMO6AErCaPSpfcjE+TrV/7bugoQBmjwFC5xtY+sUS 7gzQ== MIME-Version: 1.0 X-Received: by 10.229.160.9 with SMTP id l9mr6721504qcx.100.1372629777640; Sun, 30 Jun 2013 15:02:57 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.101.134 with HTTP; Sun, 30 Jun 2013 15:02:57 -0700 (PDT) In-Reply-To: <20130630233640.Y23789@sola.nimnet.asn.au> References: <20130621220013.X55167@sola.nimnet.asn.au> <20130626152833.M78748@sola.nimnet.asn.au> <20130626195154.GK88288@e-new.0x20.net> <20130627213331.W26984@sola.nimnet.asn.au> <20130630233640.Y23789@sola.nimnet.asn.au> Date: Sun, 30 Jun 2013 15:02:57 -0700 X-Google-Sender-Auth: zN3vNri3nT8fGv7WysGP1kwtPDQ Message-ID: Subject: Re: USB ports on Lenovo T400 do not work after a suspend/resume From: Adrian Chadd To: Ian Smith Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-acpi@freebsd.org, freebsd-stable@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: Sun, 30 Jun 2013 22:02:58 -0000 On 30 June 2013 07:22, Ian Smith wrote: > After removing [numbers] (for WITNESS?), diff started making sense. > The below is between the first and second suspend/resume cycles in > dmesg-3.txt, encompassing the others. Cool! > Nothing of note that I can see, if that usb hub-to-bus remapping is > normal. As you said, 'CPU0: local APIC error 0x40' looks maybe sus. > Maybe someone who knows might comment on that? > > Just checking: you've tried other USB devices apart from uftdi0? Yup, there's no 5v on the port. -adrian From owner-freebsd-usb@FreeBSD.ORG Mon Jul 1 11:06:56 2013 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E82A5664 for ; Mon, 1 Jul 2013 11:06:56 +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 B8E2710F0 for ; Mon, 1 Jul 2013 11:06:56 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r61B6uhx085965 for ; Mon, 1 Jul 2013 11:06:56 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r61B6uHG085963 for freebsd-usb@FreeBSD.org; Mon, 1 Jul 2013 11:06:56 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 1 Jul 2013 11:06:56 GMT Message-Id: <201307011106.r61B6uHG085963@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, 01 Jul 2013 11:06:57 -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/180119 usb FreeBSD 9.1 umass driver does not correctly handle Pan o usb/179505 usb Kernel detaches Arduino Leonardo (and similar) board u o usb/179342 usb Freebsd 10.0-current USB 3.0 not working (xhci_do_coma o usb/179109 usb After detach USB Flash a keyboard does not work. o usb/179107 usb [usb] After detach USB Flash a keyboard does not work. o usb/178773 usb [usbdevs] [patch] Huawei E303 USB 3G modem support o usb/178771 usb [usbdevs] [patch] Western Digital My Passport HD o usb/178722 usb FreeBSD 9.1-STABLE r250561 breaks support for webcam L o usb/178267 usb [usb] USB causing interrupt storm on irq16 o usb/177897 usb [u3g][patch] add support for the Huawei E352 modem o usb/177896 usb man page for usb_quirk suggests adding device to kerne o usb/177895 usb similar 1TB Western Digital "My Passports" - some load o usb/177666 usb [usbdevs] [patch] Add support for Texas Instruments / o usb/176913 usb [ehci] High interrupt load with ehci o usb/176841 usb [umass] Sony DSC-H2 USB connection fails o usb/176417 usb [xhci][cam][umass] kernelpanic while removing plugged o usb/175731 usb detaching USB keyboard freezes other USB keyboards o usb/175639 usb not detect usb netcard D-LINK DUB-E100 rev C1 o usb/175599 usb [usbdevs][patch]Liebert UPS PSI1000 being assigned uhi o usb/175551 usb Seagate 2TB USB extern hard disk have errors with Free o usb/175379 usb usb card-reader problem o usb/175302 usb don't mount virtual driver CD for my phone o usb/174963 usb buffalo wli-uc-gn wireless card sometimes unusable and o usb/174835 usb uaudio fails to create pcm/dsp device file o usb/174814 usb [PATCH] support for MiFi 2200 o usb/174695 usb usb keeps disconnecting mouse or keyboard o usb/174575 usb Interrupt storm error on startup o usb/174464 usb clone MAC address(es) on usb networks cdce(4) && ue[0- o usb/174254 usb MIDI keyboard not recognised o usb/173722 usb [xhci] xhci driver bug after suspend to RAM (ACPI S3 m o usb/173616 usb LG USB DVD-RW USB STALL 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 [xhci] 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 f kern/153514 usb [cam] [panic] CAM related panic 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 s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s s usb/52026 usb [new driver] [request] umass driver support for InSyst 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 304 problems total. From owner-freebsd-usb@FreeBSD.ORG Tue Jul 2 04:48:26 2013 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9AA33AED; Tue, 2 Jul 2013 04:48:26 +0000 (UTC) (envelope-from gonzo@id.bluezbox.com) Received: from id.bluezbox.com (id.bluezbox.com [88.198.91.248]) by mx1.freebsd.org (Postfix) with ESMTP id 1D05715BD; Tue, 2 Jul 2013 04:48:25 +0000 (UTC) Received: from [207.6.254.8] (helo=[192.168.1.65]) by id.bluezbox.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1UtsVp-000FRk-TP; Mon, 01 Jul 2013 21:48:24 -0700 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: Beaglebone USB driver (Mentor Graphics OTG) From: Oleksandr Tymoshenko In-Reply-To: <51CBDFEA.7050203@bitfrost.no> Date: Mon, 1 Jul 2013 21:48:03 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <51608AA4.2020804@bluezbox.com> <51611A7B.2010105@bitfrost.no> <0927BB4C-6917-408D-B102-AB98F72314B6@bluezbox.com> <51CBDFEA.7050203@bitfrost.no> To: Hans Petter Selasky X-Mailer: Apple Mail (2.1503) Sender: gonzo@id.bluezbox.com X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: On 2013-06-26, at 11:47 PM, Hans Petter Selasky wrote: > On 06/27/13 02:53, Oleksandr Tymoshenko wrote: >> >> On 2013-04-07, at 12:04 AM, Hans Petter Selasky wrote: >> >>> On 04/06/13 22:50, Oleksandr Tymoshenko wrote: >>>> Hello, >>>> >>>> This is first iteration of Host Mode support for Mentor Graphics >>>> OTG USB controller. I tested it by building kernel with USB memory >>>> stick mounted as /usr/obj, resulting kernel was bootable and worked fine. >>>> I reused some ideas (mostly for channel-management) from >>>> DWT OTG driver. >>>> >>>> Some pieces are still missing: >>>> - Support for SPLIT transactions, I don not have high speed hub >>>> right now to test it, but implementing it should be really >>>> straighforward. >>>> - Isochronous transfers. I do not have hardware to test this. Does >>>> anybody have any suggestion about simple use case? >>>> - Control Data OUT transaction >>>> - Wrapper for atmel HW has not ben synced with new core logic requirements >>>> yet >>>> >>>> Please review and test. I tested it only with gcc-built kernel/world. >>>> Now when >>>> first iteration is finished I'm going to update all my boards to new >>>> world order >>>> (clang/EABI) and re-test this stuff. >>>> >>>> Patch: >>>> http://people.freebsd.org/~gonzo/arm/patches/beaglebone-musb.diff >>> >>> Hi, >>> >>> Looks like you've got the grasp of the USB controller stuff :-) >>> >>> Some comments: >>> >>> 1) Use DPRINTFN(-1, ...) instead of printf() for all printf() that are not part of boot dmesg. >>> >>> + break; >>> + default: >>> + td->transfer_type = 0; >>> + printf("Invalid USB speed: %d\n", speed); >>> + break; >>> + } >>> >>> >>> 2) You should implement if HOST mode, support for SUSPEND and RESUME. See EHCI driver. Basically what you need is: >>> >>> a) USB transfers are stopped/paused. I know there is a hack you need if the host transfer cancel hangs, and that is to write a dummy device address and wait for the USB transfer to error out after 250 us max. >>> >>> b) switch on USB suspend signalling. >>> >>> >>> At resume: >>> >>> c) do resume [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: totalphase.com] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: arm@freebsd.org, 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: Tue, 02 Jul 2013 04:48:26 -0000 On 2013-06-26, at 11:47 PM, Hans Petter Selasky wrote: > On 06/27/13 02:53, Oleksandr Tymoshenko wrote: >>=20 >> On 2013-04-07, at 12:04 AM, Hans Petter Selasky = wrote: >>=20 >>> On 04/06/13 22:50, Oleksandr Tymoshenko wrote: >>>> Hello, >>>>=20 >>>> This is first iteration of Host Mode support for Mentor Graphics >>>> OTG USB controller. I tested it by building kernel with USB memory >>>> stick mounted as /usr/obj, resulting kernel was bootable and worked = fine. >>>> I reused some ideas (mostly for channel-management) from >>>> DWT OTG driver. >>>>=20 >>>> Some pieces are still missing: >>>> - Support for SPLIT transactions, I don not have high speed hub >>>> right now to test it, but implementing it should be really >>>> straighforward. >>>> - Isochronous transfers. I do not have hardware to test this. Does >>>> anybody have any suggestion about simple use case? >>>> - Control Data OUT transaction >>>> - Wrapper for atmel HW has not ben synced with new core logic = requirements >>>> yet >>>>=20 >>>> Please review and test. I tested it only with gcc-built = kernel/world. >>>> Now when >>>> first iteration is finished I'm going to update all my boards to = new >>>> world order >>>> (clang/EABI) and re-test this stuff. >>>>=20 >>>> Patch: >>>> http://people.freebsd.org/~gonzo/arm/patches/beaglebone-musb.diff >>>=20 >>> Hi, >>>=20 >>> Looks like you've got the grasp of the USB controller stuff :-) >>>=20 >>> Some comments: >>>=20 >>> 1) Use DPRINTFN(-1, ...) instead of printf() for all printf() that = are not part of boot dmesg. >>>=20 >>> + break; >>> + default: >>> + td->transfer_type =3D 0; >>> + printf("Invalid USB speed: %d\n", = speed); >>> + break; >>> + } >>>=20 >>>=20 >>> 2) You should implement if HOST mode, support for SUSPEND and = RESUME. See EHCI driver. Basically what you need is: >>>=20 >>> a) USB transfers are stopped/paused. I know there is a hack you need = if the host transfer cancel hangs, and that is to write a dummy device = address and wait for the USB transfer to error out after 250 us max. >>>=20 >>> b) switch on USB suspend signalling. >>>=20 >>>=20 >>> At resume: >>>=20 >>> c) do resume signalling, similar to EHCI/UHCI I think. >>>=20 >>> d) switch on channel tokens. >>>=20 >>> case UHF_PORT_SUSPEND: >>> + if (sc->sc_mode =3D=3D MUSB2_HOST_MODE) >>> + printf("TODO: Set UHF_PORT_SUSPEND\n"); >>> + break; >>>=20 >>>=20 >>>=20 >>> 3) Make sure that channels are not generating tokens if they are = aborted / cancelled / timedout. This can not be verified using a USB = mass storage device. Verify this by connecting a USB serial adapter. Try = to open/close /dev/cuaU0. Make sure it does not loose any bytes and that = channel cancel does not hang forever. >>=20 >>=20 >=20 > Hi, >=20 >> Thanks for review. Took me quite some time to get back >> to the driver but here is updated version that addresses some >> of the issues you've mentioned: >> = http://people.freebsd.org/~gonzo/arm/patches/beaglebone-usb-20130626.diff >>=20 >> It fixes several bugs, adds proper SPLIT transactions support and >> suspend/resume signalling. I tested it with urtwn-based WiFi chip, >> mass storage device, USB keyboard connected directly and using >> high-speed hub. >>=20 >> Suspend/resume is not 100% complete though. I can use USB serial >> port adapter if it's suspended/resumed unconnected. But it stuck if I = do >> the test while connected. Is it the right way to test it? >=20 > Which suspend you mean system/resume suspend or USB suspend/resume? I was talking about USB suspend/resume. I do not thin we have working=20 suspend/resume for ARM yet so I don't have reliable way to test it. >=20 > You should implement a musb_set_hw_power_sleep() too. This handles = system going into suspend. You should probably reset that adapter at = this point. >=20 > static void > musb_set_hw_power_sleep(struct usb_bus *bus, uint32_t state) > { > struct ehci_softc *sc =3D EHCI_BUS2SC(bus); >=20 > switch (state) { > case USB_HW_POWER_SUSPEND: > case USB_HW_POWER_SHUTDOWN: > ehci_suspend(sc); > break; > case USB_HW_POWER_RESUME: > ehci_resume(sc); > break; > default: > break; > } > } >=20 > If the musb requires that you stop tokens before going in and out of = suspend, you need to add functions like this: >=20 >=20 > ehci_device_resume/ehci_device_suspend >=20 >>=20 >> On the related note: can somebody suggest budget USB protocol = analyzer >> with support for high-speed bus? >>=20 >=20 > http://www.totalphase.com/products/beagle_usb480/ >=20 > There are more, but I don't have the list right now. >=20 > You can probably just remove this check. We don't support LOW speed in = device mode. >=20 > - > - if ((udev->speed !=3D USB_SPEED_FULL) && > - (udev->speed !=3D USB_SPEED_HIGH)) { > - /* not supported */ > - return; > + if (sc->sc_mode !=3D MUSB2_HOST_MODE) { > + if ((udev->speed !=3D USB_SPEED_FULL) && > + (udev->speed !=3D USB_SPEED_HIGH)) { > + /* not supported */ > + return; > + } > } Removed > The musbotg_channel_free function is not sufficient! You need to = program a non-existing device address like 127 and wait for 2 ms I = recommend. The ABORT bits don't work with this controller last time I = tried them! You can verify this by loading and unloading the wireless = driver. I guess that IN tokens don't stop when you unload the driver. = You will see this using an USB analyzer. >=20 > +#define MUSB2_MAX_DEVICES (USB_MAX_DEVICES - 1) >=20 > +static void=09 > +musbotg_channel_free(struct musbotg_softc *sc, struct musbotg_td *td) > +{ > + > + DPRINTFN(1, "ep_no=3D%d\n", td->channel); > + > + if (sc->sc_mode =3D=3D MUSB2_DEVICE_MODE) > + return; > + > + if (td =3D=3D NULL) > + return; > + if (td->channel =3D=3D -1) > + return; > + > + musbotg_ep_int_set(sc, td->channel, 0); > + sc->sc_channel_mask &=3D ~(1 << td->channel); > + td->channel =3D -1; >=20 > /* force transfer failure */ > MUSB2_WRITE_1(sc, MUSB2_REG_RXFADDR(0), 127); > XXX channel should not be re-used until after 2*125us. Can probably = use ticks for this! >=20 > +} >=20 > The 2ms can be done asynchronosly by implementing this function. See = EHCI driver. >=20 > static void > musbotg_get_dma_delay(struct usb_device *udev, uint32_t *pus) > { >=20 > if (host_mode) > *pus =3D 2000; /* microseconds */ > else > *pus =3D 0; > } Writing 127 to FADDR breaks driver. It can't even attach device = properly.=20 I do not completely understand the scenario behind this requirement. My=20= recollection is: when we cancel IN transaction somehow we should ensure=20= that function that currently handles it does not stuck forever. =46rom = what=20 I see it's just impossible. There is internal NAK timer that fails the = transaction once it reached configured value (or 3 by default AFAIR). Isn't it = enough? I tried unloading active uwrtn driver - it unloads with some delay but = as=20 far as I can see from logs delay is not due to USB internal transactions = code it must be upper layer.=20 Could you, please, elaborate on the matter? Here is updated version of the patch:=20 = http://people.freebsd.org/~gonzo/arm/patches/beaglebone-usb-20130701.diff Besides cosmetic fixes I also synced = dev/usb/controller/musb_otg_atmelarm.c to the latest changes of core logic: added required wrappers and some=20 initializations.=20 I do not longer have access to USB analyzer so my debugging abilities is somewhat limited now.=20= From owner-freebsd-usb@FreeBSD.ORG Wed Jul 3 00:00:02 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 079E737E for ; Wed, 3 Jul 2013 00:00: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 D4D391CAE for ; Wed, 3 Jul 2013 00:00:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r63001nX046465 for ; Wed, 3 Jul 2013 00:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r630019o046464; Wed, 3 Jul 2013 00:00:01 GMT (envelope-from gnats) Date: Wed, 3 Jul 2013 00:00:01 GMT Message-Id: <201307030000.r630019o046464@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: "Mike C." Subject: Re: usb/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: "Mike C." List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jul 2013 00:00:02 -0000 The following reply was made to PR usb/179342; it has been noted by GNATS. From: "Mike C." To: bug-followup@FreeBSD.org, miguelmclara@gmail.com Cc: Subject: Re: usb/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!) Date: Wed, 03 Jul 2013 00:57:04 +0000 This is a multi-part message in MIME format. --------------030903080109090901000503 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, I was looking into the status of this and noticed that there's was something wrong with followups... I remember replying to this confirming that patch "xhci_timer.diff " fixed my problem and indeed I have that mail in my sent items... Anyway, I was testing with the most recent revision, and if I do that the problem returns... So just to make sure in my case the first proposed patch fixed the issue, while the other changes bring back the problem... Just wanted to clarify! Thanks, Mike --------------030903080109090901000503 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi,

I was looking into the status of this and noticed that there's was something wrong with followups...

I remember replying to this confirming that patch "xhci_timer.diff" fixed my problem and indeed I have that mail in my sent items...

Anyway, I was testing with the most recent revision, and if I do that the problem returns...

So just to make sure in my case the first proposed patch fixed the issue, while the other changes bring back the problem...

Just wanted to clarify!

Thanks,

Mike
--------------030903080109090901000503-- From owner-freebsd-usb@FreeBSD.ORG Wed Jul 3 01:39:43 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E02EE3B6; Wed, 3 Jul 2013 01:39:43 +0000 (UTC) (envelope-from linimon@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 B89941249; Wed, 3 Jul 2013 01:39:43 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r631dhQ0079289; Wed, 3 Jul 2013 01:39:43 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r631dhlN079288; Wed, 3 Jul 2013 01:39:43 GMT (envelope-from linimon) Date: Wed, 3 Jul 2013 01:39:43 GMT Message-Id: <201307030139.r631dhlN079288@freefall.freebsd.org> To: john_m_cooper@yahoo.com, linimon@FreeBSD.org, weongyo@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: usb/117150: [zyd] usb zyd device under moderate load panics system 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, 03 Jul 2013 01:39:43 -0000 Synopsis: [zyd] usb zyd device under moderate load panics system State-Changed-From-To: feedback->feedback State-Changed-By: linimon State-Changed-When: Wed Jul 3 00:50:32 UTC 2013 State-Changed-Why: commit bit has been taken in for safekeeping. To submitter: is this still a problem? Responsible-Changed-From-To: weongyo->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Wed Jul 3 00:50:32 UTC 2013 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=117150 From owner-freebsd-usb@FreeBSD.ORG Wed Jul 3 01:41:19 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 27F70556; Wed, 3 Jul 2013 01:41:19 +0000 (UTC) (envelope-from linimon@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 0221C1281; Wed, 3 Jul 2013 01:41:19 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r631fIFL081027; Wed, 3 Jul 2013 01:41:18 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r631fIe0081026; Wed, 3 Jul 2013 01:41:18 GMT (envelope-from linimon) Date: Wed, 3 Jul 2013 01:41:18 GMT Message-Id: <201307030141.r631fIe0081026@freefall.freebsd.org> To: agathos@fobos.org, linimon@FreeBSD.org, weongyo@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: usb/128745: [zyd] zyd theoretically supported usb device makes kernel panic 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, 03 Jul 2013 01:41:19 -0000 Old Synopsis: zyd teoretically supported usb device makes kernel panic New Synopsis: [zyd] zyd theoretically supported usb device makes kernel panic State-Changed-From-To: feedback->feedback State-Changed-By: linimon State-Changed-When: Wed Jul 3 00:50:32 UTC 2013 State-Changed-Why: commit bit has been taken in for safekeeping. Responsible-Changed-From-To: weongyo->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Wed Jul 3 00:50:32 UTC 2013 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=128745 From owner-freebsd-usb@FreeBSD.ORG Wed Jul 3 01:41:33 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4D637587; Wed, 3 Jul 2013 01:41:33 +0000 (UTC) (envelope-from linimon@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 297911285; Wed, 3 Jul 2013 01:41:33 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r631fXXi081065; Wed, 3 Jul 2013 01:41:33 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r631fWK6081064; Wed, 3 Jul 2013 01:41:32 GMT (envelope-from linimon) Date: Wed, 3 Jul 2013 01:41:32 GMT Message-Id: <201307030141.r631fWK6081064@freefall.freebsd.org> To: samuel@boivie.org, linimon@FreeBSD.org, weongyo@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: kern/138292: [zyd] [usb8] "zyd0: device timeout" with ZyXEL G-202 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, 03 Jul 2013 01:41:33 -0000 Synopsis: [zyd] [usb8] "zyd0: device timeout" with ZyXEL G-202 State-Changed-From-To: open->open State-Changed-By: linimon State-Changed-When: Wed Jul 3 00:50:32 UTC 2013 State-Changed-Why: commit bit has been taken in for safekeeping. Responsible-Changed-From-To: weongyo->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Wed Jul 3 00:50:32 UTC 2013 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=138292 From owner-freebsd-usb@FreeBSD.ORG Wed Jul 3 19:55:56 2013 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 57C1964F for ; Wed, 3 Jul 2013 19:55:56 +0000 (UTC) (envelope-from miguelmclara@gmail.com) Received: from mail-we0-x22f.google.com (mail-we0-x22f.google.com [IPv6:2a00:1450:400c:c03::22f]) by mx1.freebsd.org (Postfix) with ESMTP id E55E21278 for ; Wed, 3 Jul 2013 19:55:55 +0000 (UTC) Received: by mail-we0-f175.google.com with SMTP id t59so460535wes.6 for ; Wed, 03 Jul 2013 12:55:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-forwarded-message-id:content-type :content-transfer-encoding; bh=MsBHlvr5b33S7KQ+dL9mzOHXHn9slkjQEZkAFQz+p7Q=; b=phiS/AViL6BuqI11ehzGYs8RY4VbJviGJmu5wsLkZeluv5brTcKseEErG+vJ2P8Ws1 NX+yWvZbe8Iit8H21Etwe1Slg5BnhTnza+xg+S2UAo8TzaSHlq7Y0Hc7oqJmPPK0kPup RHle6vwVIAsbhttDTZYGUdnVjwsySuo/WXKaoTUnnNoN7PKCC3QcD6KssyDDpyj+mO9e AQM4TNfTbz9+P41mUOKn41hF1t7LyEmq4jP61q4rL6sjiqJflQ8lM29lquXKARuiHLNi sjlVqnnPTfB2jN4ZuuC+EwyuSPOKz07bV0oRFu9vrax4XDzcK4WHwMKhSdiNqgTWM7b0 aWMw== X-Received: by 10.180.7.164 with SMTP id k4mr1457343wia.40.1372881355171; Wed, 03 Jul 2013 12:55:55 -0700 (PDT) Received: from [10.10.50.70] (bl18-121-5.dsl.telepac.pt. [188.83.121.5]) by mx.google.com with ESMTPSA id h8sm30860512wie.1.2013.07.03.12.55.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Jul 2013 12:55:54 -0700 (PDT) Message-ID: <51D48FD2.5050504@gmail.com> Date: Wed, 03 Jul 2013 20:55:46 +0000 From: "Mike C." User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130701 Thunderbird/17.0.7 MIME-Version: 1.0 To: usb@freebsd.org Subject: Realtek USB 2.0 Card Reader (Freebsd 10 - current) References: <20130703105109.GQ88288@e-new.0x20.net> In-Reply-To: <20130703105109.GQ88288@e-new.0x20.net> X-Forwarded-Message-Id: <20130703105109.GQ88288@e-new.0x20.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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, 03 Jul 2013 19:55:56 -0000 Hi, I posted about this @current but I was instructed to continue the discussion here! I have an Acer S3 Ultrabook running Freebsd 10 current, the Latpop has an SD card Reader, and according to the windows driver this is a "Realtek USB 2.0 Card Reader" I have sdhci sdhci_pci mmc and mmcsd modules loaded, but when I insert a Card Nothing happens! This is what I get from usbconfig list: # usbconfig list ugen0.1: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen2.1: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen2.2: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen1.2: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (0mA) Any help is appreciated, Thanks From owner-freebsd-usb@FreeBSD.ORG Wed Jul 3 20:19:57 2013 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D6679F11 for ; Wed, 3 Jul 2013 20:19:57 +0000 (UTC) (envelope-from yerenkow@gmail.com) Received: from mail-vb0-x22e.google.com (mail-vb0-x22e.google.com [IPv6:2607:f8b0:400c:c02::22e]) by mx1.freebsd.org (Postfix) with ESMTP id 99E401451 for ; Wed, 3 Jul 2013 20:19:57 +0000 (UTC) Received: by mail-vb0-f46.google.com with SMTP id 10so457522vbe.5 for ; Wed, 03 Jul 2013 13:19:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=lfOJZ3CSRFccNTndwIET/fV7nyhZ7HvWQ8jAT7raIC0=; b=Fm2bVX8YDjUtLQ32FPaYU08f5NVaZjeGdOxCkMJ5P2o/izPwe1PqSJrqYwg8tI/vSV 8vIWTVOlR6wD3a7XHJFkbwRZETJjsve+RS/bu/si8SiAEUiPAJ2XKXOK99M1jFQWfg1D OJCsOuNtV7bZGWibxMS/kQq34kcKl+EiUjCRoWQDswy2dF5HrnMau4+fOf1/6Xy5aK/e aOTO94IUtQemq5LwKyyKihFgqrGFcLivJEUQNSYLQOUtZrzVGqp5u53lbdIClJ2GLlI7 Wb8SKP8eGem/zZHI4WRulJZNEoZ52J8BWjse1wqAsY6D5mC6W5QoD/vEDRCJBd1QZwp0 g0xA== MIME-Version: 1.0 X-Received: by 10.58.239.37 with SMTP id vp5mr803307vec.32.1372882797197; Wed, 03 Jul 2013 13:19:57 -0700 (PDT) Received: by 10.52.190.200 with HTTP; Wed, 3 Jul 2013 13:19:57 -0700 (PDT) Received: by 10.52.190.200 with HTTP; Wed, 3 Jul 2013 13:19:57 -0700 (PDT) In-Reply-To: <51D48FD2.5050504@gmail.com> References: <20130703105109.GQ88288@e-new.0x20.net> <51D48FD2.5050504@gmail.com> Date: Wed, 3 Jul 2013 23:19:57 +0300 Message-ID: Subject: Re: Realtek USB 2.0 Card Reader (Freebsd 10 - current) From: Alexander Yerenkow To: "Mike C." Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: 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, 03 Jul 2013 20:19:57 -0000 In previous version of usb, some card readers tells.OS about card.only if card was in it during startup. You should check if you can see any card in any case. If not at all - maybe bad luck, some bad cardvreaders works.only under windows, with some obscure hacjs.provided by drivers. I have one such card reader :) Regards, Alexander Yerenkow From owner-freebsd-usb@FreeBSD.ORG Wed Jul 3 20:36:04 2013 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E76C2D1F for ; Wed, 3 Jul 2013 20:36:04 +0000 (UTC) (envelope-from miguelmclara@gmail.com) Received: from mail-wg0-x22c.google.com (mail-wg0-x22c.google.com [IPv6:2a00:1450:400c:c00::22c]) by mx1.freebsd.org (Postfix) with ESMTP id 8278B1687 for ; Wed, 3 Jul 2013 20:36:04 +0000 (UTC) Received: by mail-wg0-f44.google.com with SMTP id m15so506737wgh.35 for ; Wed, 03 Jul 2013 13:36:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=oO6Ws+vhjVgcr4Sxev+nsDp+zOSvGqKjUYBEEjINrLo=; b=PdNczZ2qYAxXLnDka+8DoG5XN0SJeMggbN05XyvJ0yqGyaOqtAAQdYDyxCEcMnzPmn etVD4kvsp6wUMxEhdXhzkrIplxKRixnLG0ZAq8xmRS9xDji0gem/9Mjck65YBMbVWQ/M zT6/SoakKeZ6M45SB+akSQ9eHzbxdRBy+CDZl0WY2tqAco9cPhcbCzUbiO1btkZRLGVZ Ll/ZU/VhEhaycoDh8XJirBm9bWHLI8HTORJRtbWjjwHAyXoFBl2f8u44gCzpMYzThf92 v7whtrQ2+hhtBo5YHjeXVCMjk8Q9dyzd8mJeRVakR12ljlK2pCM90ju7KSDUpgk+uaor RX0A== MIME-Version: 1.0 X-Received: by 10.180.90.240 with SMTP id bz16mr1578019wib.24.1372883763605; Wed, 03 Jul 2013 13:36:03 -0700 (PDT) Received: by 10.194.163.226 with HTTP; Wed, 3 Jul 2013 13:36:03 -0700 (PDT) Received: by 10.194.163.226 with HTTP; Wed, 3 Jul 2013 13:36:03 -0700 (PDT) In-Reply-To: References: <20130703105109.GQ88288@e-new.0x20.net> <51D48FD2.5050504@gmail.com> Date: Wed, 3 Jul 2013 20:36:03 +0000 Message-ID: Subject: Re: Realtek USB 2.0 Card Reader (Freebsd 10 - current) From: Miguel Clara To: Alexander Yerenkow Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: 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, 03 Jul 2013 20:36:05 -0000 the thing is according to usbconfig the system doesn't even detect the card reader... if it doesn't detect the card reader it surely won't read any card No dia 03/07/2013 21:19, "Alexander Yerenkow" escreveu: > In previous version of usb, some card readers tells.OS about card.only if > card was in it during startup. You should check if you can see any card in > any case. If not at all - maybe bad luck, some bad cardvreaders works.only > under windows, with some obscure hacjs.provided by drivers. I have one such > card reader :) > > Regards, Alexander Yerenkow > From owner-freebsd-usb@FreeBSD.ORG Wed Jul 3 20:45:49 2013 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 98959463 for ; Wed, 3 Jul 2013 20:45:49 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qa0-x236.google.com (mail-qa0-x236.google.com [IPv6:2607:f8b0:400d:c00::236]) by mx1.freebsd.org (Postfix) with ESMTP id 5F1A6170F for ; Wed, 3 Jul 2013 20:45:49 +0000 (UTC) Received: by mail-qa0-f54.google.com with SMTP id n20so412597qaj.20 for ; Wed, 03 Jul 2013 13:45:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=l+S16V0mPxyufO6gOOQN16n8mIM7lQ9H7vYlaxBTS8Y=; b=F2Gin/vfHLti8z06lH64AAlJcXDLJd7X3Enf+u27FFdTXTJxMl9O/Kk7HS/WwF4MlR GUZ0iP5p3mVn53SCw2p7yW82bQdjhH36AfhTruCFPoRNsiikhf8FfRCR6RJPIxcMMyfY xVSBI/Nfk54MC0gkFL8y9730Oi2+g7NZidN+50CA2wzLoehYLk7GiTLN46ufr8zZFmVm Kcnks0gXJ8TqTgwtnzltMLsvo5lBnPb0nA//syJwyDkfmf8CmxcmsAjGUx6UxbgW0fDf AMqkx6kiuXUzLMLEuAtIkptSi5HeSk2w1rViwklDeO8qkknduL+KYFfNmMjIcQUUSOTW jt8A== MIME-Version: 1.0 X-Received: by 10.49.107.201 with SMTP id he9mr3443377qeb.74.1372884348875; Wed, 03 Jul 2013 13:45:48 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.195.72 with HTTP; Wed, 3 Jul 2013 13:45:48 -0700 (PDT) In-Reply-To: References: <20130703105109.GQ88288@e-new.0x20.net> <51D48FD2.5050504@gmail.com> Date: Wed, 3 Jul 2013 13:45:48 -0700 X-Google-Sender-Auth: X6GL547UGCscvj4DVTox2etuswQ Message-ID: Subject: Re: Realtek USB 2.0 Card Reader (Freebsd 10 - current) From: Adrian Chadd To: Miguel Clara Content-Type: text/plain; charset=ISO-8859-1 Cc: 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, 03 Jul 2013 20:45:49 -0000 Guys, there -are- PCI SDIO interfaces... Is this one of these? -adrian On 3 July 2013 13:36, Miguel Clara wrote: > the thing is according to usbconfig the system doesn't even detect the card > reader... if it doesn't detect the card reader it surely won't read any > card > No dia 03/07/2013 21:19, "Alexander Yerenkow" > escreveu: > >> In previous version of usb, some card readers tells.OS about card.only if >> card was in it during startup. You should check if you can see any card in >> any case. If not at all - maybe bad luck, some bad cardvreaders works.only >> under windows, with some obscure hacjs.provided by drivers. I have one such >> card reader :) >> >> Regards, Alexander Yerenkow >> > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Wed Jul 3 23:03:50 2013 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5164F4B0; Wed, 3 Jul 2013 23:03:50 +0000 (UTC) (envelope-from miguelmclara@gmail.com) Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450:400c:c05::231]) by mx1.freebsd.org (Postfix) with ESMTP id B74C71D28; Wed, 3 Jul 2013 23:03:49 +0000 (UTC) Received: by mail-wi0-f177.google.com with SMTP id ey16so650534wid.10 for ; Wed, 03 Jul 2013 16:03:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=wogN0h2NDpcyvW1yTYY6zjpH5mZtM0ZZ8W3jQ96QMm4=; b=Cs8XnMwX+SLf5k9dH78x6xx97SZQ6NjmAKn7nJ50vgFvt+Kwx16RxC6Mpv8f5zTe0U qjAuc+Ja5/Aog5xaCAMsLHJ95ojOvxI1nDGYoQPjepUKjjGmRpQzqKm+SzFWeI/gD//4 piOLzUbi2aoypI7mEopS0sWpnSjfGIAvFm4MRhJ/XkXXhQ40XYsDg+ZmqOI4tPcwZpn3 Bux5n/2bgpnFueFZJW01WtfrU3CrJUsdaPHd350BPPFG0SSDXybEoZ/LnUOWp9QgV7X7 AWN93LyChEGhI8CQCt1sou4uznETlZ29yi6aw3AzmpzXyv1wRm6e25uPa9nII5ykD3+x CC1A== MIME-Version: 1.0 X-Received: by 10.194.243.164 with SMTP id wz4mr1939107wjc.28.1372892628974; Wed, 03 Jul 2013 16:03:48 -0700 (PDT) Received: by 10.194.163.226 with HTTP; Wed, 3 Jul 2013 16:03:48 -0700 (PDT) Received: by 10.194.163.226 with HTTP; Wed, 3 Jul 2013 16:03:48 -0700 (PDT) In-Reply-To: References: <20130703105109.GQ88288@e-new.0x20.net> <51D48FD2.5050504@gmail.com> Date: Wed, 3 Jul 2013 23:03:48 +0000 Message-ID: Subject: Re: Realtek USB 2.0 Card Reader (Freebsd 10 - current) From: Miguel Clara To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: 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, 03 Jul 2013 23:03:50 -0000 To be honest I have no idea... how can I check that? No dia 03/07/2013 21:45, "Adrian Chadd" escreveu: > Guys, > > there -are- PCI SDIO interfaces... Is this one of these? > > > > > -adrian > > On 3 July 2013 13:36, Miguel Clara wrote: > > the thing is according to usbconfig the system doesn't even detect the > card > > reader... if it doesn't detect the card reader it surely won't read any > > card > > No dia 03/07/2013 21:19, "Alexander Yerenkow" > > escreveu: > > > >> In previous version of usb, some card readers tells.OS about card.only > if > >> card was in it during startup. You should check if you can see any card > in > >> any case. If not at all - maybe bad luck, some bad cardvreaders > works.only > >> under windows, with some obscure hacjs.provided by drivers. I have one > such > >> card reader :) > >> > >> Regards, Alexander Yerenkow > >> > > _______________________________________________ > > freebsd-usb@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > From owner-freebsd-usb@FreeBSD.ORG Thu Jul 4 07:02:18 2013 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B36FAC00 for ; Thu, 4 Jul 2013 07:02:18 +0000 (UTC) (envelope-from lars@e-new.0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.76.211]) by mx1.freebsd.org (Postfix) with ESMTP id 78A7F11CB for ; Thu, 4 Jul 2013 07:02:18 +0000 (UTC) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 414936A6004; Thu, 4 Jul 2013 09:02:17 +0200 (CEST) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.7/8.14.7) with ESMTP id r6472H8V013787; Thu, 4 Jul 2013 09:02:17 +0200 (CEST) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.7/8.14.7/Submit) id r6472Hiv012863; Thu, 4 Jul 2013 09:02:17 +0200 (CEST) (envelope-from lars) Date: Thu, 4 Jul 2013 09:02:16 +0200 From: Lars Engels To: Miguel Clara Subject: Re: Realtek USB 2.0 Card Reader (Freebsd 10 - current) Message-ID: <20130704070216.GY88288@e-new.0x20.net> References: <20130703105109.GQ88288@e-new.0x20.net> <51D48FD2.5050504@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="N/6iDJYGLS5Zr1Py" Content-Disposition: inline In-Reply-To: X-Editor: VIM - Vi IMproved 7.3 X-Operation-System: FreeBSD 8.4-RELEASE User-Agent: Mutt/1.5.21 (2010-09-15) Cc: 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, 04 Jul 2013 07:02:18 -0000 --N/6iDJYGLS5Zr1Py Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Wed, Jul 03, 2013 at 08:36:03PM +0000, Miguel Clara wrote: > the thing is according to usbconfig the system doesn't even detect the card > reader... if it doesn't detect the card reader it surely won't read any > card What Alex is suggesting is that you need to insert a card and then boot the system and hope that the reader is recognized. --N/6iDJYGLS5Zr1Py Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iEYEARECAAYFAlHVHfgACgkQKc512sD3afjVVgCdHth2oFL13NkBZh+0iEOC8q8D l84AnjZJSe2DlFJsOM6yrXwx54/sQ2GE =7vWj -----END PGP SIGNATURE----- --N/6iDJYGLS5Zr1Py-- From owner-freebsd-usb@FreeBSD.ORG Thu Jul 4 09:40:00 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C886CA0E for ; Thu, 4 Jul 2013 09:40:00 +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 978621ADE for ; Thu, 4 Jul 2013 09:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r649e0Xq015093 for ; Thu, 4 Jul 2013 09:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r649e0an015092; Thu, 4 Jul 2013 09:40:00 GMT (envelope-from gnats) Resent-Date: Thu, 4 Jul 2013 09:40:00 GMT Resent-Message-Id: <201307040940.r649e0an015092@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, Mool Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 65EBAA08 for ; Thu, 4 Jul 2013 09:39:27 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id 579C11ADA for ; Thu, 4 Jul 2013 09:39:27 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r649dQ3k070995 for ; Thu, 4 Jul 2013 09:39:26 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r649dQsh070994; Thu, 4 Jul 2013 09:39:26 GMT (envelope-from nobody) Message-Id: <201307040939.r649dQsh070994@oldred.freebsd.org> Date: Thu, 4 Jul 2013 09:39:26 GMT From: Mool To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: usb/180254: FreeBSD 9.1 on 384GB memory server 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, 04 Jul 2013 09:40:00 -0000 >Number: 180254 >Category: usb >Synopsis: FreeBSD 9.1 on 384GB memory server >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: Thu Jul 04 09:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Mool >Release: FreeBSD 9.1 >Organization: >Environment: FreeBSD 123.xxx.com 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p0 >Description: Hi ALL , I had two 384GB memory server (Cisco UCS-240M3 & Supermicro X9DRi-LN4F+) When I using FreeBSD-9.1-RELEASE-amd64-bootonly.iso disc boot boot script will stop at . Looks like USB CDROM can't find ... and USB keyboard can't type any key. console message is usbd_ctrl_transfer_setup: could not setup default USB transfer usbd_ctrl_transfer_setup: could not setup default USB transfer usbd_ctrl_transfer_setup: could not setup default USB transfer usbd_ctrl_transfer_setup: could not setup default USB transfer usbd_ctrl_transfer_setup: could not setup default USB transfer usbd_ctrl_transfer_setup: could not setup default USB transfer usbd_ctrl_transfer_setup: could not setup default USB transfer usbd_ctrl_transfer_setup: could not setup default USB transfer usbd_ctrl_transfer_setup: could not setup default USB transfer I try to booting from cdrom use FreeBSD-8.3-RELEASE-amd64-bootonly.iso is okay... Debian / Ubuntu is okay . Other way is.. plug out memory to 288GB , FreeBSD 9.1 boot is normal ... So.. FreeBSD 8.3 on 384GB memory server is okay , but FreeBSD 9.1 is not. >How-To-Repeat: 384GB memory >Fix: At boot menu [2] escape to loader prompt OK set kern.maxbcache="64M" OK boot >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu Jul 4 10:26:09 2013 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4489032D for ; Thu, 4 Jul 2013 10:26:09 +0000 (UTC) (envelope-from miguelmclara@gmail.com) Received: from mail-bk0-x22c.google.com (mail-bk0-x22c.google.com [IPv6:2a00:1450:4008:c01::22c]) by mx1.freebsd.org (Postfix) with ESMTP id CCD0F1D38 for ; Thu, 4 Jul 2013 10:26:08 +0000 (UTC) Received: by mail-bk0-f44.google.com with SMTP id 6so556370bkj.31 for ; Thu, 04 Jul 2013 03:26:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=TAv+LPPaSkPbJZak65HnlykCkkh8HGs5iuSonkIT2qI=; b=xlyoQaehJmcebAyjH5AjFHfBUSZGqKTn2759MbpJHq4GS4DXBDyCEvpPFKGbsKfTcv rTzyJRtv1VFy1+L6ghZHyB1FuQtU7OHLk7dGW72JzxHrHRyXwn4pvZ7zt1Z7y3pNYPLG djyoEnXCWXpscjZKkciOrjfOVhb8oCCLUNNrNNjtrz6GQhLyrlgjIWHd3Zjwr5SPNr9e 7OJ8+dPHEGv7jc9Rm6SAGEY5qqt23S9PF68hGXsYPq38s1DIHqFdYl93p9RMUl/ZBn+8 yRw+ZeRstAgo5BssTTxFGCAwQHb2P576RlojsO1cCHmRBGohXzMsp6309xJ2EZohn3PW Zvhw== X-Received: by 10.204.228.139 with SMTP id je11mr928857bkb.83.1372933567852; Thu, 04 Jul 2013 03:26:07 -0700 (PDT) Received: from [10.10.50.70] (bl18-121-5.dsl.telepac.pt. [188.83.121.5]) by mx.google.com with ESMTPSA id eu16sm625397bkc.0.2013.07.04.03.26.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Jul 2013 03:26:07 -0700 (PDT) Message-ID: <51D55BC4.5080409@gmail.com> Date: Thu, 04 Jul 2013 11:25:56 +0000 From: "Mike C." User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130701 Thunderbird/17.0.7 MIME-Version: 1.0 To: Lars Engels Subject: Re: Realtek USB 2.0 Card Reader (Freebsd 10 - current) References: <20130703105109.GQ88288@e-new.0x20.net> <51D48FD2.5050504@gmail.com> <20130704070216.GY88288@e-new.0x20.net> In-Reply-To: <20130704070216.GY88288@e-new.0x20.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: 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, 04 Jul 2013 10:26:09 -0000 On 07/04/13 07:02, Lars Engels wrote: > On Wed, Jul 03, 2013 at 08:36:03PM +0000, Miguel Clara wrote: >> the thing is according to usbconfig the system doesn't even detect the card >> reader... if it doesn't detect the card reader it surely won't read any >> card > What Alex is suggesting is that you need to insert a card and then boot > the system and hope that the reader is recognized. Alex guess was right, I do see a new entry in usbconfig now: ugen1.3: at usbus1, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) I still can't access the card, and nothing shows up in demesg, tried plug/unplug.... no luck Some research on USB2.0-CRW in the mailling list lead me to this: http://lists.freebsd.org/pipermail/freebsd-usb/2012-May/011230.html So I should add to /usr/src/sys/dev/usb/usbdevs the line product REALTEK USB201CRW 0x0129 USB20CRW Card Reader correct? However I have no idea what "quirk" changes should I apply, or how to find more info about it. Thanks! From owner-freebsd-usb@FreeBSD.ORG Thu Jul 4 15:42:37 2013 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7AB0AC21 for ; Thu, 4 Jul 2013 15:42:37 +0000 (UTC) (envelope-from miguelmclara@gmail.com) Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [IPv6:2a00:1450:400c:c05::230]) by mx1.freebsd.org (Postfix) with ESMTP id 130681D83 for ; Thu, 4 Jul 2013 15:42:36 +0000 (UTC) Received: by mail-wi0-f176.google.com with SMTP id ey16so6450065wid.9 for ; Thu, 04 Jul 2013 08:42:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=9nY3J57Lt6ETYBJoYRvOqpYaZllEl36l2kjWw/hkgr0=; b=cm6qxIr87IWAtjsR/8GRlQ4S6ezAT6zB+tEno2kzUwXK5XeRc6/76GQa/sISSnt+QW J2HW4X7715w2aEibBPGqUSsoQM3NZ5kBP31Nq00evu1rKLqz9elnkWYzOLzxkblchp2O TO3CrwULxNkOvdCIaPRr4UEXswlZfG16yneSfmmRYnj3mAaxKsZ+AVrsu/dDUyqL5j7u MhR4JVXdu3pXXcNjvCR46oC2TvfvNfCMoN1GfyqTVKBzui56O7Bz+meIPyZ4NgjTbL62 dUiz2RNsmgyWAIf+yx0icwHDAVbjCvZVm451zYgfniMExel6tvvapBRr6GefP9nX8Kqc gSMA== MIME-Version: 1.0 X-Received: by 10.180.210.148 with SMTP id mu20mr21134030wic.38.1372952556051; Thu, 04 Jul 2013 08:42:36 -0700 (PDT) Received: by 10.194.163.226 with HTTP; Thu, 4 Jul 2013 08:42:35 -0700 (PDT) Received: by 10.194.163.226 with HTTP; Thu, 4 Jul 2013 08:42:35 -0700 (PDT) In-Reply-To: <51D55BC4.5080409@gmail.com> References: <20130703105109.GQ88288@e-new.0x20.net> <51D48FD2.5050504@gmail.com> <20130704070216.GY88288@e-new.0x20.net> <51D55BC4.5080409@gmail.com> Date: Thu, 4 Jul 2013 15:42:35 +0000 Message-ID: Subject: Re: Realtek USB 2.0 Card Reader (Freebsd 10 - current) From: Miguel Clara To: Lars Engels Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: 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, 04 Jul 2013 15:42:37 -0000 No dia 04/07/2013 11:26, "Mike C." escreveu: > > On 07/04/13 07:02, Lars Engels wrote: > > On Wed, Jul 03, 2013 at 08:36:03PM +0000, Miguel Clara wrote: > >> the thing is according to usbconfig the system doesn't even detect the card > >> reader... if it doesn't detect the card reader it surely won't read any > >> card > > What Alex is suggesting is that you need to insert a card and then boot > > the system and hope that the reader is recognized. > > Alex guess was right, I do see a new entry in usbconfig now: > > ugen1.3: at usbus1, cfg=255 md=HOST spd=HIGH > (480Mbps) pwr=ON (500mA) > > I still can't access the card, and nothing shows up in demesg, tried > plug/unplug.... no luck > > Some research on USB2.0-CRW in the mailling list lead me to this: > http://lists.freebsd.org/pipermail/freebsd-usb/2012-May/011230.html > > So I should add to /usr/src/sys/dev/usb/usbdevs the line > > product REALTEK USB20CRW 0x0129 USB20CRW Card Reader > Actually there's one line for this already with a different product code, which matches the one in the referred post... so I added it with USB20CRW_0129. recompiling... > correct? > > However I have no idea what "quirk" changes should I apply, or how to > find more info about it. > > Thanks! From owner-freebsd-usb@FreeBSD.ORG Thu Jul 4 18:58:31 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C5B354A4; Thu, 4 Jul 2013 18:58:31 +0000 (UTC) (envelope-from bsd.gaijin@gmail.com) Received: from mail-yh0-x22d.google.com (mail-yh0-x22d.google.com [IPv6:2607:f8b0:4002:c01::22d]) by mx1.freebsd.org (Postfix) with ESMTP id 7DF8B1911; Thu, 4 Jul 2013 18:58:31 +0000 (UTC) Received: by mail-yh0-f45.google.com with SMTP id b20so586137yha.18 for ; Thu, 04 Jul 2013 11:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:subject:date:message-id:cc:to:mime-version :x-mailer; bh=Xa2Cq9i8XmW8iCiQMoHSDPkhluFAHQkuoxJCml/vcT8=; b=Kk7A1sTG9vt7yVrCsql+X08n6/jHWfjEjg0Vz4vE1X5HRg7hx44vWvlVjjJ91PLMdK Lrvvrfsr2IigWrFS8EgbDV4vv7fIWXp20VMUzwE2Fr/vhgCJJP5U0NC7LixPUeaVQGdV vnEW3m1SH+D4OTpVnGhmBPST6o1MAX9Jauz/Lb1LYWaxrfou0/qAUHpbqB9XI8nciDeL nXafMvIq1sM+cnoeT8/Oh5P536g51WdVdUpSZewFgizGLwD4yzbEplWppO5wkCKLvXre CzHLwSA286zkuOf9BmKvtKmMlglqjMHHcPS3ajEgLsXTkBoYZsnXilxdEyFNc/FFIZa3 6zuQ== X-Received: by 10.236.207.2 with SMTP id m2mr3804459yho.214.1372964311049; Thu, 04 Jul 2013 11:58:31 -0700 (PDT) Received: from [10.0.3.5] (pool-96-242-215-113.nwrknj.fios.verizon.net. [96.242.215.113]) by mx.google.com with ESMTPSA id s29sm6729097yhf.6.2013.07.04.11.58.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Jul 2013 11:58:30 -0700 (PDT) From: Alexandre Kovalenko Subject: XHCI umass support breaks between r248085 and r252560 on 9-STABLE Date: Thu, 4 Jul 2013 14:58:30 -0400 Message-Id: <94A3DD2E-F2E2-4302-8197-BAB213641E2F@gmail.com> To: freebsd-usb@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) X-Mailer: Apple Mail (2.1508) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-stable@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, 04 Jul 2013 18:58:31 -0000 Three different external hard drives (Seagate, Western Digital and = noname USB 3.0 enclosure) refused to be recognized as the umass devices. = Reverting /usr/src/sys/dev/bsd/controller to r248085, building and = loading just xhci module makes drives appear again. Below are snippets = from the log in both cases: Non working: Jul 4 14:35:17 twinhead kernel: xhci0: mem 0xfddfe000-0xfddfffff irq 16 at device 0.0 on pci2 Jul 4 14:35:17 twinhead kernel: xhci0: 64 byte context size. Jul 4 14:35:17 twinhead kernel: usbus0 on xhci0 Jul 4 14:35:17 twinhead kernel: usbus0: 5.0Gbps Super Speed USB v3.0 Jul 4 14:35:17 twinhead kernel: ugen0.1: <0x1912> at usbus0 Jul 4 14:35:17 twinhead kernel: uhub0: <0x1912 XHCI root HUB, class = 9/0, rev 3.00/1.00, addr 1> on usbus0 Jul 4 14:35:17 twinhead kernel: uhub0: 8 ports with 8 removable, self = powered Jul 4 14:35:24 twinhead kernel: ugen0.2: at usbus0 Jul 4 14:35:24 twinhead kernel: umass0: on usbus0 Jul 4 14:35:29 twinhead kernel: (probe0:umass-sim0:0:0:0): INQUIRY. = CDB: 12 00 00 00 24 00=20 Jul 4 14:35:29 twinhead kernel: (probe0:umass-sim0:0:0:0): CAM status: = CCB request completed with an error Jul 4 14:35:29 twinhead kernel: (probe0:umass-sim0:0:0:0): Retrying = command Jul 4 14:35:30 twinhead kernel: (probe0:umass-sim0:0:0:0): INQUIRY. = CDB: 12 00 00 00 24 00=20 Jul 4 14:35:30 twinhead kernel: (probe0:umass-sim0:0:0:0): CAM status: = CCB request completed with an error Jul 4 14:35:30 twinhead kernel: (probe0:umass-sim0:0:0:0): Retrying = command Jul 4 14:35:35 twinhead kernel: (probe0:umass-sim0:0:0:0): INQUIRY. = CDB: 12 00 00 00 24 00=20 Jul 4 14:35:35 twinhead kernel: (probe0:umass-sim0:0:0:0): CAM status: = CCB request completed with an error Jul 4 14:35:35 twinhead kernel: (probe0:umass-sim0:0:0:0): Retrying = command Jul 4 14:35:36 twinhead kernel: (probe0:umass-sim0:0:0:0): INQUIRY. = CDB: 12 00 00 00 24 00=20 Jul 4 14:35:36 twinhead kernel: (probe0:umass-sim0:0:0:0): CAM status: = CCB request completed with an error Jul 4 14:35:36 twinhead kernel: (probe0:umass-sim0:0:0:0): Retrying = command Jul 4 14:35:41 twinhead kernel: (probe0:umass-sim0:0:0:0): INQUIRY. = CDB: 12 00 00 00 24 00=20 Jul 4 14:35:41 twinhead kernel: (probe0:umass-sim0:0:0:0): CAM status: = CCB request completed with an error Jul 4 14:35:41 twinhead kernel: (probe0:umass-sim0:0:0:0): Error 5, = Retries exhausted Working: Jul 4 14:40:20 twinhead kernel: ugen0.2: at usbus0 = (disconnected) Jul 4 14:40:20 twinhead kernel: umass0: at uhub0, port 2, addr 1 = (disconnected) Jul 4 14:40:27 twinhead kernel: ugen0.2: at usbus0 Jul 4 14:40:27 twinhead kernel: umass0: on usbus0 Jul 4 14:40:27 twinhead kernel: (probe0:umass-sim0:0:0:0): REPORT LUNS. = CDB: a0 00 00 00 00 00 00 00 00 10 00 00=20 Jul 4 14:40:27 twinhead kernel: (probe0:umass-sim0:0:0:0): CAM status: = SCSI Status Error Jul 4 14:40:27 twinhead kernel: (probe0:umass-sim0:0:0:0): SCSI status: = Check Condition Jul 4 14:40:27 twinhead kernel: (probe0:umass-sim0:0:0:0): SCSI sense: = ILLEGAL REQUEST asc:20,0 (Invalid command operation code) Jul 4 14:40:27 twinhead kernel: (probe0:umass-sim0:0:0:0): Error 22, = Unretryable error Jul 4 14:40:27 twinhead kernel: da0 at umass-sim0 bus 0 scbus4 target 0 = lun 0 Jul 4 14:40:27 twinhead kernel: da0: = Fixed Direct Access SCSI-5 device=20 Jul 4 14:40:27 twinhead kernel: da0: 400.000MB/s transfers Jul 4 14:40:27 twinhead kernel: da0: 190782MB (390721968 512 byte = sectors: 255H 63S/T 24321C) Jul 4 14:40:27 twinhead kernel: da0: quirks=3D0x2 I can provide additional information or try patches as necessary. Alexandre "Sunny" Kovalenko (=D0=9E=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0= =B4=D1=80 =D0=9A=D0=BE=D0=B2=D0=B0=D0=BB=D0=B5=D0=BD=D0=BA=D0=BE) From owner-freebsd-usb@FreeBSD.ORG Fri Jul 5 19:24:28 2013 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CBFDEB19; Fri, 5 Jul 2013 19:24:28 +0000 (UTC) (envelope-from gonzo@id.bluezbox.com) Received: from id.bluezbox.com (id.bluezbox.com [88.198.91.248]) by mx1.freebsd.org (Postfix) with ESMTP id 811E51E63; Fri, 5 Jul 2013 19:24:28 +0000 (UTC) Received: from [207.6.254.8] (helo=[192.168.1.65]) by id.bluezbox.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1UvBcB-000C5m-8q; Fri, 05 Jul 2013 12:24:21 -0700 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: Beaglebone USB driver (Mentor Graphics OTG) From: Oleksandr Tymoshenko In-Reply-To: Date: Fri, 5 Jul 2013 12:24:00 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <49E5BE45-208C-4AAD-980D-590F32D9B600@bluezbox.com> References: <51608AA4.2020804@bluezbox.com> <51611A7B.2010105@bitfrost.no> <0927BB4C-6917-408D-B102-AB98F72314B6@bluezbox.com> <51CBDFEA.7050203@bitfrost.no> To: Hans Petter Selasky X-Mailer: Apple Mail (2.1503) Sender: gonzo@id.bluezbox.com X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: On 2013-07-01, at 9:48 PM, Oleksandr Tymoshenko wrote: > > On 2013-06-26, at 11:47 PM, Hans Petter Selasky wrote: > >> On 06/27/13 02:53, Oleksandr Tymoshenko wrote: >>> >>> On 2013-04-07, at 12:04 AM, Hans Petter Selasky wrote: >>> >>>> On 04/06/13 22:50, Oleksandr Tymoshenko wrote: >>>>> Hello, >>>>> [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: bluezbox.com] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: arm@freebsd.org, 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, 05 Jul 2013 19:24:28 -0000 On 2013-07-01, at 9:48 PM, Oleksandr Tymoshenko = wrote: >=20 > On 2013-06-26, at 11:47 PM, Hans Petter Selasky = wrote: >=20 >> On 06/27/13 02:53, Oleksandr Tymoshenko wrote: >>>=20 >>> On 2013-04-07, at 12:04 AM, Hans Petter Selasky = wrote: >>>=20 >>>> On 04/06/13 22:50, Oleksandr Tymoshenko wrote: >>>>> Hello, >>>>>=20 .. skipped .. >=20 > Writing 127 to FADDR breaks driver. It can't even attach device = properly.=20 >=20 > I do not completely understand the scenario behind this requirement. = My=20 > recollection is: when we cancel IN transaction somehow we should = ensure=20 > that function that currently handles it does not stuck forever. =46rom = what=20 > I see it's just impossible. There is internal NAK timer that fails the = transaction > once it reached configured value (or 3 by default AFAIR). Isn't it = enough? >=20 > I tried unloading active uwrtn driver - it unloads with some delay but = as=20 > far as I can see from logs delay is not due to USB internal = transactions code > it must be upper layer.=20 >=20 > Could you, please, elaborate on the matter? >=20 > Here is updated version of the patch:=20 > = http://people.freebsd.org/~gonzo/arm/patches/beaglebone-usb-20130701.diff >=20 > Besides cosmetic fixes I also synced = dev/usb/controller/musb_otg_atmelarm.c > to the latest changes of core logic: added required wrappers and some=20= > initializations.=20 >=20 > I do not longer have access to USB analyzer so my debugging abilities > is somewhat limited now. Hi Hans, The driver seems to be fairly stable judging from my tests. I'd like to = commit it as-is, get more test coverage from users and tighten up loose ends = then.=20 What do you think? From owner-freebsd-usb@FreeBSD.ORG Sat Jul 6 22:10:01 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D9D2A9B3 for ; Sat, 6 Jul 2013 22:10: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 B077A1785 for ; Sat, 6 Jul 2013 22:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r66MA1kn095020 for ; Sat, 6 Jul 2013 22:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r66MA15G095019; Sat, 6 Jul 2013 22:10:01 GMT (envelope-from gnats) Date: Sat, 6 Jul 2013 22:10:01 GMT Message-Id: <201307062210.r66MA15G095019@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: "Mike C." Subject: Re: usb/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: "Mike C." List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jul 2013 22:10:01 -0000 The following reply was made to PR usb/179342; it has been noted by GNATS. From: "Mike C." To: bug-followup@FreeBSD.org Cc: Hans Petter Selasky Subject: Re: usb/179342: Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!) Date: Sat, 06 Jul 2013 23:07:18 +0000 This is a multi-part message in MIME format. --------------020508010507010404080808 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I adapted the previous patch to work with the recent changes and it work for me... So I've updated to the latest revision (revision 252698) and aplied the patch, has expect it works and I can use my USB 3.0 ports! --------------020508010507010404080808 Content-Type: text/plain; charset=us-ascii; name="xhci_timer.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xhci_timer.diff" === xhci.h ================================================================== --- xhci.h (revision 252698) +++ xhci.h (local) @@ -438,6 +438,8 @@ /* configure message */ struct usb_bus_msg sc_config_msg[2]; + struct usb_callout sc_callout; + union xhci_hub_desc sc_hub_desc; struct cv sc_cmd_cv; === xhci_pci.c ================================================================== --- xhci_pci.c (revision 252698) +++ xhci_pci.c (local) @@ -142,6 +142,16 @@ usb_callout_reset(&sc->sc_callout, 1, (void *)&xhci_interrupt_poll, sc); } +static void +xhci_timer(void *_sc) +{ + struct xhci_softc *sc = _sc; + USB_BUS_UNLOCK(&sc->sc_bus); + xhci_interrupt(sc); + USB_BUS_LOCK(&sc->sc_bus); + usb_callout_reset(&sc->sc_callout, 1, (void *)&xhci_timer, sc); +} + static int xhci_pci_attach(device_t self) { @@ -186,6 +196,12 @@ sprintf(sc->sc_vendor, "0x%04x", pci_get_vendor(self)); + usb_callout_init_mtx(&sc->sc_callout, &sc->sc_bus.bus_mtx, 0); + + USB_BUS_LOCK(&sc->sc_bus); + xhci_timer(sc); + USB_BUS_UNLOCK(&sc->sc_bus); + if (sc->sc_irq_res != NULL) { err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE, NULL, (driver_intr_t *)xhci_interrupt, sc, &sc->sc_intr_hdl); --------------020508010507010404080808--