From owner-freebsd-usb@FreeBSD.ORG Fri Jan 3 13:00:20 2014 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 ESMTPS id 8108ECA5 for ; Fri, 3 Jan 2014 13:00:20 +0000 (UTC) Received: from mail-ig0-f182.google.com (mail-ig0-f182.google.com [209.85.213.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4EB66197A for ; Fri, 3 Jan 2014 13:00:19 +0000 (UTC) Received: by mail-ig0-f182.google.com with SMTP id c10so1002700igq.3 for ; Fri, 03 Jan 2014 05:00:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=hRVhvMjjxRVGkmNQyYX2SGCXwPRPYmKhocECQJ+ZF1o=; b=c70msxDu9GV7T/tkIIB56RWU5297yUEcYBVW8okKbdV42pSHbv3mvv26jqoR8HsIVu +aCOXNPRrE1iefjGZQ7Z/r1wx7SMWuEbkN5hxL5X1nIUzDa57QIbmo5tLpYp2CpbnMuA SoCDsjanXhokGyx0tlJ/mPp11SLktmQ5Gl8i2uZ/roo5Vm/hfggwoA5vICjnO5wPUemJ gu5tcw8z/C4C8xf2MVEgHIsm8RcvwKCKjyEpRoMh+lGUtz6cMUKXNXZeSgKKFa+MeSYC Uc9D8Dthuqdxmmic1jdl2L3f4AU6MSKZi01JHhPGf3tE/E5Ff3AuK5rvhVk1DJRRdcx/ SlcA== X-Gm-Message-State: ALoCoQmKLEUcFrfWyfinPBkASVLs0Ve1OOypoK2CsGSLRHtemEYyjQpWJbsl/VsuZ+LgCPPGU1tgbZhiBrnxkjtQV2mzpRmsreTalbVgyL4n/dZS+CIRYQE= X-Received: by 10.42.142.129 with SMTP id s1mr62037129icu.30.1388754012726; Fri, 03 Jan 2014 05:00:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.128.200 with HTTP; Fri, 3 Jan 2014 04:59:57 -0800 (PST) From: "Lundberg, Johannes" Date: Fri, 3 Jan 2014 21:59:57 +0900 Message-ID: Subject: usb_interrupt_read speed different on USB 2 vs 3 port. To: "freebsd-usb@freebsd.org" , Hans Petter Selasky Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jan 2014 13:00:20 -0000 Hi I had a bug driving me crazy and I finally discovered something weird that was the reason. I have a pair of AR glasses from Vuzix which have a gyro/accelerometer/compass which I read from USB using usb_interrupt_read (reading 42 bytes of data). On my laptop I have two USB 2 and one USB 3 port. >From the USB 2 port things behave normally and reading takes a millisecond or so. >From the USB 3 port things get weird and the call to usb_interrupt_read takes over 20 milliseconds. I have been running this device on the same laptop for some time and haven't noticed this behavior before. Can it be something that has been introduced recently or perhaps only my system is behaving weird?... # uname -a FreeBSD PC 10.0-BETA1 FreeBSD 10.0-BETA1 #0: Sun Dec 8 16:15:23 JST 2013 root@PC:/usr/obj/usr/src/sys/GENERIC i386 Best regards -- Johannes Lundberg -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。 もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、 複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message.