From owner-freebsd-multimedia@freebsd.org Mon Mar 6 10:48:00 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 83DA8CFAE69 for ; Mon, 6 Mar 2017 10:48:00 +0000 (UTC) (envelope-from mrechberger@gmail.com) Received: from mail-qk0-x233.google.com (mail-qk0-x233.google.com [IPv6:2607:f8b0:400d:c09::233]) (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 3DC7315F0 for ; Mon, 6 Mar 2017 10:48:00 +0000 (UTC) (envelope-from mrechberger@gmail.com) Received: by mail-qk0-x233.google.com with SMTP id v125so85131685qkh.2 for ; Mon, 06 Mar 2017 02:48:00 -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=thJ+0n3q/VybDUP8qvDmBPkEBm6RCmP9ZXGyRqkgdAs=; b=Gms2sVp3MBAHfBHn5h7Cye0zchpHmUZxcl67AJ/XQrtWE80qgdR7BIc2e1j5Z9a/Gi pnbh6y9Sfwh1g1OKsNbw/9GCMS5SqFGDZ2VNz4ShRhb/hAD38WnjNCcr4pL4nWf4lAS2 8vj2/pu/h5JLGC9OPj4AkNISWhhalP7ObpB4GlafJo7z2h9gyAQtoPPB3Bxfu2wiZkI9 rTzxlLwD79QmCpeoQCEPsaLhmKEUAEplkJBxWkRJM61Mg3xJjJnjRC3l1sZbzXpkntpJ bgcSbVmUIk/DMKQzOexHa8fPzhe1J4xUa/H3VEwmW0NHWsqi7zbPYjX5OgMDzGFFOn4/ MlUw== 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=thJ+0n3q/VybDUP8qvDmBPkEBm6RCmP9ZXGyRqkgdAs=; b=QuJAKn7frPTyNJKIuD++KvOuG0szJKe5RvCZ3vjvyKuR2Wiftc7sO9BBiavBM+Y28g IRKErfUo9MFM8XOxABPUzV0Hgp79R7RiV3queQmwUK8nu0DkTuOI96bI9hESdjj1ifKx LYwyZwP77uNJqBFt4CCLLcPWQArL14b0yhy4g6+rMRZQTYZze3dNfFAl0hHlJJKsTFUS DjtF45r+2qJ/YrDdzGJ2zlasnyV59t3goFp1ccrT8CWvb8e39GLUB02+JYNYCPdbt/+M gKFu1+cDlmSGKMUHDaJhFv+cXdLQkMxxfZCPI4rgctj93wy7W+HvQiss6a3pnPuIdurK ioIQ== X-Gm-Message-State: AMke39kDsCa5qHZpYZldtxW+hypnTYQHsC9hw4lgePbgnQDeHJZ6AjMaTAiVekYh/BxvLH5Cu/pFyoQwoNtXjQ== X-Received: by 10.55.175.195 with SMTP id y186mr14387151qke.26.1488797279472; Mon, 06 Mar 2017 02:47:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.174.114 with HTTP; Mon, 6 Mar 2017 02:47:59 -0800 (PST) In-Reply-To: <9f51e1b1-d5df-afd3-f289-3bc55e417b5a@selasky.org> References: <17db8b5b-9983-2ead-5c1d-960022afb1f6@selasky.org> <9f51e1b1-d5df-afd3-f289-3bc55e417b5a@selasky.org> From: Markus Rechberger Date: Mon, 6 Mar 2017 11:47:59 +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 10:48:00 -0000 On Mon, Mar 6, 2017 at 11:41 AM, Hans Petter Selasky wrote: > On 03/06/17 11:37, Markus Rechberger wrote: >> >> Are you sure? As from some of my signal analyzer dumps I do think that >> all those systems support >> multiple transfers within one completion event. I always request >> multiple frames within one request on those systems and they complete >> at once. And they only complete once all the buffers are filled. > > > Yes, I'm 100% sure. If you look at their APIs you will have to submit > individual jobs as a URB in Linux. If you want to send 128 x 333 bytes as > 333 byte sized USB HighSpeed BULK packets, then Linux/MacOS and Windows > force you to generate 128 URBs/Jobs to send the 128 packets. In FreeBSD a > single USB transfers can send 128x 333 bytes. Only in the case where you > send full-sized packets having an optional short-sized packet in the end, > Linux/MacOS and Windows allows you to accumulate them into a single > completion event. > Unless we're talking about something different here I'm always generating single 15k (or bigger) requests with Linux and request them at once. I do not have to generate N 512byte URBs to request 15k. And the 15k (or bigger) only complete once they're fully filled. > --HPS