From nobody Tue Jun 15 08:16:05 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 35ED711C8C52 for ; Tue, 15 Jun 2021 08:16:09 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G41Nm2kBZz4kQb for ; Tue, 15 Jun 2021 08:16:08 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: by mail-wr1-x431.google.com with SMTP id c9so17277462wrt.5 for ; Tue, 15 Jun 2021 01:16:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=/KIxyCk2nK8Ry+BnhByxs1R8XhydGFxLKAgjufp47vw=; b=RFnu5IbAVgat0oTvU5KKfenTJ1oqkWS44LcsjIM602s0uTxp4gKZbToc6iwH33c35g YBuT66ur34x6jcz419pOB2EkDfSl+V0lNpnH/iVEN+rD00/4gaaqn57MLiBXia/SEEvg cT5A7IW6w1PaxbOqia7GCpmV8SGqwsUR+EHzFxSGJbavD+VgDGUsFIXa8/hYJ/VMiL6Q ykzzRJ2GJcz0/Ss3XcUpUpBulQ4RO3SVjp5JGSVyNRn08WclyO0VeAan4zZnqA7lMohV 0+hmgHyD08nWGP6IGhTkl/Vyj1oRcnIRht3prjR2TwPnuYR/eMMp++XZP3YSKuolsq9y wsHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=/KIxyCk2nK8Ry+BnhByxs1R8XhydGFxLKAgjufp47vw=; b=IcuPiXWgapFyBSTQ/EIbkh4oKl2Gj/o7ow/4ST2GMYaVxZC7LIZh5dfS1MmT7r7Ugc 7Z+RfzuqBjA+sEpXqDv8qIXj+2IqmlQ/eJtF6rVUOgKJQn99o5SVDIsUJUmIfHGIr9E4 IWcNUqfRR+zNukz1PAgfGDDkE42SPKP/I5pjLSnXVKZUdfv9sVmKxjetIzPQOpXZAvy+ F9noUW68qnbiQon29/Gc85UL+KLNd0n7lyMo2iCdxaq3xV2ne99nKmIdZhk5uMJyfHWc JcMykiyBHHzUxT/KilbecD41T3i2mo0njlDPbI/JsTjSYUV1QOQDPxGwwkS9n8S8nb/5 CGsw== X-Gm-Message-State: AOAM530oA9YTTQNCyTpQYgACgxfQNxOuroE/DxiKyvs6Ej8e8pHWIsUU ijDVNg50mWI7A7TQp2OEYlrdxBwe1+tTwQ== X-Google-Smtp-Source: ABdhPJyX6b9XoJFqMAQvM18eJdlGvQV06YDaYtVWTzudlYFR7L39SMV61uD3JEUX2/5Ph57TR6E+lA== X-Received: by 2002:adf:b650:: with SMTP id i16mr23736722wre.205.1623744966568; Tue, 15 Jun 2021 01:16:06 -0700 (PDT) Received: from [192.168.1.10] (88-105-96-80.dynamic.dsl.as9105.com. [88.105.96.80]) by smtp.gmail.com with ESMTPSA id f13sm18405085wrt.86.2021.06.15.01.16.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Jun 2021 01:16:06 -0700 (PDT) Subject: Re: usb 4-port hub support? To: freebsd-hackers@freebsd.org References: <20210611203158.GA12610@troutmask.apl.washington.edu> From: Graham Perrin Message-ID: <9919b111-ff95-b87b-ae7c-99e1c7627c5d@gmail.com> Date: Tue, 15 Jun 2021 09:16:05 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 In-Reply-To: <20210611203158.GA12610@troutmask.apl.washington.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-Rspamd-Queue-Id: 4G41Nm2kBZz4kQb X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=RFnu5IbA; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of grahamperrin@gmail.com designates 2a00:1450:4864:20::431 as permitted sender) smtp.mailfrom=grahamperrin@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RECEIVED_SPAMHAUS_PBL(0.00)[88.105.96.80:received]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::431:from]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::431:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::431:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] X-ThisMailContainsUnwantedMimeParts: N On 11/06/2021 21:31, Steve Kargl wrote: > Tried sending this to freebsd-usb, but it was denied > as I'm not subscribed to that list. Other lists hold > non-subscriber messages for moderation. > > I have a Dell XPS 13 laptop with a USB 3 type-c connector on the > right and a thunderbolt 3 type-c connector on the left. The wireless > chip in the laptop is currently not supported (Qualcomm Atheros 6174). > There is an out-of-tree ath10k device for this chip, but I've never > been able to get it work. So, I have a tp-link archer t2u nano usb > dongle that I plug into the port, which of course uses up my available > usb ports. With the dongle attached, I see > > % usbconfig list > ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) > ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) > ugen0.3: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA) > ugen0.4: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) > > and wlan0 and wpa_supplicant work with the tp-link device. > > I've acquired an Aluratek 4-port USB 3.1 type-c hub. If I remove the dongle > and insert the hub, I see (where I've omitted ugen0.1, 0.2, and 0.3) > > % usbconfig list > ... > ugen0.4: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA) > ugen0.5: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) > > If I now plugin in a SanDisk thumbdrive I see > > % usbconfig list > ... > ugen0.6: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (224mA) > > % ls /dev/da0* > /dev/da0 /dev/da0p1 /dev/da0p2 > % mount /dev/da0p2 /mnt > % ls /mnt > .snap/ boot/ lib/ mnt/ rescue/ tmp/ > .sujournal dev/ libexec/ net/ root/ usr/ > bin/ etc/ media/ proc/ sbin/ var/ > > Adding a second thumbdrive shows > > % usbconfig list > ... > ugen0.7: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (74mA) > > I see the da1 devices and can mount the filesystem. > > Now, for the issue, if I insert the tp-link dongle into the hub > it is not detected. usbconfig shows no information of any kind. > I've read the if_rtwn_usb(4) and usb(4) manuals, but have no clue > where to start to get the tp-link dongle recognized. Any suggestions? > > PS: inserting a logitech usb mouse receiver is also undetected. > Try this, be prepared for problems with storage devices: 1. detach everything from the hub 2. attach the Archer T2U Nano (AC600 USB Wi-Fi adapter) to a side port of the hub 3. restart the computer 4. if the Wi-Fi adapter is usable, then connect the Logitech USB receiver to the end port 5. if the Wi-Fi adapter and Logitech receiver are usable, then connect the Kingston DataTraveler 3.0 to a side port 6. if those three devices are usable, then connect the USB SanDisk 3.2Gen1 to a side port 7. if all four devices are usable, then consider stress-testing the combined abilities of the hub plus storage devices. With or without a stress test: proceed with caution; have verifiably good backups. StressDisk: I assume that these are amongst your devices: ---- In my experience, the USB story is not great. Experiences include: Cerulian 10 port USB 2.0 top loading hub (N14JB) – used in the past (often with ZEVO ZFS) with Mac OS X 10.8.5, also probably with Mavericks. HP 2012 120W Advanced Docking Station – four USB 3.0 ports, used with FreeBSD 13.0-CURRENT and 14.0-CURRENT. ---- As an extreme example, with a 'giveaway' (promotional) USB drive that I expected to behave poorly, I effectively killed the drive by attempting to fill its file system: