From owner-freebsd-usb@freebsd.org Sun Mar 1 07:50:36 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 3D2FA261492 for ; Sun, 1 Mar 2020 07:50:36 +0000 (UTC) (envelope-from farhan@farhan.codes) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (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 48Vb6f4SbWz4Fq7 for ; Sun, 1 Mar 2020 07:50:33 +0000 (UTC) (envelope-from farhan@farhan.codes) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 52123224AA for ; Sun, 1 Mar 2020 02:50:32 -0500 (EST) Received: from imap35 ([10.202.2.85]) by compute1.internal (MEProxy); Sun, 01 Mar 2020 02:50:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=farhan.codes; h= mime-version:message-id:date:from:to:subject:content-type; s= fm2; bh=HJIgDbQrOkga10+thVwM9t4o4BTwXpCYCPg87fZ8kZU=; b=j/CUssEt l4nGqMhgzMPAhWNZz9FOHT+K+Mg0DqgZwLJN7rg3pF7wH8YKBg8qAVk+2NkGBK5d ng855NmGRWSPp0fX4Mr7YuTo3veIoG5qjopu6IvHlTMmU4UnXhQG0zVogylRL50t qVDkpQrXJUYRCXTWlHoTbhWBElRAPucniFhkPAsAq0yq/r96dEWhWuvmARaAXJ9L FbXECPhbqp5AZNUOIP8DAdMmrABpZcPJSST+pANOrToJiGT2MBpt7kI5QJOpEPW8 UJ3srIV2KGh+LXLeB7pcbbXxLXVyVJ4/nmfp8k7NwzfNuCc8RfwU2pSY5y1w8BPu hIe1cX9rTzZWlg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=HJIgDbQrOkga10+thVwM9t4o4BTwX pCYCPg87fZ8kZU=; b=PLpyDGe8LZ1WgRWu8v/1vqUrFRXNfwatPDQqKqXuw+s90 HQdH6fLNRitusLyoi9IAHtnU8hPKl1PckEfq3OSar1MSF64qiK5jDv08Bp2PbWYh +rhuUIgWikX7FsSTYyQr1bQrcmppEAW2lLQ3Uu5RuXGRCAN4LsQd31+obxBZVV6n fS0wbnHEVCAVRP1SowDAWGEDBTJ98F4sdIipd+lRSrzTSq20sJwMpmLEM2DPlFsW VYP9Fuq9yyikULGtkJD/7+Klqzy36Ezazga2ep8OnOX3B9gCRsRU+k9bZ4WiHIE4 KC1Dw6Yuor/cVf7uU0UV6EKP+XD3mCaMEl0Q90mBw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddtuddguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesthdtre dtreertdenucfhrhhomhepfdfhrghrhhgrnhcumfhhrghnfdcuoehfrghrhhgrnhesfhgr rhhhrghnrdgtohguvghsqeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehfrghrhhgrnhesfhgrrhhhrghnrdgtohguvghs X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id BCF3F14C0149; Sun, 1 Mar 2020 02:50:31 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-967-g014f925-fmstable-20200226v1 Mime-Version: 1.0 Message-Id: <52e73cc5-5881-40bd-99bf-5b69f5cbcc4f@www.fastmail.com> Date: Sun, 01 Mar 2020 02:50:10 -0500 From: "Farhan Khan" To: freebsd-usb@freebsd.org Subject: Detecting if USB device pulled from machine Content-Type: text/plain X-Rspamd-Queue-Id: 48Vb6f4SbWz4Fq7 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=farhan.codes header.s=fm2 header.b=j/CUssEt; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=PLpyDGe8; dmarc=none; spf=pass (mx1.freebsd.org: domain of farhan@farhan.codes designates 66.111.4.28 as permitted sender) smtp.mailfrom=farhan@farhan.codes X-Spamd-Result: default: False [-5.08 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[farhan.codes:s=fm2,messagingengine.com:s=fm2]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[28.4.111.66.rep.mailspike.net : 127.0.0.18]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.28]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[farhan.codes]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[farhan.codes:+,messagingengine.com:+]; IP_SCORE(-3.49)[ip: (-9.85), ipnet: 66.111.4.0/24(-4.89), asn: 11403(-2.68), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[28.4.111.66.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_WWW(0.50)[] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2020 07:50:36 -0000 Hi all, Quick question: I am reviewing some USB code between FreeBSD and OpenBSD. In OpenBSD, there is a function called usbd_is_dying (sys/dev/usb/usbdi.c) which appears to check if a device was removed from the system. Is there an equivalent in FreeBSD? Thanks! -- Farhan Khan PGP Fingerprint: 1312 89CE 663E 1EB2 179C 1C83 C41D 2281 F8DA C0DE From owner-freebsd-usb@freebsd.org Sun Mar 1 12:49: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 CDC7C26FD63 for ; Sun, 1 Mar 2020 12:49:41 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48Vjll6pkZz3xn2 for ; Sun, 1 Mar 2020 12:49:39 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [62.141.129.235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 11CA22603D4; Sun, 1 Mar 2020 13:49:31 +0100 (CET) Subject: Re: Detecting if USB device pulled from machine To: Farhan Khan , freebsd-usb@freebsd.org References: <52e73cc5-5881-40bd-99bf-5b69f5cbcc4f@www.fastmail.com> From: Hans Petter Selasky Message-ID: Date: Sun, 1 Mar 2020 13:49:24 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <52e73cc5-5881-40bd-99bf-5b69f5cbcc4f@www.fastmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48Vjll6pkZz3xn2 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-4.97 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-2.67)[ip: (-9.21), ipnet: 2a01:4f8::/29(-2.54), asn: 24940(-1.55), country: DE(-0.02)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2020 12:49:42 -0000 On 2020-03-01 08:50, Farhan Khan wrote: > Hi all, > > Quick question: I am reviewing some USB code between FreeBSD and OpenBSD. In OpenBSD, there is a function called usbd_is_dying (sys/dev/usb/usbdi.c) which appears to check if a device was removed from the system. Is there an equivalent in FreeBSD? > > Thanks! Hi, Check how "libusb20_dev_check_connected()" works in libusb. --HPS From owner-freebsd-usb@freebsd.org Sun Mar 1 15:45:59 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 D0CB02437B3 for ; Sun, 1 Mar 2020 15:45:59 +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 48VngC4fnNz3GDh for ; Sun, 1 Mar 2020 15:45:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 7F6C32437B1; Sun, 1 Mar 2020 15:45:59 +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 7E0E62437AF for ; Sun, 1 Mar 2020 15:45:59 +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) server-signature RSA-PSS (4096 bits) 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 48VngC1bcnz3GCw for ; Sun, 1 Mar 2020 15:45:59 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 157DB5D5E for ; Sun, 1 Mar 2020 15:45:59 +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 021FjwnZ024273 for ; Sun, 1 Mar 2020 15:45:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 021FjwQ8024272 for usb@FreeBSD.org; Sun, 1 Mar 2020 15:45:58 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 244356] Writing to a USB 3.0 stick is very slow Date: Sun, 01 Mar 2020 15:45:59 +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: 12.1-RELEASE X-Bugzilla-Keywords: needs-qa, performance X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vidwer+fbsdbugs@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2020 15:45:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244356 --- Comment #16 from vidwer+fbsdbugs@gmail.com --- I'll be following this. With the USB DA device from https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235897 dd and rsync tra= nsfers to UFS and to ZFS seem to stall, after a while. A 120-something transfer speed of a large generated file (dd if=3D/dev/uran= dom of=3Dfoo bs=3D1M count=3D1048576) stalls, drops to 10-something transfer sp= eed, stalls again and drops to KB/s speeds. After interrupting rsync, I ran 'time sync', which takes 'real 2m15.632s'. Because of the dd observation, perhaps 'disk cache' can't keep up with the amount of writes? rsync to UFS on USB 2.0 storage: sent 1,074,155,802 bytes received 76 bytes 9,633,685.00 bytes/sec rsync to UFS on USB 3.0 storage: sent 1,074,155,802 bytes received 76 bytes 2,438,492.35 bytes/sec I can test patches on 13-CURRENT. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sun Mar 1 15:57:20 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 E8AD2243A91 for ; Sun, 1 Mar 2020 15:57:20 +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 48VnwJ3xjWz4HMN for ; Sun, 1 Mar 2020 15:57:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 63DC7243A90; Sun, 1 Mar 2020 15:57:20 +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 63827243A8E for ; Sun, 1 Mar 2020 15:57:20 +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) server-signature RSA-PSS (4096 bits) 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 48VnwJ0XTMz4HLQ for ; Sun, 1 Mar 2020 15:57:19 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 88CFA5F36 for ; Sun, 1 Mar 2020 15:57:19 +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 021FvJrO050314 for ; Sun, 1 Mar 2020 15:57:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 021FvJwN050313 for usb@FreeBSD.org; Sun, 1 Mar 2020 15:57:19 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 244356] Writing to a USB 3.0 stick is very slow Date: Sun, 01 Mar 2020 15:57:19 +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: 12.1-RELEASE X-Bugzilla-Keywords: needs-qa, performance X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: seb@boisvert.info X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2020 15:57:21 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244356 --- Comment #17 from Sebastien Boisvert --- I ended up using 2 x Kingston DataTraveler 2.0 sticks for my installation of FreeBSD 12.1-RELEASE (ZFS mirror). I also purchased 2 x USB 3.0 Sandisk sticks instead of Kingston to see if i= t's a vendor problem. I have not yet received those. I do have an older Kingston USB 3.0 stick, and it is also unusable like the= 2 newer Kingston USB 3.0 sticks. In an experiment, I tried to install OmniOS r151030a on the same 2 x Kingst= on DataTraveler 3.0. Like with FreeBSD 12.1-RELEASE, OmniOS r151030a takes for= ever to install itself on USB 3.0 sticks (ZFS mirror). In another experiment, I installed OmniOS r151030a on the 2 x Kingston DataTraveler USB 2.0 sticks. The installation went fine, but then OmniOS ha= ngs when booting off those USB 2.0 sticks. So, I am happy that FreeBSD 12.1-RELEASE works with USB 2.0. USB 3.0 would = be great though. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sun Mar 1 15:58:14 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 BD3F5243B14 for ; Sun, 1 Mar 2020 15:58:14 +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 48VnxL0qDjz4KGx for ; Sun, 1 Mar 2020 15:58:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id B394D243B0F; Sun, 1 Mar 2020 15:58:13 +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 AA941243B0E for ; Sun, 1 Mar 2020 15:58:13 +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) server-signature RSA-PSS (4096 bits) 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 48VnxK2QZPz4KFZ for ; Sun, 1 Mar 2020 15:58:13 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3D6BD5F39 for ; Sun, 1 Mar 2020 15:58:13 +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 021FwDpe051491 for ; Sun, 1 Mar 2020 15:58:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 021FwDrf051490 for usb@FreeBSD.org; Sun, 1 Mar 2020 15:58:13 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 244356] Writing to a USB 3.0 stick is very slow Date: Sun, 01 Mar 2020 15:58:13 +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: 12.1-RELEASE X-Bugzilla-Keywords: needs-qa, performance X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2020 15:58:14 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244356 --- Comment #18 from Hans Petter Selasky --- Hi, FreeBSD doesn't have a disk cache. Try to run usbdump at the same time as testing the disk using dd. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sun Mar 1 15:59: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 D6E2C243BD5 for ; Sun, 1 Mar 2020 15:59:24 +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 48Vnyh52Cjz4Mnf for ; Sun, 1 Mar 2020 15:59:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id AC3E2243BD4; Sun, 1 Mar 2020 15:59:24 +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 ABF91243BD3 for ; Sun, 1 Mar 2020 15:59:24 +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) server-signature RSA-PSS (4096 bits) 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 48Vnyh1pfkz4Mn6 for ; Sun, 1 Mar 2020 15:59:24 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C29355F3E for ; Sun, 1 Mar 2020 15:59:23 +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 021FxNvG052993 for ; Sun, 1 Mar 2020 15:59:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 021FxNci052992 for usb@FreeBSD.org; Sun, 1 Mar 2020 15:59:23 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 244356] Writing to a USB 3.0 stick is very slow Date: Sun, 01 Mar 2020 15:59: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: 12.1-RELEASE X-Bugzilla-Keywords: needs-qa, performance X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2020 15:59:24 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244356 --- Comment #19 from Hans Petter Selasky --- Also try: /usr/src/tools/tools/usbtest Make sure your memory stick is empty before running usbtest. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sun Mar 1 16:33: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 E1F54244B8E for ; Sun, 1 Mar 2020 16:33:52 +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 48VpkS1YhZz4c1T for ; Sun, 1 Mar 2020 16:33:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 05208244B8D; Sun, 1 Mar 2020 16:33:52 +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 04C56244B8B for ; Sun, 1 Mar 2020 16:33:52 +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) server-signature RSA-PSS (4096 bits) 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 48VpkR3sQHz4c0L for ; Sun, 1 Mar 2020 16:33:51 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6FB11666D for ; Sun, 1 Mar 2020 16:33:51 +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 021GXp9E070503 for ; Sun, 1 Mar 2020 16:33:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 021GXpcA070502 for usb@FreeBSD.org; Sun, 1 Mar 2020 16:33:51 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 244356] Writing to a USB 3.0 stick is very slow Date: Sun, 01 Mar 2020 16:33:50 +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: 12.1-RELEASE X-Bugzilla-Keywords: needs-qa, performance X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: seb@boisvert.info X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2020 16:33:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244356 --- Comment #20 from Sebastien Boisvert --- (In reply to Hans Petter Selasky from comment #18) > FreeBSD doesn't have a disk cache. I don't know much about FreeBSD so maybe I am wrong, but: In FreeBSD, ZFS ARC (adaptive replacement cache) is a disk cache for read operations for ZFS. So, for read operations, if I have ZFS on the USB stick, then there is a di= sk cache for read operations through the ZFS ARC, right ? Although that there are no disk cache for write operations, FreeBSD probably has a queue (or queues) in the block subsystem for AHCI I/O operations (with SATA 3 for instance). This logical queue can be used to coalesce and/or ord= er I/O commands before draining this queue to submit to the device queue. I don't know if USB 3.0 sticks are mono-queue or multi-queue. I know that SATA has 1 queue with a depth of 32 whereas NVMe has 64k queues with each a depth of 64k. I know that Linux has a page cache (unified for the virtual memory and block devices and so on). Do you think that USB 3.0 works well on Linux because of the page cache tha= t is used for write operations ? I mean, if userspace does not call "sync", then the data can be dirty in ke= rnel space without being written back to the device. That usually makes I/O fast= er. The documentation of "select" says: "to see if some of their descriptors are ready for reading, are ready for writing" --> https://www.freebsd.org/cgi/man.cgi?select Here, select takes 60 seconds to conclude that none of the descriptors are ready. That delay is clearly abnormal. How can I trace what is being called between the select_ENTER and select_EX= IT in FreeBSD ? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sun Mar 1 16:38:30 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 09CD4244D20 for ; Sun, 1 Mar 2020 16:38:30 +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 48Vpqn5fcKz3LGg for ; Sun, 1 Mar 2020 16:38:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id B008A244D1F; Sun, 1 Mar 2020 16:38:29 +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 AFC50244D1E for ; Sun, 1 Mar 2020 16:38:29 +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) server-signature RSA-PSS (4096 bits) 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 48Vpqn0jKcz3LFN for ; Sun, 1 Mar 2020 16:38:29 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5F1056675 for ; Sun, 1 Mar 2020 16:38:28 +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 021GcSoI076373 for ; Sun, 1 Mar 2020 16:38:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 021GcSYc076372 for usb@FreeBSD.org; Sun, 1 Mar 2020 16:38:28 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 244356] Writing to a USB 3.0 stick is very slow Date: Sun, 01 Mar 2020 16:38:28 +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: 12.1-RELEASE X-Bugzilla-Keywords: needs-qa, performance X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2020 16:38:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244356 --- Comment #21 from Hans Petter Selasky --- Cache only for files, not disk writes/reads. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sun Mar 1 17:12:09 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 517E224603E for ; Sun, 1 Mar 2020 17:12:09 +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 48VqZb6skLz45Nx for ; Sun, 1 Mar 2020 17:12:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 960D424603D; Sun, 1 Mar 2020 17:12:07 +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 9346C24603B for ; Sun, 1 Mar 2020 17:12:07 +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) server-signature RSA-PSS (4096 bits) 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 48VqZZ5X3jz45M0 for ; Sun, 1 Mar 2020 17:12:06 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 146BD6DAB for ; Sun, 1 Mar 2020 17:12:06 +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 021HC5Ba067034 for ; Sun, 1 Mar 2020 17:12:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 021HC5Pk067033 for usb@FreeBSD.org; Sun, 1 Mar 2020 17:12:05 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 244356] Writing to a USB 3.0 stick is very slow Date: Sun, 01 Mar 2020 17:12:06 +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: 12.1-RELEASE X-Bugzilla-Keywords: needs-qa, performance X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: seb@boisvert.info X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2020 17:12:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244356 --- Comment #22 from Sebastien Boisvert --- (In reply to Hans Petter Selasky from comment #21) OK got it. How can I trace what is being called between the select_ENTER and select_EX= IT in FreeBSD ? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sun Mar 1 17:21:49 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 761772464EC for ; Sun, 1 Mar 2020 17:21:49 +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 48Vqnn21xHz4MdJ for ; Sun, 1 Mar 2020 17:21:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 1CC532464EA; Sun, 1 Mar 2020 17:21:49 +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 1C8882464E9 for ; Sun, 1 Mar 2020 17:21:49 +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) server-signature RSA-PSS (4096 bits) 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 48Vqnm6V2nz4McP for ; Sun, 1 Mar 2020 17:21: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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A05B56F73 for ; Sun, 1 Mar 2020 17:21:48 +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 021HLm2o088066 for ; Sun, 1 Mar 2020 17:21:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 021HLm4P088063 for usb@FreeBSD.org; Sun, 1 Mar 2020 17:21:48 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 244517] Thinkpad X1 tablet 3rd gen: USB-C does not work Date: Sun, 01 Mar 2020 17:21:48 +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: 12.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: scottl@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: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2020 17:21:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244517 --- Comment #4 from Scott Long --- Hi, I'm assuming that this is a Thunderbolt 3 port, since it's a USB-C connector and your devices aren't showing up in the OS. There are some unfortunate a= nd confusing hardware design decisions with TB3 that make it hard to work with= .=20 I'm finishing up a driver right now and intend to make it available for tes= ting in the next few days. In the mean time, I recommend that you open up the B= IOS on the laptop and see if there are any controls related to Thunderbolt 3. = If there are, you might find a control for the hardware security model, with options for "none", "user", "display port", and "key exchange", or some sim= ilar words. You can try setting the security model to "none" and see if that al= lows your USB hardware to show up when you plug it in. Even if it does, there m= ight still be some problems with the hardware not working or invoking endless internal resets, but it'll at least be some good data to collect. I'll upd= ate this bug report once I have some code that can be tested. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sun Mar 1 21:00: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 1236F24CFEE for ; Sun, 1 Mar 2020 21:00:10 +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 48Vwdj6gcmz4NM5 for ; Sun, 1 Mar 2020 21:00:09 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id E4F5D24CFED; Sun, 1 Mar 2020 21:00:09 +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 E4BCE24CFEB for ; Sun, 1 Mar 2020 21:00:09 +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) server-signature RSA-PSS (4096 bits) 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 48Vwdj5LqHz4NLw for ; Sun, 1 Mar 2020 21:00: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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B277E9756 for ; Sun, 1 Mar 2020 21:00: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 021L09iC067321 for ; Sun, 1 Mar 2020 21:00:09 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 021L09P0067320 for usb@FreeBSD.org; Sun, 1 Mar 2020 21:00:09 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202003012100.021L09P0067320@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, 1 Mar 2020 21:00:09 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2020 21:00:10 -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 2 problems total for which you should take action. From owner-freebsd-usb@freebsd.org Sun Mar 1 23:18:16 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 7399E252008 for ; Sun, 1 Mar 2020 23:18:16 +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 48Vzj31FYVz4NBK for ; Sun, 1 Mar 2020 23:18:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id AAE31252007; Sun, 1 Mar 2020 23:18:14 +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 999B1252005 for ; Sun, 1 Mar 2020 23:18:14 +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) server-signature RSA-PSS (4096 bits) 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 48Vzj160N6z4N8w for ; Sun, 1 Mar 2020 23:18:12 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 08503B299 for ; Sun, 1 Mar 2020 23:18:12 +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 021NIBV4093549 for ; Sun, 1 Mar 2020 23:18:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 021NIBis093548 for usb@FreeBSD.org; Sun, 1 Mar 2020 23:18:11 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 235625] Repeated excessive logging about unsuccessful port reset during device enumeration Date: Sun, 01 Mar 2020 23:18:11 +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: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: maxsteciuk@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2020 23:18:16 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235625 --- Comment #10 from Max --- Hello all Sorry for delay It appeared that excessive logging came out because of USB device (keyboard= in my case) which was connected to the machine via USB hub (Dell monitor built-in). If I am not using that USB hub then the syslog is clean By the way logging appeared on 12.1-STABLE as well Thanks Max --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Mon Mar 2 03:54: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 8D54D258131 for ; Mon, 2 Mar 2020 03:54:47 +0000 (UTC) (envelope-from farhan@farhan.codes) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (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 48W5r63VV2z4HkK for ; Mon, 2 Mar 2020 03:54:46 +0000 (UTC) (envelope-from farhan@farhan.codes) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 9605522278; Sun, 1 Mar 2020 22:54:45 -0500 (EST) Received: from imap35 ([10.202.2.85]) by compute1.internal (MEProxy); Sun, 01 Mar 2020 22:54:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=farhan.codes; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm2; bh=ydJye++wd9pHjaDY1R8nZRcHC1V5HE1 PVrFUzdcxFOA=; b=yXFpK7ubGnY+KkFRK9iFr+wKE239kYm7bmqC2/193u/yKa3 9zj3HvNSxVQC1hgPMs4Z3LBtVuUH7pzooQYc3LlZhIdh8l3ajdeIlR9cTRtxfUe8 8SXqIwP9Ye9zxCrnCTRTg71ksC2NO8xTtsCM69RtR0XE/Hcf34kZu7NhU5LqIG2Y 7mH3JsCh+yZyO1Pbs/6Sf1DgKIsDry7hyXRZTY/fHOGqVoeXzWQ1OKdwk5f1gfny 88j0Cl/UR4V25n7HBcF/JPm1SA8Fmso3thl9Pv5ZuCjmzEi5kbSHdE4W5UaAfr0Y ClOSb/+isSyICLPpLYMDnoT0OPMSUFe4UKmGEEw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=ydJye+ +wd9pHjaDY1R8nZRcHC1V5HE1PVrFUzdcxFOA=; b=wmE9RVKD1f8IrwBvQY7AGq Dihq/iFALLRPjFuvl9JbRZBE6lsm0YoCxlpsDA0gqZXMVi0zd+cVwbCDAiUc+jjB oGTRgaRxRgWUAtMDC2XbNqQXTPvJlgzS0UmzfPLPpfwLmxTCr1DTycfiM9TQsMm7 4aJk9/RqJ2br8rn7T6ij0uln5MEM02WouPUXlJcSOltB1h3XJ+YyPX4uKIwwTSkN QlO3YenvNjv+QSzq7sx81T/e3/XXKQ3cciPtDbVPAhXe+GQsaXISu2u5cjZ2vB+F gPM7sy8VkKYvfXytmPZIRUVoUrLkjm7Q89U6JovCYW1v2mBEpCrQobLgVx189ccQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddtfedgieehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsegrtd erreerredtnecuhfhrohhmpedfhfgrrhhhrghnucfmhhgrnhdfuceofhgrrhhhrghnsehf rghrhhgrnhdrtghouggvsheqnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepfhgrrhhhrghnsehfrghrhhgrnhdrtghouggvsh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2DF5314C017C; Sun, 1 Mar 2020 22:54:45 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-967-g014f925-fmstable-20200226v1 Mime-Version: 1.0 Message-Id: <0da4a58c-fcda-4755-b129-5c2da925da9e@www.fastmail.com> In-Reply-To: References: <52e73cc5-5881-40bd-99bf-5b69f5cbcc4f@www.fastmail.com> Date: Sun, 01 Mar 2020 22:54:24 -0500 From: "Farhan Khan" To: "Hans Petter Selasky" , freebsd-usb@freebsd.org Subject: Re: Detecting if USB device pulled from machine X-Rspamd-Queue-Id: 48W5r63VV2z4HkK X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=farhan.codes header.s=fm2 header.b=yXFpK7ub; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=wmE9RVKD; dmarc=none; spf=pass (mx1.freebsd.org: domain of farhan@farhan.codes designates 66.111.4.25 as permitted sender) smtp.mailfrom=farhan@farhan.codes X-Spamd-Result: default: False [-5.08 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[farhan.codes:s=fm2,messagingengine.com:s=fm2]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[25.4.111.66.rep.mailspike.net : 127.0.0.18]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.25]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[farhan.codes]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[farhan.codes:+,messagingengine.com:+]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-3.49)[ip: (-9.81), ipnet: 66.111.4.0/24(-4.89), asn: 11403(-2.69), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[25.4.111.66.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_WWW(0.50)[] Content-Type: text/plain X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2020 03:54:47 -0000 I think I figured it out. There is no specific mechanism, its just that the detach() function updates that value. This was a misunderstanding on my part. Thank you! On Sun, Mar 1, 2020, at 7:49 AM, Hans Petter Selasky wrote: > On 2020-03-01 08:50, Farhan Khan wrote: > > Hi all, > > > > Quick question: I am reviewing some USB code between FreeBSD and OpenBSD. In OpenBSD, there is a function called usbd_is_dying (sys/dev/usb/usbdi.c) which appears to check if a device was removed from the system. Is there an equivalent in FreeBSD? > > > > Thanks! > > Hi, > > Check how "libusb20_dev_check_connected()" works in libusb. > > --HPS > -- Farhan Khan PGP Fingerprint: 1312 89CE 663E 1EB2 179C 1C83 C41D 2281 F8DA C0DE From owner-freebsd-usb@freebsd.org Mon Mar 2 11:59: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 CC8491AB2F5 for ; Mon, 2 Mar 2020 11:59:51 +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 48WJbq57V8z48VF for ; Mon, 2 Mar 2020 11:59:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id ADF441AB2F3; Mon, 2 Mar 2020 11:59:51 +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 AC3641AB2F2 for ; Mon, 2 Mar 2020 11:59:51 +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) server-signature RSA-PSS (4096 bits) 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 48WJbq3zlcz48VB for ; Mon, 2 Mar 2020 11:59:51 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7F59B1BFAB for ; Mon, 2 Mar 2020 11:59:51 +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 022BxpX9033435 for ; Mon, 2 Mar 2020 11:59:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 022BxpFX033434 for usb@FreeBSD.org; Mon, 2 Mar 2020 11:59:51 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 244553] i386 12.1-RELEASE fails to install from USB CD-ROM/DVD Date: Mon, 02 Mar 2020 11:59:51 +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: 12.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vince@vincentbentley.co.uk 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2020 11:59:51 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244553 Bug ID: 244553 Summary: i386 12.1-RELEASE fails to install from USB CD-ROM/DVD Product: Base System Version: 12.1-RELEASE Hardware: i386 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: usb Assignee: usb@FreeBSD.org Reporter: vince@vincentbentley.co.uk The i386 installer images for 12.1-RELEASE in disc1, dvd1 and memstick forms fail to install on a Dell FX130 using a USB DVD Writer drive. The hardware = has been running FreeBSD 10.x, 11.x and 12.0 to 12.0p13 in the past without a problem. FreeBSD was installed from an .ISO image at each major version cha= nge using the same hardware. All of the following installer images fail to install. The optical media versions boot, but cannot continue past FreeBSD's BIOS drive check. The memstick version just beeps in a continuous loop when the machine is booted= .=20 SHA256 (FreeBSD-12.1-RELEASE-i386-disc1.iso) =3D 07b10e098e7c9b5e920679d3a9b3d12628f0b918c6e3962620b7f570a82cf41d SHA256 (FreeBSD-12.1-RELEASE-i386-disc1.iso.xz) =3D facebc504f63d0eb4615d83ecb6d4b7aabfa206276a1784f97afd756ea5121cb SHA256 (FreeBSD-12.1-RELEASE-i386-dvd1.iso) =3D 72290eb4d203bedad90d0b63c0f507889858860a20f47a89141e6f4eb2cf0fad SHA256 (FreeBSD-12.1-RELEASE-i386-dvd1.iso.xz) =3D 9da9beea7ebfdea1324a5305820f1a1eeb1eb7c640f8b4675931105b0fba4ad7 SHA256 (FreeBSD-12.1-RELEASE-i386-memstick.img) =3D 371451e0ee442629415c161e3b8e701eb2a2d11ad1da0d0f00e02e06f9b46abd SHA256 (FreeBSD-12.1-RELEASE-i386-memstick.img.xz) =3D 485710488a94ee74a99a2b712d5ce41fb8178f3c4184b737eca74a963ef93be0 To eliminate potential hardware faults, a freshly downloaded ISO of 12.0-RELEASE dvd1 was downloaded, burned to media and installed successfull= y on the FX130 using the USB DVD Writer drive. As was openbsd66.iso just to be s= ure. The Dell FX130 is equipped with a VIA 686 class cpu. Both FreeBSD 12.0 and OpenBSD 6.6 install and run perfectly well on this hardware. The first 12.1 DVD that I burned was then used to boot an old Toshiba A100 laptop using it's internal ATA DVD drive. This booted and ran the installer successfully. This same laptop was then used with the USB DVD Writer with similar success with the 12.1 media. However, I did notice that this laptop reports running Intel Boot Agent, whereas the Dell FX130 does not. Perhaps = this fault only affects Dell FX130 or maybe it is a VIA cpu issue? I am currently running an in-place upgrade from 12.0 to 12.1 on the FX130 w= hich is taking some time to complete. This machine has never run 12.1 so if it reboots successfully the fault could just be in the installer and not in the kernel. Logging this is a bug because this hardware has been used successfully for = some years with FreeBSD up until 12.1 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Mon Mar 2 21:20: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 C1A9A25AED1 for ; Mon, 2 Mar 2020 21:20:07 +0000 (UTC) (envelope-from farhan@farhan.codes) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (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 48WY2F6X3Nz4KvQ for ; Mon, 2 Mar 2020 21:20:05 +0000 (UTC) (envelope-from farhan@farhan.codes) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 978D875E for ; Mon, 2 Mar 2020 16:20:03 -0500 (EST) Received: from imap35 ([10.202.2.85]) by compute1.internal (MEProxy); Mon, 02 Mar 2020 16:20:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=farhan.codes; h= mime-version:message-id:date:from:to:subject:content-type; s= fm2; bh=H8cYKnbJiCZpeGaex9TW1+dLdf0Kze1c+LjujnWUFEc=; b=jP+hp19G IrazfSqX3SQs2jhEMvOjFpGTSYGXmksaBZ5QOXrzjBY+gu4X2UXg0DK/V5WS6BUb Mp/qW0vJ1M6wPmsberBoidWoPHW+c4xKZn85iYKYCzHuAfpw1Fg3LQDP7spWhmob 6w0NncliZtbxUWyLktCdwSzJwkAU+qfPQ3pnoywg7Fk0BbGuMqku75fv3FgMgs0a ToSsjaYgHhIx7+pZ8beATVgt4c2/daGjuDXNwmp5ePEjBjqN3GaJB19rxXW53g7A 5T+ENKREu3vNsIhEp9TSUtvmQsoQpoeh72SaUmtlIWY/FYG7O4G8a7sbxhX0Vdzn JTOf7OQdSaV4eA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=H8cYKnbJiCZpeGaex9TW1+dLdf0Kz e1c+LjujnWUFEc=; b=ASoKVqDhEA5PEp50sJLrAKBd82dcBRa/TezvggvRoCm+x l4ZrocHCdPCiOKIhIxWv1WbAT1KNh1hBB5UsrztohCOd9k7Y+zFaWB1/+0VqHf9R X8QD4tZ9re65d3q/Ytgi0KyJ2oKMYGSJH3xslGvfIn5uYEVjFzzfwBhgrkqWtWOj Cw6vkrQCgIeKy3P3bPaZRk4ZrTTAqm6hK+Gibp4FJdfdNx+AhT9673fywiQnTwYa cPF7zJ6tVJE0oaBuOauknVF5xYF5vLEzV7vovfmV4zELsZynUy6cPu5PPrv9xBZk SwPYcA/DJzwQP3ROkuhIO7wIIN9Ks+0k8oVlo41kQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddtgedgudegkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesrgdtre erreertdenucfhrhhomhepfdfhrghrhhgrnhcumfhhrghnfdcuoehfrghrhhgrnhesfhgr rhhhrghnrdgtohguvghsqeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepfhgrrhhhrghnsehf rghrhhgrnhdrtghouggvsh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id CBDA614C04BB; Mon, 2 Mar 2020 16:20:02 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-967-g014f925-fmstable-20200226v1 Mime-Version: 1.0 Message-Id: <8d84a572-f70f-4080-bfe2-263b7f97993c@www.fastmail.com> Date: Mon, 02 Mar 2020 16:19:06 -0500 From: "Farhan Khan" To: freebsd-usb@freebsd.org Subject: Understanding how USB transmission works X-Rspamd-Queue-Id: 48WY2F6X3Nz4KvQ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=farhan.codes header.s=fm2 header.b=jP+hp19G; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=ASoKVqDh; dmarc=none; spf=pass (mx1.freebsd.org: domain of farhan@farhan.codes designates 64.147.123.20 as permitted sender) smtp.mailfrom=farhan@farhan.codes X-Spamd-Result: default: False [-3.99 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.89)[-0.895,0]; R_DKIM_ALLOW(-0.20)[farhan.codes:s=fm2,messagingengine.com:s=fm2]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.20]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; URI_COUNT_ODD(1.00)[9]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[farhan.codes]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[farhan.codes:+,messagingengine.com:+]; IP_SCORE(-3.50)[ip: (-9.85), ipnet: 64.147.123.0/24(-4.92), asn: 11403(-2.69), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[20.123.147.64.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_WWW(0.50)[] Content-Type: text/plain X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2020 21:20:07 -0000 Hi all, I am trying to understand how FreeBSD's usb transfers work compared to OpenBSD by using the rum(4) driver. I am a little confused how the FreeBSD side works. On the OpenBSD side, it seems that after allocating the pipes, you use usbd_setup_xfer and usbd_transfer(). As an example, look at OpenBSD's /usr/src/sys/dev/usb/if_rum.c, starting on line 2027-2029, I believe that corresponds to FreeBSD's /usr/src/sys/dev/usb/wlan/if_rum.c, line 2607 (rum_setup_tx_list) which goes to 807. In this function, I see that it adds rum_tx_data (tx_data[i] to the end of tx_free. However, how does it actually send the data? I believe this occurs in the callback functions, specifically with the usbd_transfer_submit function, but I am not certain how that is triggered, especially when it is triggered by the driver, such as in a send function. Please assist. Thank you! Links below to make it easy to follow: OpenBSD: https://github.com/openbsd/src/blob/2e342c845e9966c26657b08851237fc18e7b5ff5/sys/dev/usb/if_rum.c#L2024 FreeBSD: 1. https://github.com/freebsd/freebsd/blob/499b2b565264824f2139ebcb5d1c97404a17e7e6/sys/dev/usb/wlan/if_rum.c#L2607 2. https://github.com/freebsd/freebsd/blob/499b2b565264824f2139ebcb5d1c97404a17e7e6/sys/dev/usb/wlan/if_rum.c#L807 -- Farhan Khan PGP Fingerprint: 1312 89CE 663E 1EB2 179C 1C83 C41D 2281 F8DA C0DE From owner-freebsd-usb@freebsd.org Mon Mar 2 21:45:46 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 62C9A25B5F4 for ; Mon, 2 Mar 2020 21:45:46 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound3d.ore.mailhop.org (outbound3d.ore.mailhop.org [54.186.57.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48WYbs5D2Yz4Wbk for ; Mon, 2 Mar 2020 21:45:45 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1583185544; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=qRfUCtUhPIyoEUY38I5qce2uvnCX0w6a0GvqsxAx8LpBR48IGHrOeE0zGkDYM2eVJk1DsLtHrqM+O 0VCwKuGAX+q/JBJSXDVHuzuEJ8GpXk2bMtkqmEqga3qNQ0TR/YcIAZYRC9WiIXYL+UyV7ydE4YyjmB 5uuyUXq1lSJFBx+Qk4M+3yePK2/xGUzCS9nqopDwmRii4U4JGj5tJCWcFQu1mBJ7fXxHX3MnALLTzO Zk6kIDv7KIvD+0hfJzBw+qb9ZNxQnepjyClpSSXZ5x5Y/5Uh3pchujibcgn6B16Gqq07/iq7G67SAr dpfowRKqIX36oXq1Ml25EjvnNgfW0Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=AJ1zslkDFes+eTSfX55jOlt0vy9IYV88V4jxuwOJgt4=; b=MnRh0uG4HvjZzdernTpkIyYgaNyGbm+1WqJKi4dXFY3nPsEW1AMSikenKE22SFTQ8BIBEL/WCDlg4 UP9gwhxxgTQTzWxnkbH0QzcIuZYYIzikoukp5ZhOQJKMRmL3Zwgeqk1Kp+/buOnlmD542YD2gZkFXf hc6EmIgd9HLghqCfmZIYFldYcTKBIuoGPJc/Uy0mNYp71UlY4MY0kyZmDDQO1HKeyQVpEkS45XCPrU OMKc8nuyHBhosYbBQv+mIvV7tTlcbFF6y5eujF511EqcVM1y0gKDmM47EnlqwxXbrLd9gEizykivN4 wxtbipOT9cYq66EM+JqqplEHRP9CdPQ== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=AJ1zslkDFes+eTSfX55jOlt0vy9IYV88V4jxuwOJgt4=; b=AyN0Lvky0iju3aZgQ5yUgEB+d4dU9wRmqZSgXF6Q3nZOu7rzIXpCbwU5UZNoauAX2cvryY8AfpGLX hIGMaJQiVC7CGi7HyPo+e83JN6h1jMWCg5GV2jOUDdD6U996pAEcNE0jaqr1iUS2bcjZYmcBWQo109 thsSYjxClFiy0jbkfoIB0ogOeoLcieNDeFCd8qR7N5BrzrcgKVVlEVRb+c/BbVMsUs6lHiR3EvfvbC RqiYEkGnLQ5kHsaksjkuecp3VbLNYjvVeedQZvO0B1oHGTrDSnfl9GBneOvJIF5Qj+02C5Z0F5wAWK YU28XI45e6JbWqn2dQ6HNNSqLKhNybA== X-MHO-RoutePath: aGlwcGll X-MHO-User: 29715e6f-5ccf-11ea-b80e-052b4a66b6b2 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id 29715e6f-5ccf-11ea-b80e-052b4a66b6b2; Mon, 02 Mar 2020 21:45:42 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 022LjeE9013277; Mon, 2 Mar 2020 14:45:40 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: Subject: Re: Understanding how USB transmission works From: Ian Lepore To: Farhan Khan , freebsd-usb@freebsd.org Date: Mon, 02 Mar 2020 14:45:40 -0700 In-Reply-To: <8d84a572-f70f-4080-bfe2-263b7f97993c@www.fastmail.com> References: <8d84a572-f70f-4080-bfe2-263b7f97993c@www.fastmail.com> Content-Type: text/plain; charset="ASCII" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48WYbs5D2Yz4Wbk X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.61 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.61)[-0.609,0]; ASN(0.00)[asn:16509, ipnet:54.186.0.0/15, country:US]; NEURAL_HAM_LONG(-1.00)[-0.999,0] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2020 21:45:46 -0000 On Mon, 2020-03-02 at 16:19 -0500, Farhan Khan wrote: > Hi all, > > I am trying to understand how FreeBSD's usb transfers work compared > to OpenBSD by using the rum(4) driver. I am a little confused how the > FreeBSD side works. > > On the OpenBSD side, it seems that after allocating the pipes, you > use usbd_setup_xfer and usbd_transfer(). As an example, look at > OpenBSD's /usr/src/sys/dev/usb/if_rum.c, starting on line 2027-2029, > I believe that corresponds to FreeBSD's > /usr/src/sys/dev/usb/wlan/if_rum.c, line 2607 (rum_setup_tx_list) > which goes to 807. In this function, I see that it adds rum_tx_data > (tx_data[i] to the end of tx_free. However, how does it actually send > the data? I believe this occurs in the callback functions, > specifically with the usbd_transfer_submit function, but I am not > certain how that is triggered, especially when it is triggered by the > driver, such as in a send function. > > Please assist. > Thank you! > > Links below to make it easy to follow: > OpenBSD: > https://github.com/openbsd/src/blob/2e342c845e9966c26657b08851237fc18e7b5ff5/sys/dev/usb/if_rum.c#L2024 > > FreeBSD: > 1. https://github.com/freebsd/freebsd/blob/499b2b565264824f2139ebcb5d1c97404a17e7e6/sys/dev/usb/wlan/if_rum.c#L2607 > 2. https://github.com/freebsd/freebsd/blob/499b2b565264824f2139ebcb5d1c97404a17e7e6/sys/dev/usb/wlan/if_rum.c#L807 > I think you're probably looking for: https://github.com/freebsd/freebsd/blob/499b2b565264824f2139ebcb5d1c97404a17e7e6/sys/dev/usb/wlan/if_rum.c#L1623 Note that I don't know anything about the if_rum driver in general, I just know to look for occurrances of usbd_transfer_start(). -- Ian From owner-freebsd-usb@freebsd.org Mon Mar 2 21:51: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 C90F125B84F for ; Mon, 2 Mar 2020 21:51:24 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48WYkL3gTWz4fKj for ; Mon, 2 Mar 2020 21:51:22 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [62.141.129.235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id CAAC2260144; Mon, 2 Mar 2020 22:51:13 +0100 (CET) Subject: Re: Understanding how USB transmission works To: Farhan Khan , freebsd-usb@freebsd.org References: <8d84a572-f70f-4080-bfe2-263b7f97993c@www.fastmail.com> From: Hans Petter Selasky Message-ID: <497ed8b0-9d9b-8c35-74f5-e9fd2e32fc08@selasky.org> Date: Mon, 2 Mar 2020 22:48:38 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <8d84a572-f70f-4080-bfe2-263b7f97993c@www.fastmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48WYkL3gTWz4fKj 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 [-5.42 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-3.12)[ip: (-9.32), ipnet: 88.99.0.0/16(-4.71), asn: 24940(-1.56), country: DE(-0.02)]; 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]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2020 21:51:24 -0000 On 2020-03-02 22:19, Farhan Khan wrote: > Hi all, > > I am trying to understand how FreeBSD's usb transfers work compared to OpenBSD by using the rum(4) driver. I am a little confused how the FreeBSD side works. In FreeBSD USB transfers are a statemachine. In the beginning you call the start method, and that invokes the statemachine callback in the SETUP state. There you setup all parameters, buffers, lengths etc. and then you can submit the USB transfer, which invoke the host controller drivers routines, which actually lay out the required DMA descriptors for data transfer. When the USB transfer is completed the statemachine callback is invoked again and you can choose what to do. --HPS > > On the OpenBSD side, it seems that after allocating the pipes, you use usbd_setup_xfer and usbd_transfer(). As an example, look at OpenBSD's /usr/src/sys/dev/usb/if_rum.c, starting on line 2027-2029, I believe that corresponds to FreeBSD's /usr/src/sys/dev/usb/wlan/if_rum.c, line 2607 (rum_setup_tx_list) which goes to 807. In this function, I see that it adds rum_tx_data (tx_data[i] to the end of tx_free. However, how does it actually send the data? I believe this occurs in the callback functions, specifically with the usbd_transfer_submit function, but I am not certain how that is triggered, especially when it is triggered by the driver, such as in a send function. > > Please assist. > Thank you! > > Links below to make it easy to follow: > OpenBSD: > https://github.com/openbsd/src/blob/2e342c845e9966c26657b08851237fc18e7b5ff5/sys/dev/usb/if_rum.c#L2024 > > FreeBSD: > 1. https://github.com/freebsd/freebsd/blob/499b2b565264824f2139ebcb5d1c97404a17e7e6/sys/dev/usb/wlan/if_rum.c#L2607 > 2. https://github.com/freebsd/freebsd/blob/499b2b565264824f2139ebcb5d1c97404a17e7e6/sys/dev/usb/wlan/if_rum.c#L807 > > -- > Farhan Khan > PGP Fingerprint: 1312 89CE 663E 1EB2 179C 1C83 C41D 2281 F8DA C0DE > > _______________________________________________ > freebsd-usb@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > From owner-freebsd-usb@freebsd.org Tue Mar 3 03:42: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 1AA48264257 for ; Tue, 3 Mar 2020 03:42:51 +0000 (UTC) (envelope-from farhan@farhan.codes) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (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 48WjWr61yvz4FbQ for ; Tue, 3 Mar 2020 03:42:48 +0000 (UTC) (envelope-from farhan@farhan.codes) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id E295C20C86; Mon, 2 Mar 2020 22:42:47 -0500 (EST) Received: from imap35 ([10.202.2.85]) by compute1.internal (MEProxy); Mon, 02 Mar 2020 22:42:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=farhan.codes; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm2; bh=APIZEvhCDmpwUGbiXWk5Ot5A3qGMawL 2bd6bUzLBtMQ=; b=vPL6Hb53AdH21Om6LaQEgGQAZ3MPlFER8zbm96AMNmMXOd+ PKijfC8ru5JkS+c3K13yfv2Zng9wToCHjQSxbnLpTIqpZymvSuMKW75TVB7mrKUG hJLVpTO+/dg0cKXsw5JuphVvfVCtT7xdnu6meZ4BG5TVXxE2K66SdHeptWS55B+/ w3rEThazCXPD6hPDAT1PqGnSPLf+aDbi+fNyRA850Jf75iyaAma7vzmpRtOrgkmC Id7afOqZQd13ftLw0SOCUy/IQMbRGGrWgrELHN7Krnnp2mUab4aSQBW++m+lNAw1 r9z25ioOm5Hb3eSt7OT/zf0wLoYXlZazkCFOC9A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=APIZEv hCDmpwUGbiXWk5Ot5A3qGMawL2bd6bUzLBtMQ=; b=3n6qQR6vRz5QsaJ9AFhdIZ HZ5ALqKD/97rt84TMAulm5XbXsxcuvdP4ORYPevPRbAsVEGbogK4UF7WOvQUO2L/ VZMb1u9IQS1Vw8Jk0FaBsfi9falMR5Dg2bf3/S0x0uZSW+Y0XUMtj1UVnKzi3qy6 XVeuyk9LKPTZuBkTl8B8O6CaO3LEM/l8XDfYNw8AkxZXzyKSpelhqE27yelC61OG WoNoWnB4EQFilxiagT6i9P7bHcyFPGhvxVUFUjqu1m4/bkg9ExnVpJsMhOmsu2fs sNTG6wtt77N/NJp8ZJweAZqPuk7HHFIaOff1L00YP2grIFVYIT0acUtQfO8EBEZA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddthedgiedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpedfhfgrrhhhrghnucfmhhgrnhdfuceofhgrrhhhrghnsehf rghrhhgrnhdrtghouggvsheqnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepfhgrrhhhrghnsehfrghrhhgrnhdrtghouggvsh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 32C5814C0149; Mon, 2 Mar 2020 22:42:47 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-967-g014f925-fmstable-20200226v1 Mime-Version: 1.0 Message-Id: In-Reply-To: <497ed8b0-9d9b-8c35-74f5-e9fd2e32fc08@selasky.org> References: <8d84a572-f70f-4080-bfe2-263b7f97993c@www.fastmail.com> <497ed8b0-9d9b-8c35-74f5-e9fd2e32fc08@selasky.org> Date: Mon, 02 Mar 2020 22:42:25 -0500 From: "Farhan Khan" To: "Hans Petter Selasky" , freebsd-usb@freebsd.org Subject: Re: Understanding how USB transmission works Content-Type: text/plain X-Rspamd-Queue-Id: 48WjWr61yvz4FbQ X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=farhan.codes header.s=fm2 header.b=vPL6Hb53; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=3n6qQR6v; dmarc=none; spf=pass (mx1.freebsd.org: domain of farhan@farhan.codes designates 66.111.4.27 as permitted sender) smtp.mailfrom=farhan@farhan.codes X-Spamd-Result: default: False [-5.08 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[farhan.codes:s=fm2,messagingengine.com:s=fm2]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.27]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[farhan.codes]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[farhan.codes:+,messagingengine.com:+]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-3.49)[ip: (-9.84), ipnet: 66.111.4.0/24(-4.89), asn: 11403(-2.69), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[27.4.111.66.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_WWW(0.50)[] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2020 03:42:51 -0000 On Mon, Mar 2, 2020, at 4:48 PM, Hans Petter Selasky wrote: > On 2020-03-02 22:19, Farhan Khan wrote: > > Hi all, > > > > I am trying to understand how FreeBSD's usb transfers work compared to OpenBSD by using the rum(4) driver. I am a little confused how the FreeBSD side works. > > In FreeBSD USB transfers are a statemachine. In the beginning you call > the start method, and that invokes the statemachine callback in the > SETUP state. There you setup all parameters, buffers, lengths etc. and > then you can submit the USB transfer, which invoke the host controller > drivers routines, which actually lay out the required DMA descriptors > for data transfer. When the USB transfer is completed the statemachine > callback is invoked again and you can choose what to do. > > --HPS > Thank you so much for your prompt response! I understand that you are the one who wrote the USB stack? If so, I am honored. Can you please clarify a few points you made? > In the beginning you call the start method Within rum(4), would that be rum_start()? If not, which function is that? > then you can submit the USB transfer Would that function be usbd_transfer_submit(9)? Thanks again! -- Farhan Khan PGP Fingerprint: 1312 89CE 663E 1EB2 179C 1C83 C41D 2281 F8DA C0DE From owner-freebsd-usb@freebsd.org Tue Mar 3 09:00:11 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 415D7268CBA for ; Tue, 3 Mar 2020 09:00:11 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48WrZ22LjMz3xlL for ; Tue, 3 Mar 2020 09:00:09 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [62.141.129.235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 78C1D260152; Tue, 3 Mar 2020 10:00:06 +0100 (CET) Subject: Re: Understanding how USB transmission works To: Farhan Khan , freebsd-usb@freebsd.org References: <8d84a572-f70f-4080-bfe2-263b7f97993c@www.fastmail.com> <497ed8b0-9d9b-8c35-74f5-e9fd2e32fc08@selasky.org> From: Hans Petter Selasky Message-ID: <09d8b71f-1c91-77e3-98a4-8c9c7d0d8392@selasky.org> Date: Tue, 3 Mar 2020 09:55:28 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48WrZ22LjMz3xlL 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 [-5.42 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-3.12)[ip: (-9.32), ipnet: 88.99.0.0/16(-4.71), asn: 24940(-1.56), country: DE(-0.02)]; 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]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2020 09:00:11 -0000 On 2020-03-03 04:42, Farhan Khan wrote: > Thank you so much for your prompt response! I understand that you are the one who wrote the USB stack? If so, I am honored. > Can you please clarify a few points you made? >> In the beginning you call the start method > Within rum(4), would that be rum_start()? If not, which function is that? rum_start() later on calls usbd_transfer_start() which actually starts the USB part. >> then you can submit the USB transfer > Would that function be usbd_transfer_submit(9)? Yes. --HPS From owner-freebsd-usb@freebsd.org Tue Mar 3 17:44:45 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 ABCB72571B7 for ; Tue, 3 Mar 2020 17:44:45 +0000 (UTC) (envelope-from james.wright@jigsawdezign.com) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48X4CH45lQz4YJR for ; Tue, 3 Mar 2020 17:44:43 +0000 (UTC) (envelope-from james.wright@jigsawdezign.com) Received: from [192.168.0.11] ([82.18.193.38]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.163]) with ESMTPSA (Nemesis) id 1MjjOl-1jobtT2FER-00lDpl for ; Tue, 03 Mar 2020 18:44:40 +0100 From: James Wright Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: ukbd key repeat behaviour changed? Message-Id: <8FF6BA04-2216-4FF4-AF6F-9310F9516C1B@jigsawdezign.com> Date: Tue, 3 Mar 2020 17:44:39 +0000 To: freebsd-usb@freebsd.org X-Mailer: Apple Mail (2.3445.9.1) X-Provags-ID: V03:K1:/cXO2OO0mRT60cf3q9kDePbsxTrKdfW3gQtv7C3ScMxWdRg6qf9 59Aabp+Q+ZkGy1zocZEW3xyGCTafAXdix8CSVus+bWrX8oyxnEsRK4jEZrm+9JXOFhqfXt4 +CHen6PKY0xr8Dm23Rvlue5NRymIo+xCgdupegM8MKZg5K6TjN58OYn5I6D6TFJXmhxg/lX 0NG6g6/n3C0O9M4Vxv1VQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:qJQXFX9/hlU=:CF0w4b/uSC87iu4EIV+Ot6 2CI8jmUzHzU0+lqCuOqS1KdXsePnUElOc1kWdoIQ32taI3peA2e8yeXoQiSimQLG/qDRbsDLX LgxKHLZUrW+Z8Ooj7cG5q7ezav0uPwOBXoq2HYwkgdPy0RODxZrh/KokUAXyjxLDr+OZuBb4c BY0hck2NctgOVgWjQgu6A7XQ8kwY7TkASCXfzxBNUed+vjz6qk5NlSLYVc+vjk4SE57G2OOHM w+4Q8LpK0dbx+NtaYoJ8Q5koLGOwcDSH177d0GNQCMqalyJOz1YwoL5nLIT+W121UuXVxlIiN RkTHi7xRM/qigALfBko6cAMh+Bo5cWvp8rViC7+QILMb3QJbBowa0pivetjNqn4tXitErd3KH ff3uKPHnbFkkMPJQRJVyuTVx/kUMVKzICYYIp9S6oqpDLqkTYgovkbv4tvG9MtKFeO3xTDAcL SPwSWL5ys5vtsA0zTraextCxT6S+EP/IATz77wWTevPTBAy2Tu1eDv90iKJmIoAfzb7eg5ji9 qFR3S5QwJllRuECa60LKajCg79dLxDwTCImelhu36Un/G/Kamlt/7aWKJQsNr8bWpbyOJmB4M vEJZKD5mRGExEiiK8eyD96M+pXGOnpWUSLeuJgciUVV+QMQ0s6LUKmR0A4vgWWTpR1x0sfH7I h9B1pdAn1Ef4k8rg7YEufPxoON5bWFCsRO36+R1h8OdOG864wxkflacMKltnQ2QckYN1A+Lt/ blFDE5dmVT3FzPPFvkRCKejRp4Y31DogL96/fUNrZCk7VG45ZWcaxb2SeZMEMg9K65xwJg5oN fiRCgTtKKziCEPwajj/vUs2jHAIDIwz9ZoFNvhrk/wPghSqBwCxjb3ryqmbFp+7zY9iBbJP X-Rspamd-Queue-Id: 48X4CH45lQz4YJR X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of james.wright@jigsawdezign.com has no SPF policy when checking 212.227.126.187) smtp.mailfrom=james.wright@jigsawdezign.com X-Spamd-Result: default: False [2.80 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[187.126.227.212.rep.mailspike.net : 127.0.0.17]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; IP_SCORE(0.30)[ip: (0.48), ipnet: 212.227.0.0/16(-1.14), asn: 8560(2.17), country: DE(-0.02)]; NEURAL_SPAM_LONG(0.19)[0.193,0]; RCVD_IN_DNSWL_NONE(0.00)[187.126.227.212.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_MEDIUM(-0.09)[-0.092,0]; R_SPF_NA(0.00)[]; DMARC_NA(0.00)[jigsawdezign.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2020 17:44:45 -0000 After recently updating my MacBookAir to 12-STABLE r358483 (which i do = once a month), I'm making numerous mistypes using the keyboard on the vt = console than ever before. This is most apparent when I boot up FreeBSD and login to the console, = as I consistently fail to enter my password correctly unless I slowly = type it out. It's hard to reproduce as you have to type quickly, and not all key = combos seem to cause the issue, but I've noticed that extra repeated = keystrokes are being inserted into the output. For example, typing "ls -l " quickly sometimes causes the = terminal to show "ls ---l" or "ls -lll", or multiple new lines to appear = at the end. Has something changed with the default key repeat timings recently, = and has anyone else noticed this behaviour? Thanks, James From owner-freebsd-usb@freebsd.org Tue Mar 3 17:54:35 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 3D5E7257460 for ; Tue, 3 Mar 2020 17:54:35 +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 48X4Qf6cFwz42J9 for ; Tue, 3 Mar 2020 17:54:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 7F6DC25745F; Tue, 3 Mar 2020 17:54:34 +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 7EF2E25745E for ; Tue, 3 Mar 2020 17:54:34 +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) server-signature RSA-PSS (4096 bits) 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 48X4Qd73Shz42G8 for ; Tue, 3 Mar 2020 17:54:33 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8B329905C for ; Tue, 3 Mar 2020 17:54:33 +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 023HsXr0055119 for ; Tue, 3 Mar 2020 17:54:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 023HsXtE055118 for usb@FreeBSD.org; Tue, 3 Mar 2020 17:54:33 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 244517] Thinkpad X1 tablet 3rd gen: USB-C does not work Date: Tue, 03 Mar 2020 17:54:33 +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: 12.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: Mathias.Picker@virtual-earth.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2020 17:54:35 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244517 --- Comment #5 from Mathias.Picker@virtual-earth.de --- After setting the video ram down to 256Gb I could change the Thunderbold security to "none", but devices on the USB-C still do not show up :( Thanks for the suggestion, though. / Mathias --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Tue Mar 3 20:45:13 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 84D8525B0CC for ; Tue, 3 Mar 2020 20:45:13 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48X8CX24FXz417P for ; Tue, 3 Mar 2020 20:45:11 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [62.141.129.235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id CBA2B26010C; Tue, 3 Mar 2020 21:45:08 +0100 (CET) Subject: Re: ukbd key repeat behaviour changed? To: James Wright , freebsd-usb@freebsd.org References: <8FF6BA04-2216-4FF4-AF6F-9310F9516C1B@jigsawdezign.com> From: Hans Petter Selasky Message-ID: Date: Tue, 3 Mar 2020 21:38:19 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <8FF6BA04-2216-4FF4-AF6F-9310F9516C1B@jigsawdezign.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48X8CX24FXz417P 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 [-4.42 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; SUBJECT_ENDS_QUESTION(1.00)[]; DMARC_NA(0.00)[selasky.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-3.12)[ip: (-9.31), ipnet: 88.99.0.0/16(-4.71), asn: 24940(-1.56), country: DE(-0.02)]; 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]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2020 20:45:13 -0000 On 2020-03-03 18:44, James Wright wrote: > > After recently updating my MacBookAir to 12-STABLE r358483 (which i do once a month), I'm making numerous mistypes using the keyboard on the vt console than ever before. > > This is most apparent when I boot up FreeBSD and login to the console, as I consistently fail to enter my password correctly unless I slowly type it out. > > It's hard to reproduce as you have to type quickly, and not all key combos seem to cause the issue, but I've noticed that extra repeated keystrokes are being inserted into the output. > > For example, typing "ls -l " quickly sometimes causes the terminal to show "ls ---l" or "ls -lll", or multiple new lines to appear at the end. > > Has something changed with the default key repeat timings recently, and has anyone else noticed this behaviour? Hi, The ukbd's keyboard timing should not have changed. Can you show the output from: usbconfig show_ifdrv Run as root? --HPS From owner-freebsd-usb@freebsd.org Tue Mar 3 21:26:46 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 96E5F25C002 for ; Tue, 3 Mar 2020 21:26:46 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48X97S64Qcz4JtS for ; Tue, 3 Mar 2020 21:26:44 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [62.141.129.235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 2E9C02600E7; Tue, 3 Mar 2020 22:26:43 +0100 (CET) Subject: Re: ukbd key repeat behaviour changed? From: Hans Petter Selasky To: James Wright , freebsd-usb@freebsd.org References: <8FF6BA04-2216-4FF4-AF6F-9310F9516C1B@jigsawdezign.com> Message-ID: <1bc72129-83e5-ced7-b04a-8b374a950c86@selasky.org> Date: Tue, 3 Mar 2020 22:19:46 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 48X97S64Qcz4JtS 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 [-4.42 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; SUBJECT_ENDS_QUESTION(1.00)[]; DMARC_NA(0.00)[selasky.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-3.12)[ip: (-9.31), ipnet: 88.99.0.0/16(-4.71), asn: 24940(-1.56), country: DE(-0.02)]; 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]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2020 21:26:46 -0000 On 2020-03-03 21:38, Hans Petter Selasky wrote: > On 2020-03-03 18:44, James Wright wrote: >> >>    After recently updating my MacBookAir to 12-STABLE r358483 (which i >> do once a month), I'm making numerous mistypes using the keyboard on >> the vt console than ever before. >> >>    This is most apparent when I boot up FreeBSD and login to the >> console, as I consistently fail to enter my password correctly unless >> I slowly type it out. >> >>    It's hard to reproduce as you have to type quickly, and not all key >> combos seem to cause the issue, but I've noticed that extra repeated >> keystrokes are being inserted into the output. >> >>    For example, typing  "ls -l " quickly sometimes causes the >> terminal to show "ls ---l" or "ls -lll", or multiple new lines to >> appear at the end. >> >>    Has something changed with the default key repeat timings recently, >> and has anyone else noticed this behaviour? > > Hi, > > The ukbd's keyboard timing should not have changed. Can you show the > output from: > > usbconfig show_ifdrv > > Run as root? Also try: sysctl hw.usb.ukbd.debug=16 This will print all the key-presses in dmesg. Maybe you find something buggy there. --HPS From owner-freebsd-usb@freebsd.org Wed Mar 4 01:36:28 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 CB0D5260E7C for ; Wed, 4 Mar 2020 01:36:28 +0000 (UTC) (envelope-from james.wright@jigsawdezign.com) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48XGgZ5YxFz4Qvq for ; Wed, 4 Mar 2020 01:36:26 +0000 (UTC) (envelope-from james.wright@jigsawdezign.com) Received: from [192.168.0.11] ([82.18.193.38]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.163]) with ESMTPSA (Nemesis) id 1MqbDs-1jn5l82qnI-00mdKh; Wed, 04 Mar 2020 02:36:22 +0100 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: ukbd key repeat behaviour changed? From: James Wright In-Reply-To: <1bc72129-83e5-ced7-b04a-8b374a950c86@selasky.org> Date: Wed, 4 Mar 2020 01:36:20 +0000 Cc: freebsd-usb@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <5523FE74-80F8-404C-AE10-A2CDA3D35E7D@jigsawdezign.com> References: <8FF6BA04-2216-4FF4-AF6F-9310F9516C1B@jigsawdezign.com> <1bc72129-83e5-ced7-b04a-8b374a950c86@selasky.org> To: Hans Petter Selasky X-Mailer: Apple Mail (2.3445.9.1) X-Provags-ID: V03:K1:tN2i7nzeRFWl7tUZY++Cws83z6OxnEl4cLvsGQTDdi0WE8mxgZz as0na8X3nev9TXC3E6oVtPLmkFLFHvjpsVWid9HzQbcHr8Tx9+6ulFVy7uG1M7AD4GZiuYz XMmQy+x8r1wwzTDQfoa2sXCYKX7UAOa298gngVFAEdjk/69cwQ4ooYXelLW8frheRyJ1UCF GvbGfpQ54wB9mCjawtXxw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:tJiT1m/iSwU=:RcLUcnsw2IOnqAmXPbdV+S ySpyM8IwxgYUTPWdXQAUYKaXMrcLguzu2bSkND+ZDaeU9zEXLDWiR5phVcTW8FRpF5DNnkoZu EIfqLoAHEpSz1JCYtt8o98ZlOYMKvfvLf4cLsJylIVptgkqTIxZZh0bRESOLAXQ89PPHj9h3C ok8PSdSm2pWxhDBvJFKeqjk1qmZkBbwrvxLvfUTojbk/6r2aCkGnhWC6GdAviXNiPkkYqziW+ i8RIqseP4PzC7fLecPHRT0GEpv5QnthGjUI4AWCiR9ith0rh4GTV+rZHqmsWXZY+b5FyuugMB /Yd5QoU988O+lpcvsviKT2y7jEK0EinRQMV54zjOtigo6J8+EHt89Eb6qoLsqMvjcw3DgP4RL SkthqQq2/tWEgX8Qdq7iIYyrHpH5SCXZlCfWuotrGhK3UqpciB2ZUI/+WR3KUAX8nVv7nMabM MBAx0zKVhQfoQGgRG2dIkRaM9fi+IWrg1I+1pclUNfWbWY+2wmlET+xFaI5EdHRQuZVcThJTC wmq6y3yPlbGvBAcFvFM9lIT3pUlSIEuLHd2apfLdw2kpIzIwP0ZzNiJncvhzEu3g/CrhHvXau 40ebpAbt/B1uXcENcRxRLNEO1bN5/LcK7QkfRiub6cxbQGZI6ni+lLqQczFEuI43iGU8ad5wW z5dEDcVc8rSlmdBtyN0PoEjtd5WlH4pa62U5xfGL3v79U+0WHz2S1IeD37ovnQf0xdScdJU4d 0or5Yih9gugw7KDM8rjqmnALQh6KOsz8bZyLVPDppXWprCSCMSpk2tgrBZpEs/3iMuvJ0CY8c ZkYSPnalSPmcOkMqBGcDhJoA53Nl2JholuOmnOz2sg0eAgBr39nrH2OEDeeAoB3zTjlFVxR X-Rspamd-Queue-Id: 48XGgZ5YxFz4Qvq X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of james.wright@jigsawdezign.com has no SPF policy when checking 212.227.126.187) smtp.mailfrom=james.wright@jigsawdezign.com X-Spamd-Result: default: False [2.87 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[187.126.227.212.rep.mailspike.net : 127.0.0.17]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; IP_SCORE(0.30)[ip: (0.48), ipnet: 212.227.0.0/16(-1.14), asn: 8560(2.17), country: DE(-0.02)]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[jigsawdezign.com]; AUTH_NA(1.00)[]; NEURAL_HAM_MEDIUM(-0.54)[-0.540,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[187.126.227.212.list.dnswl.org : 127.0.5.0]; NEURAL_SPAM_LONG(0.72)[0.716,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2020 01:36:28 -0000 > On 3 Mar 2020, at 21:19, Hans Petter Selasky wrote: >=20 > On 2020-03-03 21:38, Hans Petter Selasky wrote: >> On 2020-03-03 18:44, James Wright wrote: >>>=20 >>> After recently updating my MacBookAir to 12-STABLE r358483 (which = i do once a month), I'm making numerous mistypes using the keyboard on = the vt console than ever before. >>>=20 >>> This is most apparent when I boot up FreeBSD and login to the = console, as I consistently fail to enter my password correctly unless I = slowly type it out. >>>=20 >>> It's hard to reproduce as you have to type quickly, and not all = key combos seem to cause the issue, but I've noticed that extra repeated = keystrokes are being inserted into the output. >>>=20 >>> For example, typing "ls -l " quickly sometimes causes the = terminal to show "ls ---l" or "ls -lll", or multiple new lines to appear = at the end. >>>=20 >>> Has something changed with the default key repeat timings = recently, and has anyone else noticed this behaviour? >> Hi, >> The ukbd's keyboard timing should not have changed. Can you show the = output from: >> usbconfig show_ifdrv >> Run as root? >=20 > Also try: >=20 > sysctl hw.usb.ukbd.debug=3D16 >=20 > This will print all the key-presses in dmesg. Maybe you find something = buggy there. >=20 > --HPS As requested; # usbconfig show_ifdrv = = =20 ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=3D0 md=3DHOST spd=3DSUPER = (5.0Gbps) pwr=3DSAVE (0mA) = =20 ugen0.1.0: uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr = 1> = =20 ugen0.2: at usbus0, cfg=3D0 md=3DHOST = spd=3DFULL (12Mbps) pwr=3DON (94mA) = =20 ugen0.3: at usbus0, = cfg=3D0 md=3DHOST spd=3DFULL (12Mbps) pwr=3DON (500mA) = =20 ugen0.3.0: uhid0: = = =20 ugen0.3.1: ukbd0: = = =20 ugen0.3.2: wsp0: = = =20 ugen0.4: at usbus0, cfg=3D0 md=3DHOST spd=3DSUPER = (5.0Gbps) pwr=3DON (224mA) = =20 ugen0.4.0: umass0: =20= However, to confirm it's not just my typing, I booted into my old kernel = (r357365) and I don't see the issue as in the newer revision (r358484). I think it may be something to do with the latest version not resetting = the initial repeat delay when another key is pressed, e.g. 1) Hold down the 'a' key. 2) Wait a split second just before the 'a' key should start repeating, = and press 'l' key whilst still holding the 'a' key. 3) There should be a renewed initial delay before the 'l' key starts = repeating, but I think it starts repeating almost immediately (as if it = were still counting from the press of the 'a' key). Hope that makes some sense! :-) James From owner-freebsd-usb@freebsd.org Wed Mar 4 04:57:29 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 49EAD2654A7 for ; Wed, 4 Mar 2020 04:57:29 +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 48XM7X723tz4ZmX for ; Wed, 4 Mar 2020 04:57:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id ED05E2654A6; Wed, 4 Mar 2020 04:57:28 +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 ECC972654A5 for ; Wed, 4 Mar 2020 04:57:28 +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) server-signature RSA-PSS (4096 bits) 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 48XM7X1KbSz4Zl9 for ; Wed, 4 Mar 2020 04:57:27 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5342A18C9C for ; Wed, 4 Mar 2020 04:57:27 +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 0244vR7Z005198 for ; Wed, 4 Mar 2020 04:57:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0244vRnD005195 for usb@FreeBSD.org; Wed, 4 Mar 2020 04:57:27 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 222646] ukbd(4): support Consumer Control based multimedia keys Date: Wed, 04 Mar 2020 04:57:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: henry.hu.sh@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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2020 04:57:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222646 Henry Hu changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |henry.hu.sh@gmail.com --- Comment #8 from Henry Hu --- Hi Greg, I'm trying this patch with my WASD keyboard (https://www.wasdkeyboards.com/= ). It's not working, here are the symptoms: * The keyboard shows as a ums and a ukbd * When keyboard is attached, I don't see "found consumer control". * When the Fn key is pressed, I see Mar 3 23:55:28 goldpeak kernel: ukbd_intr_callback: actlen=3D8 bytes Mar 3 23:55:28 goldpeak kernel: ukbd_intr_callback: modifiers =3D 0x0000 * Similarly, if I then press the media keys (they are sent by combining Fn + other keys, such as PgUp/PgDn), I see the above 2 lines again. * When I release the keys, each one triggers the same lines. I'll try to grab the HID descriptor of the keyboard. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Wed Mar 4 05:30:22 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 158AA265F78 for ; Wed, 4 Mar 2020 05:30:22 +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 48XMsT4FCVz3Fkq for ; Wed, 4 Mar 2020 05:30:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 877D8265F77; Wed, 4 Mar 2020 05:30:21 +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 85D85265F76 for ; Wed, 4 Mar 2020 05:30:21 +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) server-signature RSA-PSS (4096 bits) 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 48XMsT2Gfrz3Fk7 for ; Wed, 4 Mar 2020 05:30:20 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C769719222 for ; Wed, 4 Mar 2020 05:30:19 +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 0245UJUB006957 for ; Wed, 4 Mar 2020 05:30:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0245UJD2006956 for usb@FreeBSD.org; Wed, 4 Mar 2020 05:30:19 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 222646] ukbd(4): support Consumer Control based multimedia keys Date: Wed, 04 Mar 2020 05:30:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: henry.hu.sh@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: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2020 05:30:22 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222646 --- Comment #9 from Henry Hu --- Decoded HID report descriptor: 0x05, 0x01, // Usage Page (Generic Desktop Ctrls) 0x09, 0x06, // Usage (Keyboard) 0xA1, 0x01, // Collection (Application) 0x05, 0x07, // Usage Page (Kbrd/Keypad) 0x19, 0xE0, // Usage Minimum (0xE0) 0x29, 0xE7, // Usage Maximum (0xE7) 0x15, 0x00, // Logical Minimum (0) 0x25, 0x01, // Logical Maximum (1) 0x75, 0x01, // Report Size (1) 0x95, 0x08, // Report Count (8) 0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,= No Null Position) 0x95, 0x01, // Report Count (1) 0x75, 0x08, // Report Size (8) 0x81, 0x01, // Input (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position) 0x95, 0x03, // Report Count (3) 0x75, 0x01, // Report Size (1) 0x05, 0x08, // Usage Page (LEDs) 0x19, 0x01, // Usage Minimum (Num Lock) 0x29, 0x03, // Usage Maximum (Scroll Lock) 0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State= ,No Null Position,Non-volatile) 0x95, 0x05, // Report Count (5) 0x75, 0x01, // Report Size (1) 0x91, 0x01, // Output (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) 0x95, 0x06, // Report Count (6) 0x75, 0x08, // Report Size (8) 0x26, 0xFF, 0x00, // Logical Maximum (255) 0x05, 0x07, // Usage Page (Kbrd/Keypad) 0x19, 0x00, // Usage Minimum (0x00) 0x29, 0x91, // Usage Maximum (0x91) 0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred Stat= e,No Null Position) 0xC0, // End Collection // 62 bytes --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Wed Mar 4 08:49: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 A8E6B26905C for ; Wed, 4 Mar 2020 08:49: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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48XSHJ0dfnz45HF for ; Wed, 4 Mar 2020 08:49:31 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [62.141.129.235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 982AD2604A3; Wed, 4 Mar 2020 09:49:23 +0100 (CET) Subject: Re: ukbd key repeat behaviour changed? To: James Wright Cc: freebsd-usb@freebsd.org References: <8FF6BA04-2216-4FF4-AF6F-9310F9516C1B@jigsawdezign.com> <1bc72129-83e5-ced7-b04a-8b374a950c86@selasky.org> <5523FE74-80F8-404C-AE10-A2CDA3D35E7D@jigsawdezign.com> From: Hans Petter Selasky Message-ID: Date: Wed, 4 Mar 2020 09:49:10 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <5523FE74-80F8-404C-AE10-A2CDA3D35E7D@jigsawdezign.com> Content-Type: multipart/mixed; boundary="------------DC3674773B2BBD09DF4404A4" Content-Language: en-US X-Rspamd-Queue-Id: 48XSHJ0dfnz45HF 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 [-4.35 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.93)[-0.927,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; HAS_ATTACHMENT(0.00)[]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; DMARC_NA(0.00)[selasky.org]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-3.12)[ip: (-9.30), ipnet: 88.99.0.0/16(-4.71), asn: 24940(-1.56), country: DE(-0.02)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2020 08:49:33 -0000 This is a multi-part message in MIME format. --------------DC3674773B2BBD09DF4404A4 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit > > However, to confirm it's not just my typing, I booted into my old kernel (r357365) and I don't see the issue as in the newer revision (r358484). > > I think it may be something to do with the latest version not resetting the initial repeat delay when another key is pressed, e.g. > > 1) Hold down the 'a' key. > 2) Wait a split second just before the 'a' key should start repeating, and press 'l' key whilst still holding the 'a' key. > 3) There should be a renewed initial delay before the 'l' key starts repeating, but I think it starts repeating almost immediately (as if it were still counting from the press of the 'a' key). > > Hope that makes some sense! :-) > Hi, Can you try the attached patch? Does it solve the issue? --HPS --------------DC3674773B2BBD09DF4404A4 Content-Type: text/x-patch; charset=UTF-8; name="ukbd.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ukbd.diff" Index: sys/dev/usb/input/ukbd.c =================================================================== --- sys/dev/usb/input/ukbd.c (revision 358536) +++ sys/dev/usb/input/ukbd.c (working copy) @@ -522,15 +522,9 @@ if (ukbd_is_modifier_key(key)) continue; - /* - * Check for first new key and set - * initial delay and [re]start timer: - */ - if (sc->sc_repeat_key == 0) { - sc->sc_co_basetime = sbinuptime(); - sc->sc_delay = sc->sc_kbd.kb_delay1; - ukbd_start_timer(sc); - } + sc->sc_co_basetime = sbinuptime(); + sc->sc_delay = sc->sc_kbd.kb_delay1; + ukbd_start_timer(sc); /* set repeat time for last key */ sc->sc_repeat_time = now + sc->sc_kbd.kb_delay1; --------------DC3674773B2BBD09DF4404A4-- From owner-freebsd-usb@freebsd.org Wed Mar 4 09:01: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 9DCAA2696FE for ; Wed, 4 Mar 2020 09:01:25 +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 48XSY13ngBz4V59 for ; Wed, 4 Mar 2020 09:01:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 7AA832696FC; Wed, 4 Mar 2020 09:01: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 7A5932696FB for ; Wed, 4 Mar 2020 09:01: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) server-signature RSA-PSS (4096 bits) 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 48XSY12GW5z4V56 for ; Wed, 4 Mar 2020 09:01: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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4705B1B9C9 for ; Wed, 4 Mar 2020 09:01: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 02491Pbt042233 for ; Wed, 4 Mar 2020 09:01:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 02491PSU042232 for usb@FreeBSD.org; Wed, 4 Mar 2020 09:01: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 222646] ukbd(4): support Consumer Control based multimedia keys Date: Wed, 04 Mar 2020 09:01:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, patch 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: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2020 09:01:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222646 --- Comment #10 from Hans Petter Selasky --- Henry: Try to run: usbdump -i usbusX -f Y -s 65536 -vvv where X.Y are the numbers after ugenX.Y for your keyboard. It will show the actual event data packet. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Wed Mar 4 09:03:13 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 5F6102697A2 for ; Wed, 4 Mar 2020 09:03:13 +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 48XSb51nzNz4Vvp for ; Wed, 4 Mar 2020 09:03:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 3B97A2697A1; Wed, 4 Mar 2020 09:03:13 +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 3B5A22697A0 for ; Wed, 4 Mar 2020 09:03:13 +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) server-signature RSA-PSS (4096 bits) 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 48XSb50qM7z4Vvj for ; Wed, 4 Mar 2020 09:03:13 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id F1BF91BA30 for ; Wed, 4 Mar 2020 09:03:12 +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 02493COY052108 for ; Wed, 4 Mar 2020 09:03:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 02493Cw9052107 for usb@FreeBSD.org; Wed, 4 Mar 2020 09:03:12 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 222646] ukbd(4): support Consumer Control based multimedia keys Date: Wed, 04 Mar 2020 09:03:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, patch 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: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2020 09:03:13 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222646 --- Comment #11 from Hans Petter Selasky --- Greg: You need to rebase your patch again. After the gamers keyboard support, keycode's are gone and we now have a bit= map where we set all the input keys! --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Wed Mar 4 12:36:54 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 BB58F26DD86 for ; Wed, 4 Mar 2020 12:36:54 +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 48XYKf1vWHz3Glv for ; Wed, 4 Mar 2020 12:36:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 1E99F26DD85; Wed, 4 Mar 2020 12:36: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 0F71926DD84 for ; Wed, 4 Mar 2020 12:36: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) server-signature RSA-PSS (4096 bits) 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 48XYKc0GCzz3Gjt for ; Wed, 4 Mar 2020 12:36:51 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 773D61E100 for ; Wed, 4 Mar 2020 12:36:50 +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 024Caoaf093311 for ; Wed, 4 Mar 2020 12:36:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 024Cao5R093304 for usb@FreeBSD.org; Wed, 4 Mar 2020 12:36:50 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 222646] ukbd(4): support Consumer Control based multimedia keys Date: Wed, 04 Mar 2020 12:36:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: wulf@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: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2020 12:36:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222646 --- Comment #12 from Vladimir Kondratyev --- The patch will not work for WASD keyboard as it's report descriptor does not includes consumer page input usages. Most probably, consumer page is access= ible as separate USB HID device and is accessible with usbhidctl/usbhidaction ut= ils. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Wed Mar 4 17:05:05 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 280C62736D7 for ; Wed, 4 Mar 2020 17:05:05 +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 48XgH50Jzhz3PQb for ; Wed, 4 Mar 2020 17:05:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 09C222736D6; Wed, 4 Mar 2020 17:05:05 +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 0978B2736D5 for ; Wed, 4 Mar 2020 17:05:05 +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) server-signature RSA-PSS (4096 bits) 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 48XgH46YcTz3PQW for ; Wed, 4 Mar 2020 17:05:04 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DC9A5213F1 for ; Wed, 4 Mar 2020 17:05:04 +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 024H54lC025934 for ; Wed, 4 Mar 2020 17:05:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 024H54Ma025933 for usb@FreeBSD.org; Wed, 4 Mar 2020 17:05:04 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 222646] ukbd(4): support Consumer Control based multimedia keys Date: Wed, 04 Mar 2020 17:05:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: greg@unrelenting.technology X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Overcome By Events X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2020 17:05:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222646 Greg V changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |Overcome By Events Status|New |Closed --- Comment #13 from Greg V --- There is consumer page support in iichid now. (also I use a different mouse= ) so I'm abandoning this patch. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Wed Mar 4 17:23: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 84C612743AF for ; Wed, 4 Mar 2020 17:23:58 +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 48Xght1hYBz4TqC for ; Wed, 4 Mar 2020 17:23:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 3719D2743AE; Wed, 4 Mar 2020 17:23:58 +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 36CF62743AD for ; Wed, 4 Mar 2020 17:23:58 +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) server-signature RSA-PSS (4096 bits) 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 48Xghs4RhGz4Tp9 for ; Wed, 4 Mar 2020 17:23:57 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D6160217DA for ; Wed, 4 Mar 2020 17:23:56 +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 024HNuMB073849 for ; Wed, 4 Mar 2020 17:23:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 024HNudM073783 for usb@FreeBSD.org; Wed, 4 Mar 2020 17:23:56 GMT (envelope-from bugzilla-noreply@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: [Bug 194727] uaudio device gets disconnected, and hangs usb until everything using /dev/mixer* is closed Date: Wed, 04 Mar 2020 17:23:54 +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 Only Me X-Bugzilla-Who: commit-hook@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: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2020 17:23:58 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D194727 --- Comment #22 from commit-hook@freebsd.org --- A commit references this bug: Author: hselasky Date: Wed Mar 4 17:23:21 UTC 2020 New revision: 358629 URL: https://svnweb.freebsd.org/changeset/base/358629 Log: Implement a detaching flag for the sound(4) subsystem to take appropriate actions when we are trying to detach an audio device, but cannot because someone is using it. This avoids applications having to wait for the DSP read data timeout before they receive any error indication. Tested with virtual_oss(8). Remove some unused definitions while at it. PR: 194727 MFC after: 1 week Sponsored by: Mellanox Technologies Changes: head/sys/dev/sound/pcm/dsp.c head/sys/dev/sound/pcm/mixer.c head/sys/dev/sound/pcm/sound.c head/sys/dev/sound/pcm/sound.h --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Wed Mar 4 18:46: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 6CBF9275BEF for ; Wed, 4 Mar 2020 18:46:10 +0000 (UTC) (envelope-from james.wright@jigsawdezign.com) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48XjWh1T0pz4KLl for ; Wed, 4 Mar 2020 18:46:07 +0000 (UTC) (envelope-from james.wright@jigsawdezign.com) Received: from [192.168.0.11] ([82.18.193.38]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.179]) with ESMTPSA (Nemesis) id 1M27ix-1j763R1ngX-002aeI; Wed, 04 Mar 2020 19:46:04 +0100 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: ukbd key repeat behaviour changed? From: James Wright In-Reply-To: Date: Wed, 4 Mar 2020 18:46:03 +0000 Cc: freebsd-usb@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <39CDAF5F-739E-4003-B1E3-B00222BD37DF@jigsawdezign.com> References: <8FF6BA04-2216-4FF4-AF6F-9310F9516C1B@jigsawdezign.com> <1bc72129-83e5-ced7-b04a-8b374a950c86@selasky.org> <5523FE74-80F8-404C-AE10-A2CDA3D35E7D@jigsawdezign.com> To: Hans Petter Selasky X-Mailer: Apple Mail (2.3445.9.1) X-Provags-ID: V03:K1:yBSvD9UJhg976zAni8I00+ot3UCLRvpz5Mdo5ouowCwkhsF38DA NnQqoqE974MBXmsZNdqU6wycVpm5oCDXfvKn3Z0MTZFdv/iaVHFeYP75faNxKov/BgTMJpr +34pJSuhMVPfwkdq3eymIQZvd8q9noOt91Ac8/GK+9OIVvL1icVR4yc4cbLm40iR3ESpx0P b3sSrNk3JlSbvl8u4PsdA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:eY6UpakM260=:Qu6CF0FgIkP2jb0JX0uPba k6tsdQHO936MWYfyt9LLW8iz4XbqZHOTp+COUnTntl7ia4HjpNwucQKaFz/S9p+Hp5kKDmait VAkWOYA+yA2emLp3ff+UCVyRGl3ZsKt6vz5dXmbB8GMWR4t5iJRfRKYW5Be2DjdKuC71CUVhE qtrzhhj+SzhSMf3PKZWbgmv6U3MxfDvN/S04a9sbYNX1M+tl9Yd9F+nAHFAroSU8/d2JDWaLC 2i2qlx8Sma+AGJJlzhxqE+FW5oFNmdwoZZUc0aToZo/w/9U7886AFSLtZzseiqDZixLYy5c33 CVF8sVJKWHSVKXgjZcBtw6Q152DiXr8yTiCt27mXDwDZCauJUnHrkLEuS2lBQ8caa63H3y524 Zmp6RCEBlkESHDCsbdNNKXxG1h16at/m5eKJQWij5Q9DVXMEE9V89aV3zquoxTnPdg50nQ+Sn j4HQlsNivR3kGdHxVEKuf8iud0J3ImhceI4T+JrXkDXgc7XZf+FfthSwL8Wnsxrz2PC71chli rqL/bVvigo3vYu4Imexa0E8gwZpHZYe7nAG+WzZb5Sl++7uONjkgW7HJ27pU5ynjdJbEU5DYy UhuHFbuM1RTJQu7spKutwwrtI81l5zpTYD9dq1rXwdNW7CYVrWIj5PNBNlZapcdycglEyzK8S L9tC/SVtj1BlaS8dmem0YfhDGSrG6xa3zG2wFVwv0sIBl6YcpXJhXUkkzloZlyjAOyhOaURUF GKlEMIZl/xdIBtrknZ05Da25uVciBL0RfzIzS7dOxfxV+g/vh93Ja9OXN+k5r+zYu6xgAuvXm 3vQAOkipw6oPvwRf/6+1m1Gfhwrbgnz8z+Eb4l43AG8jg/9HbRtsdjiSImW1UhOpdTP+EnP X-Rspamd-Queue-Id: 48XjWh1T0pz4KLl X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of james.wright@jigsawdezign.com has no SPF policy when checking 212.227.17.24) smtp.mailfrom=james.wright@jigsawdezign.com X-Spamd-Result: default: False [2.95 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; IP_SCORE(0.16)[ip: (-0.23), ipnet: 212.227.0.0/16(-1.12), asn: 8560(2.17), country: DE(-0.02)]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[jigsawdezign.com]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.19)[0.185,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[24.17.227.212.list.dnswl.org : 127.0.5.0]; NEURAL_SPAM_LONG(0.20)[0.203,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2020 18:46:10 -0000 > On 4 Mar 2020, at 08:49, Hans Petter Selasky wrote: >=20 >> However, to confirm it's not just my typing, I booted into my old = kernel (r357365) and I don't see the issue as in the newer revision = (r358484). >> I think it may be something to do with the latest version not = resetting the initial repeat delay when another key is pressed, e.g. >> 1) Hold down the 'a' key. >> 2) Wait a split second just before the 'a' key should start = repeating, and press 'l' key whilst still holding the 'a' key. >> 3) There should be a renewed initial delay before the 'l' key starts = repeating, but I think it starts repeating almost immediately (as if it = were still counting from the press of the 'a' key). >> Hope that makes some sense! :-) >=20 > Hi, >=20 > Can you try the attached patch? >=20 > Does it solve the issue? >=20 > --HPS > Thanks for the patch!=20 Is there any way of easily testing it without rebuilding the whole = kernel, as ukbd seems built in by default? Thanks, James= From owner-freebsd-usb@freebsd.org Wed Mar 4 21:30:08 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 BC2D8252379 for ; Wed, 4 Mar 2020 21:30:08 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48Xn8t2sskz41cM for ; Wed, 4 Mar 2020 21:30:05 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [62.141.129.235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 0E0D5260189; Wed, 4 Mar 2020 22:29:57 +0100 (CET) Subject: Re: ukbd key repeat behaviour changed? To: James Wright Cc: freebsd-usb@freebsd.org References: <8FF6BA04-2216-4FF4-AF6F-9310F9516C1B@jigsawdezign.com> <1bc72129-83e5-ced7-b04a-8b374a950c86@selasky.org> <5523FE74-80F8-404C-AE10-A2CDA3D35E7D@jigsawdezign.com> <39CDAF5F-739E-4003-B1E3-B00222BD37DF@jigsawdezign.com> From: Hans Petter Selasky Message-ID: Date: Wed, 4 Mar 2020 22:29:49 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <39CDAF5F-739E-4003-B1E3-B00222BD37DF@jigsawdezign.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48Xn8t2sskz41cM X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.92 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.95)[-0.955,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[selasky.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-2.67)[ip: (-9.21), ipnet: 2a01:4f8::/29(-2.55), asn: 24940(-1.56), country: DE(-0.02)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2020 21:30:08 -0000 On 2020-03-04 19:46, James Wright wrote: > > >> On 4 Mar 2020, at 08:49, Hans Petter Selasky wrote: >> >>> However, to confirm it's not just my typing, I booted into my old kernel (r357365) and I don't see the issue as in the newer revision (r358484). >>> I think it may be something to do with the latest version not resetting the initial repeat delay when another key is pressed, e.g. >>> 1) Hold down the 'a' key. >>> 2) Wait a split second just before the 'a' key should start repeating, and press 'l' key whilst still holding the 'a' key. >>> 3) There should be a renewed initial delay before the 'l' key starts repeating, but I think it starts repeating almost immediately (as if it were still counting from the press of the 'a' key). >>> Hope that makes some sense! :-) >> >> Hi, >> >> Can you try the attached patch? >> >> Does it solve the issue? >> >> --HPS >> > > > Thanks for the patch! > > Is there any way of easily testing it without rebuilding the whole kernel, as ukbd seems built in by default? > Hi, make buildkernel -jX -DNO_CLEAN might save you some time. --HPS From owner-freebsd-usb@freebsd.org Thu Mar 5 00:42:18 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 0DB75256FB1 for ; Thu, 5 Mar 2020 00:42:18 +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 48XsQd5qKFz4H7c for ; Thu, 5 Mar 2020 00:42:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id B02FB256FB0; Thu, 5 Mar 2020 00:42:17 +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 AF8A4256FAF for ; Thu, 5 Mar 2020 00:42:17 +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) server-signature RSA-PSS (4096 bits) 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 48XsQd3DxNz4H6t for ; Thu, 5 Mar 2020 00:42:17 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 292AA26BE3 for ; Thu, 5 Mar 2020 00:42:17 +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 0250gHZm034142 for ; Thu, 5 Mar 2020 00:42:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0250gHuv034141 for usb@FreeBSD.org; Thu, 5 Mar 2020 00:42:17 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 222646] ukbd(4): support Consumer Control based multimedia keys Date: Thu, 05 Mar 2020 00:42:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: henry.hu.sh@gmail.com X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Overcome By Events X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2020 00:42:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222646 --- Comment #14 from Henry Hu --- (In reply to Vladimir Kondratyev from comment #12) Hans, yes, every key press there seem to be 2 reports: 19:36:22.021230 usbus0.2 SUBM-INTR-EP=3D00000081,SPD=3DLOW,NFR=3D1,SLEN=3D0= ,IVAL=3D10 frame[0] READ 8 bytes 19:36:22.021231 usbus0.2 DONE-INTR-EP=3D00000081,SPD=3DLOW,NFR=3D1,SLEN=3D8,IVAL=3D10,ERR=3D0 frame[0] READ 8 bytes 0000 00 00 00 00 00 00 00 00 -- -- -- -- -- -- -- -- |........ | 19:36:22.021353 usbus0.2 DONE-INTR-EP=3D00000082,SPD=3DLOW,NFR=3D1,SLEN=3D8,IVAL=3D10,ERR=3D0 frame[0] READ 7 bytes 0000 01 08 00 00 00 00 00 -- -- -- -- -- -- -- -- -- |....... | 19:36:22.021356 usbus0.2 SUBM-INTR-EP=3D00000082,SPD=3DLOW,NFR=3D1,SLEN=3D0= ,IVAL=3D10 frame[0] READ 8 bytes 19:36:22.101224 usbus0.2 SUBM-INTR-EP=3D00000081,SPD=3DLOW,NFR=3D1,SLEN=3D0= ,IVAL=3D10 frame[0] READ 8 bytes 19:36:22.101225 usbus0.2 DONE-INTR-EP=3D00000081,SPD=3DLOW,NFR=3D1,SLEN=3D8,IVAL=3D10,ERR=3D0 frame[0] READ 8 bytes 0000 00 00 00 00 00 00 00 00 -- -- -- -- -- -- -- -- |........ | 19:36:22.101348 usbus0.2 DONE-INTR-EP=3D00000082,SPD=3DLOW,NFR=3D1,SLEN=3D8,IVAL=3D10,ERR=3D0 frame[0] READ 7 bytes 0000 01 00 00 00 00 00 00 -- -- -- -- -- -- -- -- -- |....... | 19:36:22.101349 usbus0.2 SUBM-INTR-EP=3D00000082,SPD=3DLOW,NFR=3D1,SLEN=3D0= ,IVAL=3D10 frame[0] READ 8 bytes Vladimir: There is another device, which is attached by ums driver, but interestingly no button/axis is reported. Greg: I may try iichid as well. Let's open another PR to track this. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Mar 5 01:24:55 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 211F2257C7B for ; Thu, 5 Mar 2020 01:24:55 +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 48XtMp5W74z4cJX for ; Thu, 5 Mar 2020 01:24:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 9FAD5257C7A; Thu, 5 Mar 2020 01:24:54 +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 9F4C2257C78 for ; Thu, 5 Mar 2020 01:24:54 +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) server-signature RSA-PSS (4096 bits) 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 48XtMp240Wz4cJG for ; Thu, 5 Mar 2020 01:24:54 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4108327355 for ; Thu, 5 Mar 2020 01:24:54 +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 0251Os7j016479 for ; Thu, 5 Mar 2020 01:24:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0251OsAL016444 for usb@FreeBSD.org; Thu, 5 Mar 2020 01:24:54 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 244602] Media key support for WASD keyboard Date: Thu, 05 Mar 2020 01:24: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: 12.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: henry.hu.sh@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: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2020 01:24:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244602 Bug ID: 244602 Summary: Media key support for WASD keyboard Product: Base System Version: 12.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: usb Assignee: usb@FreeBSD.org Reporter: henry.hu.sh@gmail.com There are media keys on the WASD keyboard (https://www.wasdkeyboards.com/). However, they are not recognized by FreeBSD. Pressing them does not result = in any keyboard event in X. The keyboard shows 2 interfaces: Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x003b=20 bNumInterfaces =3D 0x0002=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 bmAttributes =3D 0x00a0=20 bMaxPower =3D 0x0032=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0001=20 bInterfaceClass =3D 0x0003 bInterfaceSubClass =3D 0x0001=20 bInterfaceProtocol =3D 0x0001=20 iInterface =3D 0x0000 Additional Descriptor bLength =3D 0x09 bDescriptorType =3D 0x21 bDescriptorSubType =3D 0x10 RAW dump:=20 0x00 | 0x09, 0x21, 0x10, 0x01, 0x00, 0x01, 0x22, 0x3e,=20 0x08 | 0x00 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x000a=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Interface 1 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0001=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0001=20 bInterfaceClass =3D 0x0003 bInterfaceSubClass =3D 0x0001=20 bInterfaceProtocol =3D 0x0002=20 iInterface =3D 0x0000 Additional Descriptor bLength =3D 0x09 bDescriptorType =3D 0x21 bDescriptorSubType =3D 0x10 RAW dump:=20 0x00 | 0x09, 0x21, 0x10, 0x01, 0x00, 0x01, 0x22, 0xa6,=20 0x08 | 0x00 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0082 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x000a=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 ukbd attaches to interface 0, and ums attaches to interface 1. Interface 0's HID report descriptor is a general one: 0x05, 0x01, // Usage Page (Generic Desktop Ctrls) 0x09, 0x06, // Usage (Keyboard) 0xA1, 0x01, // Collection (Application) 0x05, 0x07, // Usage Page (Kbrd/Keypad) // Control/Alt etc. 0x19, 0xE0, // Usage Minimum (0xE0) 0x29, 0xE7, // Usage Maximum (0xE7) 0x15, 0x00, // Logical Minimum (0) 0x25, 0x01, // Logical Maximum (1) 0x75, 0x01, // Report Size (1) 0x95, 0x08, // Report Count (8) 0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,= No Null Position) // Padding 0x95, 0x01, // Report Count (1) 0x75, 0x08, // Report Size (8) 0x81, 0x01, // Input (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position) // LEDs 0x95, 0x03, // Report Count (3) 0x75, 0x01, // Report Size (1) 0x05, 0x08, // Usage Page (LEDs) 0x19, 0x01, // Usage Minimum (Num Lock) 0x29, 0x03, // Usage Maximum (Scroll Lock) 0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State= ,No Null Position,Non-volatile) // Padding 0x95, 0x05, // Report Count (5) 0x75, 0x01, // Report Size (1) 0x91, 0x01, // Output (Const,Array,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile) // Key array 0x95, 0x06, // Report Count (6) 0x75, 0x08, // Report Size (8) 0x26, 0xFF, 0x00, // Logical Maximum (255) 0x05, 0x07, // Usage Page (Kbrd/Keypad) 0x19, 0x00, // Usage Minimum (0x00) 0x29, 0x91, // Usage Maximum (0x91) 0x81, 0x00, // Input (Data,Array,Abs,No Wrap,Linear,Preferred Stat= e,No Null Position) 0xC0, // End Collection // 62 bytes The interesting keys are in the interface 1: Report descriptor: Collection type=3DApplication page=3DConsumer usage=3DConsumer_Control Input rid=3D1 pos=3D0 size=3D1 count=3D1 page=3DConsumer usage=3DHelp, lo= gical range 0..1 Input rid=3D1 pos=3D1 size=3D1 count=3D1 page=3DConsumer usage=3DMute, lo= gical range 0..1 Input rid=3D1 pos=3D2 size=3D1 count=3D1 page=3DConsumer usage=3DVolume_D= ecrement, logical range 0..1 Input rid=3D1 pos=3D3 size=3D1 count=3D1 page=3DConsumer usage=3DVolume_I= ncrement, logical range 0..1 Input rid=3D1 pos=3D4 size=3D1 count=3D1 page=3DConsumer usage=3DAL_Word_= Processor, logical range 0..1 Input rid=3D1 pos=3D5 size=3D1 count=3D1 page=3DConsumer usage=3DAL_Sprea= dsheet, logical range 0..1 Input rid=3D1 pos=3D6 size=3D1 count=3D1 page=3DConsumer usage=3DAL_Email= _Reader, logical range 0..1 Input rid=3D1 pos=3D7 size=3D1 count=3D1 page=3DConsumer usage=3DAL_Calen= dar/Schedule, logical range 0..1 Input rid=3D1 pos=3D8 size=3D1 count=3D1 page=3DConsumer usage=3DAL_Calcu= lator, logical range 0..1 Input rid=3D1 pos=3D9 size=3D1 count=3D1 page=3DConsumer usage=3DAL_Logof= f, logical range 0..1 Input rid=3D1 pos=3D10 size=3D1 count=3D1 page=3DConsumer usage=3DAL_Next_Task/Application, logical range 0..1 Input rid=3D1 pos=3D11 size=3D1 count=3D1 page=3DConsumer usage=3DAL_Previous_Task/Application, logical range 0..1 Input rid=3D1 pos=3D12 size=3D1 count=3D1 page=3DConsumer usage=3D0x029e,= logical range 0..1 Input rid=3D1 pos=3D13 size=3D1 count=3D1 page=3DConsumer usage=3DAC_Spel= l_Check, logical range 0..1 Input rid=3D1 pos=3D14 size=3D1 count=3D1 page=3DConsumer usage=3DAL_File= _Browser, logical range 0..1 Input rid=3D1 pos=3D15 size=3D1 count=3D1 page=3DConsumer usage=3DAC_New,= logical range 0..1 Input rid=3D1 pos=3D16 size=3D1 count=3D1 page=3DConsumer usage=3DAC_Open= , logical range 0..1 Input rid=3D1 pos=3D17 size=3D1 count=3D1 page=3DConsumer usage=3DAC_Clos= e, logical range 0..1 Input rid=3D1 pos=3D18 size=3D1 count=3D1 page=3DConsumer usage=3DAC_Save= , logical range 0..1 Input rid=3D1 pos=3D19 size=3D1 count=3D1 page=3DConsumer usage=3DAC_Prin= t, logical range 0..1 Input rid=3D1 pos=3D20 size=3D1 count=3D1 page=3DConsumer usage=3DAC_Undo= , logical range 0..1 Input rid=3D1 pos=3D21 size=3D1 count=3D1 page=3DConsumer usage=3DAC_Copy= , logical range 0..1 Input rid=3D1 pos=3D22 size=3D1 count=3D1 page=3DConsumer usage=3DAC_Cut,= logical range 0..1 Input rid=3D1 pos=3D23 size=3D1 count=3D1 page=3DConsumer usage=3DAC_Past= e, logical range 0..1 Input rid=3D1 pos=3D24 size=3D1 count=3D1 page=3DConsumer usage=3D0x029d,= logical range 0..1 Input rid=3D1 pos=3D25 size=3D1 count=3D1 page=3DConsumer usage=3DAC_Home= , logical range 0..1 Input rid=3D1 pos=3D26 size=3D1 count=3D1 page=3DConsumer usage=3DAC_Back= , logical range 0..1 Input rid=3D1 pos=3D27 size=3D1 count=3D1 page=3DConsumer usage=3DAC_Forw= ard, logical range 0..1 Input rid=3D1 pos=3D28 size=3D1 count=3D1 page=3DConsumer usage=3DAC_Redo= /Repeat, logical range 0..1 Input rid=3D1 pos=3D29 size=3D1 count=3D1 page=3DConsumer usage=3DAC_Repl= y, logical range 0..1 Input rid=3D1 pos=3D30 size=3D1 count=3D1 page=3DConsumer usage=3DAC_Forw= ard_Msg, logical range 0..1 Input rid=3D1 pos=3D31 size=3D1 count=3D1 page=3DConsumer usage=3DAC_Send= , logical range 0..1 Input rid=3D1 pos=3D32 size=3D1 count=3D1 page=3DConsumer usage=3DScan_Ne= xt_Track, logical range 0..1 Input rid=3D1 pos=3D33 size=3D1 count=3D1 page=3DConsumer usage=3DScan_Pr= evious_Track, logical range 0..1 Input rid=3D1 pos=3D34 size=3D1 count=3D1 page=3DConsumer usage=3DStop, l= ogical range 0..1 Input rid=3D1 pos=3D35 size=3D1 count=3D1 page=3DConsumer usage=3DPlay/Pa= use, logical range 0..1 Input rid=3D1 pos=3D36 size=3D1 count=3D1 page=3DConsumer usage=3DAL_Consumer_Control_Configuration, logical range 0..1 Input rid=3D1 pos=3D37 size=3D1 count=3D1 page=3DConsumer usage=3DAL_Local_Machine_Browser, logical range 0..1 Input rid=3D1 pos=3D38 size=3D1 count=3D1 page=3DConsumer usage=3DAC_Sear= ch, logical range 0..1 Input rid=3D1 pos=3D39 size=3D1 count=3D1 page=3DConsumer usage=3DAC_Stop= , logical range 0..1 Input rid=3D1 pos=3D40 size=3D1 count=3D1 page=3DConsumer usage=3DAC_Refr= esh, logical range 0..1 Input rid=3D1 pos=3D41 size=3D1 count=3D1 page=3DConsumer usage=3DAC_Book= marks, logical range 0..1 End collection Collection type=3DApplication page=3DGeneric_Desktop usage=3DSystem_Control Input rid=3D2 pos=3D0 size=3D1 count=3D1 page=3DGeneric_Desktop usage=3DSystem_Power_Down, logical range 0..1 Input rid=3D2 pos=3D1 size=3D1 count=3D1 page=3DGeneric_Desktop usage=3DS= ystem_Sleep, logical range 0..1 Input rid=3D2 pos=3D2 size=3D1 count=3D1 page=3DGeneric_Desktop usage=3DS= ystem_Wake_Up, logical range 0..1 End collection Total input size 7 bytes Total output size 0 bytes Total feature size 0 bytes (detached ums driver by adding UQ_UMS_IGNORE, then dump using usbhidctl -r) So at least ums should not attach to it, and possibly ukbd or something else should attach to it and handle consumer page. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Mar 5 01:50:56 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 BFCEE25846D for ; Thu, 5 Mar 2020 01:50:56 +0000 (UTC) (envelope-from james.wright@jigsawdezign.com) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48Xtxp6RT2z4bP5 for ; Thu, 5 Mar 2020 01:50:54 +0000 (UTC) (envelope-from james.wright@jigsawdezign.com) Received: from [192.168.0.11] ([82.18.193.38]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.179]) with ESMTPSA (Nemesis) id 1MmU9X-1jaW5K3Bpp-00iV2C; Thu, 05 Mar 2020 02:50:51 +0100 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: ukbd key repeat behaviour changed? From: James Wright In-Reply-To: Date: Thu, 5 Mar 2020 01:50:50 +0000 Cc: freebsd-usb@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <24DE942E-5499-4A98-BC44-07338870835F@jigsawdezign.com> References: <8FF6BA04-2216-4FF4-AF6F-9310F9516C1B@jigsawdezign.com> <1bc72129-83e5-ced7-b04a-8b374a950c86@selasky.org> <5523FE74-80F8-404C-AE10-A2CDA3D35E7D@jigsawdezign.com> <39CDAF5F-739E-4003-B1E3-B00222BD37DF@jigsawdezign.com> To: Hans Petter Selasky X-Mailer: Apple Mail (2.3445.9.1) X-Provags-ID: V03:K1:fWOW+SWIVrDYM6ZF3AmfBSr0mtVnURFeMaqVBBYFg3mkcevlR25 e5FZZVD40Zh36gCEpUsj8nWnnfRea1tPAjNYg6iUrC8Ecx8MvNJJTLkDehoSKcTqsAQt8+a g/UUO4Fd4wNjRmeknhUPlZUn3osaWGb0Lbrxe90Bd8bd8FI/tPDgK6KiPO97D8mD6bNs3DK SK1Lbo7LIZe0l2azRqIwg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:0v09fmnsl7A=:GVLEQldv4WoraTvE1JeXer 7ZI5kmW3uu13M820T9mSKzyjO1O+l9sD3SsZhvvrLqAW543IMgGJKYdW6BHIwRc3Xs8XOrF7g lU2h6qIBaj0cKV3n8iLflkAzOUjoa/UphO6mwU8cTglDtR9Ujns3DyhON2YW9eSVa5PcHbs+t QTXtK31vyyUR3UgVD1TWgsvuZ1DtpbRvz21Oj/rqz356Vhwkqs65zahFAFBrVYWAvgw3mex09 PXEn3EKLYdoDGMx4czB+VS+YEAzQ/bpvrA6UO8+bAnatvEytjs483ILDW892sf1WxKZgXL3DB bWSucLZIEbavQEJ8eFb6TifALAoaSjRRYtl7t3UMkS01Iw/Ab8X3586jp4XC4zs48tMsEDX34 f5JIsufaZl1dbbHLOH8B/BnMtu1qAYukdfEhKqYQT5hNKk4sKMMEgp6TuNG85svLu4Qqinzna 0kraiZuFG8bNiaIhqgahJSbt5FxiDXBNUeVush+EHY97NPnQpiHzHUZIVgKVTQg7zXD4k7OD/ hGBwvvdiDb5xK4sl1Z71bsfRGxqtZDe1YfoyJnJv5JBB+VMqreHCVy2Sco3kAnhc77go89Ivh xK5/8hrcIu2jpATg0EXg8WmVQXlG6jVv1oppIQ2URvOijHbJ6PhWKMv+bqvgSPuRF9bM1s8X3 3321gP3snQ1/JrXCa5RAvDZN3loeN7zlfpp1/vxXgllj9SOF/80ala9zEQKhUWc8KgygUo/vu 3cnEGwpKxFTSAjphooznrUJK7AJYpsUUHkbVzdlVxUy9XoIdEhfHes88vyzzcDXU+m1DaQCc3 07PG7JclkdIbiVI4jxuwg6IHytjbG+5ZkZJWpNyhqq9gxfoFvMzrsyjpKpSxxyElrwSyhMX X-Rspamd-Queue-Id: 48Xtxp6RT2z4bP5 X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of james.wright@jigsawdezign.com has no SPF policy when checking 217.72.192.74) smtp.mailfrom=james.wright@jigsawdezign.com X-Spamd-Result: default: False [4.26 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; IP_SCORE(0.40)[ip: (-0.50), ipnet: 217.72.192.0/20(0.36), asn: 8560(2.17), country: DE(-0.02)]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[jigsawdezign.com]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.58)[0.580,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[74.192.72.217.list.dnswl.org : 127.0.5.0]; NEURAL_SPAM_LONG(0.87)[0.871,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:8560, ipnet:217.72.192.0/20, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2020 01:50:56 -0000 > On 4 Mar 2020, at 21:29, Hans Petter Selasky wrote: >=20 > On 2020-03-04 19:46, James Wright wrote: >>> On 4 Mar 2020, at 08:49, Hans Petter Selasky = wrote: >>>=20 >>>> However, to confirm it's not just my typing, I booted into my old = kernel (r357365) and I don't see the issue as in the newer revision = (r358484). >>>> I think it may be something to do with the latest version not = resetting the initial repeat delay when another key is pressed, e.g. >>>> 1) Hold down the 'a' key. >>>> 2) Wait a split second just before the 'a' key should start = repeating, and press 'l' key whilst still holding the 'a' key. >>>> 3) There should be a renewed initial delay before the 'l' key = starts repeating, but I think it starts repeating almost immediately (as = if it were still counting from the press of the 'a' key). >>>> Hope that makes some sense! :-) >>>=20 >>> Hi, >>>=20 >>> Can you try the attached patch? >>>=20 >>> Does it solve the issue? >>>=20 >>> --HPS >>> >> Thanks for the patch! >> Is there any way of easily testing it without rebuilding the whole = kernel, as ukbd seems built in by default? >=20 > Hi, >=20 > make buildkernel -jX -DNO_CLEAN >=20 > might save you some time. >=20 > --HPS >=20 The patch does indeed fix the issue. Thanks for sorting it out so quickly, do you need me to raise a bugzilla = ticket for this? James From owner-freebsd-usb@freebsd.org Thu Mar 5 02:21:37 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 3B08F25966A for ; Thu, 5 Mar 2020 02:21:37 +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 48XvdD6FVBz4bBM for ; Thu, 5 Mar 2020 02:21:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 9EF9B259669; Thu, 5 Mar 2020 02:21:36 +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 9EA3B259668 for ; Thu, 5 Mar 2020 02:21:36 +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) server-signature RSA-PSS (4096 bits) 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 48XvdD0Q6lz4b8m for ; Thu, 5 Mar 2020 02:21:36 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DE18727D0D for ; Thu, 5 Mar 2020 02:21:35 +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 0252LZEe024364 for ; Thu, 5 Mar 2020 02:21:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0252LZ4Z024322 for usb@FreeBSD.org; Thu, 5 Mar 2020 02:21:35 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 244602] Media key support for WASD keyboard Date: Thu, 05 Mar 2020 02:21:36 +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: 12.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: henry.hu.sh@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: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2020 02:21:37 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244602 --- Comment #1 from Henry Hu --- The key reason seems to be that interface 1 has bInterfaceClass =3D 0x0003 bInterfaceSubClass =3D 0x0001=20 bInterfaceProtocol =3D 0x0002=20 0x0001 =3D UISUBCLASS_BOOT 0x0002 =3D UIPROTO_MOUSE Thus it's treated as a mouse, while in this case, it only has some media ke= ys. Maybe ums should not attach if there is no mouse button or axis? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Mar 5 08:44:22 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 B769E262864 for ; Thu, 5 Mar 2020 08:44:22 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48Y46r3xfHz3x0L for ; Thu, 5 Mar 2020 08:44:20 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [62.141.129.235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 22AFC26023E; Thu, 5 Mar 2020 09:44:19 +0100 (CET) Subject: Re: ukbd key repeat behaviour changed? To: James Wright Cc: freebsd-usb@freebsd.org References: <8FF6BA04-2216-4FF4-AF6F-9310F9516C1B@jigsawdezign.com> <1bc72129-83e5-ced7-b04a-8b374a950c86@selasky.org> <5523FE74-80F8-404C-AE10-A2CDA3D35E7D@jigsawdezign.com> <39CDAF5F-739E-4003-B1E3-B00222BD37DF@jigsawdezign.com> <24DE942E-5499-4A98-BC44-07338870835F@jigsawdezign.com> From: Hans Petter Selasky Message-ID: <0e1df446-3103-2777-ca26-345eeb040953@selasky.org> Date: Thu, 5 Mar 2020 09:44:08 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <24DE942E-5499-4A98-BC44-07338870835F@jigsawdezign.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48Y46r3xfHz3x0L 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 [-4.25 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.84)[-0.836,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; SUBJECT_ENDS_QUESTION(1.00)[]; DMARC_NA(0.00)[selasky.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-3.12)[ip: (-9.30), ipnet: 88.99.0.0/16(-4.71), asn: 24940(-1.56), country: DE(-0.02)]; 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]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2020 08:44:22 -0000 On 2020-03-05 02:50, James Wright wrote: > Thanks for sorting it out so quickly, do you need me to raise a bugzilla ticket for this? No: https://svnweb.freebsd.org/changeset/base/358609 --HPS From owner-freebsd-usb@freebsd.org Fri Mar 6 00:57: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 90DE3251DC9 for ; Fri, 6 Mar 2020 00:57: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 48YTjm2Jrpz45R9 for ; Fri, 6 Mar 2020 00:57:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 1EEDF251DC7; Fri, 6 Mar 2020 00:57: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 1E4CE251DC4 for ; Fri, 6 Mar 2020 00:57: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) server-signature RSA-PSS (4096 bits) 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 48YTjl1yVKz45Q0 for ; Fri, 6 Mar 2020 00:57:31 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 09D5418204 for ; Fri, 6 Mar 2020 00:57:31 +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 0260vU4f080994 for ; Fri, 6 Mar 2020 00:57:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0260vU6Z080993 for usb@FreeBSD.org; Fri, 6 Mar 2020 00:57:30 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 222646] ukbd(4): support Consumer Control based multimedia keys Date: Fri, 06 Mar 2020 00:57:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: wulf@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Overcome By Events X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2020 00:57:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222646 --- Comment #15 from Vladimir Kondratyev --- (In reply to Henry Hu from comment #14) > I may try iichid as well. You should install latest iichid from github rather than from ports in that case. I left instructions how to replace ukbd, ums et al with usbhid in project's readme so you can try. P.S. Really there are at least 3 ways to report consumer key states in HID format. And only one has been tested by me and one another does not work du= e to deficiencies in our system HID parser. So, do not expect too much. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri Mar 6 08:19: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 3073B262555 for ; Fri, 6 Mar 2020 08:19:50 +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 48YgX56NDLz4KBw for ; Fri, 6 Mar 2020 08:19:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id A22B2262554; Fri, 6 Mar 2020 08:19:49 +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 A1A83262553 for ; Fri, 6 Mar 2020 08:19:49 +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) server-signature RSA-PSS (4096 bits) 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 48YgX52HKtz4KB6 for ; Fri, 6 Mar 2020 08:19:49 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E10F61D355 for ; Fri, 6 Mar 2020 08:19:48 +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 0268JmPj030283 for ; Fri, 6 Mar 2020 08:19:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0268JmTs030282 for usb@FreeBSD.org; Fri, 6 Mar 2020 08:19:48 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 244628] USB Network Adaptor: panic: out of buffers with data_len 4294967292 Date: Fri, 06 Mar 2020 08:19:48 +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 Only Me X-Bugzilla-Who: zoujiaqing@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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2020 08:19:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244628 Bug ID: 244628 Summary: USB Network Adaptor: panic: out of buffers with data_len 4294967292 Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: usb Assignee: usb@FreeBSD.org Reporter: zoujiaqing@gmail.com Created attachment 212182 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D212182&action= =3Dedit USB Network Adaptor: panic: out of buffers with data_len 4294967292 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri Mar 6 08:55:14 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 3678A263421 for ; Fri, 6 Mar 2020 08:55:14 +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 48YhJx5HfFz3KcR for ; Fri, 6 Mar 2020 08:55:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 93326263420; Fri, 6 Mar 2020 08:55:13 +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 902DA26341F for ; Fri, 6 Mar 2020 08:55:13 +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) server-signature RSA-PSS (4096 bits) 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 48YhJx1vhnz3KbQ for ; Fri, 6 Mar 2020 08:55:13 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 368F01DAA0 for ; Fri, 6 Mar 2020 08:55:13 +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 0268tC7i045716 for ; Fri, 6 Mar 2020 08:55:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0268tCmO045715 for usb@FreeBSD.org; Fri, 6 Mar 2020 08:55:12 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 244628] USB Network Adaptor: panic: out of buffers with data_len 4294967292 Date: Fri, 06 Mar 2020 08:55:13 +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 Only Me 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: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2020 08:55:14 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244628 --- Comment #1 from Hans Petter Selasky --- Adrian, can you have a look at this panic? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri Mar 6 08:57: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 81DD32634C6 for ; Fri, 6 Mar 2020 08:57:25 +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 48YhMS4zPlz3QTT for ; Fri, 6 Mar 2020 08:57:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 36BD02634C5; Fri, 6 Mar 2020 08:57:24 +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 366022634C4 for ; Fri, 6 Mar 2020 08:57:24 +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) server-signature RSA-PSS (4096 bits) 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 48YhMR69nTz3QRs for ; Fri, 6 Mar 2020 08:57:23 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 43C1E1DAA4 for ; Fri, 6 Mar 2020 08:57:23 +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 0268vNUg048214 for ; Fri, 6 Mar 2020 08:57:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0268vNXT048213 for usb@FreeBSD.org; Fri, 6 Mar 2020 08:57:23 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 244628] USB Network Adaptor: panic: out of buffers with data_len 4294967292 Date: Fri, 06 Mar 2020 08:57: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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me 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: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2020 08:57:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244628 --- Comment #2 from Hans Petter Selasky --- dec2hex(4294967292) =3D 0xFFFFFFFC =3D -4U --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri Mar 6 17:34: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 065B626D067 for ; Fri, 6 Mar 2020 17:34:51 +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 48YvrV5d18z4qC2 for ; Fri, 6 Mar 2020 17:34:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id B620426D066; Fri, 6 Mar 2020 17:34:50 +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 B476826D065 for ; Fri, 6 Mar 2020 17:34:50 +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) server-signature RSA-PSS (4096 bits) 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 48YvrV22vwz4q9h for ; Fri, 6 Mar 2020 17:34:50 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EA92C23A9E for ; Fri, 6 Mar 2020 17:34:49 +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 026HYnNu055403 for ; Fri, 6 Mar 2020 17:34:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 026HYnGx055402 for usb@FreeBSD.org; Fri, 6 Mar 2020 17:34:49 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 244628] USB Network Adaptor: panic: out of buffers with data_len 4294967292 Date: Fri, 06 Mar 2020 17:34:50 +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 Only Me 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: attachments.created 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2020 17:34:51 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244628 --- Comment #3 from Hans Petter Selasky --- Created attachment 212197 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D212197&action= =3Dedit Try this patch Try this patch. Does it affect WLAN usage? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri Mar 6 17:55:40 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 171F026D4A0 for ; Fri, 6 Mar 2020 17:55:40 +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 48YwJW5xgYz4Ygs for ; Fri, 6 Mar 2020 17:55:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id C901D26D49F; Fri, 6 Mar 2020 17:55:39 +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 C8C9526D49E for ; Fri, 6 Mar 2020 17:55:39 +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) server-signature RSA-PSS (4096 bits) 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 48YwJW2gFwz4Yg2 for ; Fri, 6 Mar 2020 17:55:39 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3BA4823E4E for ; Fri, 6 Mar 2020 17:55:39 +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 026Htdvj003794 for ; Fri, 6 Mar 2020 17:55:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 026HtdHP003793 for usb@FreeBSD.org; Fri, 6 Mar 2020 17:55:39 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 244628] USB Network Adaptor: panic: out of buffers with data_len 4294967292 Date: Fri, 06 Mar 2020 17:55:39 +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 Only Me X-Bugzilla-Who: adrian@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: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2020 17:55:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244628 --- Comment #4 from Adrian Chadd --- Hm, my guess is that the packet was too short to actually be decrypted. Yeah, try that patch, but ideally we'd be rejecting the too-short packets further up the stack. Can you get a crash dump so we can see how big the packet is from the driver itself? -adrian --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri Mar 6 18:25: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 2435C26E16B for ; Fri, 6 Mar 2020 18:25:44 +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 48YwzC5hdNz4Y6P for ; Fri, 6 Mar 2020 18:25:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id BB3DF26E16A; Fri, 6 Mar 2020 18:25: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 BAC8C26E169 for ; Fri, 6 Mar 2020 18:25: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) server-signature RSA-PSS (4096 bits) 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 48YwzB7266z4Y4x for ; Fri, 6 Mar 2020 18:25:42 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E4D5A243E5 for ; Fri, 6 Mar 2020 18:25:42 +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 026IPgUl040786 for ; Fri, 6 Mar 2020 18:25:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 026IPgDr040776 for usb@FreeBSD.org; Fri, 6 Mar 2020 18:25:42 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 222646] ukbd(4): support Consumer Control based multimedia keys Date: Fri, 06 Mar 2020 18:25:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: henry.hu.sh@gmail.com X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Overcome By Events X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2020 18:25:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222646 --- Comment #16 from Henry Hu --- (In reply to Vladimir Kondratyev from comment #15) Thanks Vladimir, it seems to be working fine: Mar 6 13:24:07 goldpeak kernel: ugen0.2: at usbus0 (disconnected) Mar 6 13:24:07 goldpeak kernel: ukbd0: at uhub2, port 3, addr 1 (disconnec= ted) Mar 6 13:24:07 goldpeak kernel: ukbd0: detached Mar 6 13:24:07 goldpeak kernel: uhid0: at uhub2, port 3, addr 1 (disconnec= ted) Mar 6 13:24:07 goldpeak kernel: uhid0: detached Mar 6 13:24:09 goldpeak kernel: ugen0.2: at usbus0 Mar 6 13:24:09 goldpeak kernel: usbhid0 on uhub2 Mar 6 13:24:09 goldpeak kernel: usbhid0: on usbus0 Mar 6 13:24:09 goldpeak kernel: hidbus0: on usbhid0 Mar 6 13:24:09 goldpeak kernel: hkbd0 on hidbus0 Mar 6 13:24:09 goldpeak kernel: usbhid1 on uhub2 Mar 6 13:24:09 goldpeak kernel: usbhid1: on usbus0 Mar 6 13:24:09 goldpeak kernel: hidbus1: on usbhid1 Mar 6 13:24:09 goldpeak kernel: hcons0: on hidbus1 Mar 6 13:24:09 goldpeak kernel: hsctrl0: on hidbus1 I tried the media keys and they're working! --=20 You are receiving this mail because: You are the assignee for the bug.=