From owner-freebsd-usb@freebsd.org Sun Jul 12 05:42:44 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 00A0735864B for ; Sun, 12 Jul 2020 05:42:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4B4Fzl6HTnz4852 for ; Sun, 12 Jul 2020 05:42:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id D7D37358902; Sun, 12 Jul 2020 05:42:43 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D79E3358816 for ; Sun, 12 Jul 2020 05:42:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B4Fzl5JBgz48Gg for ; Sun, 12 Jul 2020 05:42:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9A19A1FA4F for ; Sun, 12 Jul 2020 05:42:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 06C5ghR6087486 for ; Sun, 12 Jul 2020 05:42:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 06C5ghGm087485 for usb@FreeBSD.org; Sun, 12 Jul 2020 05:42:43 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 83863] [ugen] Communication problem between opensc/openct via USB with e-gate smart-card. Date: Sun, 12 Jul 2020 05:42:43 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 7.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.mimetype Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jul 2020 05:42:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D83863 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #55498|TEXT/PLAIN; |text/plain mime type|charset=3DUS-ASCII | --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.= From owner-freebsd-usb@freebsd.org Sun Jul 12 05:43:10 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 326A13586CF for ; Sun, 12 Jul 2020 05:43:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4B4G0G0dD4z48ZZ for ; Sun, 12 Jul 2020 05:43:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 1589B3586CE; Sun, 12 Jul 2020 05:43:10 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 155323585E3 for ; Sun, 12 Jul 2020 05:43:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B4G0F6wd4z48XQ for ; Sun, 12 Jul 2020 05:43:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D2C061F867 for ; Sun, 12 Jul 2020 05:43:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 06C5h9Ou087848 for ; Sun, 12 Jul 2020 05:43:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 06C5h9t4087847 for usb@FreeBSD.org; Sun, 12 Jul 2020 05:43:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 83863] [ugen] Communication problem between opensc/openct via USB with e-gate smart-card. Date: Sun, 12 Jul 2020 05:43:09 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 7.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.mimetype Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jul 2020 05:43:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D83863 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #55499|TEXT/PLAIN; |text/plain mime type|charset=3DUS-ASCII | --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sun Jul 12 07:57:41 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E19FE35BF4A; Sun, 12 Jul 2020 07:57:41 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B4JzS5Rd5z4H2Q; Sun, 12 Jul 2020 07:57:40 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id B5A00260276; Sun, 12 Jul 2020 09:57:32 +0200 (CEST) Subject: Re: slow USB 3.0 on -current To: freebsd-usb@FreeBSD.org, freebsd-current@FreeBSD.org References: <20200711224426.GC4213@funkthat.com> From: Hans Petter Selasky Message-ID: Date: Sun, 12 Jul 2020 09:57:10 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200711224426.GC4213@funkthat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4B4JzS5Rd5z4H2Q X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-2.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[selasky.org]; NEURAL_HAM_LONG(-0.89)[-0.895]; NEURAL_HAM_MEDIUM(-0.90)[-0.901]; NEURAL_HAM_SHORT(-0.21)[-0.207]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jul 2020 07:57:41 -0000 On 2020-07-12 00:44, John-Mark Gurney wrote: > Hello, > > I'm having issues getting good ethernet performance from a USB ethernet > adapter (ure) under FreeBSD on an HP EliteDesk 705 G2 Mini[1]. It's an > AMD PRO A10-8700B based system using the AMD A78 FCH chipset. > > Under FreeBSD -current (r362596), 12.1-R and 11.4-R, the RealTek USB > adapter only gets around 10MB/sec performance. During the transfer, > the CPU usage is only around 3-5%, so it's definitely not CPU bound. > > I have tested Windows 10 and NetBSD 9.0 performance, and both provide > 100MB/sec+ w/o troubles. > > I have attached dmesg from both FreeBSD -current and NetBSD 9.0. > > Any hints on how to fix this? > > This may be related, but I'm also having issues w/ booting when I have > both a SD USB 2.0 card reader AND the ure plugged into USB 3.0 ports. > > If I move the SD card reader to USB 2.0, the umass device will attach > and work. I have also attached a clip of the dmesg from that > happening. > > Has anyone else seen this issue? Ideas or thoughts on how to resolve > the performance issues? Hi, Can you check the output from ifconfig. What is the actual link speed. I suspect it has something to do with the MII bus code/implementation. Also check output from "vmstat -i" during usage to see if the number of IRQ/s is low. --HPS From owner-freebsd-usb@freebsd.org Sun Jul 12 21:01:12 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3155536EAF1 for ; Sun, 12 Jul 2020 21:01:12 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4B4fMX00FKz43y7 for ; Sun, 12 Jul 2020 21:01:11 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id D760C36E9CE; Sun, 12 Jul 2020 21:01:11 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D6FDA36EC04 for ; Sun, 12 Jul 2020 21:01:11 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B4fMW4BsLz43qS for ; Sun, 12 Jul 2020 21:01:11 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6FC96A998 for ; Sun, 12 Jul 2020 21:01:11 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 06CL1Bdi063513 for ; Sun, 12 Jul 2020 21:01:11 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 06CL1BkF063512 for usb@FreeBSD.org; Sun, 12 Jul 2020 21:01:11 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202007122101.06CL1BkF063512@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: usb@FreeBSD.org Subject: Problem reports for usb@FreeBSD.org that need special attention Date: Sun, 12 Jul 2020 21:01:11 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jul 2020 21:01:12 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 213877 | xhci reset causes panic on SuperMicro A1SRi-2758F Open | 234578 | Support for Sierra Wireless EM7455 modem Open | 237666 | repeated messages of "uhub_reattach_port: giving 3 problems total for which you should take action. From owner-freebsd-usb@freebsd.org Sun Jul 12 21:54:53 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B8EB036FF94; Sun, 12 Jul 2020 21:54:53 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gate2.funkthat.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B4gYS6hf1z46CW; Sun, 12 Jul 2020 21:54:52 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.15.2/8.15.2) with ESMTPS id 06CLso2A064479 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 12 Jul 2020 14:54:50 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id 06CLsnK7064478; Sun, 12 Jul 2020 14:54:49 -0700 (PDT) (envelope-from jmg) Date: Sun, 12 Jul 2020 14:54:49 -0700 From: John-Mark Gurney To: Hans Petter Selasky Cc: freebsd-usb@FreeBSD.org, freebsd-current@FreeBSD.org Subject: Re: slow USB 3.0 on -current Message-ID: <20200712215449.GI4213@funkthat.com> Mail-Followup-To: Hans Petter Selasky , freebsd-usb@FreeBSD.org, freebsd-current@FreeBSD.org References: <20200711224426.GC4213@funkthat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 11.3-STABLE amd64 X-PGP-Fingerprint: D87A 235F FB71 1F3F 55B7 ED9B D5FF 5A51 C0AC 3D65 X-Files: The truth is out there X-URL: https://www.funkthat.com/ X-Resume: https://www.funkthat.com/~jmg/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (gold.funkthat.com [127.0.0.1]); Sun, 12 Jul 2020 14:54:50 -0700 (PDT) X-Rspamd-Queue-Id: 4B4gYS6hf1z46CW X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of jmg@gold.funkthat.com has no SPF policy when checking 208.87.223.18) smtp.mailfrom=jmg@gold.funkthat.com X-Spamd-Result: default: False [3.35 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.61)[0.615]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[funkthat.com]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.84)[0.842]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.70)[0.697]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[jmg@funkthat.com,jmg@gold.funkthat.com]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:32354, ipnet:208.87.216.0/21, country:US]; FROM_NEQ_ENVFROM(0.00)[jmg@funkthat.com,jmg@gold.funkthat.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jul 2020 21:54:53 -0000 Hans Petter Selasky wrote this message on Sun, Jul 12, 2020 at 09:57 +0200: > On 2020-07-12 00:44, John-Mark Gurney wrote: > > Hello, > > > > I'm having issues getting good ethernet performance from a USB ethernet > > adapter (ure) under FreeBSD on an HP EliteDesk 705 G2 Mini[1]. It's an > > AMD PRO A10-8700B based system using the AMD A78 FCH chipset. > > > > Under FreeBSD -current (r362596), 12.1-R and 11.4-R, the RealTek USB > > adapter only gets around 10MB/sec performance. During the transfer, > > the CPU usage is only around 3-5%, so it's definitely not CPU bound. > > > > I have tested Windows 10 and NetBSD 9.0 performance, and both provide > > 100MB/sec+ w/o troubles. > > > > I have attached dmesg from both FreeBSD -current and NetBSD 9.0. > > > > Any hints on how to fix this? > > > > This may be related, but I'm also having issues w/ booting when I have > > both a SD USB 2.0 card reader AND the ure plugged into USB 3.0 ports. > > > > If I move the SD card reader to USB 2.0, the umass device will attach > > and work. I have also attached a clip of the dmesg from that > > happening. > > > > Has anyone else seen this issue? Ideas or thoughts on how to resolve > > the performance issues? > > Can you check the output from ifconfig. What is the actual link speed. I > suspect it has something to do with the MII bus code/implementation. ifconfig is reporting it's 1000baseT. > Also check output from "vmstat -i" during usage to see if the number of > IRQ/s is low. Not sure what is considered low, but I'm seeing consistently around 7800 int/s for xhci0. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-usb@freebsd.org Sun Jul 12 23:24:51 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BA8F535185F; Sun, 12 Jul 2020 23:24:51 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) (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 4B4jYG3byKz48xt; Sun, 12 Jul 2020 23:24:50 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-ot1-x32d.google.com with SMTP id w17so8257491otl.4; Sun, 12 Jul 2020 16:24:50 -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; bh=gnCFVLimNbOWh2nB4+Q05L85oezpfiNQybscKUKcK40=; b=XTc/FvmNdoH6Sb93OKjNVZxfqrm9R9hTGN8uqIe/PtYjzfm1Lvu9tqZlKdtCBPK3wY iRgXMoW7OWrlSPt2iB8yn5u3NtvZKVMquONNMUgP3MCYwJDDWadtn2QXfJx6fh/y0g1I Zfh2PqyU2af6WuUfyL1Qw3kzBIfCJMYE3VSbOVjyt0R+sJDkvGCecJa4BeFsoplQYuYz COuoja1JOdUPPJRJGTvE+lpcwJXH+gZPZFjsvB8paCmQLTIzpDPZASZA0InzxOHF8aZi LITftK5dCgkhCQ1e5mfczMMQ5nPvWXvDccUODj2xiWNlElQQAII0rvFtUdL1YkgcZDwc MHjA== 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; bh=gnCFVLimNbOWh2nB4+Q05L85oezpfiNQybscKUKcK40=; b=GpTNiHt9UbAT2qPeNpFER5XxP4hcEp2Pq1/070plqTLlr8oqRd5vJVAfqMq+FaOVsS 5EL51O3LkzP0j84L/53FbjHWdv8+EixB5pIZMiyeJtrUQNlah4DPNHliFG9rVcXLdFIw p/qPH7ZldW0bJzBc9nP54X4ULZGYIkPexKoDAD5vJxjoE95EGb6M3vcGFrtRAAzqtJJu YZiK+wQI5pCVQ3rgYoIt0gb0T4TmbyNxiu4X+4rW61VAFxcwp/9bOstq7xJn1FxKXpj4 qyWJEDwlqwJsI0azTKLvb4yDVbSWR1zQQg6c618fqJpcvUjuOpGB/BUVizNSW07+Hd4u uf+A== X-Gm-Message-State: AOAM532h67eCeGQz9kPfcMZKgyHZvMxHqUeWAZUWuwkF3IevTr32zHp/ l0Sedrx84JRM5H3cXINV8j9iiKIw9Uam9kBxSH/a3S/g X-Google-Smtp-Source: ABdhPJySG9bf+68ZKEZ4SQvBw1nZNmBpv119CkBoujNL2AThTly8HzhJlpHd+gxUoDamBOEX3cWCV3LgW9IEi8ueXyU= X-Received: by 2002:a05:6830:1af9:: with SMTP id c25mr40715179otd.271.1594596288900; Sun, 12 Jul 2020 16:24:48 -0700 (PDT) MIME-Version: 1.0 References: <20200711224426.GC4213@funkthat.com> <20200712215449.GI4213@funkthat.com> In-Reply-To: <20200712215449.GI4213@funkthat.com> From: Kevin Oberman Date: Sun, 12 Jul 2020 16:24:32 -0700 Message-ID: Subject: Re: slow USB 3.0 on -current To: Hans Petter Selasky , "freebsd-usb@FreeBSD.org" , FreeBSD Current X-Rspamd-Queue-Id: 4B4jYG3byKz48xt X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=XTc/FvmN; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kob6558@gmail.com designates 2607:f8b0:4864:20::32d as permitted sender) smtp.mailfrom=kob6558@gmail.com X-Spamd-Result: default: False [-2.70 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-0.98)[-0.977]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; NEURAL_HAM_LONG(-1.01)[-1.007]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::32d:from]; NEURAL_HAM_SHORT(-0.01)[-0.014]; FORGED_SENDER(0.30)[rkoberman@gmail.com,kob6558@gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[rkoberman@gmail.com,kob6558@gmail.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jul 2020 23:24:51 -0000 On Sun, Jul 12, 2020 at 2:55 PM John-Mark Gurney wrote: > Hans Petter Selasky wrote this message on Sun, Jul 12, 2020 at 09:57 +0200: > > On 2020-07-12 00:44, John-Mark Gurney wrote: > > > Hello, > > > > > > I'm having issues getting good ethernet performance from a USB ethernet > > > adapter (ure) under FreeBSD on an HP EliteDesk 705 G2 Mini[1]. It's an > > > AMD PRO A10-8700B based system using the AMD A78 FCH chipset. > > > > > > Under FreeBSD -current (r362596), 12.1-R and 11.4-R, the RealTek USB > > > adapter only gets around 10MB/sec performance. During the transfer, > > > the CPU usage is only around 3-5%, so it's definitely not CPU bound. > > > > > > I have tested Windows 10 and NetBSD 9.0 performance, and both provide > > > 100MB/sec+ w/o troubles. > > > > > > I have attached dmesg from both FreeBSD -current and NetBSD 9.0. > > > > > > Any hints on how to fix this? > > > > > > This may be related, but I'm also having issues w/ booting when I have > > > both a SD USB 2.0 card reader AND the ure plugged into USB 3.0 ports. > > > > > > If I move the SD card reader to USB 2.0, the umass device will attach > > > and work. I have also attached a clip of the dmesg from that > > > happening. > > > > > > Has anyone else seen this issue? Ideas or thoughts on how to resolve > > > the performance issues? > > > > Can you check the output from ifconfig. What is the actual link speed. I > > suspect it has something to do with the MII bus code/implementation. > > ifconfig is reporting it's 1000baseT. > > > Also check output from "vmstat -i" during usage to see if the number of > > IRQ/s is low. > > Not sure what is considered low, but I'm seeing consistently around > 7800 int/s for xhci0. > > -- > John-Mark Gurney Voice: +1 415 225 5579 > This is just for clarification, but is 'MB' MBytes? In the networking world that is what it would mean, but the context leads me to think that you mean Mbits. It's also possible that some numbers are in bits and some in Bytes, causing real confusion. I'm sure that 1000baseT is bits, of course. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 From owner-freebsd-usb@freebsd.org Mon Jul 13 01:02:52 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1E377353AB9; Mon, 13 Jul 2020 01:02:52 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gate2.funkthat.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B4lkM1ySrz4Dbx; Mon, 13 Jul 2020 01:02:50 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.15.2/8.15.2) with ESMTPS id 06D12f9T070574 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 12 Jul 2020 18:02:41 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id 06D12eZP070573; Sun, 12 Jul 2020 18:02:40 -0700 (PDT) (envelope-from jmg) Date: Sun, 12 Jul 2020 18:02:40 -0700 From: John-Mark Gurney To: Kevin Oberman Cc: Hans Petter Selasky , "freebsd-usb@FreeBSD.org" , FreeBSD Current Subject: Re: slow USB 3.0 on -current Message-ID: <20200713010240.GJ4213@funkthat.com> Mail-Followup-To: Kevin Oberman , Hans Petter Selasky , "freebsd-usb@FreeBSD.org" , FreeBSD Current References: <20200711224426.GC4213@funkthat.com> <20200712215449.GI4213@funkthat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 11.3-STABLE amd64 X-PGP-Fingerprint: D87A 235F FB71 1F3F 55B7 ED9B D5FF 5A51 C0AC 3D65 X-Files: The truth is out there X-URL: https://www.funkthat.com/ X-Resume: https://www.funkthat.com/~jmg/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (gold.funkthat.com [127.0.0.1]); Sun, 12 Jul 2020 18:02:41 -0700 (PDT) X-Rspamd-Queue-Id: 4B4lkM1ySrz4Dbx X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of jmg@gold.funkthat.com has no SPF policy when checking 208.87.223.18) smtp.mailfrom=jmg@gold.funkthat.com X-Spamd-Result: default: False [3.94 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[funkthat.com]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.94)[0.936]; NEURAL_SPAM_SHORT(0.92)[0.923]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.88)[0.878]; R_SPF_NA(0.00)[no SPF record]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[jmg@funkthat.com,jmg@gold.funkthat.com]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:32354, ipnet:208.87.216.0/21, country:US]; FROM_NEQ_ENVFROM(0.00)[jmg@funkthat.com,jmg@gold.funkthat.com] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jul 2020 01:02:52 -0000 Kevin Oberman wrote this message on Sun, Jul 12, 2020 at 16:24 -0700: > On Sun, Jul 12, 2020 at 2:55 PM John-Mark Gurney wrote: > > > Hans Petter Selasky wrote this message on Sun, Jul 12, 2020 at 09:57 +0200: > > > On 2020-07-12 00:44, John-Mark Gurney wrote: > > > > Hello, > > > > > > > > I'm having issues getting good ethernet performance from a USB ethernet > > > > adapter (ure) under FreeBSD on an HP EliteDesk 705 G2 Mini[1]. It's an > > > > AMD PRO A10-8700B based system using the AMD A78 FCH chipset. > > > > > > > > Under FreeBSD -current (r362596), 12.1-R and 11.4-R, the RealTek USB > > > > adapter only gets around 10MB/sec performance. During the transfer, > > > > the CPU usage is only around 3-5%, so it's definitely not CPU bound. > > > > > > > > I have tested Windows 10 and NetBSD 9.0 performance, and both provide > > > > 100MB/sec+ w/o troubles. > > > > > > > > I have attached dmesg from both FreeBSD -current and NetBSD 9.0. > > > > > > > > Any hints on how to fix this? > > > > > > > > This may be related, but I'm also having issues w/ booting when I have > > > > both a SD USB 2.0 card reader AND the ure plugged into USB 3.0 ports. > > > > > > > > If I move the SD card reader to USB 2.0, the umass device will attach > > > > and work. I have also attached a clip of the dmesg from that > > > > happening. > > > > > > > > Has anyone else seen this issue? Ideas or thoughts on how to resolve > > > > the performance issues? > > > > > > Can you check the output from ifconfig. What is the actual link speed. I > > > suspect it has something to do with the MII bus code/implementation. > > > > ifconfig is reporting it's 1000baseT. > > > > > Also check output from "vmstat -i" during usage to see if the number of > > > IRQ/s is low. > > > > Not sure what is considered low, but I'm seeing consistently around > > 7800 int/s for xhci0. > > > This is just for clarification, but is 'MB' MBytes? In the networking world > that is what it would mean, but the context leads me to think that you mean > Mbits. It's also possible that some numbers are in bits and some in Bytes, > causing real confusion. I'm sure that 1000baseT is bits, of course. MB means megabytes.. I would use Mbps for bits... so, on Win10 and NetBSD, I'm able to get 100 MBytes/sec on Win10/NetBSD, and FreeBSD, I'm only getting a tenth the capability of gige at 9-10 MBytes/sec... I'll note that fetch reports numbers of MBps, which is one of the tools I've been using for testing. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-usb@freebsd.org Mon Jul 13 08:50:33 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E978E35D325; Mon, 13 Jul 2020 08:50:33 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B4y611gb5z4c3M; Mon, 13 Jul 2020 08:50:32 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 382E6260564; Mon, 13 Jul 2020 10:50:24 +0200 (CEST) Subject: Re: slow USB 3.0 on -current To: Kevin Oberman , "freebsd-usb@FreeBSD.org" , FreeBSD Current References: <20200711224426.GC4213@funkthat.com> <20200712215449.GI4213@funkthat.com> <20200713010240.GJ4213@funkthat.com> From: Hans Petter Selasky Message-ID: <50d00b19-9e27-4d0f-f3d1-af0574687c14@selasky.org> Date: Mon, 13 Jul 2020 10:50:03 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200713010240.GJ4213@funkthat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4B4y611gb5z4c3M X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-2.13 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; ARC_NA(0.00)[]; NEURAL_SPAM_SHORT(0.05)[0.047]; NEURAL_HAM_LONG(-0.94)[-0.941]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-0.94)[-0.941]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jul 2020 08:50:34 -0000 On 2020-07-13 03:02, John-Mark Gurney wrote: > MB means megabytes.. I would use Mbps for bits... so, on Win10 and > NetBSD, I'm able to get 100 MBytes/sec on Win10/NetBSD, and FreeBSD, > I'm only getting a tenth the capability of gige at 9-10 MBytes/sec... > > I'll note that fetch reports numbers of MBps, which is one of the tools > I've been using for testing. Hi, Could you have a look at the traffic pattern, when using iperf? usbdump -i usbusX -f Y Where X and Y are the numbers after ugen . Many of the network USB drivers are single buffered, because that's what older USB host controllers support. Then the IRQ rate 8000 for USB 2.0/3.0 and 1000 for USB 1.0, limits the number of packets per second. --HPS From owner-freebsd-usb@freebsd.org Mon Jul 13 22:39:24 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8B0AB374081; Mon, 13 Jul 2020 22:39:24 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gate2.funkthat.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B5JVM40P7z4cw1; Mon, 13 Jul 2020 22:39:23 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.15.2/8.15.2) with ESMTPS id 06DMdL2i020625 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 13 Jul 2020 15:39:21 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id 06DMdKKK020623; Mon, 13 Jul 2020 15:39:20 -0700 (PDT) (envelope-from jmg) Date: Mon, 13 Jul 2020 15:39:20 -0700 From: John-Mark Gurney To: Hans Petter Selasky Cc: Kevin Oberman , "freebsd-usb@FreeBSD.org" , FreeBSD Current Subject: Re: slow USB 3.0 on -current Message-ID: <20200713223920.GO4213@funkthat.com> Mail-Followup-To: Hans Petter Selasky , Kevin Oberman , "freebsd-usb@FreeBSD.org" , FreeBSD Current References: <20200711224426.GC4213@funkthat.com> <20200712215449.GI4213@funkthat.com> <20200713010240.GJ4213@funkthat.com> <50d00b19-9e27-4d0f-f3d1-af0574687c14@selasky.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50d00b19-9e27-4d0f-f3d1-af0574687c14@selasky.org> X-Operating-System: FreeBSD 11.3-STABLE amd64 X-PGP-Fingerprint: D87A 235F FB71 1F3F 55B7 ED9B D5FF 5A51 C0AC 3D65 X-Files: The truth is out there X-URL: https://www.funkthat.com/ X-Resume: https://www.funkthat.com/~jmg/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (gold.funkthat.com [127.0.0.1]); Mon, 13 Jul 2020 15:39:21 -0700 (PDT) X-Rspamd-Queue-Id: 4B5JVM40P7z4cw1 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of jmg@gold.funkthat.com has no SPF policy when checking 208.87.223.18) smtp.mailfrom=jmg@gold.funkthat.com X-Spamd-Result: default: False [0.79 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.11)[-0.113]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[funkthat.com]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.16)[-0.162]; NEURAL_HAM_MEDIUM(-0.14)[-0.140]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[jmg@funkthat.com,jmg@gold.funkthat.com]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:32354, ipnet:208.87.216.0/21, country:US]; FROM_NEQ_ENVFROM(0.00)[jmg@funkthat.com,jmg@gold.funkthat.com]; RCVD_TLS_ALL(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,freebsd.org] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jul 2020 22:39:24 -0000 Hans Petter Selasky wrote this message on Mon, Jul 13, 2020 at 10:50 +0200: > On 2020-07-13 03:02, John-Mark Gurney wrote: > > MB means megabytes.. I would use Mbps for bits... so, on Win10 and > > NetBSD, I'm able to get 100 MBytes/sec on Win10/NetBSD, and FreeBSD, > > I'm only getting a tenth the capability of gige at 9-10 MBytes/sec... > > > > I'll note that fetch reports numbers of MBps, which is one of the tools > > I've been using for testing. > > Could you have a look at the traffic pattern, when using iperf? > > usbdump -i usbusX -f Y > > Where X and Y are the numbers after ugen . > > Many of the network USB drivers are single buffered, because that's what > older USB host controllers support. Then the IRQ rate 8000 for USB > 2.0/3.0 and 1000 for USB 1.0, limits the number of packets per second. Hmm... now that I do the math, that sounds very likely what the problem is: 8000 int/s * 1480 bytes/int * 8 bits/byte /1000/1000 == 94.72 Mbps add in the delay to swap buffers... and this is very close to the speed that I'm seeing... I wasn't sure what to look for, but the output is here: https://www.funkthat.com/~jmg/FreeBSD/usb.a78/usbdump.0.4.txt.xz Also, the output does not match what the man page says.. It implies that OUT or IN, but I'm seeing SUBM and DONE instead, and the delimiters between the feels don't make sense... This was running: gold,pts,/home/jmg,521$iperf3 -b 240m -u -c 192.168.0.80 Connecting to host 192.168.0.80, port 5201 [ 5] local 192.168.0.2 port 65117 connected to 192.168.0.80 port 5201 [ ID] Interval Transfer Bitrate Total Datagrams [ 5] 0.00-1.00 sec 28.6 MBytes 240 Mbits/sec 20531 [ 5] 1.00-2.00 sec 28.6 MBytes 240 Mbits/sec 20548 [ 5] 2.00-3.00 sec 28.6 MBytes 240 Mbits/sec 20550 [ 5] 3.00-4.00 sec 28.6 MBytes 240 Mbits/sec 20546 [ 5] 4.00-5.00 sec 28.6 MBytes 240 Mbits/sec 20551 [ 5] 5.00-6.00 sec 28.6 MBytes 240 Mbits/sec 20545 [ 5] 6.00-7.00 sec 28.6 MBytes 240 Mbits/sec 20548 [ 5] 7.00-8.01 sec 28.1 MBytes 234 Mbits/sec 20175 [ 5] 8.01-9.00 sec 29.1 MBytes 246 Mbits/sec 20921 [ 5] 9.00-10.00 sec 28.6 MBytes 240 Mbits/sec 20548 - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Jitter Lost/Total Datagrams [ 5] 0.00-10.00 sec 286 MBytes 240 Mbits/sec 0.000 ms 0/205463 (0%) sender [ 5] 0.00-10.35 sec 107 MBytes 87.1 Mbits/sec 0.172 ms 128298/205436 (62%) receiver Which is trying to send 240Mbps UDP traffic to the USB3 ethernet machine, and the machine only receives the usual 91Mbps... I have also published: https://www.funkthat.com/~jmg/FreeBSD/usb.a78/umass.debug.txt.xz Which shows the umass issue that I've been having where any umass device on this system almost never attaches... This was takes w/ hw.usb.umass.debug=-1 hw.usb.xhci.debug=17 I set those sysctl's, then attached the umass device (as USB3.0 SD card reader), waited for the five retries.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-usb@freebsd.org Tue Jul 14 06:20:47 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1C2F83579C5 for ; Tue, 14 Jul 2020 06:20:47 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4B5Vkk6QQdz4bLC for ; Tue, 14 Jul 2020 06:20:46 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id D89E53579C4; Tue, 14 Jul 2020 06:20:46 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D7F5135796E; Tue, 14 Jul 2020 06:20:46 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (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 4B5Vkj6Vh7z4bNN; Tue, 14 Jul 2020 06:20:45 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qk1-f174.google.com with SMTP id k18so14616047qke.4; Mon, 13 Jul 2020 23:20:45 -0700 (PDT) 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=LH9kK4F8k74vIEGczlX1Sp/15vlM79tZ9OCipNcrO98=; b=lWKfdM+XsgrBWA/RPAnljQ//3hMlxBt0AQABFVOxpH6WWho1NiL5fGMHZh9mnbWrEN /qBhXorXhHWAZ6c6p0G/x2F1F6k6cPeQsCmqI0mm0+3EqVXu845uvySFSCoYlekV13Ug rtIR1fe1Ij58i42Dck+IMuUqZjtAREIDYz2PjIs8bmS1LUAws7H/36oaD6b3F1oV5J0i QDecov/FDySWOHY8XWCszTYc9UL4pjidGdT6rUsMNhW+xu9+j3aUYusofVkn8hHHPiLb yqMiwfMECKTbeBHNXSKKSTxeQyShI305ZAssFoYkUuiJYfckbxqCcYEiwFM3OaLWG5UI xYnA== X-Gm-Message-State: AOAM53209eJOpYhEmIWf6KsFc4WdmpQ3oDovxssktlV2DG9fszXrxpud 7OzJzeB085j12Ekg8hHpt2PsKDnL36xKc9bTI983WA== X-Google-Smtp-Source: ABdhPJz7yqEJlPL+Ixhdc2FaJ0j5txwHcmphicqKi3ESSXwXjUB8xjEkxk0CpMYeVW4o3LW4urdyAJYaxc/h53qF6FM= X-Received: by 2002:a37:aa03:: with SMTP id t3mr3157523qke.152.1594707644618; Mon, 13 Jul 2020 23:20:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Adrian Chadd Date: Mon, 13 Jul 2020 23:20:32 -0700 Message-ID: Subject: Re: driver for cp2112 (USB GPIO and I2C gadget) To: Andriy Gapon Cc: usb@freebsd.org, FreeBSD Hackers , FreeBSD Current X-Rspamd-Queue-Id: 4B5Vkj6Vh7z4bNN X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 209.85.222.174 as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-1.46 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.87)[-0.871]; FROM_NEQ_ENVFROM(0.00)[adrian@freebsd.org,adrianchadd@gmail.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_LONG(-0.84)[-0.845]; TO_DN_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.25)[0.254]; RCVD_IN_DNSWL_NONE(0.00)[209.85.222.174:from]; FORGED_SENDER(0.30)[adrian@freebsd.org,adrianchadd@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.222.174:from]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TAGGED_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2020 06:20:47 -0000 hi! On Wed, 8 Jul 2020 at 02:39, Andriy Gapon wrote: > On 19/06/2020 17:14, Andriy Gapon wrote: > > > > If anyone interested in reviewing a new driver please help yourself to: > > https://reviews.freebsd.org/D25359 > > https://reviews.freebsd.org/D25360 > > What might be curious about it is that there are usb, i2c and gpio mixed > together. > Any interest at all? > I am still torn about which of the approaches to take. > I prefer the non monolithic one. i left comments on that one. :-) -adrian > -- > Andriy Gapon > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > From owner-freebsd-usb@freebsd.org Tue Jul 14 08:35:53 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8869235AC11 for ; Tue, 14 Jul 2020 08:35:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4B5Ykd3830z4kvx for ; Tue, 14 Jul 2020 08:35:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 6890D35AC10; Tue, 14 Jul 2020 08:35:53 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 669E835AC0F for ; Tue, 14 Jul 2020 08:35:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B5Ykd1z5xz4kqH for ; Tue, 14 Jul 2020 08:35:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 26ED6231D8 for ; Tue, 14 Jul 2020 08:35:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 06E8Zr4D075431 for ; Tue, 14 Jul 2020 08:35:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 06E8ZrN5075430 for usb@FreeBSD.org; Tue, 14 Jul 2020 08:35:53 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 247964] Low read throughput on Sandisk Extreme external SSD Date: Tue, 14 Jul 2020 08:35:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: thj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2020 08:35:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247964 Bug ID: 247964 Summary: Low read throughput on Sandisk Extreme external SSD Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: usb Assignee: usb@FreeBSD.org Reporter: thj@FreeBSD.org With a 250GB Sandisk Extreme external SSD read performance with FreeBSD is lower than Linux and macOS. I have tested this on FreeBSD on a Thinkpad x270 and 10th Generation Intel NUC. On Linux on the Intel NUC and from MacOS on a 2018 Macbook pro. I evaluated read and write performance by using dd (with only path adaptati= ons for Linux and macOS) on the device: dd if=3D/dev/zero of=3D/dev/da0 bs=3D1m count=3D50000 dd if=3D/dev/da0 of=3D/dev/null bs=3D1m count=3D50000 On all platforms write speed is approximately 200MB/s On Linux and macOS read speed is approximately 500MB/s, while on FreeBSD it= is approx 200MB/s --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Tue Jul 14 08:49:32 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B9F1735B034 for ; Tue, 14 Jul 2020 08:49:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4B5Z2N4ZzPz3SN4 for ; Tue, 14 Jul 2020 08:49:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 990E135AFB8; Tue, 14 Jul 2020 08:49:32 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 98C1F35AE61 for ; Tue, 14 Jul 2020 08:49:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B5Z2N3SXzz3SYZ for ; Tue, 14 Jul 2020 08:49:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 58B2C23743 for ; Tue, 14 Jul 2020 08:49:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 06E8nWhP087971 for ; Tue, 14 Jul 2020 08:49:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 06E8nW1l087970 for usb@FreeBSD.org; Tue, 14 Jul 2020 08:49:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 247964] Low read throughput on Sandisk Extreme external SSD Date: Tue, 14 Jul 2020 08:49:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2020 08:49:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247964 Hans Petter Selasky changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hselasky@FreeBSD.org --- Comment #1 from Hans Petter Selasky --- You should be aware that Linux buffers reads and writes to/from the raw blo= ck device, /dev/xxx . FreeBSD does not. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Tue Jul 14 12:49:48 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4DB5F361C08 for ; Tue, 14 Jul 2020 12:49:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4B5gMc1HQ6z4d2M for ; Tue, 14 Jul 2020 12:49:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 29D673618DA; Tue, 14 Jul 2020 12:49:48 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2995B36177E for ; Tue, 14 Jul 2020 12:49:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B5gMc0DMTz4d2J for ; Tue, 14 Jul 2020 12:49:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CEFEC26519 for ; Tue, 14 Jul 2020 12:49:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 06ECnl7p038018 for ; Tue, 14 Jul 2020 12:49:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 06ECnlr7038017 for usb@FreeBSD.org; Tue, 14 Jul 2020 12:49:47 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 247964] Low read throughput on Sandisk Extreme external SSD Date: Tue, 14 Jul 2020 12:49:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-qa, performance X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: keywords flagtypes.name bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2020 12:49:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247964 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |needs-qa, performance Flags| |mfc-stable12?, | |mfc-stable11? Status|New |Open --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Tue Jul 14 14:37:50 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EA52C3646B0; Tue, 14 Jul 2020 14:37:50 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B5jmG53jyz412s; Tue, 14 Jul 2020 14:37:50 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.not-for.work (onlyone.not-for.work [IPv6:2a01:4f8:201:6350::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: lev/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4547419512; Tue, 14 Jul 2020 14:37:50 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from [192.168.23.230] (unknown [89.113.128.32]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.not-for.work (Postfix) with ESMTPSA id 3853F12393; Tue, 14 Jul 2020 17:37:47 +0300 (MSK) Reply-To: lev@FreeBSD.org Subject: Re: keyboard has a weird layout after boot To: =?UTF-8?B?TMOhc3psw7MgTGFqb3MgSsOhbnN6a3k=?= , Patrick Proniewski Cc: freebsd-hardware@freebsd.org, freebsd-usb@freebsd.org References: <4EA5D9EF-4205-49AD-9AC9-1B381EDAA473@patpro.net> From: Lev Serebryakov Autocrypt: addr=lev@FreeBSD.org; prefer-encrypt=mutual; keydata= xsFNBFKbGksBEADeguVs+XyJc3mL3iiOBqDd16wSk97YTJYOi4VsHsINzJr09oFvNDiaDBIi fLn2p8XcJvehcsF2GSgrfXfw+uK4O1jyNIKJmiYA0EtE+ZbRtvDrrE0w6Q8+SDeKA21SWh3Y vSQ0DJUontbgW55ER2CbEiIUTIn34uQ0kmESAaw/v5p/9ue8yPTmURvv130FqPFz8VPzltqL NxyGt54TxPfKAzAHEIwxlEZ63JOwzloKh1UDBExcsf9nJO08/TAVgR5UZ5njFBPzaaquhRoP qPJLEQQDqxPIlvMNtHKf7iIebE4BHeqgCdJA0BoiR6gpa0wlsZtdrTPK3n4wYSphLvGbhfOZ YW/hbcu7HYS/FImkVxB3iY17kcC1UTnx4ZaYeASPBGOOPbXky1lLfmDGWIFT//70yx+G17qD OZzF1SvJJhGvh6ilFYaWMX7T+nIp6Mcafc4D7AakXM+XdubNXOMlCJhzPcZ0skgAEnYV587w V7em5fDVwQccwvtfezzqKeJAU5TGiywBHSR5Svzk2FwRNf6M//hWkpq0SRR63iOhkHGOAEBi 69GfEIwH2/w24rLxP0E+Hqq8n+EWNkPatw1Mhcl5PKkdvGCjJUaGNMkpBffjyYo254JXRscR eEnwdIkJt4ErDvjb2/UrOFq31wWMOiLzJeVchAgvTHBMRfP9aQARAQABzShMZXYgU2VyZWJy eWFrb3YgPGxldkBzZXJlYnJ5YWtvdi5zcGIucnU+wsGwBBMBCABDAhsDBwsJCAcDAgEGFQgC CQoLBBYCAwECHgECF4ACGQEWIQT5bRygtfQxi2dLMwrqsDxYv9xHjwUCW/03kQUJDwW3xgAh CRDqsDxYv9xHjxYhBPltHKC19DGLZ0szCuqwPFi/3EePHxkP+wWNrAyks2fQctY/Gl7TMh+Y Q9uX0hAuZ2Vvi0LswBl/R85SsS7IvI9b3ogOWA8CAlHAxkvgH6sWrwRTNcCPS1MzulYxS914 0CSkdwwbv1JyDOOWYU6s8PfT9+BZr+9eNXStmEdEL5XcA1k2YncQtlR3m+oLkqlAOtteZWti pitMIX9BGYIVKyl0t0RnIx+m/QPVGU9gu02j0I3NSRnKQPyFxZqYK0nPBu+FKaEhIAqdKPOv GL4/ijansdiWO3mXy18G0Mkr8yYRSidpGgXGY6lmGzQ3R6ZS30bLI8DkskOOvfErwhZv5dH5 w4+JH5sQ7bIL5HEXs//ZU9UzMdQwcURMjcFfKGyfL0hSLRqzP8m7SL1k9ZL161OQ6C5zVO/M bSCmeeLkbfOj1NW1ZIv6UjVVWE/LS4+gqg/04C+Y24vj+7vMpBVEevdwmIEdmVciFudklcnN omuocb29GKbquRZRDGiE+mhqkwmp5e59AnePp3+AvkewSCsXlR1sfjEP/Tn5OsYerJ7eAAOj DjxO374TAqJG5ftW4BA/nVmx9FGKV1/A9Yc1UuH6LdQfLf7pmTck1Cxg4kdH+3qKGD63sAR0 Wh27XDjnBKXJUN7J+nctWMZJMvw4OhTXdTyVhWt6USKEzw8M5plY4sFqxBEAe8igQXlq1Xjd ISV7wYhT4l3FzsFNBFKbGksBEAC0a9wfjo2P3JyT7Lc+QlbFVshGbSbazb4ma7QYG5IZZD5v fLBFkePoG6cnrn3WCXp4A43hszAynCwe4eXyAkv4+gPF3ZSeNE5Wz3zYG+jh2nm2iGCkyaVy kfbA+2chor2DKH5tHpuNMBlF+wSJHZKJmlo/sFIktAnV1NBVg4/cL+9/hIpvl82cl3hYCD7/ e7/qRE+w38CpAAzn65FvbODn7xlY3fsJt+cHPBJ4EBM9KnTwcce+F+72RQMZQEl7vIAwSRmL dgZHN0MFC533l62SVoKjT0eaOOIBrvesmojhWjfwugibXr+WRF/tGcW77Bxwe2eQLbEVESqW eMORxRxocx7Q7aACoHmf4G4U1Vzx7zUEfNfHjfjZeQVfAURf/MoUelZSW/BmMIfKCg3lRlWA t+Pq2h2UADPVqAZze45beE/c8z8LZsOZiGoRhYL8NSg6+ziLTdmYLWdtFGAuZhqOtNp5h6tG j21OksBotcaIa5YjbCmmnImIjGlSBkUKvIhq/RXth5b2gNwaQdu+Yv4AlZVHRsuVywL/skDF L5+We11bDK6MQ5PzvmntRJcgbyoisn1hiV04OV1LpJJMkJn1j8VlBqDQNT/z+BjB0ru/0anv +5uLj7v0ck06rEo4yiXT/ZAcBM76j7V7FaGbkoba6bUUCQ2H5YYBOKpikjCnpwARAQABwsGT BBgBCAAmAhsMFiEE+W0coLX0MYtnSzMK6rA8WL/cR48FAlv9N7IFCQ8Ft+cAIQkQ6rA8WL/c R48WIQT5bRygtfQxi2dLMwrqsDxYv9xHj3CnD/9btCtkcphRYRUe08tUyVwzV/syDCdiUhF7 8jqDKTC+3zuyrFJi7t4fF9follHYz1Ri5RixxJHnuDFcq7ZTOprPYqO8QhckLAJOy5dmORDX 2guEA+y5zDYBwwjpio9dtnuE7QyHyMx4nMPq8O/HfO+6dDEZChkrGvcG9FTI7s0JhsDs3xxw jcROZ2OP0lNu2571ZpR4YuzMUOIhOaQBIF2wrTvLjKUsAnNQYK9gsFTeDHRsE4HZLxJvEdiZ CWN7COi9un4xtP4Khc3Fmn6ANEyh0bIgx1Eii2RGINuA2XRVYhPRJLUZRSVQcrND9k9S+m+T oaqz9JgFLusFA1KhdeYnE1bojpq1U1bsmEicLW2QfEGVumKTgUrTsno0cVPH73KDILFvHA0D 8t4UaQveRTRUVdHZ02IBVt655Q8Xq1TkHJ7l+2Ckso5IBujWD74QpSRzzffn/ihhEExwYSTj FSs0C/OgU+EDZbcq2SWu4n1OGsW337/80HnJKVWBPAZYy4EmiyQSY05MG/fj9RA9Qi4TjFLD LrIf6dFAmiiIwWjlAKiyyUk+XDJXrc1L2VhcHqfdBY4I/qwV1YAI1QI4W/i6TstB1j0GwKa3 ZORwu4eahL5+9R6xBedhXZpCL0dyKuI8iPaC8npaOCJoL8+l4+KXR/PKt8b8kzIcvSpyCZii PQ== Organization: FreeBSD Message-ID: Date: Tue, 14 Jul 2020 17:37:36 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vgoPU7rZ7JpA3aQuGfWGBGzI0bbZfDqxl" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2020 14:37:51 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --vgoPU7rZ7JpA3aQuGfWGBGzI0bbZfDqxl Content-Type: multipart/mixed; boundary="eOlllRxVLdgo3hThzTOYzDRWUJRlatvRf" --eOlllRxVLdgo3hThzTOYzDRWUJRlatvRf Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 14.07.2020 16:48, L=C3=A1szl=C3=B3 Lajos J=C3=A1nszky wrote: >>>>> I have an Obins Anne Pro keyboard, which is a 60% mechanical NKRO >>>>> keyboard >>>>> http://en.obins.net/anne-pro It works properly in the UEFI and in t= he >>>>> rescue shell when I quit the boot menu, but after FreeBSD booted up= >>>>> and I got the login screen it changes layout to something weird. Fo= r example >>>>> I got "a" when pressing backspace or "w". Most of the keys stop wor= king. >>>>> anything about it in the manual, so probably this keyboard is NKRO >>>>> only... >>>>> Any idea how to make it work with FreeBSD or what causes this probl= em? As far as I know, NKRO USB keyboards could work in two modes: "Legacy" a= nd "Bitmap/NKRO". HID (and each USB Keyboard is HID device) is very flexible standard, and= it allows several ways to report pressed/released buttons: as event with= 8 modifier keys and up to 6 "simple" keys per event, or by transferring = bitmap with bit for each button (pretends that all buttons are modifier o= nes, which allows NKRO). "Standard" events could have only 6 different keys reported due to packe= t size constrains. But this way was historically first and "standard" key= boards work this way to this day. "Bitmap" reporting could transmit any state of keyboard with as many pre= ssed keys as there are keys total (NKRO!), but requires additional suppor= t from drirver. NKRO keyboards start in "Legacy"/"Boot" mode because many BIOSes/EFI can= not understand "bitmap" reporting. Conditions to switch to "bitmap" repo= rting are different for different NKRO keyboards. You could read more here: https://www.devever.net/~hl/usbnkro Looks like, FreeBSD HID/kbd driver has problem with "bitmap" reporting a= nd this keyboard switch to NKRO mode after boot regardless. I've CC: this message to usb@ mailing list, as it looks like USB problem= on FreeBSD side, in HID driver. --=20 // Lev Serebryakov --eOlllRxVLdgo3hThzTOYzDRWUJRlatvRf-- --vgoPU7rZ7JpA3aQuGfWGBGzI0bbZfDqxl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE+W0coLX0MYtnSzMK6rA8WL/cR48FAl8NwzBfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEY5 NkQxQ0EwQjVGNDMxOEI2NzRCMzMwQUVBQjAzQzU4QkZEQzQ3OEYACgkQ6rA8WL/c R49cYRAAy8udW2K8s+wm8jNGf/+tV+l97yan0fnNcgeg1z97JLQM9bM83yWGjpmx +UHJgs8M75NaHOjplSUApzsjFDT3ZOpMI+fgjnujR96S1d1GUiOC44LK+UlnHY0e iChHHPI9/D01f5EhHIs7Z2ScPLFJ77omZmhP+PUlFM/bqtTAilIHg/PEVCI9gqA1 pOhvRmorIimLtulPT5iVfngeCuOgQaNvovNsE++Pcfe3qeXubxQ4UzvtaDsRwsRl Li5lZ8TVQh72TQ7v1yb1D7UL5NGox7RnmAZniICPHl+xWNzjAA9hQ+F4yrYibtk+ sJikjBpHI4qdA1KzIH0IrWEACTSY7YglPvTMignc2Dor2fkuRXaOnbU1k5JYSMH0 0VW6TJsxyGAZKHuzI2f2BuYtoa0b41k7yPYqPCTIIk7BfaN0lgBaQeFmq3py4ruB zDynWpjh0C6737JRbc2xtjKHz8YepfiuJNFMRpPSiNBSn1Pl9ItJDzIGiebgpQ4c 5ZIMyqmiezQXQZ093ivY8rOq43ZoxHMSXlcTPcpEr8vRiB4nxP0SY30PqSQ5yXJu BF1ZdKneQsVzzkTDs+/ZyTrz2JehArhPy+UM4We2+LVYvsQR0i6BQZJA1yaUP/iF bSMmdjp9ys+HG3pN9CYnl2KrDN65W7Xb5LKk0knTekelQQJIqZY= =nRow -----END PGP SIGNATURE----- --vgoPU7rZ7JpA3aQuGfWGBGzI0bbZfDqxl-- From owner-freebsd-usb@freebsd.org Tue Jul 14 14:55:58 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BEB37365277; Tue, 14 Jul 2020 14:55:58 +0000 (UTC) (envelope-from laszlo.janszky@gmail.com) Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) (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 4B5k9B1zxmz4JbB; Tue, 14 Jul 2020 14:55:57 +0000 (UTC) (envelope-from laszlo.janszky@gmail.com) Received: by mail-lj1-x22e.google.com with SMTP id q4so23168607lji.2; Tue, 14 Jul 2020 07:55:57 -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=xOvWoEzJaHOKOuWM4Qx8jXx16Qufb7vCXfqJ0hZvENo=; b=eRJAhm5si4QetloIYBrNPIsjHVQrM+PLoe5W3wlAD9E/UDJSi0Z2sN4x8f454h7qGz FnewkdPAOOnjtgJmpnUGuwfrFDWK4oyZg0cbc80pwLmhUNy8Bs+YlugnX0f1lVFSzuvJ fE8Hb4Iz2T6+LquS1USmBRvXcfDgONdf+tFOZYM1CtcKwYfZAqDXF6W9+S8gi+Eyt1nd NAojQWVA1F2q5a7VMFkLSf6wljDN97fzSsDiKVV2XfIxxXH9t4Khx5Kv6o9EteFLZ8tI PCQ1Ai0NllZEyit8V6QMOmd+nxcSI0I1hAdLkzTj8VDQjdyaaF0VN7QOVlD3HQewxFZT cRFg== 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=xOvWoEzJaHOKOuWM4Qx8jXx16Qufb7vCXfqJ0hZvENo=; b=c7hWwK3C/ud36cWVQ2Orh1LdKoFi7agJoIzAFqbIibugeP2OirMH+Tva/sV6BQCE9n Pj/NzDeuj2ipt91JzfzMEOgha5s0MKy+8Ty9P1s3KCrHh6tdU2J77chbOxaiqFAF2pcb l0Ulaq9zeexk/y0i0kMhnnPVc0yHeaabeVM3pqaC155p2eOf/w0ZBYO3ZKm9MeiU9nUs nrqMibDokjyB7vxZ531RRAMU6NnZMYEqrZoNm+TaTEsmBiNux1ixPyoJsLQUaKNbjQ9b YJNv9PuT2bHfCda6Uor/0ENZUCjK9dMTeujeLw57XlbnZUojVgykmkwtop1jwZ9VSOrz 2zYQ== X-Gm-Message-State: AOAM531mNmEh6eswinwQpveUg07QTOHWbOcRbhZ4Ap+03xk6GX6owlYu GIWQp7lryqIL080YFPtnjvECV7mGlLikDvY8g2bHCKEP X-Google-Smtp-Source: ABdhPJyT4189cQYpJ3hvcrKl3KCfNoI4txW6EcYRvXJbX6IDvVKQf3xDwgtiv6WqdG2pqtuIsQH1muaapHT+g6x9jjk= X-Received: by 2002:a2e:961a:: with SMTP id v26mr2717427ljh.467.1594738555362; Tue, 14 Jul 2020 07:55:55 -0700 (PDT) MIME-Version: 1.0 References: <4EA5D9EF-4205-49AD-9AC9-1B381EDAA473@patpro.net> In-Reply-To: From: =?UTF-8?B?TMOhc3psw7MgTGFqb3MgSsOhbnN6a3k=?= Date: Tue, 14 Jul 2020 16:55:42 +0200 Message-ID: Subject: Re: keyboard has a weird layout after boot To: lev@freebsd.org Cc: Patrick Proniewski , freebsd-hardware@freebsd.org, freebsd-usb@freebsd.org X-Rspamd-Queue-Id: 4B5k9B1zxmz4JbB X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; REPLY(-4.00)[] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2020 14:55:58 -0000 Thanks Lev! I can do further debugging if you send the instructions. Lev Serebryakov ezt =C3=ADrta (id=C5=91pont: 2020. j=C3= =BAl. 14., K, 16:37): > On 14.07.2020 16:48, L=C3=A1szl=C3=B3 Lajos J=C3=A1nszky wrote: > > >>>>> I have an Obins Anne Pro keyboard, which is a 60% mechanical NKRO > >>>>> keyboard > >>>>> http://en.obins.net/anne-pro It works properly in the UEFI and in > the > >>>>> rescue shell when I quit the boot menu, but after FreeBSD booted up > >>>>> and I got the login screen it changes layout to something weird. Fo= r > example > >>>>> I got "a" when pressing backspace or "w". Most of the keys stop > working. > >>>>> anything about it in the manual, so probably this keyboard is NKRO > >>>>> only... > >>>>> Any idea how to make it work with FreeBSD or what causes this > problem? > > As far as I know, NKRO USB keyboards could work in two modes: "Legacy" > and "Bitmap/NKRO". > > HID (and each USB Keyboard is HID device) is very flexible standard, and > it allows several ways to report pressed/released buttons: as event with = 8 > modifier keys and up to 6 "simple" keys per event, or by transferring > bitmap with bit for each button (pretends that all buttons are modifier > ones, which allows NKRO). > > "Standard" events could have only 6 different keys reported due to packe= t > size constrains. But this way was historically first and "standard" > keyboards work this way to this day. > > "Bitmap" reporting could transmit any state of keyboard with as many > pressed keys as there are keys total (NKRO!), but requires additional > support from drirver. > > NKRO keyboards start in "Legacy"/"Boot" mode because many BIOSes/EFI can > not understand "bitmap" reporting. Conditions to switch to "bitmap" > reporting are different for different NKRO keyboards. > > You could read more here: https://www.devever.net/~hl/usbnkro > > Looks like, FreeBSD HID/kbd driver has problem with "bitmap" reporting > and this keyboard switch to NKRO mode after boot regardless. > > I've CC: this message to usb@ mailing list, as it looks like USB problem > on FreeBSD side, in HID driver. > > -- > // Lev Serebryakov > > From owner-freebsd-usb@freebsd.org Tue Jul 14 17:50:07 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 851D236A380 for ; Tue, 14 Jul 2020 17:50:07 +0000 (UTC) (envelope-from CeDeROM@tlen.pl) Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B5p261WSjz3Y8q for ; Tue, 14 Jul 2020 17:50:05 +0000 (UTC) (envelope-from CeDeROM@tlen.pl) Received: (wp-smtpd smtp.tlen.pl 2048 invoked from network); 14 Jul 2020 19:50:03 +0200 Received: from mail-wr1-f50.google.com (cederom@tlen.pl@[209.85.221.50]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 14 Jul 2020 19:50:03 +0200 Received: by mail-wr1-f50.google.com with SMTP id a6so23637341wrm.4 for ; Tue, 14 Jul 2020 10:50:03 -0700 (PDT) X-Gm-Message-State: AOAM5318HabnoH7K+Xmr9sq8tuKaHj3JQYVg8ij8bfsTm08SvQnOL6jG MYloHk9keV2+sjaLqsey1UW7OfXIYQwzjdFnckDUVA== X-Google-Smtp-Source: ABdhPJz7sjN4GLfT8B8G2giskyRp6y5+1YbxuB2gcvpyHsjRdAIGtPRMifP9Sqk1qzmHNzd7je0AFMEUmT7u5IBnUxM= X-Received: by 2002:a5d:5647:: with SMTP id j7mr6952404wrw.242.1594749002906; Tue, 14 Jul 2020 10:50:02 -0700 (PDT) MIME-Version: 1.0 References: <4EA5D9EF-4205-49AD-9AC9-1B381EDAA473@patpro.net> In-Reply-To: From: CeDeROM Date: Tue, 14 Jul 2020 19:49:52 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: keyboard has a weird layout after boot To: lev@freebsd.org Cc: =?UTF-8?B?TMOhc3psw7MgTGFqb3MgSsOhbnN6a3k=?= , Patrick Proniewski , freebsd-hardware@freebsd.org, freebsd-usb@freebsd.org X-WP-MailID: c2767e630d9afccc184480ff198e1986 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0W0000A [ocPE] X-Rspamd-Queue-Id: 4B5p261WSjz3Y8q X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of CeDeROM@tlen.pl designates 193.222.135.142 as permitted sender) smtp.mailfrom=CeDeROM@tlen.pl X-Spamd-Result: default: False [-3.43 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.06)[-1.064]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:193.222.135.0/24]; NEURAL_HAM_LONG(-1.04)[-1.040]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.02)[-1.023]; DMARC_NA(0.00)[tlen.pl]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_CC(0.00)[gmail.com,patpro.net,freebsd.org]; ASN(0.00)[asn:31080, ipnet:193.222.135.0/24, country:PL]; RWL_MAILSPIKE_VERYGOOD(0.00)[193.222.135.142:from] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2020 17:50:07 -0000 Hello world :-) Plase also take a look at IICHID project at GitHub and report an issue this is the new HID driver for FreeBSD and the developers are very responsive and helpful :-) https://github.com/wulf7/iichid -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@freebsd.org Tue Jul 14 19:38:34 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 21D3736D60B; Tue, 14 Jul 2020 19:38:34 +0000 (UTC) (envelope-from laszlo.janszky@gmail.com) Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) (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 4B5rRC6Zf9z49kK; Tue, 14 Jul 2020 19:38:31 +0000 (UTC) (envelope-from laszlo.janszky@gmail.com) Received: by mail-lj1-x22e.google.com with SMTP id s9so25018938ljm.11; Tue, 14 Jul 2020 12:38:31 -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=M2KXpC1aP0RgCCnugct55CrI6OMvlVgzFE6D5OkCJUw=; b=MWW1AKvXqbT2fOrj74c7yOLn3vLh9iJHQdRkhdcayfFPHvxlAq56NzOuT4jqW/WZWh 1i3lUiX4J0CeZ3B1qOvAhm2HgPLOAqcyEKJqb4XGQVtvShF0Z93vV2rzSttrbPGg45lg E2wWgItVdyDJbA3nDrIxpgMuSEz0U7QRhXF0YrCbAApJgBA8PImsixY5tJSNsDZDVPtT fMh4Uo6VyTs1tFx6yEliTWKBwfERKF6sqQ8A3PuWXcTZhklIzqXkA1VbPpTxgfa/bRlW m/UuCG7KCalUffvlRFJQAoVanhZk1Af/92XzBoP5lyyjJONnTxWaWc4L4GtcR5W3857N rxWQ== 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=M2KXpC1aP0RgCCnugct55CrI6OMvlVgzFE6D5OkCJUw=; b=njzXkJUAjDu0o5sMErSHwjH7vPCBmuLxUNoqDWBvygEC9vcwreD4wlkeoTY2nGvOrR r1kRBNAXWFLevSOTcDTfuSIT+Xeiss8y8UJ9kxb9vRdILKCHKYSObLiu6OehfBqCJRNS xpMk4Oqle0NJWuNCzNwnhGe/Gpy8aFSCHeJ/TatR5t4e3tMox0zi9NvwUeWun0inV7N2 CKsVADAIz+ijbB9mxRrXzuz/GZI957pmJ1fHxv8xwrLpOWCdHx4XTTO2TtcHrFNU5Wek P1wNhgjOvRfCbwWuNvhy2Yf1Ara8JGRFj7VMHRD9aFSQJAoVNDAFM2ZUJaEjSld6We6t jDew== X-Gm-Message-State: AOAM532mExH80pOImEU4wjNsmuY+p09ejGTexRAhNm/uDkr5ZoY/3yx2 cHpvxruvgIesR3+il8OdiBmV5wFUro0SQzna+9o= X-Google-Smtp-Source: ABdhPJzAd3lLkYXG/YV3r27FqS0h2yt+fr9dzKzSV/xqaoCSvAZflfI/A9JYjCGSxTNPTbzOARUeV+NHZu9ECIHjCjg= X-Received: by 2002:a2e:9bd2:: with SMTP id w18mr3318165ljj.200.1594755509201; Tue, 14 Jul 2020 12:38:29 -0700 (PDT) MIME-Version: 1.0 References: <4EA5D9EF-4205-49AD-9AC9-1B381EDAA473@patpro.net> In-Reply-To: From: =?UTF-8?B?TMOhc3psw7MgTGFqb3MgSsOhbnN6a3k=?= Date: Tue, 14 Jul 2020 21:38:16 +0200 Message-ID: Subject: Re: keyboard has a weird layout after boot To: CeDeROM Cc: lev@freebsd.org, Patrick Proniewski , freebsd-hardware@freebsd.org, freebsd-usb@freebsd.org X-Rspamd-Queue-Id: 4B5rRC6Zf9z49kK X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=MWW1AKvX; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of laszlojanszky@gmail.com designates 2a00:1450:4864:20::22e as permitted sender) smtp.mailfrom=laszlojanszky@gmail.com X-Spamd-Result: default: False [-1.14 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-0.99)[-0.993]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; NEURAL_HAM_LONG(-1.04)[-1.039]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.53)[0.531]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::22e:from]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; R_MIXED_CHARSET(1.36)[subject]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2020 19:38:34 -0000 Thanks I opened an issue. https://github.com/wulf7/iichid/issues/39 CeDeROM ezt =C3=ADrta (id=C5=91pont: 2020. j=C3=BAl. 14.,= K, 19:50): > Hello world :-) > > Plase also take a look at IICHID project at GitHub and report an issue > this is the new HID driver for FreeBSD and the developers are very > responsive and helpful :-) > > https://github.com/wulf7/iichid > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info > From owner-freebsd-usb@freebsd.org Sat Jul 18 21:54:25 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CADB5375037 for ; Sat, 18 Jul 2020 21:54:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4B8MG93hNqz3Xxh for ; Sat, 18 Jul 2020 21:54:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 7E894374B67; Sat, 18 Jul 2020 21:54:25 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7E4E9374DAA for ; Sat, 18 Jul 2020 21:54:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B8MG92qJ1z3YGc for ; Sat, 18 Jul 2020 21:54:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4437B11426 for ; Sat, 18 Jul 2020 21:54:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 06ILsPhW047797 for ; Sat, 18 Jul 2020 21:54:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 06ILsPjA047795 for usb@FreeBSD.org; Sat, 18 Jul 2020 21:54:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 230038] regression USB mass storage device Date: Sat, 18 Jul 2020 21:54:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 11.2-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: akos.somfai@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jul 2020 21:54:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230038 Akos Somfai changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |akos.somfai@gmail.com --- Comment #4 from Akos Somfai --- (In reply to Friedrich Volkmann from comment #2) I have a similar problem with a Dakota 20 but in my case the second device = does not appear even after doing a rescan. However, if I add quirk UQ_MSC_NO_INQ= UIRY then it behaves correctly. Could you try to add this to your /boot/loader.conf, reboot and check if it fixes your problem as well: hw.usb.quirk.0=3D"0x091e 0x23c0 0 0xffff UQ_MSC_NO_INQUIRY" --=20 You are receiving this mail because: You are the assignee for the bug.=