From owner-freebsd-multimedia@freebsd.org Mon Mar 6 11:36:59 2017 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 30300CFBE7D for ; Mon, 6 Mar 2017 11:36:59 +0000 (UTC) (envelope-from mrechberger@gmail.com) Received: from mail-qk0-x232.google.com (mail-qk0-x232.google.com [IPv6:2607:f8b0:400d:c09::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DCFD010B8 for ; Mon, 6 Mar 2017 11:36:58 +0000 (UTC) (envelope-from mrechberger@gmail.com) Received: by mail-qk0-x232.google.com with SMTP id v125so86847534qkh.2 for ; Mon, 06 Mar 2017 03:36:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=muugufQJxmbgkedeP0d4uhto2WdSrZqxwP6bIn8Jo9o=; b=nZMa/BQedhcMyLYcpuv6gprh0YNw64TfsBjtOR2YLDFJ6XGn47fEGvOB2kab+Dxb6q VshDrKmMKf3mpDIWr+XWXcPqbJIhzpgxhrenjyXa+SksaSQzVXmTfi+1kw+5o92mGUkS +OMh51wiCTw+OKXdOKJ/xLV6vpLvmIPLenzhmbrL7mVcB/U9xvzcmEqWAtrN/wM/S0fA WRrcO266/Svpm1KFcDC24gGefdR7ymeefGQvMJs0ukVDWWhH7N5OjmUywwtVUNC9VYM/ 1xEDFg+RI71Hg/11f/CAAnX1BeEILa4m846cbq/IijT2AxTPEHcfK4ORY3+cTjLscpHn gFnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=muugufQJxmbgkedeP0d4uhto2WdSrZqxwP6bIn8Jo9o=; b=E5iKxoTwTSQtGqquM5NL+5Qhsa5Q6YnW/fc9nGiLRLrunxney9/C1xzzthWzTGWp0D NbmW1CL8cSMlSK8/6AncxhHhpgkRKyiV/re8KHIJAc6ToGgCPgmvIe1Nm+xNkAW1ur6i PA8D49P1zGIfGNCl29Dse4JgsF6r4HwvVSW+1GSkKxhnIoBX82CPjqe7ZqtD8pPEaDXJ sM4ADmr73D1Xow5kmXojPJSeGPNAjHsNoD9KF034y/cRDLEHqRHIcgiC5R57VqsFT2Ql aKO6PMJwntmsegfs06zGGvk/WWKyB3W5iqyqbEYbdwFOCckRbTwGxg7Tg9Jp0AxRiyDa GFDA== X-Gm-Message-State: AMke39mg4xElvaOFbQV71m2JkMMBBsKgbNi8KlVExhP+jB8k/2G2fh+IAN53fsHQmhqT8nWzh3sCy/7+rATM/Q== X-Received: by 10.55.47.4 with SMTP id v4mr14648727qkh.77.1488800218135; Mon, 06 Mar 2017 03:36:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.174.114 with HTTP; Mon, 6 Mar 2017 03:36:57 -0800 (PST) In-Reply-To: <9fe561d0-3d8b-8725-98d4-37c2eb094ae9@selasky.org> References: <1aff0983-deb6-2884-472c-bb1e1037275c@selasky.org> <9fe561d0-3d8b-8725-98d4-37c2eb094ae9@selasky.org> From: Markus Rechberger Date: Mon, 6 Mar 2017 12:36:57 +0100 Message-ID: Subject: Re: What is wrong with FreeBSD and USB Support To: Hans Petter Selasky Cc: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2017 11:36:59 -0000 On Mon, Mar 6, 2017 at 12:30 PM, Hans Petter Selasky wrote: > Hi, > > On 03/06/17 11:53, Markus Rechberger wrote: >> >> 1. slow usb control messages - did you already noticed that? > > > From what I can see no USB control transfer completed no later than 1.555 > milliseconds. I loaded the numbers in the trace into a spreadsheet and got > the attached distribution. > > This is not slow. What times do you expect? > > The fastest XHCI can do is ~ 0.125 ms and from the analysis is appears that > the USB device is NAKing a little bit, causing the extra delay. > it's EHCI, but the driver needs 14 seconds to load everything with freebsd (ok there's a lot to send) but the other systems are all way faster with that (7 seconds max for initialising 4 chipsets). I somewhat think that this issue also has to do with the bulk latency killing the data transfer. Maybe the actual send is quick but maybe there's some additional libusb20 - usb userspace interface - usb - roundtrip problem that causes this high latency.