From owner-freebsd-usb@freebsd.org Thu Aug 30 13:56:10 2018 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7855B109F2F8 for ; Thu, 30 Aug 2018 13:56:10 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EA0C28196D for ; Thu, 30 Aug 2018 13:56:09 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: by mail-wr1-x435.google.com with SMTP id v17-v6so8164942wrr.9 for ; Thu, 30 Aug 2018 06:56:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DIncZkxAKJqSqe3Jtq0mPMoKHY/etR3nSkU003RKje4=; b=mbIm4VhL1AcsmmkesAM3fcmqLeeZgu+T7vTbaOt79B9Yr5F7QyE/wCy/RbnyLu445U Fz8MEm2rZRZ6bX+uPlpQwHvHIxskmeFpX3mhBxuClgoOs8tAmrROjlPDR21rD8MEYwrO F6LlxckuLly7x0t/e/Hg6j8l1xeXCs315dqHJQOANB8mOY38pkD6QMIPctcs6A1/HjaK 1tuiUfcnDiU0wjKwxzWutlo5HGEDUNwAPbP+Dp+Yhh42I+4cWra+JV+DMwmMhnNxecU5 R155tZHrMLKl7nPwERTGKh5a75dzt75VVlBb0Q5NDe5puZr7aPNVjKgeRU72qhH+ejLB a6jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DIncZkxAKJqSqe3Jtq0mPMoKHY/etR3nSkU003RKje4=; b=hWIxZpcaFLZmWyso8ROzoV3dNFwY7ePeWaB3toxqw3BxajckGutDK9KRYMZhzgBP6X qEDWfO0F8ZLF5LwTv6cdKOS5rN8Mt4+mYRR9+OaxL2ezJRWAgFu2ZoYs7o+Ozx2FwC4o qG8dehbz083D20q5G+0Sx+YNSmjMr0d2ZNxaatkKn/XaqFmAC3nJ9/nGDKqc37GrqWel nuQl8ZjX5rHjsg8gtmgoVgy5R94ALxjEKpe0FBcNayzyw692af4rU6bcgYO3nReWtIKU G/8IspBdd/oJ/0k8y3niEpdwGXc8qq9woz7Puv1B+SEupKOOk57ss9eznK9Ncc68THrN 8XtQ== X-Gm-Message-State: APzg51B1cKzSyID978wsxXbvGGb5Vs0WeFzdG1a4pwtsQv6TPOi4oiuM 7PSa0JVwIjTWe9VWbnuo8vueYlxmfAn7Ei+gH9PItQ== X-Google-Smtp-Source: ANB0VdY0YOIPxa02H+Zzf9BS474lzD5rL3DcJGUMry4hGTUJLCcrLZHwsj15o2+Xn2FDLhqxeufJl/xyGOicxg4m5Mg= X-Received: by 2002:adf:ad34:: with SMTP id p49-v6mr7975943wrc.10.1535637368941; Thu, 30 Aug 2018 06:56:08 -0700 (PDT) MIME-Version: 1.0 References: <679a5fd9-a3ee-b4a6-8a0c-6a1a7b850154@selasky.org> <7683a29a-2323-69ec-8f98-094980de62e7@selasky.org> In-Reply-To: From: Rajesh Kumar Date: Thu, 30 Aug 2018 19:25:57 +0530 Message-ID: Subject: Re: Is FreeBSD-current XHCI 1.1 compliant? To: hps@selasky.org Cc: freebsd-usb@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2018 13:56:10 -0000 Thanks Hans. We tried to gather some storage performance benchmarking numbers. But we are seeing poor benchmark number with USB 3.1 gen1/gen2 when compared with SATA (For test, we connected a SATA SSD using direct SATA cable (or) through a USB-SATA bridge). So, just enabled streams mode (hw.usb.xhci.streams=1) with no luck (expected, as you say no drivers are currently using it). After a quick debug, seems UE_GET_BULK_STREAMS(ecomp->bmAttributes) returns 0. So, Default mode (may be BULK) is chosen instead of streams mode. So, does using streams mode helps in improving the storage performance with USB? If so, what is needed to use streams mode effectively? Do we need to consider anything else when taking USB performance numbers in FreeBSD? On Wed, Aug 29, 2018 at 12:35 AM Hans Petter Selasky wrote: > On 8/28/18 6:41 PM, Rajesh Kumar wrote: > > Hi Hans, > > > > We have tried using a SSD disk with a USB 3.1 gen 2 to SATA bridge device > > (XHCI 1.1). The disk is detected and usable. But seems it works in > > "Bulk-Only" mode. Is there any plans to support USB attached SCSI? I > see a > > tunable "hw.usb.xhci.streams" to enable USB streams. But seems it does > > nothing much. > > Hi, > > Streams mode is disabled by default (hw.usb.xhci.streams=0) and we have > no drivers using it :-( > > --HPS >