From owner-freebsd-usb@freebsd.org Sun Feb 17 22:00:52 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6425D14E1C3E for ; Sun, 17 Feb 2019 22:00:52 +0000 (UTC) (envelope-from demetrioussharpe@netscape.net) Received: from sonic307-12.consmr.mail.ne1.yahoo.com (sonic307-12.consmr.mail.ne1.yahoo.com [66.163.190.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47DF88B3ED for ; Sun, 17 Feb 2019 22:00:48 +0000 (UTC) (envelope-from demetrioussharpe@netscape.net) X-YMail-OSG: F3jmtbgVM1kBl08ZFT0EkmhwZJu9EwnkRWy8W8CsnjfR_a5cAJ05KfNiP9ZYVT4 vEbXilTYNuS1nxUVjRaBhb.ooRDPjvr5cbP_LKdxEN8Xv2g_fX8ZdYTEIDltlVDlQD.IfGX1P2bW J6cZosvVPMLMKcjx6YK.beSVwACRPexCucuDhSF1A0KbqFJtBa8Gd4es3rr2eC0Kz0bk2N.HK4_N 5YOJhwl_XmWynPJECE0EQJ23PSz2rJZPdb_9VyyJRwjkNtflUNebP.HPkqpUBfEg7idYKt4mW9LM Faai5z7x91iU0UD_QwleTwXZ0d2ovrLRsSKI6EMJbWTal67gEuR6gISCwxYwJbmXAhdjNEX8yeVa m0WlXXPJM_ENEUE_9uYGlhUKG1diM92K_pwGuzcebYPdo7LW78q.ECWPRWUh9NHoI7dPoNTj.TEF LULNMPXZVDbdEb4t4BW1VWcb8_N1kuTMKm3kWLDosSRfxwAtpBoj4tD87PMDfCEU6q55yUn369vI ldfkeDHn6FjKIJJNBGbH1sih4Q9q5bOJr2QNCg5Gq3lDsJLkwkUmE0SCUvX5y5er_LXSlDdU6_Ag rBqRVfGjp3Dg.PtbBpPnlgo_C2OyweF.VkbNhi7KWcqp3WaywF64IYh6dtkWdrj_4G5RvJTatQyU RZK1rzQRl28_5jtaSRCbQqc.JsUjOQoyj6cc3gaCc7UppNNfBIpR_2Dw8N0aOPLOliRajSmcp4AY 7vX_Jg.9dAWKvSN.o0YzkdYKkEbSmETHEmIuZhEoQjJXsC_vdyyp1tToCeb4BrC8cNpQWHS40tlI 0lbdyZYS4_Dhf1_2kLpJZ67EAFDyAI36pw9MVKDT6UjSD0mOl3BbYYAirJcdyVjm3WcC2kxlw2NX 6b7DlIETNIPoAIHQogk2ccaqWzkGMvdv7D1GTQdMWor6ceLUJ8WDEBZZLtmNzcMIh1xpZ43WR_79 nT.3bKHI30Ccon0iP9GKi_M9VF9k_1ADTQl.JeZULG45WVXQ.9RDi5dV95aXGeiNUSo3KStJcEHv 9B_mvGMdbVFjF0ziBoew4XVd9SUkKv7p2XAChCqGnHt2.OgkLtg-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Sun, 17 Feb 2019 22:00:46 +0000 Received: from 75.3.110.170 (EHLO [192.168.10.101]) ([75.3.110.170]) by smtp424.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 93dd9591533d49cf6f11d50d0ee3bbc0; Sun, 17 Feb 2019 22:00:44 +0000 (UTC) Subject: Re: Questions about the USB HID device drivers To: Hans Petter Selasky , freebsd-usb@freebsd.org References: <9c6a87dd-cf7c-d0eb-82f1-5e904baaf05f@selasky.org> <325834a2-d9f1-a1f4-dff1-7f724aeb4907@netscape.net> <6762c7c9-f9dc-f7d2-0b1f-c2f6e2816cd7@selasky.org> From: "Apollo D. Sharpe, Sr." Message-ID: <3724cc29-b682-2395-bd95-cbfa418ad9f2@netscape.net> Date: Sun, 17 Feb 2019 16:00:32 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <6762c7c9-f9dc-f7d2-0b1f-c2f6e2816cd7@selasky.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 47DF88B3ED X-Spamd-Bar: / X-Spamd-Result: default: False [-0.69 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[netscape.net:s=a2048]; NEURAL_HAM_MEDIUM(-0.56)[-0.564,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.163.184.0/21]; FREEMAIL_FROM(0.00)[netscape.net]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_LONG(-0.79)[-0.790,0]; NEURAL_SPAM_SHORT(0.86)[0.860,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[mx-aol.mail.gm0.yahoodns.net,mx-aol.mail.gm0.yahoodns.net,mx-aol.mail.gm0.yahoodns.net,mx-aol.mail.gm0.yahoodns.net,mx-aol.mail.gm0.yahoodns.net,mx-aol.mail.gm0.yahoodns.net]; DKIM_TRACE(0.00)[netscape.net:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[35.190.163.66.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[netscape.net,reject]; IP_SCORE(0.81)[ip: (2.15), ipnet: 66.163.184.0/21(1.10), asn: 36646(0.88), country: US(-0.07)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[netscape.net]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[] 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, 17 Feb 2019 22:00:52 -0000 On 2/15/19 7:46 AM, Hans Petter Selasky wrote: > On 2/15/19 2:22 PM, A. D. Sharpe wrote: >> On 2/15/2019 3:30 AM, Hans Petter Selasky wrote: >>> >>> Did you have a look at the code? >>> >>> sys/dev/usb/input/ums.c and sys/dev/usb/input/ukbd.c >> I think I have a decent understanding of USB devices under FreeBSD. >> However, two things are tripping me up: a) the fact that the ums & >> ukbd drivers don't have "make_dev()" calls in them; and b) I can't >> seem to find an overall keyboard system or overall mouse system. >> > > Events are delivered from the USB INTERRUPT endpoint's completion > handler to various places. At the moment events can end up via EVDEV > or simply sysmouse or the regular keyboard API depending on the system > configuration. > > At the moment, only for EVDEVS's /dev/input/xxxx, there is a > per-device character device handle, I think. I think I've gotten a pretty good understanding of what's going on now, based on the answers that I've gotten from the developers part of the FreeBSD forums(*). The USB keyboard and mouse paths seems to go like this: ums->usb_hid->/dev/ums0->sysmouse ukbd->usb_hid->/dev/ukbd0->kbdmux If this is correct, then the majority of my inquiry has been satisfied. My next questions are more centered around /dev as it relates to device drivers in general: 1. Is there a published standard of how device drivers should publish themselves in /dev? From what I can tell, they seem to be thrown into /dev without any sort of hierarchy to organize the nodes into what type of device they represent. 2. Does usb_hid automatically dump device nodes into /dev, or is there a way for hid drivers to specify specifically where their nodes should be publish -such as: /dev/input/somehiddevice0 ? (*) https://forums.freebsd.org/threads/questions-about-the-usb-hid-device-drivers.69604/ -- Regards, Apollo D. Sharpe, Sr. From owner-freebsd-usb@freebsd.org Sun Feb 17 21:00:20 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 26F9A14DF4E4 for ; Sun, 17 Feb 2019 21:00:20 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B6F0988F5B for ; Sun, 17 Feb 2019 21:00:19 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 7A8AD14DF4E1; Sun, 17 Feb 2019 21:00:19 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 691B714DF4E0 for ; Sun, 17 Feb 2019 21:00:19 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::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.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 060CC88F56 for ; Sun, 17 Feb 2019 21:00:19 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 32023A71E for ; Sun, 17 Feb 2019 21:00:18 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1HL0IF7075212 for ; Sun, 17 Feb 2019 21:00:18 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1HL0IiO075211 for usb@FreeBSD.org; Sun, 17 Feb 2019 21:00:18 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201902172100.x1HL0IiO075211@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, 17 Feb 2019 21:00:18 +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, 17 Feb 2019 21:00:20 -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 Mon Feb 18 06:32:14 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0A6ED14F4AAF for ; Mon, 18 Feb 2019 06:32:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8ABD777837 for ; Mon, 18 Feb 2019 06:32:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 4E52814F4AAC; Mon, 18 Feb 2019 06:32:13 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2EE8614F4AAA for ; Mon, 18 Feb 2019 06:32:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::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.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 81C467782A for ; Mon, 18 Feb 2019 06:32:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id A7E79FE4C for ; Mon, 18 Feb 2019 06:32:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1I6WB8i031435 for ; Mon, 18 Feb 2019 06:32:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1I6WB3H031434 for usb@FreeBSD.org; Mon, 18 Feb 2019 06:32: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 228436] please add tp-link usb ethernet device quirk Date: Mon, 18 Feb 2019 06:32: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: 11.1-RELEASE X-Bugzilla-Keywords: easy, needs-patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status bug_severity keywords 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: Mon, 18 Feb 2019 06:32:14 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228436 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open Severity|Affects Only Me |Affects Some People Keywords| |easy, needs-patch --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Mon Feb 18 09:29:01 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 47FD314F8BF0 for ; Mon, 18 Feb 2019 09:29:01 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (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 EDE5785C71 for ; Mon, 18 Feb 2019 09:28:59 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [176.74.212.121]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id CFC932602C5; Mon, 18 Feb 2019 10:28:51 +0100 (CET) Subject: Re: Questions about the USB HID device drivers To: "Apollo D. Sharpe, Sr." , freebsd-usb@freebsd.org References: <9c6a87dd-cf7c-d0eb-82f1-5e904baaf05f@selasky.org> <325834a2-d9f1-a1f4-dff1-7f724aeb4907@netscape.net> <6762c7c9-f9dc-f7d2-0b1f-c2f6e2816cd7@selasky.org> <3724cc29-b682-2395-bd95-cbfa418ad9f2@netscape.net> From: Hans Petter Selasky Message-ID: <0cbc66cd-9007-878e-8bc3-f623364729d4@selasky.org> Date: Mon, 18 Feb 2019 10:26:26 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <3724cc29-b682-2395-bd95-cbfa418ad9f2@netscape.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: EDE5785C71 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; 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 [-6.54 / 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)[]; MX_GOOD(-0.01)[mail.turbocat.net]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.95)[-0.949,0]; IP_SCORE(-3.28)[ip: (-9.48), ipnet: 88.99.0.0/16(-4.66), asn: 24940(-2.25), country: DE(-0.01)]; FREEMAIL_TO(0.00)[netscape.net]; 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, 18 Feb 2019 09:29:01 -0000 On 2/17/19 11:00 PM, Apollo D. Sharpe, Sr. wrote: > On 2/15/19 7:46 AM, Hans Petter Selasky wrote: >> On 2/15/19 2:22 PM, A. D. Sharpe wrote: >>> On 2/15/2019 3:30 AM, Hans Petter Selasky wrote: >>>> >>>> Did you have a look at the code? >>>> >>>> sys/dev/usb/input/ums.c and sys/dev/usb/input/ukbd.c >>> I think I have a decent understanding of USB devices under FreeBSD. >>> However, two things are tripping me up: a) the fact that the ums & >>> ukbd drivers don't have "make_dev()" calls in them; and b) I can't >>> seem to find an overall keyboard system or overall mouse system. >>> >> >> Events are delivered from the USB INTERRUPT endpoint's completion >> handler to various places. At the moment events can end up via EVDEV >> or simply sysmouse or the regular keyboard API depending on the system >> configuration. >> >> At the moment, only for EVDEVS's /dev/input/xxxx, there is a >> per-device character device handle, I think. > > > I think I've gotten a pretty good understanding of what's going on now, > based on the answers that I've gotten from the developers part of the > FreeBSD forums(*). The USB keyboard and mouse paths seems to go like this: > > ums->usb_hid->/dev/ums0->sysmouse > > ukbd->usb_hid->/dev/ukbd0->kbdmux > > > If this is correct, then the majority of my inquiry has been satisfied. > My next questions are more centered around /dev as it relates to device > drivers in general: > Hi, > 1. Is there a published standard of how device drivers should publish > themselves in /dev? From what I can tell, they seem to be thrown into > /dev without any sort of hierarchy to organize the nodes into what type > of device they represent. Each devicename has a uniq prefix followed by a uniq unit number. > > 2. Does usb_hid automatically dump device nodes into /dev, or is there a > way for hid drivers to specify specifically where their nodes should be > publish -such as: /dev/input/somehiddevice0 ? > Character device nodes are automatically created. However it is possible for user-space applications to create symbolic links afterwards in /dev . > > (*) > https://forums.freebsd.org/threads/questions-about-the-usb-hid-device-drivers.69604/ > --HPS From owner-freebsd-usb@freebsd.org Mon Feb 18 11:15:52 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0A87914D6688 for ; Mon, 18 Feb 2019 11:15:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B611889A8A for ; Mon, 18 Feb 2019 11:15:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 7477614D667F; Mon, 18 Feb 2019 11:15:51 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6308014D667E for ; Mon, 18 Feb 2019 11:15:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::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.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0E49589A82 for ; Mon, 18 Feb 2019 11:15:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 366AA1277B for ; Mon, 18 Feb 2019 11:15:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1IBFobn077325 for ; Mon, 18 Feb 2019 11:15:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1IBFoBa077324 for usb@FreeBSD.org; Mon, 18 Feb 2019 11:15: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 96224] [usb] [msdosfs] mount_msdosfs cause page fault in syncer process Date: Mon, 18 Feb 2019 11:15: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: 7.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: avg@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Overcome By Events X-Bugzilla-Priority: Normal 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: Mon, 18 Feb 2019 11:15:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D96224 Andriy Gapon changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |Overcome By Events Status|Open |Closed --- Comment #2 from Andriy Gapon --- 13 years without any activity, closing... --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Mon Feb 18 19:54:40 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2952414E9A49 for ; Mon, 18 Feb 2019 19:54:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id AD83C8334A for ; Mon, 18 Feb 2019 19:54:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 6E64514E9A48; Mon, 18 Feb 2019 19:54:39 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5A30F14E9A47 for ; Mon, 18 Feb 2019 19:54:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::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.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E170283349 for ; Mon, 18 Feb 2019 19:54:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 350FD172D4 for ; Mon, 18 Feb 2019 19:54:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1IJscl9078884 for ; Mon, 18 Feb 2019 19:54:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1IJsc90078883 for usb@FreeBSD.org; Mon, 18 Feb 2019 19:54:38 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 118140] [ucom] [patch] quick hack for ucom to get it behave with Nokia phones Date: Mon, 18 Feb 2019 19:54:38 +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: 7.0-BETA3 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gonzo@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Overcome By Events X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution cc 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: Mon, 18 Feb 2019 19:54:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D118140 Oleksandr Tymoshenko changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |Overcome By Events CC| |gonzo@FreeBSD.org Status|Open |Closed --- Comment #3 from Oleksandr Tymoshenko --- Closing as OBE since nobody picked it up to work on and target devices has become obsolete since then. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Mon Feb 18 19:57:34 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 852E214E9B24 for ; Mon, 18 Feb 2019 19:57:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0DAE2833F0 for ; Mon, 18 Feb 2019 19:57:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B845514E9B23; Mon, 18 Feb 2019 19:57:33 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A407814E9B22 for ; Mon, 18 Feb 2019 19:57:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::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.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 35106833EE for ; Mon, 18 Feb 2019 19:57:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 744C8172DD for ; Mon, 18 Feb 2019 19:57:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1IJvWMZ081943 for ; Mon, 18 Feb 2019 19:57:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1IJvW7H081942 for usb@FreeBSD.org; Mon, 18 Feb 2019 19:57:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 119653] [cam] [patch] iriver s7 player sync cache error patch Date: Mon, 18 Feb 2019 19:57:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gonzo@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Overcome By Events X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution cc 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: Mon, 18 Feb 2019 19:57:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D119653 Oleksandr Tymoshenko changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |Overcome By Events CC| |gonzo@FreeBSD.org Status|Open |Closed --- Comment #3 from Oleksandr Tymoshenko --- Closing as OBE since nobody picked it up to work on and target device has become obsolete since then. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Mon Feb 18 19:59:05 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4E72714E9B9D for ; Mon, 18 Feb 2019 19:59:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D82AF83444 for ; Mon, 18 Feb 2019 19:59:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9897F14E9B9C; Mon, 18 Feb 2019 19:59:04 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 846DB14E9B9A for ; Mon, 18 Feb 2019 19:59:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::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.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A72883441 for ; Mon, 18 Feb 2019 19:59:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 534B5172E1 for ; Mon, 18 Feb 2019 19:59:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1IJx3bT083483 for ; Mon, 18 Feb 2019 19:59:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1IJx36w083482 for usb@FreeBSD.org; Mon, 18 Feb 2019 19:59:03 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 118141] [ucom] usb serial and nokia phones ucomreadcb ucomreadcb: IOERROR Date: Mon, 18 Feb 2019 19:59:03 +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: 7.0-BETA3 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gonzo@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Overcome By Events X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution cc 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: Mon, 18 Feb 2019 19:59:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D118141 Oleksandr Tymoshenko changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |Overcome By Events CC| |gonzo@FreeBSD.org Status|Open |Closed --- Comment #3 from Oleksandr Tymoshenko --- Closing as OBE since nobody picked it up to work on and target device has become obsolete since then. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Mon Feb 18 20:05:22 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 333B414E9FB5 for ; Mon, 18 Feb 2019 20:05:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C045A839CC for ; Mon, 18 Feb 2019 20:05:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 7E04014E9FB3; Mon, 18 Feb 2019 20:05:21 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6BAD114E9FB2 for ; Mon, 18 Feb 2019 20:05:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::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.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EFCB8839C9 for ; Mon, 18 Feb 2019 20:05:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 3B2EF17450 for ; Mon, 18 Feb 2019 20:05:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1IK5KhY032230 for ; Mon, 18 Feb 2019 20:05:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1IK5KqC032229 for usb@FreeBSD.org; Mon, 18 Feb 2019 20:05:20 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 91546] [umodem] [patch] Nokia 6630 mobile phone does not work Date: Mon, 18 Feb 2019 20:05:20 +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: 5.4-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gonzo@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Overcome By Events X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc bug_status resolution 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: Mon, 18 Feb 2019 20:05:22 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D91546 Oleksandr Tymoshenko changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gonzo@FreeBSD.org Status|Open |Closed Resolution|--- |Overcome By Events --- Comment #14 from Oleksandr Tymoshenko --- Closing as OBE since nobody picked patches for commit and target devices has become obsolete since then. Feel free to reopen if patches still relevant a= nd should be committed. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Mon Feb 18 21:03:30 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F1E914EBC7E for ; Mon, 18 Feb 2019 21:03:30 +0000 (UTC) (envelope-from demetrioussharpe@netscape.net) Received: from sonic306-22.consmr.mail.ne1.yahoo.com (sonic306-22.consmr.mail.ne1.yahoo.com [66.163.189.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7ED4686029 for ; Mon, 18 Feb 2019 21:03:26 +0000 (UTC) (envelope-from demetrioussharpe@netscape.net) X-YMail-OSG: k4TSX.AVM1msJp1wLhz3_D3bHQmK7gwhi1hzUFzjmFGCM9OWw_mR6NsAdGIbmXU yFd_XmPEHtydUQ.oKEiAcvuWfq7hqFiFUo5.MmPbAAkzVrntrpax2C4eDEpzUgLnQf.WT7MCp3sV 01906vRH_FWJlzVac1jQlirBdJxzQztZNk7gvpP6ugp.sTYvmwgQ6Wgk9xa6FuSZQicGpedGvDMN 0WNEF6WgC5sJ.JEkvD2TGJ3eiEVAhycz55gvGdW.5wI2fhit4qWzg9ksri_dcDKAdienx37w9DtP uhfjFIvzA1EnIT0AzXnPCOXuI5i4lAVcZAZ6q4nQ55sMBrE4h2h6kqZO5vk0BZ8PTXjUvcX.DjCl 7iXxVGbG05udBrtSr1Kwk54u0VugizIRtU9G4IShyvTF1_8xH2Jga5h.nkYKjmDtpi3nTqkE6HH6 mWAu1u4wvnDKv6cuAkSXQmsDGlp22hKJYKpXvyCaRWp4NmgMzzZILBlq1hcRXsC2oAQwmugnfhX_ ONQgvz54PNQYb8Cau5PwmxOOBosGRziyCAQrPbnHDoM.p32BFvVHJNS.1N.reERqzazDVmoC87i_ pj1HwYmyXQdft557mTb2bzvSfzKyi_8Mi4II39lJy.8eHQWvHofZbN_J1Efw96sSC5WR.f0kM4Iq 6hy3.uiD342I3mU9Bvpq7gqAAJaU6d3R3EnGfSZG7dkiibMsdGAd9HfMZqnKkkSuGb6ehL8XRAph Xy3b5DUnSncbseTxgVNJjIrhij1UQDjm6z4MIEbIKiUcQfFZ4Y1f9w1krV0yMg7W1BUTCSGkySPR Kmr9bdErNWWNPp.fF_U6r6a49WJp4RQnAWbhzPa_lDXaARWn_S_2GsBuc8MwpSlz.yEFeYvnHSbb 0IqsjyNKA4CFQO0R7hayF_R6dx0sKzmGJMIqqqDKqcA44EPeLSZ3uITpqluVwkCrmtjMC1sGeGwG FkJ4SvhZ8mHaQz2JOnUe8QY.pIeGTFIeWFEGgRaRI9XYMB7jNWEc1Nx8D3prktjEIYeZg8wi.gbb 5zJdOC9Yfc0B584ascGi7Y6nDLJqFpGbJnNuCV.YdNOcBWQ0jTQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Mon, 18 Feb 2019 21:03:24 +0000 Received: from 75.3.110.170 (EHLO [192.168.10.101]) ([75.3.110.170]) by smtp410.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 0c85a5fcbedfcb7618d275e62e04d248; Mon, 18 Feb 2019 21:03:23 +0000 (UTC) Subject: Re: Questions about the USB HID device drivers To: Hans Petter Selasky , freebsd-usb@freebsd.org References: <9c6a87dd-cf7c-d0eb-82f1-5e904baaf05f@selasky.org> <325834a2-d9f1-a1f4-dff1-7f724aeb4907@netscape.net> <6762c7c9-f9dc-f7d2-0b1f-c2f6e2816cd7@selasky.org> <3724cc29-b682-2395-bd95-cbfa418ad9f2@netscape.net> <0cbc66cd-9007-878e-8bc3-f623364729d4@selasky.org> From: "Apollo D. Sharpe, Sr." Message-ID: Date: Mon, 18 Feb 2019 15:03:13 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <0cbc66cd-9007-878e-8bc3-f623364729d4@selasky.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 7ED4686029 X-Spamd-Bar: / X-Spamd-Result: default: False [0.41 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[netscape.net:s=a2048]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.163.184.0/21]; FREEMAIL_FROM(0.00)[netscape.net]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_LONG(-0.57)[-0.565,0]; NEURAL_SPAM_MEDIUM(0.15)[0.146,0]; NEURAL_SPAM_SHORT(0.84)[0.841,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: mx-aol.mail.gm0.yahoodns.net]; DKIM_TRACE(0.00)[netscape.net:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[84.189.163.66.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[netscape.net,reject]; IP_SCORE(1.00)[ip: (3.11), ipnet: 66.163.184.0/21(1.09), asn: 36646(0.88), country: US(-0.07)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[netscape.net]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[] 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, 18 Feb 2019 21:03:30 -0000 On 2/18/19 3:26 AM, Hans Petter Selasky wrote: > Each devicename has a uniq prefix followed by a uniq unit number. So, we just end up dumping ALL device nodes in /dev... > Character device nodes are automatically created. However it is > possible for user-space applications to create symbolic links > afterwards in /dev . ...and leave it to user-space to create the hierarchy within /dev? Is there a technical reason that kernel drivers don't automatically subscribe to a hierarchy, or is this just historic inertia? It seems funny to me that such decisions are left to user-space applications. -- Regards, Apollo D. Sharpe, Sr. From owner-freebsd-usb@freebsd.org Mon Feb 18 21:19:04 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EA3C914EC372 for ; Mon, 18 Feb 2019 21:19:03 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 063D786AAC for ; Mon, 18 Feb 2019 21:19:03 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x831.google.com with SMTP id 2so20837018qtb.5 for ; Mon, 18 Feb 2019 13:19:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=d9YpyGt8+U1mW8FqCvumFjxtlytYJFj2O88I6v4ECo8=; b=md1rkOZYKkLC383l5HYDt9LCCM9G5/+NW/EJb1kDuWCO7CUmgt2RirychDJYHZ3sZj zA/qsZgUU3RQ6Dj/UCiTd6X/Uz1nVN7c3zzR+4GMUOJA8oqgx58zQc7Vss0EWbvcVtpg L1MtBbw1SRm7EiHPyFj0v+KSvJOaYZZFkGKV39ZQuyr97gUgXJ0X10k08kVjzcGfVG61 VTPHsRzjQZ5hxWp0CUhEGiv49u0D7qqcCvDtB8/3EqJZR9wFNshwmgG/18mvChFF5Zdb XWtRnNJqarP+086gFZ0xLrK0GKXrbbcO2Lwnzp2ch8yqrpUYtKz7fnaqcfu/Sux/0jB5 E8jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=d9YpyGt8+U1mW8FqCvumFjxtlytYJFj2O88I6v4ECo8=; b=cAQ3OxfUX72q+/+1m5g/MQNfCU+087IuUOzPRjDOEX5S65FzoyESst7SipM5fyAqHz uIkPZonTioDv9uG4yFYD5jkLT9C1ToeyrcSUX+tP1GPpQPgjQCGRMEH0UdTarPR6g6OR XKrpGRf5EI5+eOH6HSLwDb0RWkKHocb4FrQsKn3JKsQ3sy0zeU6oBHNDyZ9VVI2dUGEC pZMJLU0m6BZZpAHZQU6clhZQRTeu3kdRZqCcOp/xjVELVGR4UcC8HsrhhYTtGWI4Zuwc qF3S/Bf06jHGRyT21AZn0gPHtOQC84s744X6gsmS8V7cOKaDAM0JDw+duw2qZifvVvej 8P1Q== X-Gm-Message-State: AHQUAuZr4eLsVIQmUp77lYuk3bZpTlHKKXSmeoPwdBJT3X1Uz+kvb7ir YUtMFGSZyEaGkwkWxkoD/PkN3rsxDnrVTbbJyU5UeQ== X-Google-Smtp-Source: AHgI3IaoKtcdT2vWLnGbLp2rFsV/B8gKJzMv7YTxPKC9w/4MjAsP2AFBO6wA1XDPcC93+OkyTIQ/vRlwEvgI3auPlj8= X-Received: by 2002:aed:3964:: with SMTP id l91mr19993411qte.33.1550524742579; Mon, 18 Feb 2019 13:19:02 -0800 (PST) MIME-Version: 1.0 References: <9c6a87dd-cf7c-d0eb-82f1-5e904baaf05f@selasky.org> <325834a2-d9f1-a1f4-dff1-7f724aeb4907@netscape.net> <6762c7c9-f9dc-f7d2-0b1f-c2f6e2816cd7@selasky.org> <3724cc29-b682-2395-bd95-cbfa418ad9f2@netscape.net> <0cbc66cd-9007-878e-8bc3-f623364729d4@selasky.org> In-Reply-To: From: Warner Losh Date: Mon, 18 Feb 2019 14:18:51 -0700 Message-ID: Subject: Re: Questions about the USB HID device drivers To: "Apollo D. Sharpe, Sr." Cc: Hans Petter Selasky , "freebsd-usb@FreeBSD.org" X-Rspamd-Queue-Id: 063D786AAC X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=md1rkOZY X-Spamd-Result: default: False [-5.66 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[cached: ALT1.aspmx.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[1.3.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.94)[-0.936,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; FREEMAIL_TO(0.00)[netscape.net]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; IP_SCORE(-2.71)[ip: (-8.92), ipnet: 2607:f8b0::/32(-2.58), asn: 15169(-1.98), country: US(-0.07)]; RCVD_COUNT_TWO(0.00)[2] 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: Mon, 18 Feb 2019 21:19:04 -0000 On Mon, Feb 18, 2019 at 2:04 PM Apollo D. Sharpe, Sr. via freebsd-usb < freebsd-usb@freebsd.org> wrote: > On 2/18/19 3:26 AM, Hans Petter Selasky wrote: > > Each devicename has a uniq prefix followed by a uniq unit number. > > So, we just end up dumping ALL device nodes in /dev... > Yes and no. If the unique prefix has / in it, devfs puts it in a subdir. > > Character device nodes are automatically created. However it is > > possible for user-space applications to create symbolic links > > afterwards in /dev . > > ...and leave it to user-space to create the hierarchy within /dev? Is > there a technical reason that kernel drivers don't automatically > subscribe to a hierarchy, or is this just historic inertia? It seems > funny to me that such decisions are left to user-space applications. > Way back in the days of yore, it was 100% userland to create the hierarchy. You did your mknod and that was that. We had big tables of major numbers that mapped device names to the kernel. There were problems with this: not the least was that major numbers were a limited resource and soon ran out. Now, devfs manages everything. You can get it to create many different hierarchies. see devfs(8) for details. Warner From owner-freebsd-usb@freebsd.org Mon Feb 18 21:34:25 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C98C014EC9EB for ; Mon, 18 Feb 2019 21:34:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4693187338 for ; Mon, 18 Feb 2019 21:34:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 0431514EC9EA; Mon, 18 Feb 2019 21:34:24 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E5A6114EC9E9 for ; Mon, 18 Feb 2019 21:34:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::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.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 80BC487336 for ; Mon, 18 Feb 2019 21:34:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id A6CC4181AD for ; Mon, 18 Feb 2019 21:34:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1ILYMCC044157 for ; Mon, 18 Feb 2019 21:34:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1ILYMdm044156 for usb@FreeBSD.org; Mon, 18 Feb 2019 21:34:22 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: Mon, 18 Feb 2019 21:34:22 +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: Mon, 18 Feb 2019 21:34:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235625 --- Comment #7 from Max --- Hello=20 Here is captured syslog snippet with the message. It appears after uhub_read_port_status call. The below conditional expects either right-most bit to be set for port_chan= ge or unset for port_status. As per log snippet wPortStatus =3D 0x07fb and wPortChange =3D 0x00fb which = seem to satisfy the condition for the error message...` >>> if ((sc->sc_st.port_change & UPS_C_CONNECT_STATUS) || >>> (!(sc->sc_st.port_status & UPS_CURRENT_CONNECT_STATU= S))) { >>>Feb 18 16:17:48 kernel: uhub_reattach_port: Port 3 is in Host Mode >>>Feb 18 16:17:49 kernel: usb_needs_explore:=20 >>>Feb 18 16:17:49 kernel: uhub_read_port_status: port 3, wPortStatus=3D0x= 07fb, wPortChange=3D0x00fb, err=3DUSB_ERR_NORMAL_COMPLETION >>>Feb 18 16:17:49 kernel: uhub_reattach_port: giving up port reset - devi= ce vanished >>>Feb 18 16:17:49 kernel: uhub_suspend_resume_port: port 3 >>>Feb 18 16:17:49 kernel: uhub_read_port_status: port 3, wPortStatus=3D0x= 07fb, wPortChange=3D0x00fb, err=3DUSB_ERR_NORMAL_COMPLETION >>>Feb 18 16:17:49 kernel: uhub_suspend_resume_port: suspended=3D0 Please let me know if more information is needed Thanks, Max --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Mon Feb 18 21:37:40 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4ECE214ECADD for ; Mon, 18 Feb 2019 21:37:40 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1a.eu.mailhop.org (outbound1a.eu.mailhop.org [52.58.109.202]) (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 891EF87530 for ; Mon, 18 Feb 2019 21:37:39 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1550525856; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=byt3q9WF2z4t48adNKix+TCA6CWEsFYo2FzSFUSh0KJ4XZJqmokh6oFWp8Uurw0mNqqz0uhN0IO+I XUekLraDmXc1yjr4P7SIQqlKFqEpYmQ6P/sypOhHy4qtHBi/aVQynAZaxN8sjhQIFc0erJQsdHAB5y uRq/gAhKjxX7+OYcGGb8+5RHvECVfFdRwRobHF4WrQRY3CH6rx9YdJMryGObBkBKwuDmivMS7PAZTF nnon7gGwqrsEegFwj1kypUStWtgjiTsDnYhKijRk4pbLNrsyJKWA+PfTe+88+LTf45pwuWp8H3f0fA h0yNp8xZlPbHZCCS/DyGrrMYcCy8AzA== 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=r9kdAA6cGH8kxs22TZDq7S0K2ObRrJXUHowJ4LciUew=; b=pyiXP+tunMPqhVCGKX1fwINETBBhMGf42vU1liV30ozx5H9ZSzuThPx3b314iP4r2f768CeDZYNia zI5YjLNTnLYcSTjb34S4I2po377RlwOSeFIvbMHxpmlokN5VA0AVIPx/48VqlddXkUP6ru5uIp3mPZ zDu4S5v8ywYKbDXPXXfQeKrfa5W90I00njDllPFgkAca8k6OBLigicuLhsRN6kzQxybO1vl2xjIKzM EfP9eYUmmHixTIq82RXNbRcpjYQSaWHXh05lR+UgRzdvgg3vwkyQnLY9CilQUNDRNI9+boNlZuXfoU mr/Mxlnk9Hx/Ahh3TSAAtJ9jWcAwsBA== ARC-Authentication-Results: i=1; outbound2.eu.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=r9kdAA6cGH8kxs22TZDq7S0K2ObRrJXUHowJ4LciUew=; b=NLhpaovXibFvYDyqxYia2RNoBK8c3GHvGG8f8tnCpMi2KJKvRnxBQQtTA/Z+6y0fdFUgt8pb+7/vh gwZkNApSvAqeqDOdZs3emPpNS4JiRPIm1h+kuMOxkUTz1SNh8DWpMeXYp52nOcdFpvqYIjkHixI/K+ kv53S0ONsMNzU20w5x08zOiJqx4lW38tkhM8X5U8uULYkt8hRdD/AYL0b1Pepw/BNYBvVVT1SpvL9r hditcKoGTEcSdpWQJMsK5aY+qKyPNrPdj1cDMZQJMDUC3+Kfo4aoBxeVHhsGTW4qfNSp8TV5/oU0GW jjmozA+uyWCNO4MC5SIU6Yh6EWp0EAQ== X-MHO-RoutePath: aGlwcGll X-MHO-User: 65f22957-33c5-11e9-803b-31925da7267c 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 outbound2.eu.mailhop.org (Halon) with ESMTPSA id 65f22957-33c5-11e9-803b-31925da7267c; Mon, 18 Feb 2019 21:37:34 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x1ILbWup079210; Mon, 18 Feb 2019 14:37:32 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <4b8043dce0fcb0c386f0666b4e1461b4fe4ddad0.camel@freebsd.org> Subject: Re: Questions about the USB HID device drivers From: Ian Lepore To: "Apollo D. Sharpe, Sr." , Hans Petter Selasky , freebsd-usb@freebsd.org Date: Mon, 18 Feb 2019 14:37:32 -0700 In-Reply-To: References: <9c6a87dd-cf7c-d0eb-82f1-5e904baaf05f@selasky.org> <325834a2-d9f1-a1f4-dff1-7f724aeb4907@netscape.net> <6762c7c9-f9dc-f7d2-0b1f-c2f6e2816cd7@selasky.org> <3724cc29-b682-2395-bd95-cbfa418ad9f2@netscape.net> <0cbc66cd-9007-878e-8bc3-f623364729d4@selasky.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 891EF87530 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.99 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.992,0]; ASN(0.00)[asn:16509, ipnet:52.58.0.0/15, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,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, 18 Feb 2019 21:37:40 -0000 On Mon, 2019-02-18 at 15:03 -0600, Apollo D. Sharpe, Sr. via freebsd- usb wrote: > On 2/18/19 3:26 AM, Hans Petter Selasky wrote: > > Each devicename has a uniq prefix followed by a uniq unit number. > > So, we just end up dumping ALL device nodes in /dev... > > > > Character device nodes are automatically created. However it is > > possible for user-space applications to create symbolic links > > afterwards in /dev . > > ...and leave it to user-space to create the hierarchy within /dev? > Is > there a technical reason that kernel drivers don't automatically > subscribe to a hierarchy, or is this just historic inertia? It seems > funny to me that such decisions are left to user-space applications. > > Not to userland applications so much as to sysadmin-controlled configuration which is applied from userland during system startup and when new devices are attached. See the manpage for devfs.conf. >From the kernel side, some subsystems do create a hierarchy (or at least a subdir for a set of related devices), and others don't. There is no system-wide policy about it either way. -- Ian From owner-freebsd-usb@freebsd.org Mon Feb 18 21:37:53 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 74BE914ECB0C for ; Mon, 18 Feb 2019 21:37:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0A4178757E for ; Mon, 18 Feb 2019 21:37:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id BF4C514ECB0B; Mon, 18 Feb 2019 21:37:52 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC8CF14ECB0A for ; Mon, 18 Feb 2019 21:37:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::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.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 43AFC87579 for ; Mon, 18 Feb 2019 21:37:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 79823181B5 for ; Mon, 18 Feb 2019 21:37:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1ILbpxf047650 for ; Mon, 18 Feb 2019 21:37:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1ILbpNt047649 for usb@FreeBSD.org; Mon, 18 Feb 2019 21:37: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 235625] Repeated excessive logging about unsuccessful port reset during device enumeration Date: Mon, 18 Feb 2019 21:37:51 +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: Mon, 18 Feb 2019 21:37:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235625 --- Comment #8 from Max --- Also there is the following event seen a few seconds later for the port in = the snippet: >>>Feb 18 16:16:44 kernel: uhub_explore: Overcurrent on port 3. >>>Feb 18 16:16:44 kernel: uhub_reattach_port: reattaching port 3 Thanks, Max --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Mon Feb 18 23:28:48 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4C2BF14EF563 for ; Mon, 18 Feb 2019 23:28:48 +0000 (UTC) (envelope-from demetrioussharpe@netscape.net) Received: from sonic305-22.consmr.mail.ne1.yahoo.com (sonic305-22.consmr.mail.ne1.yahoo.com [66.163.185.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1FC598AA62 for ; Mon, 18 Feb 2019 23:28:44 +0000 (UTC) (envelope-from demetrioussharpe@netscape.net) X-YMail-OSG: d9uFZykVM1msiCqs0gFBW11gBySVVcTkDfZwBWD4U43dNtz1lJjZvQ6vf_w7x6J Vh6_Ay8Lj3PpnllzavVKrIyjWX8K_7B2g9p_EpLqn4It15dhD1odIvT90a046TZkVpggyO4BxkT3 b2wUBOWDrodEIvsXN8ikfUtlu.38a75LPeGDBknVi6yAyBvGe3Zh9nJB0QuRiq6v1A4eekJ9tue7 49x73FR0BfP2UkRRwTzIQ4NdR1x7RSydiZT0kCuLX4gELfVtC2x4QfWKb8lr7JNRtgoV9rxBEzc6 1.d9n6cyNi.tVtriECJUNIIuIQrVSLC1aveFjBJAKy3xHJzmIb1QNDFAw._zPq_39OmFrj8V_48H X3C9p0eRtSNH7eIuTwkfEgYoOrzIATvYbuqzyQyhMvTlaa8tyGGzmKVQRzyMl68SL85nRNwRhooD W9l008IT0LF3y4JkTIH.MetTMsHrgA3B.H4vXXLhpgjYJaAIvwxquu5fHNeOaFgPElUgwdILQmLw AKu1i6ZsIt58i0Y3zZJwAty_pzVoK2nMrQnwhldJUXdcov9eO_sAkzYLfxs9J4zvkDVReR2Uq5X0 w3BAnN0.ahL61hq82JZRFc_isoah37qzyqg.Ea3VInH_snz01WV.5ItGKcM9w.7iHt9cQJ8j_Z2O dvrTtjbzj8R6li5_Wi17willAjB.RdG26lSarcm4oFjWF.gjVzrTQlfqwXpGhi2jZNu8fe5sWmuK 2e3gpa91n7PqNOx43lQj7mu_KHO2pH1SlrHH5Bfd_T0Nn4rVFrNBR3kww11jGhtSl4uPwzywB.ZK CMG9M.ZUqfYMmeADmUpIV7MythvMB6ccCzJmPFNIY0KN8AxwLCkQdZWLalBsnnf6deMIYjMiHvcy 46berlSXdrAcOdgiZfR4MIndO8Z7la8vqzfFMYcGqRvcMtJHE4yyh8BaWDMkCaJdIxj7rw7r2Qh6 QWncqt_MZBGXHX6jEDBOpEMQVEIgh9P8GY8J7LfgLOcEui7347cWn8fMWkKZVLkBuQq7rPRfVe4N G5dRfosAHof9gTGod_5mpKlj7KIyLpNA1vh5GUj91Gb3t_ev0PQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Mon, 18 Feb 2019 23:28:37 +0000 Received: from 75.3.110.170 (EHLO [192.168.10.101]) ([75.3.110.170]) by smtp410.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 091c5e8e3f73c806448020268285dd9c; Mon, 18 Feb 2019 23:28:36 +0000 (UTC) Subject: Re: Questions about the USB HID device drivers To: Warner Losh Cc: Hans Petter Selasky , "freebsd-usb@FreeBSD.org" References: <9c6a87dd-cf7c-d0eb-82f1-5e904baaf05f@selasky.org> <325834a2-d9f1-a1f4-dff1-7f724aeb4907@netscape.net> <6762c7c9-f9dc-f7d2-0b1f-c2f6e2816cd7@selasky.org> <3724cc29-b682-2395-bd95-cbfa418ad9f2@netscape.net> <0cbc66cd-9007-878e-8bc3-f623364729d4@selasky.org> From: "Apollo D. Sharpe, Sr." Message-ID: <2a062140-dc0f-e5e9-e1c9-ba557f963b41@netscape.net> Date: Mon, 18 Feb 2019 17:28:26 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Rspamd-Queue-Id: 1FC598AA62 X-Spamd-Bar: / X-Spamd-Result: default: False [-0.32 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.163.184.0/21]; FREEMAIL_FROM(0.00)[netscape.net]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[mx-aol.mail.gm0.yahoodns.net,mx-aol.mail.gm0.yahoodns.net,mx-aol.mail.gm0.yahoodns.net,mx-aol.mail.gm0.yahoodns.net,mx-aol.mail.gm0.yahoodns.net,mx-aol.mail.gm0.yahoodns.net]; DKIM_TRACE(0.00)[netscape.net:+]; DMARC_POLICY_ALLOW(-0.50)[netscape.net,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[netscape.net]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.21)[-0.210,0]; R_DKIM_ALLOW(-0.20)[netscape.net:s=a2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.79)[0.793,0]; NEURAL_HAM_LONG(-0.78)[-0.781,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE(0.88)[ip: (2.53), ipnet: 66.163.184.0/21(1.09), asn: 36646(0.87), country: US(-0.07)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[148.185.163.66.list.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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, 18 Feb 2019 23:28:48 -0000 On 2/18/19 3:18 PM, Warner Losh wrote: > Yes and no. If the unique prefix has / in it, devfs puts it in a subdir. If I'm reading the code right, the unique prefix is basically driver_t::name. Is that correct? If so, I haven't seen a device name (in the entire tree) that has "/" in it's device name. Maybe I'm missing something here. > Way back in the days of yore, it was 100% userland to create the > hierarchy. You did your mknod and that was that. We had big tables of > major numbers that mapped device names to the kernel. > > There were problems with this: not the least was that major numbers > were a limited resource and soon ran out. Now, devfs manages > everything. You can get it to create many different hierarchies. see > devfs(8) for details. > I can imagine how much of a pain that was. Though, it looks as though not too many people bother changing beyond the default devfs.rules and devfs.conf files -they also seem to be a pain to deal with. It's a reasonable solution for servers, however it would be much more valuable on desktops to have /dev/input/* for various input devices. I guess I'm going to have to figure out how to make devices publish themselves in /dev based on their primary function. Thank you, and everyone else, for taking the time to explain the setup to me. -- Regards, Apollo D. Sharpe, Sr. From owner-freebsd-usb@freebsd.org Mon Feb 18 23:33:33 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 59C4414EF869 for ; Mon, 18 Feb 2019 23:33:33 +0000 (UTC) (envelope-from demetrioussharpe@netscape.net) Received: from sonic303-22.consmr.mail.ne1.yahoo.com (sonic303-22.consmr.mail.ne1.yahoo.com [66.163.188.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2E9AA8ADEB for ; Mon, 18 Feb 2019 23:33:32 +0000 (UTC) (envelope-from demetrioussharpe@netscape.net) X-YMail-OSG: Tvi7TwcVM1nb.KjbMUC7rCsyF8mXyWRsjmqyWukT0CPeD4ZRZWsP51RLt39JwuY WvTdqpIePKlkByswrhdhlc4YJHdnrG31gnUS.wx5vNhWRKSYIN6yEdZh1AFvVVluKaBRAyhR3B_o aMpyPYVfLJ0cCb5U8qqi1Ex1.EYL.Vcg335u_1fIxGKalc6jgttiUoFu2SeEn0XzQRDmxxHITrUM KaglGbzJnRXsrul3SYfVgFTiq11Lh6inX0aoM.I9qhfD9h9zNdwWIXQTVLxb5a9ue6qluwDy8bGL iZh2TG69cZN08K8_B0i9pZAE.zMaGcdNZTH6DaBRpJLFkRw05bddWt1ps4u_bIBSQ1usZBD0iOvi 5xGF2FIWAZ8ZFNdE_Ren4m_BHzEXAgLvPqpAo0_CSc06UZ0x7Wjr_ebz8KF_zqNqYCtGrLe_3lil DT.l8EwXWygJfxcw_6NFbTShHpfTQKHxnqi53_c4Yyup4f4Tj2dqiOfAGI_wF4eeIU4SJp5N661n W7YHO4wz_9VlIjiQgXy5RznLsKmIo6Bwee2CP9Gl_0heD7NIWGJ.M01HRPvSwJsrrcHPn8Zh7Cpo MU7k3OjaCZThZJJCl6HxjfUojz4HCxoLjy7SErYTt0lrNITs4Lx1xBa4xOX.77rZ9glYO8soKK3Q 0rqvjJyLfPN37Ac_5tn80H5zNdFWV6Z_Jqncu9FDvRVTTv2pHxmlWyfI16VgLGMYSNsbIEScr4nl V_n.MjQXFdZLSQOoVFZSHGKwjRtPCvdqsi8FwMglyRP7H3pddCHE7nbg.spYuXQ4TxSq9Z6KanAy ZlsdnlDc5uEeLlrw2VEELiCCyU5F74NOmmEioK0jAxS5fRx8J5x48ABciHe2d89BZnHubcCUetAF 8HYXUWzbuFEeIFu845Fn7uGOe35KxWtm1n5.ZKwW8M9FyI8A_JoVwf4RYGJ6HzPXL3UmprkKJb2G qhss0QImnrmRne3Up0z4xOcVPNPLBMFPbcvZeV4KcIX.0JA9DDIDNBLYwsk34cGzReERMBrkPtHY OKGokcTk09.0pt0r4auyb0MCNEqrpWWNnTG_XDZTJWzWCc6tOzw-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ne1.yahoo.com with HTTP; Mon, 18 Feb 2019 23:33:25 +0000 Received: from 75.3.110.170 (EHLO [192.168.10.101]) ([75.3.110.170]) by smtp403.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID fa89f2866c781fea1629da2ec803fbd6; Mon, 18 Feb 2019 23:33:22 +0000 (UTC) Subject: Re: Questions about the USB HID device drivers To: Ian Lepore , Hans Petter Selasky , freebsd-usb@freebsd.org References: <9c6a87dd-cf7c-d0eb-82f1-5e904baaf05f@selasky.org> <325834a2-d9f1-a1f4-dff1-7f724aeb4907@netscape.net> <6762c7c9-f9dc-f7d2-0b1f-c2f6e2816cd7@selasky.org> <3724cc29-b682-2395-bd95-cbfa418ad9f2@netscape.net> <0cbc66cd-9007-878e-8bc3-f623364729d4@selasky.org> <4b8043dce0fcb0c386f0666b4e1461b4fe4ddad0.camel@freebsd.org> From: "Apollo D. Sharpe, Sr." Message-ID: <68c25883-b4f8-6de3-5a5e-02d6108aa63a@netscape.net> Date: Mon, 18 Feb 2019 17:33:13 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <4b8043dce0fcb0c386f0666b4e1461b4fe4ddad0.camel@freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 2E9AA8ADEB X-Spamd-Bar: / X-Spamd-Result: default: False [-0.29 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[netscape.net:s=a2048]; NEURAL_HAM_MEDIUM(-0.10)[-0.097,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:66.163.184.0/21]; FREEMAIL_FROM(0.00)[netscape.net]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_LONG(-0.83)[-0.834,0]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.81)[0.807,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[netscape.net:+]; MX_GOOD(-0.01)[cached: mx-aol.mail.gm0.yahoodns.net]; RCVD_IN_DNSWL_NONE(0.00)[148.188.163.66.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[netscape.net,reject]; IP_SCORE(0.84)[ip: (2.32), ipnet: 66.163.184.0/21(1.09), asn: 36646(0.87), country: US(-0.07)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[netscape.net]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[] 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, 18 Feb 2019 23:33:33 -0000 On 2/18/19 3:37 PM, Ian Lepore wrote: > Not to userland applications so much as to sysadmin-controlled > configuration which is applied from userland during system startup and when new devices are attached. See the manpage for devfs.conf. Which does make sense on servers & network infrastructure. However, I'm wondering if there's a better way to do this for systems that aren't expected to have a sysadmin -basic desktop systems. > From the kernel side, some subsystems do create a hierarchy (or at > least a subdir for a set of related devices), and others don't. There > is no system-wide policy about it either way. I have to admit that I'm surprised that there's no system-wide policy for this. -- Regards, Apollo D. Sharpe, Sr. From owner-freebsd-usb@freebsd.org Wed Feb 20 18:29:28 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6285814FB90A for ; Wed, 20 Feb 2019 18:29:28 +0000 (UTC) (envelope-from vidwer@gmail.com) Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 88F268CA48 for ; Wed, 20 Feb 2019 18:29:27 +0000 (UTC) (envelope-from vidwer@gmail.com) Received: by mail-ot1-x32e.google.com with SMTP id z19so41899533otm.2 for ; Wed, 20 Feb 2019 10:29:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=SCyBwpfAdIRHoaPAPGPt0U16tpAPsvaAFAd6XyczrH8=; b=Op6N4VnnBZvOEArDBwOyO7a98DetYd76P1znX1TeNxlgUYFrVUPmqgIib72Vc91uCT e0vRC2MRarY1ah/ggi/6sH/xP9BvvKbJlZygdMzpSN8qUbK1RL/wLagKfkKO9qK1jGJ3 xMUhG0GzXOOZ22cSkD12Y9lX+f3JO4EHkBRRzX/y2aCgb1OCfIkBOcmPvgxESv4rGwe+ MM+oWpysDtE1jW6SA0ieZQ0E0QrXYHFFt6y3BTD4edNTDmWTTzLJByDgeAnTSeb4st4j sGeX0Zh8ldRkWi094lQ8JB0zQymGVzEnXtPSQAvMkuZ8SiW6tJTJEAoC8KoACDcvFhxp iOYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=SCyBwpfAdIRHoaPAPGPt0U16tpAPsvaAFAd6XyczrH8=; b=YHWcJvnw6KJtBnO/I8f7rSYkiN7OICNbZ+qjffDugqReLFotM420MoRbOagABSNW0Q yuC/0x9MVRvSUw+d5PHKvJFpPJqZcywXFAGTIVr2lmsQS9QDwYpxiJ/RBonkvnbls4zn 7umkWZno1IJLHhDMr5Fl5QNfSlRkFBC/H5QZ3EbsBA6BwyRahuV+D7FSqVjGBHEQ0ri9 XfsmYCrQNpajpofxA2tGkelH0Ge+6KBdVuWKYufeCwC6qwYz8j0sKzXSwP8INfAIOIyd I5wfMrrSnvMH4PADTvWk3GnI8fecbT+3ez8o87L2Y6cpmYCG4Y2maoNbpmKutZQQp15z R/zA== X-Gm-Message-State: AHQUAuZAAxL160xxtcaiLdib+fsC3ZOOjY3mPT9PuJqupvz2WupvCoRv AHGqaSbNKDktcEtAic8+iLRQsUr/IyONYsTwH2lh+Rtx X-Google-Smtp-Source: AHgI3IaFN3nRKN66KPZdvUjJcmCKWHsQN/H3pBxAqkeqRUU1ZtycCxvd9xCMBkXFVZiyOc2WFLWk6lvM9BfGgCmbFrE= X-Received: by 2002:aca:da83:: with SMTP id r125mr5341706oig.8.1550687366546; Wed, 20 Feb 2019 10:29:26 -0800 (PST) MIME-Version: 1.0 From: Idwer Vollering Date: Wed, 20 Feb 2019 19:29:15 +0100 Message-ID: Subject: quirky Sandisk SDCZ48-032G when using XHCI To: freebsd-usb@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 88F268CA48 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Op6N4Vnn; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of vidwer@gmail.com designates 2607:f8b0:4864:20::32e as permitted sender) smtp.mailfrom=vidwer@gmail.com X-Spamd-Result: default: False [-6.53 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.93)[-0.931,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[e.2.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-2.59)[ip: (-8.28), ipnet: 2607:f8b0::/32(-2.61), asn: 15169(-1.99), country: US(-0.07)]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.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, 20 Feb 2019 18:29:28 -0000 Running 13-CURRENT, r344363 on amd64. dmesg: ugen1.3: at usbus1 umass0 on uhub4 umass0: on usbus1 umass0: SCSI over Bulk-Only; quirks = 0xc100 umass0:2:0: Attached to scbus2 (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Retrying command, 3 more tries remain (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Retrying command, 2 more tries remain da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 da0: Removable Direct Access SPC-4 SCSI device da0: Serial Number da0: 400.000MB/s transfers da0: 29328MB (60063744 512 byte sectors) da0: quirks=0x2 usbconfig -d ugen1.3 dump_all_desc: ugen1.3: at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (224mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0300 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0009 idVendor = 0x0781 idProduct = 0x5581 bcdDevice = 0x0100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x002c bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0080 bMaxPower = 0x0070 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0002 bInterfaceClass = 0x0008 bInterfaceSubClass = 0x0006 bInterfaceProtocol = 0x0050 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0002 wMaxPacketSize = 0x0400 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Additional Descriptor bLength = 0x06 bDescriptorType = 0x30 bDescriptorSubType = 0x01 RAW dump: 0x00 | 0x06, 0x30, 0x01, 0x00, 0x00, 0x00 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0002 bmAttributes = 0x0002 wMaxPacketSize = 0x0400 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Additional Descriptor bLength = 0x06 bDescriptorType = 0x30 bDescriptorSubType = 0x0f RAW dump: 0x00 | 0x06, 0x30, 0x0f, 0x00, 0x00, 0x00 Proposed, yet unimproving the CCB stall, diff: Index: sys/dev/usb/quirk/usb_quirk.c =================================================================== --- sys/dev/usb/quirk/usb_quirk.c (revision 344363) +++ sys/dev/usb/quirk/usb_quirk.c (working copy) @@ -396,6 +396,8 @@ UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_IGNORE_RESIDUE), USB_QUIRK(SANDISK, SDCZ4_256, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_IGNORE_RESIDUE), + USB_QUIRK(SANDISK, SDCZ48_32, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, + UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_IGNORE_RESIDUE), USB_QUIRK(SANDISK, SDDR31, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_READ_CAP_OFFBY1), USB_QUIRK(SANDISK, IMAGEMATE_SDDR289, 0x0000, 0xffff, Index: sys/dev/usb/usbdevs =================================================================== --- sys/dev/usb/usbdevs (revision 344363) +++ sys/dev/usb/usbdevs (working copy) @@ -4067,6 +4067,7 @@ product SANDISK SDCZ2_256 0x7104 Cruzer Mini 256MB product SANDISK SDCZ4_128 0x7112 Cruzer Micro 128MB product SANDISK SDCZ4_256 0x7113 Cruzer Micro 256MB +product SANDISK SDCZ48_32 0x5581 Ultra 32GB product SANDISK IMAGEMATE_SDDR289 0xb6ba ImageMate SDDR-289 /* Sanwa Electric Instrument Co., Ltd. products */ Index: sys/cam/scsi/scsi_da.c =================================================================== --- sys/cam/scsi/scsi_da.c (revision 344363) +++ sys/cam/scsi/scsi_da.c (working copy) @@ -871,6 +871,10 @@ {T_DIRECT, SIP_MEDIA_REMOVABLE, "16G SLC", "CHIPFANCIER", "1.00"}, /*quirks*/ DA_Q_NO_RC16 }, + { + {T_DIRECT, SIP_MEDIA_REMOVABLE, "SanDisk", "Ultra", + "1.00"}, /*quirks*/ DA_Q_RETRY_BUSY|DA_Q_NO_6_BYTE + }, /* ATA/SATA devices over SAS/USB/... */ { /* Sandisk X400 */ I reasoned that scsi_da.c might benefit from "*" in the version field ("1.00"), however that won't clear the stall either. Cheers, Idwer From owner-freebsd-usb@freebsd.org Wed Feb 20 19:21:04 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 41F1D14FD5A3 for ; Wed, 20 Feb 2019 19:21:04 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (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 4F45A8F797 for ; Wed, 20 Feb 2019 19:21:02 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [176.74.212.121]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 9147B2600E0; Wed, 20 Feb 2019 20:20:56 +0100 (CET) Subject: Re: quirky Sandisk SDCZ48-032G when using XHCI To: Idwer Vollering , freebsd-usb@freebsd.org References: From: Hans Petter Selasky Message-ID: <26d963ed-4b9f-a9db-6d7d-ca4a802eb7ed@selasky.org> Date: Wed, 20 Feb 2019 20:18:30 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 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: 4F45A8F797 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; 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 [-6.38 / 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)[]; MX_GOOD(-0.01)[mail.turbocat.net]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.80)[-0.797,0]; IP_SCORE(-3.28)[ip: (-9.49), ipnet: 88.99.0.0/16(-4.66), asn: 24940(-2.22), country: DE(-0.01)]; FREEMAIL_TO(0.00)[gmail.com]; 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: Wed, 20 Feb 2019 19:21:04 -0000 On 2/20/19 7:29 PM, Idwer Vollering wrote: > Running 13-CURRENT, r344363 on amd64. > > dmesg: > ugen1.3: at usbus1 > umass0 on uhub4 > umass0: on usbus1 > umass0: SCSI over Bulk-Only; quirks = 0xc100 > umass0:2:0: Attached to scbus2 > (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 > (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (probe0:umass-sim0:0:0:0): Retrying command, 3 more tries remain > (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 > (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error > (probe0:umass-sim0:0:0:0): Retrying command, 2 more tries remain > da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 > da0: Removable Direct Access SPC-4 SCSI device > da0: Serial Number > da0: 400.000MB/s transfers > da0: 29328MB (60063744 512 byte sectors) > da0: quirks=0x2 > > > usbconfig -d ugen1.3 dump_all_desc: > ugen1.3: at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) > pwr=ON (224mA) > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0300 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0009 > idVendor = 0x0781 > idProduct = 0x5581 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0003 > bNumConfigurations = 0x0001 > > Configuration index 0 > > bLength = 0x0009 > bDescriptorType = 0x0002 > wTotalLength = 0x002c > bNumInterfaces = 0x0001 > bConfigurationValue = 0x0001 > iConfiguration = 0x0000 > bmAttributes = 0x0080 > bMaxPower = 0x0070 > > Interface 0 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0000 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0002 > bInterfaceClass = 0x0008 > bInterfaceSubClass = 0x0006 > bInterfaceProtocol = 0x0050 > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0081 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0400 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Additional Descriptor > > bLength = 0x06 > bDescriptorType = 0x30 > bDescriptorSubType = 0x01 > RAW dump: > 0x00 | 0x06, 0x30, 0x01, 0x00, 0x00, 0x00 > > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0002 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0400 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Additional Descriptor > > bLength = 0x06 > bDescriptorType = 0x30 > bDescriptorSubType = 0x0f > RAW dump: > 0x00 | 0x06, 0x30, 0x0f, 0x00, 0x00, 0x00 > > > Proposed, yet unimproving the CCB stall, diff: > Index: sys/dev/usb/quirk/usb_quirk.c > =================================================================== > --- sys/dev/usb/quirk/usb_quirk.c (revision 344363) > +++ sys/dev/usb/quirk/usb_quirk.c (working copy) > @@ -396,6 +396,8 @@ > UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_IGNORE_RESIDUE), > USB_QUIRK(SANDISK, SDCZ4_256, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, > UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_IGNORE_RESIDUE), > + USB_QUIRK(SANDISK, SDCZ48_32, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, > + UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_IGNORE_RESIDUE), > USB_QUIRK(SANDISK, SDDR31, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, > UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_READ_CAP_OFFBY1), > USB_QUIRK(SANDISK, IMAGEMATE_SDDR289, 0x0000, 0xffff, > Index: sys/dev/usb/usbdevs > =================================================================== > --- sys/dev/usb/usbdevs (revision 344363) > +++ sys/dev/usb/usbdevs (working copy) > @@ -4067,6 +4067,7 @@ > product SANDISK SDCZ2_256 0x7104 Cruzer Mini 256MB > product SANDISK SDCZ4_128 0x7112 Cruzer Micro 128MB > product SANDISK SDCZ4_256 0x7113 Cruzer Micro 256MB > +product SANDISK SDCZ48_32 0x5581 Ultra 32GB > product SANDISK IMAGEMATE_SDDR289 0xb6ba ImageMate SDDR-289 > > /* Sanwa Electric Instrument Co., Ltd. products */ > Index: sys/cam/scsi/scsi_da.c > =================================================================== > --- sys/cam/scsi/scsi_da.c (revision 344363) > +++ sys/cam/scsi/scsi_da.c (working copy) > @@ -871,6 +871,10 @@ > {T_DIRECT, SIP_MEDIA_REMOVABLE, "16G SLC", "CHIPFANCIER", > "1.00"}, /*quirks*/ DA_Q_NO_RC16 > }, > + { > + {T_DIRECT, SIP_MEDIA_REMOVABLE, "SanDisk", "Ultra", > + "1.00"}, /*quirks*/ DA_Q_RETRY_BUSY|DA_Q_NO_6_BYTE > + }, > /* ATA/SATA devices over SAS/USB/... */ > { > /* Sandisk X400 */ > > I reasoned that scsi_da.c might benefit from "*" in the version field > ("1.00"), however that won't clear the stall either. > Could you upload the patch in a PR and assign it to freebsd-usb@freebsd.org ? --HPS From owner-freebsd-usb@freebsd.org Wed Feb 20 19:37:23 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 14C4514FDC46 for ; Wed, 20 Feb 2019 19:37:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 98AF36858A for ; Wed, 20 Feb 2019 19:37:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 519DC14FDC45; Wed, 20 Feb 2019 19:37:22 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2D7CE14FDC44 for ; Wed, 20 Feb 2019 19:37:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::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.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BDE9768588 for ; Wed, 20 Feb 2019 19:37:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id E103D117BD for ; Wed, 20 Feb 2019 19:37:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1KJbKUO049453 for ; Wed, 20 Feb 2019 19:37:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1KJbK0b049452 for usb@FreeBSD.org; Wed, 20 Feb 2019 19:37:20 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 235897] quirky Sandisk SDCZ48-032G when using XHCI Date: Wed, 20 Feb 2019 19:37:20 +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: vidwer+fbsdbugs@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: Wed, 20 Feb 2019 19:37:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235897 Bug ID: 235897 Summary: quirky Sandisk SDCZ48-032G when using XHCI Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: usb Assignee: usb@FreeBSD.org Reporter: vidwer+fbsdbugs@gmail.com Created attachment 202201 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D202201&action= =3Dedit draft patch for quirk found in SanDisk Ultra SDCZ48-032G Running 13-CURRENT, r344363 on amd64. dmesg: ugen1.3: at usbus1 umass0 on uhub4 umass0: on usbus1 umass0: SCSI over Bulk-Only; quirks =3D 0xc100 umass0:2:0: Attached to scbus2 (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Retrying command, 3 more tries remain (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Retrying command, 2 more tries remain da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 da0: Removable Direct Access SPC-4 SCSI device da0: Serial Number da0: 400.000MB/s transfers da0: 29328MB (60063744 512 byte sectors) da0: quirks=3D0x2 usbconfig -d ugen1.3 dump_all_desc: ugen1.3: at usbus1, cfg=3D0 md=3DHOST spd=3DSUPER (5.0Gbps) pwr=3DON (224mA) bLength =3D 0x0012 bDescriptorType =3D 0x0001 bcdUSB =3D 0x0300 bDeviceClass =3D 0x0000 bDeviceSubClass =3D 0x0000 bDeviceProtocol =3D 0x0000 bMaxPacketSize0 =3D 0x0009 idVendor =3D 0x0781 idProduct =3D 0x5581 bcdDevice =3D 0x0100 iManufacturer =3D 0x0001 iProduct =3D 0x0002 iSerialNumber =3D 0x0003 bNumConfigurations =3D 0x0001 Configuration index 0 bLength =3D 0x0009 bDescriptorType =3D 0x0002 wTotalLength =3D 0x002c bNumInterfaces =3D 0x0001 bConfigurationValue =3D 0x0001 iConfiguration =3D 0x0000 bmAttributes =3D 0x0080 bMaxPower =3D 0x0070 Interface 0 bLength =3D 0x0009 bDescriptorType =3D 0x0004 bInterfaceNumber =3D 0x0000 bAlternateSetting =3D 0x0000 bNumEndpoints =3D 0x0002 bInterfaceClass =3D 0x0008 bInterfaceSubClass =3D 0x0006 bInterfaceProtocol =3D 0x0050 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007 bDescriptorType =3D 0x0005 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0400 bInterval =3D 0x0000 bRefresh =3D 0x0000 bSynchAddress =3D 0x0000 Additional Descriptor bLength =3D 0x06 bDescriptorType =3D 0x30 bDescriptorSubType =3D 0x01 RAW dump: 0x00 | 0x06, 0x30, 0x01, 0x00, 0x00, 0x00 Endpoint 1 bLength =3D 0x0007 bDescriptorType =3D 0x0005 bEndpointAddress =3D 0x0002 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0400 bInterval =3D 0x0000 bRefresh =3D 0x0000 bSynchAddress =3D 0x0000 Additional Descriptor bLength =3D 0x06 bDescriptorType =3D 0x30 bDescriptorSubType =3D 0x0f RAW dump: 0x00 | 0x06, 0x30, 0x0f, 0x00, 0x00, 0x00 Proposed, yet unimproving the CCB stall, diff: see attached diff. I reasoned that scsi_da.c might benefit from "*" in the version field ("1.00"), however that won't clear the stall either. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Wed Feb 20 19:40:30 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C892914FDD14 for ; Wed, 20 Feb 2019 19:40:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 58BD469AAB for ; Wed, 20 Feb 2019 19:40:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 0E83514FDD13; Wed, 20 Feb 2019 19:40:29 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DDB7514FDD12 for ; Wed, 20 Feb 2019 19:40:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::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.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7A3CF69AAA for ; Wed, 20 Feb 2019 19:40:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id BF702117C5 for ; Wed, 20 Feb 2019 19:40:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1KJeRGf052652 for ; Wed, 20 Feb 2019 19:40:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1KJeRPv052651 for usb@FreeBSD.org; Wed, 20 Feb 2019 19:40: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 235897] quirky Sandisk SDCZ48-032G when using XHCI Date: Wed, 20 Feb 2019 19:40: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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vidwer+fbsdbugs@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, 20 Feb 2019 19:40:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235897 --- Comment #1 from vidwer+fbsdbugs@gmail.com --- While usb_quirk.c looks like this, the message (after the diff) shows witho= ut errors _but_ the disk's pretty name is gone in da0: Index: sys/dev/usb/quirk/usb_quirk.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/dev/usb/quirk/usb_quirk.c (revision 344363) +++ sys/dev/usb/quirk/usb_quirk.c (working copy) @@ -396,6 +396,8 @@ UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_IGNORE_RESIDUE), USB_QUIRK(SANDISK, SDCZ4_256, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_IGNORE_RESIDUE), + USB_QUIRK(SANDISK, SDCZ48_32, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, + UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_IGNORE_RESIDUE,UQ_MSC_NO_INQUIR= Y), USB_QUIRK(SANDISK, SDDR31, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_READ_CAP_OFFBY1), USB_QUIRK(SANDISK, IMAGEMATE_SDDR289, 0x0000, 0xffff, ugen1.3: at usbus1 umass0 on uhub3 umass0: on usbus1 umass0: SCSI over Bulk-Only; quirks =3D 0xc580 umass0:2:0: Attached to scbus2 da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 da0: < > Removable Direct Access SCSI-2 device da0: 400.000MB/s transfers da0: 29328MB (60063744 512 byte sectors) da0: quirks=3D0x2 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Wed Feb 20 21:48:26 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B549914DD8ED for ; Wed, 20 Feb 2019 21:48:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 457AF703A9 for ; Wed, 20 Feb 2019 21:48:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 05EBD14DD8EC; Wed, 20 Feb 2019 21:48:26 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D504D14DD8EB for ; Wed, 20 Feb 2019 21:48:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::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.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6E186703A8 for ; Wed, 20 Feb 2019 21:48:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id A514B12AC9 for ; Wed, 20 Feb 2019 21:48:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1KLmONW077338 for ; Wed, 20 Feb 2019 21:48:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1KLmOPE077337 for usb@FreeBSD.org; Wed, 20 Feb 2019 21:48:24 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 235897] quirky Sandisk SDCZ48-032G when using XHCI Date: Wed, 20 Feb 2019 21:48:24 +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: vidwer+fbsdbugs@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, 20 Feb 2019 21:48:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235897 --- Comment #2 from vidwer+fbsdbugs@gmail.com --- With +options CAMDEBUG +options=20=20=20=20=20=20=20 CAM_DEBUG_FLAGS=3D(CAM_DEBUG_INFO|CAM_DEBUG_PROBE|CAM_DEBUG_PERIPH) in sys/amd64/conf/GENERIC: ugen1.3: at usbus1 umass0 on uhub4 umass0: on usbus1 umass0: SCSI over Bulk-Only; quirks =3D 0xc100 umass0:2:0: Attached to scbus2 (noperiph:umass-sim0:0:-1:ffffffff): xpt_async(AC_PATH_REGISTERED) (probe0:umass-sim0:0:0:0): Periph created (probe0:umass-sim0:0:0:0): Probe started (probe0:umass-sim0:0:0:0): Probe PROBE_INVALID to PROBE_INQUIRY (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00=20 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Retrying command, 3 more tries remain (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00=20 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Retrying command, 2 more tries remain (probe0:umass-sim0:0:0:0): Probe PROBE_INQUIRY to PROBE_FULL_INQUIRY (probe0:umass-sim0:0:0:0): Probe PROBE_FULL_INQUIRY to PROBE_REPORT_LUNS (probe0:umass-sim0:0:0:0): Probe: 1 lun(s) reported (probe0:umass-sim0:0:0:0): Probe PROBE_REPORT_LUNS to PROBE_SUPPORTED_VPD_L= IST (probe0:umass-sim0:0:0:0): Probe PROBE_SUPPORTED_VPD_LIST to PROBE_DEVICE_ID (probe0:umass-sim0:0:0:0): Probe PROBE_DEVICE_ID to PROBE_EXTENDED_INQUIRY (probe0:umass-sim0:0:0:0): Probe PROBE_EXTENDED_INQUIRY to PROBE_SERIAL_NUM (probe0:umass-sim0:0:0:0): Probe PROBE_SERIAL_NUM to PROBE_TUR_FOR_NEGOTIAT= ION (probe0:umass-sim0:0:0:0): Probe PROBE_TUR_FOR_NEGOTIATION to PROBE_DONE (probe0:umass-sim0:0:0:0): Probe completed (probe0:umass-sim0:0:0:0): Periph invalidated (probe0:umass-sim0:0:0:0): Periph destroyed (noperiph:umass-sim0:0:0:0): xpt_async(AC_FOUND_DEVICE) (pass2:umass-sim0:0:0:0): Periph created pass2 at umass-sim0 bus 0 scbus2 target 0 lun 0 pass2: Removable Direct Access SPC-4 SCSI device pass2: Serial Number pass2: 400.000MB/s transfers (da0:umass-sim0:0:0:0): Periph created GEOM: new disk da0 da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 da0: Removable Direct Access SPC-4 SCSI device da0: Serial Number da0: 400.000MB/s transfers da0: 29328MB (60063744 512 byte sectors) da0: quirks=3D0x2 da0: Delete methods: (noperiph:umass-sim0:0:0:0): (da0:umass-sim0:0:0:0): xpt_async(AC_ADVINFO_CHANGED) daopen (da0:umass-sim0:0:0:0): daclose (da0:umass-sim0:0:0:0): daopen (da0:umass-sim0:0:0:0): daclose (da0:umass-sim0:0:0:0): daopen (da0:umass-sim0:0:0:0): daclose (da0:umass-sim0:0:0:0): daopen (da0:umass-sim0:0:0:0): daclose (da0:umass-sim0:0:0:0): daopen (da0:umass-sim0:0:0:0): daclose --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Feb 21 00:24:36 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08F2D14E24F3 for ; Thu, 21 Feb 2019 00:24:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 84C6B76DDC for ; Thu, 21 Feb 2019 00:24:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 39AEE14E24F2; Thu, 21 Feb 2019 00:24:35 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 270E814E24F0 for ; Thu, 21 Feb 2019 00:24:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::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.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AFA0076DDB for ; Thu, 21 Feb 2019 00:24:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id DBD15141FC for ; Thu, 21 Feb 2019 00:24:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1L0OXlm022173 for ; Thu, 21 Feb 2019 00:24:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1L0OXBB022166 for usb@FreeBSD.org; Thu, 21 Feb 2019 00:24: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 235897] quirky Sandisk SDCZ48-032G when using XHCI Date: Thu, 21 Feb 2019 00:24: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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vidwer+fbsdbugs@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: 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: Thu, 21 Feb 2019 00:24:36 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235897 --- Comment #3 from vidwer+fbsdbugs@gmail.com --- Created attachment 202209 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D202209&action= =3Dedit diff to solve CCB errors The attached patch (for usb_quirks.c) works for me. Original work was found using google with "CAM status: CCB request completed with an error" at https://forums.freebsd.org/threads/usb-disks-unusable-ccb-request-completed= -with-an-error.60419/ --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Feb 21 00:25:17 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2FFCE14E252E for ; Thu, 21 Feb 2019 00:25:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B502676E1D for ; Thu, 21 Feb 2019 00:25:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 6C46214E252D; Thu, 21 Feb 2019 00:25:16 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5ADD314E252B for ; Thu, 21 Feb 2019 00:25:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::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.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EB5A476E19 for ; Thu, 21 Feb 2019 00:25:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 125FC141FD for ; Thu, 21 Feb 2019 00:25:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1L0PEqV043778 for ; Thu, 21 Feb 2019 00:25:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1L0PEMe043771 for usb@FreeBSD.org; Thu, 21 Feb 2019 00:25:14 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 235897] quirky Sandisk SDCZ48-032G when using XHCI Date: Thu, 21 Feb 2019 00:25:15 +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: vidwer+fbsdbugs@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: attachments.isobsolete 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, 21 Feb 2019 00:25:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235897 vidwer+fbsdbugs@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #202201|0 |1 is obsolete| | --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Feb 21 03:15:55 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 82B8314EC922 for ; Thu, 21 Feb 2019 03:15:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1B1BB87361 for ; Thu, 21 Feb 2019 03:15:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id CFBCB14EC921; Thu, 21 Feb 2019 03:15:54 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BE58614EC920 for ; Thu, 21 Feb 2019 03:15:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::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.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4636187360 for ; Thu, 21 Feb 2019 03:15:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 70F5115AB2 for ; Thu, 21 Feb 2019 03:15:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1L3Fr07097384 for ; Thu, 21 Feb 2019 03:15:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1L3FrBj097380 for usb@FreeBSD.org; Thu, 21 Feb 2019 03:15:53 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 235897] quirky Sandisk SDCZ48-032G when using XHCI Date: Thu, 21 Feb 2019 03:15:53 +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: linimon@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: keywords 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, 21 Feb 2019 03:15:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235897 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri Feb 22 21:51:12 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 026CC14FC0E8 for ; Fri, 22 Feb 2019 21:51:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 87CDB89CA7 for ; Fri, 22 Feb 2019 21:51:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 4BAA314FC0E7; Fri, 22 Feb 2019 21:51:11 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3948214FC0E6 for ; Fri, 22 Feb 2019 21:51:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::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.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C75F489CA5 for ; Fri, 22 Feb 2019 21:51:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 016ECD217 for ; Fri, 22 Feb 2019 21:51:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1MLp9jm082029 for ; Fri, 22 Feb 2019 21:51:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1MLp9sM082028 for usb@FreeBSD.org; Fri, 22 Feb 2019 21:51:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 235897] quirky Sandisk SDCZ48-032G when using XHCI Date: Fri, 22 Feb 2019 21:51:10 +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: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: hselasky@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to 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, 22 Feb 2019 21:51:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235897 Hans Petter Selasky changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|usb@FreeBSD.org |hselasky@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.=