From owner-freebsd-usb@FreeBSD.ORG Sun Aug 4 08:39:29 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0B6A9653 for ; Sun, 4 Aug 2013 08:39:29 +0000 (UTC) (envelope-from hans.petter.selasky@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 8EC452293 for ; Sun, 4 Aug 2013 08:39:28 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 44AC17A29A; Sun, 4 Aug 2013 10:39:26 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id E2B488ECD44; Sun, 4 Aug 2013 10:39:32 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UXKx3YUdvjeG; Sun, 4 Aug 2013 10:39:32 +0200 (CEST) Received: from mail.lockless.no (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 21B0D8ECD43; Sun, 4 Aug 2013 10:39:32 +0200 (CEST) Subject: RE: USB DMA memory Allocation From: =?utf-8?Q?Hans_Petter_Selasky?= To: =?utf-8?Q?aseem=2Ejolly?= , =?utf-8?Q?freebsd-usb=40freebsd=2Eorg?= Date: Sun, 4 Aug 2013 10:39:31 +0200 Mime-Version: 1.0 In-Reply-To: <1375551235535-5833585.post@n5.nabble.com> References: <1375489015367-5833506.post@n5.nabble.com> X-Priority: 3 (Normal) X-Mailer: Zarafa 7.1.4-41394 Message-Id: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Aug 2013 08:39:29 -0000 If you Google for USB_ERR_NOMEM, there has been some similar threads in t= he past. Maybe your solution is in the archive already.=0D=0A=0D=0AThank = you!=0D=0A=0D=0A--HPS=0D=0A=0D=0A=20=0D=0A=20=0D=0A-----Original message-= ----=0D=0A> From:aseem.jolly >=0D=0A> Sent: Saturday 3rd August 2013 19:34=0D=0A> To: freebs= d-usb@freebsd.org =20=0D=0A> Subject: RE:= USB DMA memory Allocation=0D=0A>=20=0D=0A> I am getting the following er= ror 'USB_ERR_NOMEM' when I try to allocate DMA=0D=0A> memrory from [0 4GB= ] range, I have to enable 64 bit memory allocation.=0D=0A>=20=0D=0A> Can = you please briefly explain what I need to do to enable this support=3F=0D= =0A>=20=0D=0A>=20=0D=0A>=20=0D=0A> --=0D=0A> View this message in context= : http://freebsd.1045724.n5.nabble.com/USB-DMA-memory-Allocation-tp583350= 6p5833585.html =20=0D=0A> Sent from the freebsd-usb mailing= list archive at Nabble.com.=0D=0A> _____________________________________= __________=0D=0A> freebsd-usb@freebsd.org mailing list=0D=0A> http://lists.freebsd.org/mailman/listinfo/freebsd-= usb =20=0D=0A> To = unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org "=0D=0A>=20=0D=0A=0D=0A From owner-freebsd-usb@FreeBSD.ORG Sun Aug 4 21:05:57 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6CB98C67 for ; Sun, 4 Aug 2013 21:05:57 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm18-vm0.bullet.mail.bf1.yahoo.com (nm18-vm0.bullet.mail.bf1.yahoo.com [98.139.213.138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0C5AE29DD for ; Sun, 4 Aug 2013 21:05:56 +0000 (UTC) Received: from [98.139.212.144] by nm18.bullet.mail.bf1.yahoo.com with NNFMP; 04 Aug 2013 21:05:50 -0000 Received: from [98.139.211.205] by tm1.bullet.mail.bf1.yahoo.com with NNFMP; 04 Aug 2013 21:05:50 -0000 Received: from [127.0.0.1] by smtp214.mail.bf1.yahoo.com with NNFMP; 04 Aug 2013 21:05:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1375650350; bh=3VpdkoH3HsJ8cLk6pcy1GIsRPYdaIdy6DbeIri4FHLQ=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Subject:From:Reply-To:To:Content-Type:Date:Message-ID:Mime-Version:X-Mailer; b=DmnLcdJj9fhwCbRj+b+YNRXqEBdEu5g++BEcTCXuJUcERc59xXJhGYpL3cTRr8egfN5zVo7TrXeczn4zjMm7uJKcDek3ifJ3yVbWozyBOltM/+yZUfpnisF4BCCXtnw0swlE8vmflonVT20R+58T6wksRDjGzwI6HoMji6spO+k= X-Yahoo-Newman-Id: 629972.39348.bm@smtp214.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: yy0DFIcVM1kG657m_DB6AP67v_kBG6cCE9slLalMgcJVoPh JYFZP7bBU2TiHZQoWlihhkVmsRPTNcFwfm2Fbq7kOVLeY6GNNITAtTSqVSPN RU6yeYt52dkCGfBXle8YH.Xsr2G06iYMwJCX_JDEhzDF21mhwFx4CCCgjOzD KgOV8G5CRjzEZfBff0gwBqq8lKvnXwoSGtxeR1P2sxtkcxBwmOKFStW1MI01 SEJgiIH.OGqlkUdXHes5hurQMEl1GHBcDbWdyQ7egqjZPVV73owqO0zVdaAm TIhQooIyjrKcMRiJ0WDmTGJgJsIzHrjucetnIsF7NS4.yIo9yJMLPaMtibrL Nxl2alSMSiTkGu4dLIOKstK47_QkRtNhowcSeQmu6QRV6GobY4W7e_YN7lmw xcrJqin35KbKCH4hNGKpO6FhseeptrJM6bsM4dUKlnxJroLgX7kpXUzCt7hQ MS1Ycriam6kZKRj4bSgRziLUreneTfE1hDs8rPQ5.MqX.gdK6sRPrBrcKkNC 56Uo79.kYix1X_0Zz3mJfU1CSns6izjXCAeLLxN8tjeyuu0Ttuu0- X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [192.168.1.210] (sean_bruno@71.202.40.63 with ) by smtp214.mail.bf1.yahoo.com with SMTP; 04 Aug 2013 14:05:50 -0700 PDT Subject: Drive continues to spin down and spin back up From: Sean Bruno To: "freebsd-usb@freebsd.org" Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-TPubpLsIl07etfewS/+5" Date: Sun, 04 Aug 2013 14:05:49 -0700 Message-ID: <1375650349.1445.877.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: sbruno@freebsd.org List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Aug 2013 21:05:57 -0000 --=-TPubpLsIl07etfewS/+5 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Was using this drive with -current today and noticed that it seems to spin down into power save and back up again a lot. When its not being used, it tried to go into power save, but since it is mounted, it keeps getting spun back up. Is there a quirk for this somewhere? ugen1.3: at usbus1, cfg=3D0 md=3DHOST spd=3DHIGH (480Mbps) pwr=3DON (500mA) (da0:umass-sim0:0:0:0): lost device - 0 outstanding, 3 refs (pass3:umass-sim0:0:0:0): lost device (pass3:umass-sim0:0:0:0): removing device entry (da0:umass-sim0:0:0:0): removing device entry ugen1.3: at usbus1 umass0: on usbus1 umass0: SCSI over Bulk-Only; quirks =3D 0x0100 umass0:3:0:-1: Attached to scbus3 pass3 at umass-sim0 bus 0 scbus3 target 0 lun 0 pass3: Fixed Direct Access SCSI-4 device=20 pass3: Serial Number ABCDEF0123456847 pass3: 40.000MB/s transfers GEOM: new disk da0 da0 at umass-sim0 bus 0 scbus3 target 0 lun 0 da0: Fixed Direct Access SCSI-4 device=20 da0: Serial Number ABCDEF0123456847 da0: 40.000MB/s transfers da0: 953869MB (1953525168 512 byte sectors: 255H 63S/T 121601C) da0: quirks=3D0x2 da0: Delete methods: --=-TPubpLsIl07etfewS/+5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (FreeBSD) iQEcBAABAgAGBQJR/sItAAoJEBkJRdwI6BaHf7cH/0Uu8orQFhVIYDIsOeO3Sow8 DKBPIeIt6+jMC7LGnddC0xA4XdnoWU+QV3JXK/5f39WlwHnp6qc8sO/169itvZIQ gshu8eJqdsmerdOco9PkXOmzfyNlQe9Dt0FKcS3czvGKrloICxgmIGPgiJFJZasa mONEQW6UTxvqAAYY3OygP/spHZaVrTUJmrutvI2lIup+trcTjuBCP0vX0n7yZL+4 MJgBoFklVUimH/UGfEyEQp4ISmSvfOlI/etARqk3boRXDvkopVbb06v+kp3G0igb Y8yXY5FgVV3DT3bfbtvLBc2Q7HnYwHhXI0rWp1V5Zkur+zMRLVGC3+eWfKF0LUQ= =PKB3 -----END PGP SIGNATURE----- --=-TPubpLsIl07etfewS/+5-- From owner-freebsd-usb@FreeBSD.ORG Mon Aug 5 11:06:54 2013 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6A613F90 for ; Mon, 5 Aug 2013 11:06:54 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 48C8E25B3 for ; Mon, 5 Aug 2013 11:06:54 +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 r75B6sY8036256 for ; Mon, 5 Aug 2013 11:06:54 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r75B6rdM036254 for freebsd-usb@FreeBSD.org; Mon, 5 Aug 2013 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 5 Aug 2013 11:06:53 GMT Message-Id: <201308051106.r75B6rdM036254@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, 05 Aug 2013 11:06:54 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/180923 usb SNES USB gamepad controller does not work. o usb/180837 usb [scsi_da] [patch] Kingston DT 101 G2 usb stick quirk ( o usb/180726 usb XHCI umass support breaks between r248085 and r252560 o usb/180657 usb [PATCH] Filco Majestouch 2 keyboard recognized as keyb o usb/180617 usb New quirk (another member of Western Digital My Passpo o usb/180254 usb FreeBSD 9.1 on 384GB memory server 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 kern/138292 usb [zyd] [usb8] "zyd0: device timeout" with ZyXEL G-202 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 f usb/128745 usb [zyd] zyd theoretically supported usb device makes ker 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 f usb/117150 usb [zyd] usb zyd device under moderate load panics system 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 313 problems total. From owner-freebsd-usb@FreeBSD.ORG Tue Aug 6 01:24:48 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E82B24DE for ; Tue, 6 Aug 2013 01:24:48 +0000 (UTC) (envelope-from aseem.jolly@gmail.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C9EEE2153 for ; Tue, 6 Aug 2013 01:24:48 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1V6W10-0005Mu-S6 for freebsd-usb@freebsd.org; Mon, 05 Aug 2013 18:24:46 -0700 Date: Mon, 5 Aug 2013 18:24:46 -0700 (PDT) From: "aseem.jolly" To: freebsd-usb@freebsd.org Message-ID: <1375752286864-5834206.post@n5.nabble.com> In-Reply-To: References: <1375489015367-5833506.post@n5.nabble.com> <1375551235535-5833585.post@n5.nabble.com> Subject: RE: USB DMA memory Allocation MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Tue, 06 Aug 2013 01:24:49 -0000 I don't want to play around with 'kern.maxbcache', can we actually allow driver to support 64 bit DMA? In future we can use a bootarg/sysctl to enable this support if someone comes across this issue else we will use 32 bit DMA allocations. I am willing to enable this support, please guide me. -- View this message in context: http://freebsd.1045724.n5.nabble.com/USB-DMA-memory-Allocation-tp5833506p5834206.html Sent from the freebsd-usb mailing list archive at Nabble.com. From owner-freebsd-usb@FreeBSD.ORG Tue Aug 6 06:58:35 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 92975679 for ; Tue, 6 Aug 2013 06:58:35 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 4D02E2BB7 for ; Tue, 6 Aug 2013 06:58:35 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 460327A233; Tue, 6 Aug 2013 08:58:28 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 5DE808F170C; Tue, 6 Aug 2013 08:58:35 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0ysyFZTMHXEY; Tue, 6 Aug 2013 08:58:34 +0200 (CEST) Received: from laptop015.hselasky.homeunix.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 2E03E8F1709; Tue, 6 Aug 2013 08:58:34 +0200 (CEST) Message-ID: <52009EEB.1040404@bitfrost.no> Date: Tue, 06 Aug 2013 08:59:55 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: "aseem.jolly" Subject: Re: USB DMA memory Allocation References: <1375489015367-5833506.post@n5.nabble.com> <1375551235535-5833585.post@n5.nabble.com> <1375752286864-5834206.post@n5.nabble.com> In-Reply-To: <1375752286864-5834206.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Aug 2013 06:58:35 -0000 On 08/06/13 03:24, aseem.jolly wrote: > I don't want to play around with 'kern.maxbcache', can we actually allow > driver to support 64 bit DMA? > In future we can use a bootarg/sysctl to enable this support if someone > comes across this issue else we will use 32 bit DMA allocations. > > I am willing to enable this support, please guide me. > Hi, You can start with the EHCI driver, if you like. Download the EHCI PDF from INTEL's site. Figure out all the 32-bit HIGH fields and put valid data in them. For all 32-bit address there is a corresponding 32-bit high field. Thank you! --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Aug 7 02:32:34 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4BF62B99 for ; Wed, 7 Aug 2013 02:32:34 +0000 (UTC) (envelope-from aseem.jolly@gmail.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2C0352FE1 for ; Wed, 7 Aug 2013 02:32:33 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1V6tY8-0006DC-4y for freebsd-usb@freebsd.org; Tue, 06 Aug 2013 19:32:32 -0700 Date: Tue, 6 Aug 2013 19:32:32 -0700 (PDT) From: "aseem.jolly" To: freebsd-usb@freebsd.org Message-ID: <1375842752147-5834384.post@n5.nabble.com> In-Reply-To: <52009EEB.1040404@bitfrost.no> References: <1375489015367-5833506.post@n5.nabble.com> <1375551235535-5833585.post@n5.nabble.com> <1375752286864-5834206.post@n5.nabble.com> <52009EEB.1040404@bitfrost.no> Subject: Re: USB DMA memory Allocation MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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, 07 Aug 2013 02:32:34 -0000 I have gone through EHCI specification(was pretty long so couldn't finish it though) and below is what that I have understood. "Control Data Structure Segment Register 'CTRLDSSEGMENT', This register allows the host software to locate all control data structures within the same 4 Gigabyte memory segment. This 32-bit register corresponds to the most significant address bits [63:32] for all EHCI data structures. If the 64-bit Addressing Capability field in Host controller configuration parametere register (HCCPARAMS) is set to 1, then 'CTRLDSSEGMENT' register is used with the link pointers to construct 64-bit addresses to EHCI control data structures. This register is concatenated with the link pointer from either the PERIODICLISTBASE, ASYNCLISTADDR, or any control data structure link field to construct a 64-bit address. We are programming 'CTRLDSSEGMENT' to the default value(00000000h) when we initialize the host controller(see ehci_init function)" I believe, we have to still confine us to a 4GB range and not specifially [0-4GB] range. On host initialization, we can set 'CTRLDSSEGMENT' register to the lowest address of a particular 4GB range and then the host controller will be able to locate all ehci data structures with in that segment by concatenation. We will accordingly adjust the address boundary restrictions in the parent dma tag. Could you please confirm once, and let me know if I have not understood it correctly. -- View this message in context: http://freebsd.1045724.n5.nabble.com/USB-DMA-memory-Allocation-tp5833506p5834384.html Sent from the freebsd-usb mailing list archive at Nabble.com. From owner-freebsd-usb@FreeBSD.ORG Wed Aug 7 06:25:35 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 55BC923F for ; Wed, 7 Aug 2013 06:25:35 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id D7A0729DE for ; Wed, 7 Aug 2013 06:25:34 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 733937A16E; Wed, 7 Aug 2013 08:10:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id D00D48F20A5; Wed, 7 Aug 2013 08:10:16 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P4pv5Kw1RmiQ; Wed, 7 Aug 2013 08:10:16 +0200 (CEST) Received: from laptop015.hselasky.homeunix.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 0A78C8F20A4; Wed, 7 Aug 2013 08:10:15 +0200 (CEST) Message-ID: <5201E517.3050200@bitfrost.no> Date: Wed, 07 Aug 2013 08:11:35 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: "aseem.jolly" Subject: Re: USB DMA memory Allocation References: <1375489015367-5833506.post@n5.nabble.com> <1375551235535-5833585.post@n5.nabble.com> <1375752286864-5834206.post@n5.nabble.com> <52009EEB.1040404@bitfrost.no> <1375842752147-5834384.post@n5.nabble.com> In-Reply-To: <1375842752147-5834384.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Aug 2013 06:25:35 -0000 On 08/07/13 04:32, aseem.jolly wrote: > I have gone through EHCI specification(was pretty long so couldn't finish it > though) and below is what that I have understood. > > "Control Data Structure Segment Register 'CTRLDSSEGMENT', This register > allows the host software to locate all control data structures within the > same 4 Gigabyte memory segment. This 32-bit register corresponds to the most > significant address bits [63:32] for all EHCI data structures. > > If the 64-bit Addressing Capability field in Host controller configuration > parametere register (HCCPARAMS) is set to 1, then 'CTRLDSSEGMENT' register > is used with the link pointers to construct 64-bit addresses to EHCI control > data structures. > > This register is concatenated with the link pointer from either the > PERIODICLISTBASE, ASYNCLISTADDR, > or any control data structure link field to construct a 64-bit address. We > are programming 'CTRLDSSEGMENT' to the default value(00000000h) when we > initialize the host controller(see ehci_init function)" > > I believe, we have to still confine us to a 4GB range and not specifially > [0-4GB] range. On host initialization, we can set 'CTRLDSSEGMENT' register > to the lowest address of a particular 4GB range and then the host controller > will be able to locate all ehci data structures with in that segment by > concatenation. We will accordingly adjust the address boundary restrictions > in the parent dma tag. > > Could you please confirm once, and let me know if I have not understood it > correctly. > Yes, that is correct. Not all structures can reside anywhere in memory. BTW: There is no such limitation for the XHCI controller. --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Aug 7 12:03:05 2013 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 689B6B31 for ; Wed, 7 Aug 2013 12:03:05 +0000 (UTC) (envelope-from toshi@ruby.ocn.ne.jp) Received: from msgw002-02.ocn.ad.jp (msgw002-02.ocn.ad.jp [180.37.203.77]) by mx1.freebsd.org (Postfix) with ESMTP id 338672661 for ; Wed, 7 Aug 2013 12:03:04 +0000 (UTC) Received: from localhost (p10039-ipngn100305sizuokaden.shizuoka.ocn.ne.jp [153.183.0.39]) by msgw002-02.ocn.ad.jp (Postfix) with ESMTP id AE6CF1F7097; Wed, 7 Aug 2013 21:02:57 +0900 (JST) Date: Wed, 07 Aug 2013 21:02:58 +0900 (JST) Message-Id: <20130807.210258.112628314.toshi@ruby.ocn.ne.jp> To: freebsd-usb@FreeBSD.org Subject: Re: HS isochronous transfer on musb_otg From: SAITOU Toshihide In-Reply-To: <51FB5230.3000503@bitfrost.no> References: <20130801.230713.74749403.toshi@ruby.ocn.ne.jp> <51FB5230.3000503@bitfrost.no> X-GPG-fingerprint: 34B3 0B6A 8520 F5B0 EBC7 69F6 C055 9F8A 0D49 F8FC X-Mailer: Mew version 6.2.51 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii 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, 07 Aug 2013 12:03:05 -0000 In message: <51FB5230.3000503@bitfrost.no> Hans Petter Selasky writes: > On 08/01/13 16:07, SAITOU Toshihide wrote: >> My UVC cam is not working with the musb_otg driver and >> libusb(3) on the BeagleBone Black. >> > > Hi, > > It might be that the packet multiplier is not set > correctly. Try to figure out which register this is, and > simply set the bits correctly. > > Thank you! > > --HPS > >> With the following changes to the musb_otg.c, it feels like >> the transaction is performed as expected but the data >> doesn't pass to the libusb_transfer's buffer. Does anyone >> know what is wrong? Thank you for your information, but still I don't understand what is the packet multiplier. Fortunately, there is a progress. With the patch at the end, the data from the UVC camera is arrived into the libusb_transfer's buffer. Now the problem is that the data of each transaction is scattered into the buffer of the packet. (now) | packet size | packet size | packet size | packet size | | DATA0 | DATA1 | DATA2 | DATA0 |... (expected) | packet size | packet size | packet size | | DATA0,1,2 | DATA0,1,2 | DATA0,1,2 |... I think if the length of the packet is set using libusb_set_iso_packet_length, all transaction data for the packet should be packed into it, at this time, max packet size is declared in the device descriptor so the device doesn't send the packet larger than that. Are these right? If so, is the musbotg_host_data_rx of musb_otg.c need to modify? 1729c1729 < MUSB2_WRITE_1(sc, MUSB2_REG_RXNAKLIMIT, 0); --- > MUSB2_WRITE_1(sc, MUSB2_REG_RXNAKLIMIT, MAX_NAK_TO); 3162c3162 < frx = 12; /* 4K */ --- > frx = 10; /* 1K */ 3164c3164 < MUSB2_VAL_FIFOSZ_4096 | --- > MUSB2_VAL_FIFOSZ_512 | 4046c4046 < parm->hc_max_frame_size = 0xc00; --- > parm->hc_max_frame_size = 0x400; SAITOU Toshihide From owner-freebsd-usb@FreeBSD.ORG Wed Aug 7 13:47:05 2013 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2D9B1F58 for ; Wed, 7 Aug 2013 13:47:05 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id B114E2D0C for ; Wed, 7 Aug 2013 13:47:04 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id BA45F7A2AF; Wed, 7 Aug 2013 15:47:02 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 3B8448F22EF; Wed, 7 Aug 2013 15:47:10 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oFLny5iTPtIH; Wed, 7 Aug 2013 15:47:09 +0200 (CEST) Received: from laptop015.hselasky.homeunix.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 436048F22EE; Wed, 7 Aug 2013 15:47:09 +0200 (CEST) Message-ID: <5202502D.20702@bitfrost.no> Date: Wed, 07 Aug 2013 15:48:29 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: SAITOU Toshihide Subject: Re: HS isochronous transfer on musb_otg References: <20130801.230713.74749403.toshi@ruby.ocn.ne.jp> <51FB5230.3000503@bitfrost.no> <20130807.210258.112628314.toshi@ruby.ocn.ne.jp> In-Reply-To: <20130807.210258.112628314.toshi@ruby.ocn.ne.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Aug 2013 13:47:05 -0000 On 08/07/13 14:02, SAITOU Toshihide wrote: > In message: <51FB5230.3000503@bitfrost.no> > Hans Petter Selasky writes: >> On 08/01/13 16:07, SAITOU Toshihide wrote: >>> My UVC cam is not working with the musb_otg driver and >>> libusb(3) on the BeagleBone Black. >>> >> >> Hi, >> >> It might be that the packet multiplier is not set >> correctly. Try to figure out which register this is, and >> simply set the bits correctly. >> >> Thank you! >> >> --HPS >> >>> With the following changes to the musb_otg.c, it feels like >>> the transaction is performed as expected but the data >>> doesn't pass to the libusb_transfer's buffer. Does anyone >>> know what is wrong? > > > Thank you for your information, but still I don't understand > what is the packet multiplier. Fortunately, there is a > progress. > > With the patch at the end, the data from the UVC camera is > arrived into the libusb_transfer's buffer. Now the problem is > that the data of each transaction is scattered into the buffer > of the packet. > > (now) > > | packet size | packet size | packet size | packet size | > | DATA0 | DATA1 | DATA2 | DATA0 |... > > > (expected) > > | packet size | packet size | packet size | > | DATA0,1,2 | DATA0,1,2 | DATA0,1,2 |... > > > I think if the length of the packet is set using > libusb_set_iso_packet_length, all transaction data for the > packet should be packed into it, at this time, max packet size > is declared in the device descriptor so the device doesn't > send the packet larger than that. Are these right? If so, is > the musbotg_host_data_rx of musb_otg.c need to modify? > Hi, The scattering is a bug in the MUSB driver's handling of incoming data. It should collect more data before advancing to the next frame! See: mustbotg_host_data_rx() function. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Aug 8 13:09:49 2013 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7EF9A749 for ; Thu, 8 Aug 2013 13:09:49 +0000 (UTC) (envelope-from toshi@ruby.ocn.ne.jp) Received: from defer104.ocn.ad.jp (defer104.ocn.ad.jp [122.28.15.168]) by mx1.freebsd.org (Postfix) with ESMTP id 308B72114 for ; Thu, 8 Aug 2013 13:09:48 +0000 (UTC) Received: from msgw001-04.ocn.ad.jp (msgw001-04.ocn.ad.jp [180.37.203.73]) by defer104.ocn.ad.jp (Postfix) with ESMTP id 1ED6A479E16 for ; Thu, 8 Aug 2013 22:09:48 +0900 (JST) Received: from localhost (p9131-ipngn100305sizuokaden.shizuoka.ocn.ne.jp [153.182.255.131]) by msgw001-04.ocn.ad.jp (Postfix) with ESMTP id 6712F833E6E; Thu, 8 Aug 2013 22:09:40 +0900 (JST) Date: Thu, 08 Aug 2013 22:09:39 +0900 (JST) Message-Id: <20130808.220939.219630261.toshi@ruby.ocn.ne.jp> To: freebsd-usb@FreeBSD.org Subject: Re: HS isochronous transfer on musb_otg From: SAITOU Toshihide In-Reply-To: <5202502D.20702@bitfrost.no> References: <51FB5230.3000503@bitfrost.no> <20130807.210258.112628314.toshi@ruby.ocn.ne.jp> <5202502D.20702@bitfrost.no> X-GPG-fingerprint: 34B3 0B6A 8520 F5B0 EBC7 69F6 C055 9F8A 0D49 F8FC X-Mailer: Mew version 6.2.51 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii 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: Thu, 08 Aug 2013 13:09:49 -0000 In message: <5202502D.20702@bitfrost.no> Hans Petter Selasky writes: > On 08/07/13 14:02, SAITOU Toshihide wrote: >> In message: <51FB5230.3000503@bitfrost.no> >> Hans Petter Selasky writes: >>> On 08/01/13 16:07, SAITOU Toshihide wrote: >>>> My UVC cam is not working with the musb_otg driver and >>>> libusb(3) on the BeagleBone Black. >>>> >>> >>> Hi, >>> >>> It might be that the packet multiplier is not set >>> correctly. Try to figure out which register this is, and >>> simply set the bits correctly. >>> >>> Thank you! >>> >>> --HPS >>> >>>> With the following changes to the musb_otg.c, it feels like >>>> the transaction is performed as expected but the data >>>> doesn't pass to the libusb_transfer's buffer. Does anyone >>>> know what is wrong? >> >> >> Thank you for your information, but still I don't understand >> what is the packet multiplier. Fortunately, there is a >> progress. >> >> With the patch at the end, the data from the UVC camera is >> arrived into the libusb_transfer's buffer. Now the problem >> is >> that the data of each transaction is scattered into the >> buffer >> of the packet. >> >> (now) >> >> | packet size | packet size | packet size | packet size | >> | DATA0 | DATA1 | DATA2 | DATA0 |... >> >> >> (expected) >> >> | packet size | packet size | packet size | >> | DATA0,1,2 | DATA0,1,2 | DATA0,1,2 |... >> >> >> I think if the length of the packet is set using >> libusb_set_iso_packet_length, all transaction data for the >> packet should be packed into it, at this time, max packet >> size >> is declared in the device descriptor so the device doesn't >> send the packet larger than that. Are these right? If so, >> is >> the musbotg_host_data_rx of musb_otg.c need to modify? >> > > Hi, > > The scattering is a bug in the MUSB driver's handling of > incoming data. It should collect more data before advancing > to the next frame! > > See: > > mustbotg_host_data_rx() function. I have confirmed the scattering is fixed by modifying the mustbotg_host_data_rx(), althought the modification I have made breaks other transfer type at the moment. Thank you, SAITOU Toshihide From owner-freebsd-usb@FreeBSD.ORG Fri Aug 9 12:00:01 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C24BBD22 for ; Fri, 9 Aug 2013 12:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A1BB9233C for ; Fri, 9 Aug 2013 12: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 r79C01hk078299 for ; Fri, 9 Aug 2013 12: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 r79C01P6078295; Fri, 9 Aug 2013 12:00:01 GMT (envelope-from gnats) Resent-Date: Fri, 9 Aug 2013 12:00:01 GMT Resent-Message-Id: <201308091200.r79C01P6078295@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, Antonis Anastasiadis Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id AD03BCCB for ; Fri, 9 Aug 2013 11:58:50 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9A692232E for ; Fri, 9 Aug 2013 11:58:50 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r79BwnX0018594 for ; Fri, 9 Aug 2013 11:58:49 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r79Bwnw7018593; Fri, 9 Aug 2013 11:58:49 GMT (envelope-from nobody) Message-Id: <201308091158.r79Bwnw7018593@oldred.freebsd.org> Date: Fri, 9 Aug 2013 11:58:49 GMT From: Antonis Anastasiadis To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: usb/181159: Problem attaching USB device 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, 09 Aug 2013 12:00:01 -0000 >Number: 181159 >Category: usb >Synopsis: Problem attaching USB device >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 09 12:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Antonis Anastasiadis >Release: 9.2-RC1 >Organization: >Environment: >Description: Using 9.2-RC1 system compiled with clang. The system is installed on a Hetzner EX40-SSD server. The problem is that a USB device cannot be attached. The device is from the company Peppercon/Raritan that allows the remote control of a server. It is connected to the VGA, keyboard and mouse ports of the server. The exact error from the kernel output is: usb_alloc_device: device init 2 failed (USB_ERR_IOERROR, ignored) ugen0.2: at usbus0 (disconnected) uhub_reattach_port: could not allocate new device I've managed to boot with an older 9.1-RELEASE kernel, which correctly attaches the USB device, so I can gather more information. The full dmesg output follows: Copyright (c) 1992-2012 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.1-RELEASE #3 r243710M: Tue Apr 23 10:52:10 CEST 2013 root@FreeBSD:/usr/obj/usr/src/sys/GENERIC amd64 module vtnet already present! CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz (3400.07-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x306c3 Family = 6 Model = 3c Stepping = 3 Features=0xbfebfbff Features2=0x7ffafbff,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND> AMD Features=0x2c100800 AMD Features2=0x21 TSC: P-state invariant, performance statistics real memory = 34359738368 (32768 MB) avail memory = 32882135040 (31358 MB) Event timer "LAPIC" quality 600 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs FreeBSD/SMP: 1 package(s) x 4 core(s) x 2 SMT threads cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 cpu4 (AP): APIC ID: 4 cpu5 (AP): APIC ID: 5 cpu6 (AP): APIC ID: 6 cpu7 (AP): APIC ID: 7 ACPI Warning: FADT (revision 5) is longer than ACPI 2.0 version, truncating length 268 to 244 (20110527/tbfadt-320) ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: Power Button (fixed) acpi0: reservation of 67, 1 (4) failed cpu0: on acpi0 cpu1: on acpi0 cpu2: on acpi0 cpu3: on acpi0 cpu4: on acpi0 cpu5: on acpi0 cpu6: on acpi0 cpu7: on acpi0 hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 550 atrtc0: port 0x70-0x77 irq 8 on acpi0 atrtc0: Warning: Couldn't map I/O. Event timer "RTC" frequency 32768 Hz quality 0 attimer0: port 0x40-0x43,0x50-0x53 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1808-0x180b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 vgapci0: port 0xf000-0xf03f mem 0xf7800000-0xf7bfffff,0xe0000000-0xefffffff irq 16 at device 2.0 on pci0 xhci0: mem 0xf7c00000-0xf7c0ffff irq 16 at device 20.0 on pci0 xhci0: 32 byte context size. usbus0 on xhci0 pci0: at device 22.0 (no driver attached) ehci0: mem 0xf7c14000-0xf7c143ff irq 16 at device 26.0 on pci0 usbus1: EHCI version 1.0 usbus1 on ehci0 pcib1: irq 16 at device 28.0 on pci0 pci1: on pcib1 pcib2: irq 17 at device 28.1 on pci0 pci2: on pcib2 re0: port 0xe000-0xe0ff mem 0xf0004000-0xf0004fff,0xf0000000-0xf0003fff irq 17 at device 0.0 on pci2 re0: Using 1 MSI-X message re0: ASPM disabled re0: Chip rev. 0x2c800000 re0: MAC rev. 0x00000000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow re0: Ethernet address: d4:3d:7e:be:d6:b7 pcib3: irq 19 at device 28.3 on pci0 pci3: on pcib3 pcib4: irq 19 at device 0.0 on pci3 pci4: on pcib4 ehci1: mem 0xf7c13000-0xf7c133ff irq 23 at device 29.0 on pci0 usbus2: EHCI version 1.0 usbus2 on ehci1 isab0: at device 31.0 on pci0 isa0: on isab0 ahci0: port 0xf0b0-0xf0b7,0xf0a0-0xf0a3,0xf090-0xf097,0xf080-0xf083,0xf060-0xf07f mem 0xf7c12000-0xf7c127ff irq 19 at device 31.2 on pci0 ahci0: AHCI v1.30 with 6 6Gbps ports, Port Multiplier not supported ahcich0: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 pci0: at device 31.3 (no driver attached) acpi_button0: on acpi0 acpi_tz0: on acpi0 acpi_tz1: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 on acpi0 ppc0: port 0x378-0x37f irq 5 on acpi0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 orm0: at iomem 0xcf000-0xcffff on isa0 sc0: on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ctl: CAM Target Layer loaded est0: on cpu0 p4tcc0: on cpu0 est1: on cpu1 p4tcc1: on cpu1 est2: on cpu2 p4tcc2: on cpu2 est3: on cpu3 p4tcc3: on cpu3 est4: on cpu4 p4tcc4: on cpu4 est5: on cpu5 p4tcc5: on cpu5 est6: on cpu6 p4tcc6: on cpu6 est7: on cpu7 p4tcc7: on cpu7 Timecounters tick every 1.000 msec md0: Preloaded image 43638784 bytes at 0xffffffff81549d48 usbus0: 5.0Gbps Super Speed USB v3.0 usbus1: 480Mbps High Speed USB v2.0 usbus2: 480Mbps High Speed USB v2.0 ugen0.1: <0x8086> at usbus0 uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 uhub1: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered uhub0: 21 ports with 21 removable, self powered ugen1.2: at usbus1 uhub3: on usbus1 ugen2.2: at usbus2 uhub4: on usbus2 uhub3: 6 ports with 6 removable, self powered uhub4: 8 ports with 8 removable, self powered ugen2.3: at usbus2 ukbd0: on usbus2 kbd2 at ukbd0 ums0: on usbus2 ums0: 5 buttons and [XYZ] coordinates ID=1 ugen2.4: at usbus2 ukbd1: on usbus2 kbd3 at ukbd1 uhid0: on usbus2 umass0: on usbus2 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:3:0:-1: Attached to scbus3 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ATA-9 SATA 3.x device ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 228936MB (468862128 512 byte sectors: 16H 63S/T 16383C) ada0: Previously was known as ad4 ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 ada1: ATA-9 SATA 3.x device ada1: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) ada1: Command Queueing enabled ada1: 228936MB (468862128 512 byte sectors: 16H 63S/T 16383C) ada1: Previously was known as ad6 SMP: AP CPU #1 Launched! cd0 at umass-sim0 bus 0 scbus3 target 0 lun 0 cd0: Removable CD-ROM SCSI-3 device cd0: 1.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present SMP: AP CPU #6 Launched! SMP: AP CPU #3 Launched! SMP: AP CPU #7 Launched! SMP: AP CPU #2 Launched! SMP: AP CPU #4 Launched! SMP: AP CPU #5 Launched! Timecounter "TSC-low" frequency 13281512 Hz quality 1000 Trying to mount root from ufs:/dev/md0 []... >How-To-Repeat: Boot the system with an 9.2-RC1 kernel. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri Aug 9 20:30:02 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3EB9BB0A for ; Fri, 9 Aug 2013 20:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2C1F02073 for ; Fri, 9 Aug 2013 20:30:02 +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 r79KU1Vn076870 for ; Fri, 9 Aug 2013 20:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r79KU1HT076869; Fri, 9 Aug 2013 20:30:01 GMT (envelope-from gnats) Date: Fri, 9 Aug 2013 20:30:01 GMT Message-Id: <201308092030.r79KU1HT076869@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Hans Petter Selasky Subject: Re: usb/181159: Problem attaching USB device X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Aug 2013 20:30:02 -0000 The following reply was made to PR usb/181159; it has been noted by GNATS. From: Hans Petter Selasky To: Antonis Anastasiadis Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: usb/181159: Problem attaching USB device Date: Fri, 09 Aug 2013 22:25:31 +0200 On 08/09/13 13:58, Antonis Anastasiadis wrote: > >> Number: 181159 >> Category: usb >> Synopsis: Problem attaching USB device >> Confidential: no >> Severity: non-critical >> Priority: low >> Responsible: freebsd-usb >> State: open >> Quarter: >> Keywords: >> Date-Required: >> Class: sw-bug >> Submitter-Id: current-users >> Arrival-Date: Fri Aug 09 12:00:00 UTC 2013 >> Closed-Date: >> Last-Modified: >> Originator: Antonis Anastasiadis >> Release: 9.2-RC1 >> Organization: >> Environment: >> Description: > Using 9.2-RC1 system compiled with clang. The system is installed on a Hetzner EX40-SSD server. > > The problem is that a USB device cannot be attached. The device is from the company Peppercon/Raritan that allows the remote control of a server. > It is connected to the VGA, keyboard and mouse ports of the server. > Hi, There are some debug parameters under: sysctl hw.usb.timings Which might affect the behavior of your device. Make sure you have the XHCI patch for 9.2-RC1 which was in a big late, if you compiled the code yourself. > The exact error from the kernel output is: > > usb_alloc_device: device init 2 failed (USB_ERR_IOERROR, ignored) > ugen0.2: at usbus0 (disconnected) > uhub_reattach_port: could not allocate new device > Could you show the dmesg about which USB controller is at usbus0 in the non-working case? --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Aug 9 20:31:42 2013 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 40C0AB59; Fri, 9 Aug 2013 20:31:42 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id F100920AB; Fri, 9 Aug 2013 20:31:41 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 060B77A37B; Fri, 9 Aug 2013 22:31:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 249998F2B8C; Fri, 9 Aug 2013 22:31:49 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GpUcSOozNBD2; Fri, 9 Aug 2013 22:31:48 +0200 (CEST) Received: from laptop015.hselasky.homeunix.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 9E7BC8F2B8B; Fri, 9 Aug 2013 22:31:48 +0200 (CEST) Message-ID: <52055201.7040506@bitfrost.no> Date: Fri, 09 Aug 2013 22:33:05 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: freebsd-usb@FreeBSD.org, freebsd-current@freebsd.org Subject: FYI: Advanced USB compliance testing tool now in the tree (10-current only) Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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: Fri, 09 Aug 2013 20:31:42 -0000 Hi, For those of you that want to make sure your USB mass storage device behaves correctly when using FreeBSD, typically for critical applications, I've just added an advanced USB testing tool to the FreeBSD source tree. It can be used to stress your USB mass storage device in ways that are beyond what "bonnie" will do. See tools/tools/usbtest or the following commit: http://svnweb.freebsd.org/changeset/base/254159 --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Aug 10 10:40:02 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9BCEAE09 for ; Sat, 10 Aug 2013 10:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 893252499 for ; Sat, 10 Aug 2013 10:40:02 +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 r7AAe16u067135 for ; Sat, 10 Aug 2013 10:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7AAe1XB067134; Sat, 10 Aug 2013 10:40:01 GMT (envelope-from gnats) Date: Sat, 10 Aug 2013 10:40:01 GMT Message-Id: <201308101040.r7AAe1XB067134@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Antonis Anastasiadis Subject: Re: usb/181159: Problem attaching USB device X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Antonis Anastasiadis List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Aug 2013 10:40:02 -0000 The following reply was made to PR usb/181159; it has been noted by GNATS. From: Antonis Anastasiadis To: Hans Petter Selasky Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: usb/181159: Problem attaching USB device Date: Sat, 10 Aug 2013 13:31:32 +0300 Thank you for your quick response. =D3=F4=E9=F2 9 =C1=F5=E3 2013, 11:25 =EC.=EC., =EF/=E7 Hans Petter = Selasky =DD=E3=F1=E1=F8=E5: > Hi, >=20 > There are some debug parameters under: >=20 > sysctl hw.usb.timings I've got no idea how to tune those. > Which might affect the behavior of your device. Make sure you have the = XHCI patch for 9.2-RC1 which was in a big late, if you compiled the code = yourself. The source was ~2 days old. I just updated and recompiled the kernel = today. The issue persists. > Could you show the dmesg about which USB controller is at usbus0 in = the non-working case? usbus0 on xhci0 usbus0: 5.0Gbps Super Speed USB v3.0 The m/b is an MSI MS-7816 with the Intel=AE Z87 Express Chipset.= From owner-freebsd-usb@FreeBSD.ORG Sat Aug 10 14:00:02 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]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 33156D0C for ; Sat, 10 Aug 2013 14:00:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 20A692DD4 for ; Sat, 10 Aug 2013 14:00:02 +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 r7AE01Pw010532 for ; Sat, 10 Aug 2013 14: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 r7AE01Gc010531; Sat, 10 Aug 2013 14:00:01 GMT (envelope-from gnats) Date: Sat, 10 Aug 2013 14:00:01 GMT Message-Id: <201308101400.r7AE01Gc010531@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Hans Petter Selasky Subject: Re: usb/181159: Problem attaching USB device X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Aug 2013 14:00:02 -0000 The following reply was made to PR usb/181159; it has been noted by GNATS. From: Hans Petter Selasky To: Antonis Anastasiadis Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: usb/181159: Problem attaching USB device Date: Sat, 10 Aug 2013 15:52:39 +0200 On 08/10/13 12:31, Antonis Anastasiadis wrote: > Thank you for your quick response. > > Óôéò 9 Áõã 2013, 11:25 ì.ì., ï/ç Hans Petter Selasky Ýãñáøå: > >> Hi, >> >> There are some debug parameters under: >> >> sysctl hw.usb.timings > > I've got no idea how to tune those. Try to double the values one by one. Any change? Need to reboot or re-plug the device before testing. --HPS > >> Which might affect the behavior of your device. Make sure you have the XHCI patch for 9.2-RC1 which was in a big late, if you compiled the code yourself. > > The source was ~2 days old. I just updated and recompiled the kernel today. The issue persists. > >> Could you show the dmesg about which USB controller is at usbus0 in the non-working case? > > usbus0 on xhci0 > usbus0: 5.0Gbps Super Speed USB v3.0 > > The m/b is an MSI MS-7816 with the Intel® Z87 Express Chipset. > From owner-freebsd-usb@FreeBSD.ORG Sat Aug 10 15:00: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]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6EE0CE26 for ; Sat, 10 Aug 2013 15:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5BD7E20D8 for ; Sat, 10 Aug 2013 15: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 r7AF01mA022945 for ; Sat, 10 Aug 2013 15: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 r7AF01jO022944; Sat, 10 Aug 2013 15:00:01 GMT (envelope-from gnats) Date: Sat, 10 Aug 2013 15:00:01 GMT Message-Id: <201308101500.r7AF01jO022944@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Hans Petter Selasky Subject: Re: usb/181159: Problem attaching USB device X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Aug 2013 15:00:01 -0000 The following reply was made to PR usb/181159; it has been noted by GNATS. From: Hans Petter Selasky To: Antonis Anastasiadis Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: usb/181159: Problem attaching USB device Date: Sat, 10 Aug 2013 16:57:58 +0200 On 08/10/13 16:53, Antonis Anastasiadis wrote: > > Óôéò 10 Áõã 2013, 4:52 ì.ì., ï/ç Hans Petter Selasky Ýãñáøå: >> >> Try to double the values one by one. >> >> Any change? >> >> Need to reboot or re-plug the device before testing. >> > > I've managed to up them until the following values, rebooting after each change. > > hw.usb.timings.port_reset_delay: 800 > hw.usb.timings.port_root_reset_delay: 4000 > hw.usb.timings.port_reset_recovery: 4000 > hw.usb.timings.port_powerup_delay: 300 > hw.usb.timings.port_resume_delay: 640 > hw.usb.timings.set_address_settle: 160 > hw.usb.timings.resume_delay: 4000 > hw.usb.timings.resume_wait: 800 > hw.usb.timings.resume_recovery: 800 > hw.usb.timings.extra_power_up_time: 320 > > The problem still persists, although the dmesg flood rate is considerably smaller now. I guess this is to be expected. > > Unfortunately, this USB device is allocated by request for troubleshooting purposes, and I cannot have access to it for more than a few hours at a time. > Hi, I'll check the code a bit later today or tomorrow. What you could try is to identify the parent HUB or RootHUB and then set config 255 , then config 0. Maybe the device will enumerate then. usbconfig -d X.1 set_config 255 usbconfig -d X.1 set_config 0 --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Aug 10 15:10:03 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]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D933E14B for ; Sat, 10 Aug 2013 15:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C68322145 for ; Sat, 10 Aug 2013 15:10:03 +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 r7AFA2AY024895 for ; Sat, 10 Aug 2013 15:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7AFA2pE024894; Sat, 10 Aug 2013 15:10:02 GMT (envelope-from gnats) Date: Sat, 10 Aug 2013 15:10:02 GMT Message-Id: <201308101510.r7AFA2pE024894@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Antonis Anastasiadis Subject: Re: usb/181159: Problem attaching USB device X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Antonis Anastasiadis List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Aug 2013 15:10:03 -0000 The following reply was made to PR usb/181159; it has been noted by GNATS. From: Antonis Anastasiadis To: Hans Petter Selasky Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: usb/181159: Problem attaching USB device Date: Sat, 10 Aug 2013 17:53:47 +0300 =D3=F4=E9=F2 10 =C1=F5=E3 2013, 4:52 =EC.=EC., =EF/=E7 Hans Petter = Selasky =DD=E3=F1=E1=F8=E5: >=20 > Try to double the values one by one. >=20 > Any change? >=20 > Need to reboot or re-plug the device before testing. >=20 I've managed to up them until the following values, rebooting after each = change. hw.usb.timings.port_reset_delay: 800 hw.usb.timings.port_root_reset_delay: 4000 hw.usb.timings.port_reset_recovery: 4000 hw.usb.timings.port_powerup_delay: 300 hw.usb.timings.port_resume_delay: 640 hw.usb.timings.set_address_settle: 160 hw.usb.timings.resume_delay: 4000 hw.usb.timings.resume_wait: 800 hw.usb.timings.resume_recovery: 800 hw.usb.timings.extra_power_up_time: 320 The problem still persists, although the dmesg flood rate is = considerably smaller now. I guess this is to be expected. Unfortunately, this USB device is allocated by request for = troubleshooting purposes, and I cannot have access to it for more than a = few hours at a time.= From owner-freebsd-usb@FreeBSD.ORG Sat Aug 10 21:34:33 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C07BA6C; Sat, 10 Aug 2013 21:34:33 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-pd0-x22b.google.com (mail-pd0-x22b.google.com [IPv6:2607:f8b0:400e:c02::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 92F532236; Sat, 10 Aug 2013 21:34:33 +0000 (UTC) Received: by mail-pd0-f171.google.com with SMTP id g10so1890135pdj.16 for ; Sat, 10 Aug 2013 14:34:32 -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:message-id:subject :from:to:cc:content-type; bh=HAOGqi6ek7imOHuQlpIHHHFhxWSa2lO0nPdlpM+ZcSE=; b=KqgRmx1EOd9fQFTUx7/iQxzH4hyvZcXvdFf+mHQ5pIOlQJjZpaGDvYg9RDlzmwAX4M W8IQPdmJbRxEjIG/A8ryK9s2BPHgZUXz0+TQddMDDRsY1wwc5T3vgdGeRxjkGTZkOZlh TcFd4SUnBO5C8mJbPtDJVXmGjrO55O5m0rV+RyYJiyIjJsFfuTzBxFomKIQkB0ccnNzo n67k0Dixg+R6S7G1iUikzhQYqppaV0BGqBRn6H5Ho17kcNfY8zUcllzli+rrXJjhBkrL KmkHxVSBFPdglUlelLpOGpG1Rz+s2pB1ydbgvyjtb669XCl/EN9Xy2Pf+rC13+2M/2rj Z7Gg== MIME-Version: 1.0 X-Received: by 10.66.102.70 with SMTP id fm6mr6931734pab.57.1376170472077; Sat, 10 Aug 2013 14:34:32 -0700 (PDT) Sender: kob6558@gmail.com Received: by 10.67.14.66 with HTTP; Sat, 10 Aug 2013 14:34:32 -0700 (PDT) In-Reply-To: <52055201.7040506@bitfrost.no> References: <52055201.7040506@bitfrost.no> Date: Sat, 10 Aug 2013 14:34:32 -0700 X-Google-Sender-Auth: xwBWcp8-4gKOAcOBJ3ikv0Tx5LQ Message-ID: Subject: Re: FYI: Advanced USB compliance testing tool now in the tree (10-current only) From: Kevin Oberman To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Current , 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: Sat, 10 Aug 2013 21:34:33 -0000 On Fri, Aug 9, 2013 at 1:33 PM, Hans Petter Selasky wrote: > Hi, > > For those of you that want to make sure your USB mass storage device > behaves correctly when using FreeBSD, typically for critical applications, > I've just added an advanced USB testing tool to the FreeBSD source tree. It > can be used to stress your USB mass storage device in ways that are beyond > what "bonnie" will do. See tools/tools/usbtest or the following commit: > > http://svnweb.freebsd.org/**changeset/base/254159 > > --HPS Looks very nice. While it is now only in head, is there a reason it could not be built and used on a 9.2-BETA system? (I have not tried. Just wondering if I should.) -- R. Kevin Oberman, Network Engineer E-mail: rkoberman@gmail.com