Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Aug 2018 19:25:57 +0530
From:      Rajesh Kumar <rajfbsd@gmail.com>
To:        hps@selasky.org
Cc:        freebsd-usb@freebsd.org
Subject:   Re: Is FreeBSD-current XHCI 1.1 compliant?
Message-ID:  <CAAO%2BANMuMsAKTsakMZc0dGD6ti%2B841dfhuVT=8Ni-%2BaYh_2FoA@mail.gmail.com>
In-Reply-To: <c5ace119-03fc-5a39-57ef-e3d1e4470dcc@selasky.org>
References:  <CAAO%2BANMszVRzifqja_U=VPTvr%2BoOLXduBV4JyACJgBWv5p9cOQ@mail.gmail.com> <679a5fd9-a3ee-b4a6-8a0c-6a1a7b850154@selasky.org> <CAAO%2BANNfXodbjzT3YT-M-S9YE=%2BPrMy5ErTrOq=x5Hy9-jyWpA@mail.gmail.com> <7683a29a-2323-69ec-8f98-094980de62e7@selasky.org> <CAAO%2BANOSQ-F_Cat4AH59M8gtw-crdLunLYGv%2BbM%2BjgChAe1NEA@mail.gmail.com> <CAAO%2BANNFTVWpUGBtn%2BoW2Y3Ccv7QUAERea4onq%2BwopOxh-0vig@mail.gmail.com> <c5ace119-03fc-5a39-57ef-e3d1e4470dcc@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <hps@selasky.org>
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
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAO%2BANMuMsAKTsakMZc0dGD6ti%2B841dfhuVT=8Ni-%2BaYh_2FoA>