From owner-freebsd-usb@freebsd.org Sun Jun 25 21:00:27 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 42705D99F6D for ; Sun, 25 Jun 2017 21:00:27 +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 mx1.freebsd.org (Postfix) with ESMTPS id 1F1347D8C2 for ; Sun, 25 Jun 2017 21:00:27 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v5PL01gn013591 for ; Sun, 25 Jun 2017 21:00:26 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201706252100.v5PL01gn013591@kenobi.freebsd.org> From: bugzilla-noreply@FreeBSD.org To: freebsd-usb@FreeBSD.org Subject: Problem reports for freebsd-usb@FreeBSD.org that need special attention Date: Sun, 25 Jun 2017 21:00:26 +0000 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2017 21:00:27 -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 1 problems total for which you should take action. From owner-freebsd-usb@freebsd.org Wed Jun 28 18:46:18 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EAE1BDA7A1B for ; Wed, 28 Jun 2017 18:46:18 +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 mx1.freebsd.org (Postfix) with ESMTPS id D92828317E for ; Wed, 28 Jun 2017 18:46:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v5SIkIQh040454 for ; Wed, 28 Jun 2017 18:46:18 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 220127] USB devices sometimes(!) not seen at boot time Date: Wed, 28 Jun 2017 18:46:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: guru@unixarea.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2017 18:46:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220127 --- Comment #1 from Matthias Apitz --- I'm saving after any failed boot (i.e. the card was not detected) the outpu= t of "dmesg" and it seems that there is a rule of failing: when the "13 ports ..= ." is on uhub1, the card is not detected, when it is on uhub0, it is detected;= see below the diff of a good and a bad boot;=20 why this order is changing between boots on the same hardware? $ diff dmesg-20170628-202351-bad.txt dmesg-20170628-202601-good.txt 10c10 < CPU: Intel(R) Celeron(R) 2955U @ 1.40GHz (1396.79-MHz K8-class CPU) --- > CPU: Intel(R) Celeron(R) 2955U @ 1.40GHz (1396.80-MHz K8-class CPU) 29c29 < Timecounter "TSC" frequency 1396794584 Hz quality 1000 --- > Timecounter "TSC" frequency 1396799544 Hz quality 1000 127d126 < ugen1.1: at usbus1 129,130c128,130 < uhub0: on usbus1 < uhub1: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 --- > ugen1.1: at usbus1 > uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 > uhub1: on usbus1 140,145c140,144 < uhub1: 13 ports with 13 removable, self powered ^^^^^^^^^^^ < uhub0: 2 ports with 2 removable, self powered < ugen1.2: at usbus1 < uhub2 on uhub0 < uhub2: on usbus1 < uhub2: 8 ports with 8 removable, self powered --- > uhub0: 13 ports with 13 removable, self powered ^^^^^^^^^^^ > uhub1: 2 ports with 2 removable, self powered > ugen0.2: at usbus0 > ugen0.3: at usbus0 > ugen0.4: at usbus0 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Jun 29 21:01:10 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 04A93DA583A for ; Thu, 29 Jun 2017 21:01:10 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (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 BD57273A0D for ; Thu, 29 Jun 2017 21:01:09 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [89.204.135.48] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1dQfP1-0004Tp-JR for freebsd-usb@freebsd.org; Thu, 29 Jun 2017 21:46:59 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id v5TJkwcV002599 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 29 Jun 2017 21:46:58 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id v5TJkwCD002598 for freebsd-usb@freebsd.org; Thu, 29 Jun 2017 21:46:58 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Thu, 29 Jun 2017 21:46:58 +0200 From: Matthias Apitz To: freebsd-usb@freebsd.org Subject: USB devices sometimes not seen at boot time Message-ID: <20170629194658.GA2488@c720-r314251> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.135.48 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2017 21:01:10 -0000 --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, I have the problem that on my netbook (an Acer C720) sometimes the USB devices are not seen at boot time while the bus is probed. I filed an issue as https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220127 which did not got any attention so far.=20 Meanwhile I was trying to find the rule for the problem and have investigated the 'dmesg' output for any "good" boot (i.e. the devices was seen) and compared with "bad" boot (when the device was not seen). There is a clear dependency of the order the USB bus is probed: This is from a good one: # egrep 'uhub|ugen' dmesg-20170628-202601-good.txt ugen0.1: <0x8086 XHCI root HUB> at usbus0 ugen1.1: at usbus1 uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 uhub1: on usbus1 uhub0: 13 ports with 13 removable, self powered uhub1: 2 ports with 2 removable, self powered ugen0.2: at usbus0 ugen0.3: at usbus0 ugen0.4: at usbus0 and this is from a bad one: # egrep 'uhub|ugen' dmesg-20170628-202351-bad.txt ugen1.1: at usbus1 ugen0.1: <0x8086 XHCI root HUB> at usbus0 uhub0: on usbus1 uhub1: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 uhub1: 13 ports with 13 removable, self powered uhub0: 2 ports with 2 removable, self powered ugen1.2: at usbus1 uhub2 on uhub0 uhub2: on = usbus1 uhub2: 8 ports with 8 removable, self powered The device in question it the "Identiv uTrust 3512 SAM slot Token" and the rule is: When XHCI is probed as ugen0.1 and later as uhub0, all is fine; else it fails. Any ideas on this? What makes the boot differ in this order? Thanks matthias --=20 Matthias Apitz, =E2=9C=89 guru@unixarea.de, =E2=8C=82 http://www.unixarea.d= e/ Public GnuPG key: http://www.unixarea.de/key.pub --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXmn7rBYYViyzy/vBR8z35Hb+nREFAllVWSsACgkQR8z35Hb+ nREkng/+PCYyQavRCdMH9NFSQ1WgJ7AnJx7Rr1ATuqcwOSmWkynmyCENfpx/g1u6 K5kqO9g27wrze8tbZ27GB8/RKuHr6/Y1+XwCi0Mf3DOWH0KUHjmqhe2yNzY7GxnT F39kPc/s2vsGPdxNjR56ouCWcKE3dAUSRq5xDl/3nA45t39BTxRn9iu469ermlfX P0XUpx4F+fdpQy5nMXTLhl0/2xrl7xuMNv7sS7ml7vNwPOZUqcgx+KgedxE5atek 7o3pqm1+n9QpHu243g9YhGgADXjeafVzqlSuuyOsZVNJqR1y1OEbSfqc3Mg9NHLX DJEzR4nGm7y8uoNYv1eT/ysDb3b4W0gSqKinV1qXbEwmOidfrxfFuzOgwCxygfRa Ni69an0TmXPNeBgjuyYswO567ZVvdBQkbG+w56syPTxAEekJjNyBzAFj4WHXJ6xH 17EnyGF3sjjPdNkrmmdby7RZoRVsfaQ0yHiptP+xN5P5YGTZo8ehFHuzqgVUTwPv 66ToHBaMvjhym1qnx7F4LjrbA+QZZl7OOAYlH7Ol5p1IVuWLszjyhiYfUWii47bR 4M1QtAH+WAGQP/h9Lkydeu3rFOa0I8IdHBRIF3739kA3co/yBiNNeft73V+YV22t uZ0JrNoH3DRIL4j4aUC/Edecoj7JHwoyhMkrs3qBmWxRW1BN5Ok= =RRZn -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4-- From owner-freebsd-usb@freebsd.org Thu Jun 29 21:29:00 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 26DC5DA5ED2 for ; Thu, 29 Jun 2017 21:29:00 +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 E525874639 for ; Thu, 29 Jun 2017 21:28:59 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (216-72-41-245.barak.net.il [216.72.41.245]) (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 837ED260608; Thu, 29 Jun 2017 23:28:56 +0200 (CEST) Subject: Re: USB devices sometimes not seen at boot time To: Matthias Apitz , freebsd-usb@freebsd.org References: <20170629194658.GA2488@c720-r314251> From: Hans Petter Selasky Message-ID: <11fac898-a4bc-8337-2d84-8777d136c7e0@selasky.org> Date: Thu, 29 Jun 2017 23:26:48 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <20170629194658.GA2488@c720-r314251> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2017 21:29:00 -0000 On 06/29/17 21:46, Matthias Apitz wrote: > > Hello, > > I have the problem that on my netbook (an Acer C720) sometimes the USB > devices are not seen at boot time while the bus is probed. I filed an > issue as https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220127 which > did not got any attention so far. > > Meanwhile I was trying to find the rule for the problem and have > investigated the 'dmesg' output for any "good" boot (i.e. the devices > was seen) and compared with "bad" boot (when the device was not seen). > There is a clear dependency of the order the USB bus is probed: > > This is from a good one: > > # egrep 'uhub|ugen' dmesg-20170628-202601-good.txt > ugen0.1: <0x8086 XHCI root HUB> at usbus0 > ugen1.1: at usbus1 > uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 > uhub1: on usbus1 > uhub0: 13 ports with 13 removable, self powered > uhub1: 2 ports with 2 removable, self powered > ugen0.2: at usbus0 > ugen0.3: at usbus0 > ugen0.4: at usbus0 > > and this is from a bad one: > > # egrep 'uhub|ugen' dmesg-20170628-202351-bad.txt > ugen1.1: at usbus1 > ugen0.1: <0x8086 XHCI root HUB> at usbus0 > uhub0: on usbus1 > uhub1: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 > uhub1: 13 ports with 13 removable, self powered > uhub0: 2 ports with 2 removable, self powered > ugen1.2: at usbus1 > uhub2 on uhub0 > uhub2: on usbus1 > uhub2: 8 ports with 8 removable, self powered > > The device in question it the "Identiv uTrust 3512 SAM slot Token" and > the rule is: When XHCI is probed as ugen0.1 and later as uhub0, all is > fine; else it fails. > > Any ideas on this? What makes the boot differ in this order? > Hi, USB explores different root HUBs ugen0.1, ugenX.1 and so on in parallell and not serial. Maybe a race or electrical issue is causing the order to fail. You can try compiling a kernel without USB support and loading xhci, ehci, ohci and uhci by a script using kldload. Alternate the loading order. --HPS From owner-freebsd-usb@freebsd.org Fri Jun 30 06:34:30 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A70C6D89B32 for ; Fri, 30 Jun 2017 06:34:30 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (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 6975E822DB for ; Fri, 30 Jun 2017 06:34:30 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [89.204.130.220] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1dQpVa-0000Xu-4q; Fri, 30 Jun 2017 08:34:26 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id v5U6YMEX011778 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 30 Jun 2017 08:34:23 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id v5U6YLh5011768; Fri, 30 Jun 2017 08:34:21 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Fri, 30 Jun 2017 08:34:21 +0200 From: Matthias Apitz To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org Subject: Re: USB devices sometimes not seen at boot time Message-ID: <20170630063421.GB10425@c720-r314251> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , Hans Petter Selasky , freebsd-usb@freebsd.org References: <20170629194658.GA2488@c720-r314251> <11fac898-a4bc-8337-2d84-8777d136c7e0@selasky.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="TakKZr9L6Hm6aLOc" Content-Disposition: inline In-Reply-To: <11fac898-a4bc-8337-2d84-8777d136c7e0@selasky.org> X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.130.220 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2017 06:34:30 -0000 --TakKZr9L6Hm6aLOc Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable El d=C3=ADa jueves, junio 29, 2017 a las 11:26:48p. m. +0200, Hans Petter S= elasky escribi=C3=B3: > > # egrep 'uhub|ugen' dmesg-20170628-202601-good.txt > > ugen0.1: <0x8086 XHCI root HUB> at usbus0 > > ugen1.1: at usbus1 > > uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbu= s0 > > uhub1: on usbus1 > > uhub0: 13 ports with 13 removable, self powered > > uhub1: 2 ports with 2 removable, self powered > > ugen0.2: at usbus0 > > ugen0.3: at usbus0 > > ugen0.4: at usbus0 > >=20 > > and this is from a bad one: > >=20 > > # egrep 'uhub|ugen' dmesg-20170628-202351-bad.txt > > ugen1.1: at usbus1 > > ugen0.1: <0x8086 XHCI root HUB> at usbus0 > > uhub0: on usbus1 > > uhub1: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbu= s0 > > uhub1: 13 ports with 13 removable, self powered > > uhub0: 2 ports with 2 removable, self powered > > ugen1.2: at usbus1 > > uhub2 on uhub0 > > uhub2: = on usbus1 > > uhub2: 8 ports with 8 removable, self powered > >=20 > > The device in question it the "Identiv uTrust 3512 SAM slot Token" and > > the rule is: When XHCI is probed as ugen0.1 and later as uhub0, all is > > fine; else it fails. > >=20 > > Any ideas on this? What makes the boot differ in this order? > >=20 >=20 > Hi, >=20 > USB explores different root HUBs ugen0.1, ugenX.1 and so on in parallell= =20 > and not serial. Maybe a race or electrical issue is causing the order to= =20 > fail. You can try compiling a kernel without USB support and loading=20 > xhci, ehci, ohci and uhci by a script using kldload. Alternate the=20 > loading order. Hi, Thanks for the hint. I disabled the three entries for uhci, ohci and ehci: # USB support options USB_DEBUG # enable debug msgs # device uhci # UHCI PCI->USB interface # device ohci # OHCI PCI->USB interface # device ehci # EHCI PCI->USB interface (USB 2.0) device xhci # XHCI PCI->USB interface (USB 3.0) device usb # USB Bus (required) device ukbd # Keyboard device umass # Disks/Mass storage - Requires scb= us and da and maybe this will help already. I will let you know and update the PR later the day. matthias --=20 Matthias Apitz, =E2=9C=89 guru@unixarea.de, =E2=8C=82 http://www.unixarea.d= e/ =E2=98=8E +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub --TakKZr9L6Hm6aLOc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXmn7rBYYViyzy/vBR8z35Hb+nREFAllV8OoACgkQR8z35Hb+ nRE0+Q//XmsMYL4u1z3SY4QairQ1KaObgEhA5sRqS68PkLQJ1gj24cyKdHXzEJaC BDSZfQoTnq0EKaPRDvtYiPuTN8apYGYwfDhjz/S24H+mwIK0U+YuL7mousdzSgOQ GQhePspJWC0PIVzTQt+VxBgeGoS//iWa5AKUVAGBHB9DtbZtNLyxK3yhElZI7ea/ 6RRGICewfxyA3VU8F1d4raU+nVKNcmtwK9gc529IPHT7/u7GdHU006rkDbXANp1c TO/LoZF2Xd8jZ6EVWi6vcnhUCf8WqFeKjU2zT9OmW9hizgjrFGCxChOwahM5pnuX YjNdD0tAn+rY6oDTq1wjm2AbG8Lb77gXrcwriozqEHGw60oY77iiGfAb9y/Vqyuh H3A3sCuepT87ee/IyiY68uOnT9uAkzYxugqk1F4izb0E8HK0sKlpkhpsQY+65o/Z 4XDPfgGtll59wWKAksNc2dX6cb8LMn9KhnmQzcGSEB4SwGcofoS0e1HGbqiC2TDQ Tb5tW17HOR/rfvSuIwZX3PwlvhGNV8w5jhR3QHmwMMF48N7AvUK5X+TRA0PU2hYi jez4Mw+s2YRAjo2OKT05m9MBONcyZMlYxbyC/FdXAPkH3l9aEdaUZElHkT+Kj/TB egfSAbvWRbP1cf81UCzm0yV7edFklunCITFuigLWHIxWMhD2Tns= =raW4 -----END PGP SIGNATURE----- --TakKZr9L6Hm6aLOc-- From owner-freebsd-usb@freebsd.org Fri Jun 30 10:30:14 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 987C7D8DC3D for ; Fri, 30 Jun 2017 10:30:14 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (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 59CCA39E9 for ; Fri, 30 Jun 2017 10:30:13 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [2.247.248.57] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1dQtBi-0005EQ-Bq; Fri, 30 Jun 2017 12:30:10 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id v5UAU53a002424 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 30 Jun 2017 12:30:06 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id v5UAU4k2002423; Fri, 30 Jun 2017 12:30:04 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Fri, 30 Jun 2017 12:30:03 +0200 From: Matthias Apitz To: Hans Petter Selasky , freebsd-usb@freebsd.org Subject: Re: USB devices sometimes not seen at boot time Message-ID: <20170630103003.GA2372@c720-r314251> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , Hans Petter Selasky , freebsd-usb@freebsd.org References: <20170629194658.GA2488@c720-r314251> <11fac898-a4bc-8337-2d84-8777d136c7e0@selasky.org> <20170630063421.GB10425@c720-r314251> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline In-Reply-To: <20170630063421.GB10425@c720-r314251> X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 2.247.248.57 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2017 10:30:14 -0000 --AhhlLboLdkugWU4S Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable El d=C3=ADa viernes, junio 30, 2017 a las 08:34:21a. m. +0200, Matthias Api= tz escribi=C3=B3: > Hi, >=20 > Thanks for the hint. I disabled the three entries for uhci, ohci and ehci: >=20 > # USB support > options USB_DEBUG # enable debug msgs > # device uhci # UHCI PCI->USB interface > # device ohci # OHCI PCI->USB interface > # device ehci # EHCI PCI->USB interface (USB 2.= 0) > device xhci # XHCI PCI->USB interface (USB 3.= 0) > device usb # USB Bus (required) > device ukbd # Keyboard > device umass # Disks/Mass storage - Requires s= cbus and da >=20 > and maybe this will help already. I will let you know and update the PR > later the day. The new kernel detects fine the uTrust Token on USB: $ dmesg | egrep 'ugen|uhub|xhci|ehci' xhci0: mem 0xe0500000-0xe050ffff a= t device 20.0 on pci0 xhci0: 32 bytes context size, 64-bit DMA xhci0: Port routing mask set to 0xffffffff usbus0 on xhci0 ugen0.1: <0x8086 XHCI root HUB> at usbus0 uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 uhub0: 13 ports with 13 removable, self powered ugen0.2: at usbus0 ugen0.3: at usbus0 ugen0.4: at usbus0 Thanks again. matthias --=20 Matthias Apitz, =E2=9C=89 guru@unixarea.de, =E2=8C=82 http://www.unixarea.d= e/ =E2=98=8E +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub --AhhlLboLdkugWU4S Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXmn7rBYYViyzy/vBR8z35Hb+nREFAllWKCQACgkQR8z35Hb+ nRHfzQ/7BTE9oVMc3IzrdDjFQk0ajzi4J/4/F8Thh/6hVarSL09PpPJpeCGGHcF3 JB9S49WWEF/3SGi4Vwka2PcDB4zMhto2rVEG35Iz+obZBtZsMeCqnW2qXXl+X7LV d+qeoOfMJjYWJ3F/dd/C2ivVa8uQ2Ml8E1D4EeeVcIgtK/SshKrZHN4zi8Xkx5sd Pna5yqWvLuVxF/crApPiICBlJE1Ucw9fotUtTsViiI2eqkc8NARuRN1tP4Jprrpo pekfjJH1Tx+q9AuBDnvR9HefanJ0cBGmmiPJKBAyxyKUGGtCncvwJrpGoOSdHqBk 9Ekrms/yhq+4GKsHOob3Zm2hwKChtWLWBDQafI1aWWPWI+G0PAAt3UqwW8zcVSBC o+OrNYgOTeTTulVFYKsRItWQdJ66UqnOktHFXz9XL83fwfB8aiTEUB35AQjHGlyU x2SuZOcKNzF20E26ewi8+u/1F1kAVoGZ+0Ija/Yq7a7DcRoxuGFo3n25hXIHfZoh zC0RdXCJS9zW6DMIEkykKBZ4NWBa5tT3pLXi9lfYeLWTlntb3oCcPq/jgsHQeNaF PUT6BkQHVNnjMy3cGFqAOUBt1s17cnPBC3O4ntAmpdOrJU67yRkx7F8t7OvB0OzY hEhrPOcVrA7pbEZ1QkLdXA8THmzaJX+CE6ieYN6ohTBTfZRe0fc= =edbG -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S-- From owner-freebsd-usb@freebsd.org Fri Jun 30 10:33:26 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 168DFD8DDBE for ; Fri, 30 Jun 2017 10:33:26 +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 mx1.freebsd.org (Postfix) with ESMTPS id 03C573CC9 for ; Fri, 30 Jun 2017 10:33:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v5UAXPtw031003 for ; Fri, 30 Jun 2017 10:33:25 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 220127] USB devices sometimes(!) not seen at boot time Date: Fri, 30 Jun 2017 10:33:26 +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: guru@unixarea.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2017 10:33:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220127 --- Comment #2 from Matthias Apitz --- I followed a hints from Hans (HPS) and removed the conflicting USB devices = from the kernel, esp. the EHCI device. > Thanks for the hint. I disabled the three entries for uhci, ohci and ehci: >=20 > # USB support > options USB_DEBUG # enable debug msgs > # device uhci # UHCI PCI->USB interface > # device ohci # OHCI PCI->USB interface > # device ehci # EHCI PCI->USB interface (USB 2.= 0) > device xhci # XHCI PCI->USB interface (USB 3.= 0) > device usb # USB Bus (required) > device ukbd # Keyboard > device umass # Disks/Mass storage - Requires s= cbus and da >=20 > and maybe this will help already. I will let you know and update the PR > later the day. The new kernel now detects fine the uTrust Token on USB: $ dmesg | egrep 'ugen|uhub|xhci|ehci' xhci0: mem 0xe0500000-0xe050ffff at device 20.0 on pci0 xhci0: 32 bytes context size, 64-bit DMA xhci0: Port routing mask set to 0xffffffff usbus0 on xhci0 ugen0.1: <0x8086 XHCI root HUB> at usbus0 uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 uhub0: 13 ports with 13 removable, self powered ugen0.2: at usbus0 ugen0.3: at usbus0 ugen0.4: at usbus0 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri Jun 30 10:48:16 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8A21D8E30F for ; Fri, 30 Jun 2017 10:48:16 +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 7FE886440F for ; Fri, 30 Jun 2017 10:48:15 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (216-72-41-245.barak.net.il [216.72.41.245]) (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 5CAEC260615; Fri, 30 Jun 2017 12:48:13 +0200 (CEST) Subject: Re: USB devices sometimes not seen at boot time To: Matthias Apitz , freebsd-usb@freebsd.org References: <20170629194658.GA2488@c720-r314251> <11fac898-a4bc-8337-2d84-8777d136c7e0@selasky.org> <20170630063421.GB10425@c720-r314251> <20170630103003.GA2372@c720-r314251> From: Hans Petter Selasky Message-ID: Date: Fri, 30 Jun 2017 12:46:06 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <20170630103003.GA2372@c720-r314251> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2017 10:48:16 -0000 On 06/30/17 12:30, Matthias Apitz wrote: > El día viernes, junio 30, 2017 a las 08:34:21a. m. +0200, Matthias Apitz escribió: > >> Hi, >> >> Thanks for the hint. I disabled the three entries for uhci, ohci and ehci: >> >> # USB support >> options USB_DEBUG # enable debug msgs >> # device uhci # UHCI PCI->USB interface >> # device ohci # OHCI PCI->USB interface >> # device ehci # EHCI PCI->USB interface (USB 2.0) >> device xhci # XHCI PCI->USB interface (USB 3.0) >> device usb # USB Bus (required) >> device ukbd # Keyboard >> device umass # Disks/Mass storage - Requires scbus and da >> >> and maybe this will help already. I will let you know and update the PR >> later the day. > > The new kernel detects fine the uTrust Token on USB: > > $ dmesg | egrep 'ugen|uhub|xhci|ehci' > xhci0: mem 0xe0500000-0xe050ffff at device 20.0 on pci0 > xhci0: 32 bytes context size, 64-bit DMA > xhci0: Port routing mask set to 0xffffffff > usbus0 on xhci0 > ugen0.1: <0x8086 XHCI root HUB> at usbus0 > uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 > uhub0: 13 ports with 13 removable, self powered > ugen0.2: at usbus0 > ugen0.3: at usbus0 > ugen0.4: at usbus0 > OK, nice to know. We might want to delay the attachment of the ehci/ohci/uhci drivers after xhci by default if this is a widespread issue. --HPS From owner-freebsd-usb@freebsd.org Fri Jun 30 12:43:23 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 82572D90F13 for ; Fri, 30 Jun 2017 12:43:23 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (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 4E32667744 for ; Fri, 30 Jun 2017 12:43:23 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [2.247.253.160] (helo=[10.133.161.160]) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1dQvGZ-0000Mc-Lj; Fri, 30 Jun 2017 14:43:19 +0200 From: Matthias Apitz To: Hans Petter Selasky Cc: Subject: Re: USB devices sometimes not seen at boot time Date: Fri, 30 Jun 2017 14:43:16 +0200 User-Agent: Dekko/0.6.20; Qt/5.4.1; ubuntumirclient; Linux; MIME-Version: 1.0 Message-ID: <0184a9f0-ce77-46d3-a4a5-defe7ef33e4c@unixarea.de> In-Reply-To: References: <20170629194658.GA2488@c720-r314251> <11fac898-a4bc-8337-2d84-8777d136c7e0@selasky.org> <20170630063421.GB10425@c720-r314251> <20170630103003.GA2372@c720-r314251> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 2.247.253.160 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2017 12:43:23 -0000 On Friday, 30 June 2017 12:46:06 CEST, Hans Petter Selasky=20 wrote: > On 06/30/17 12:30, Matthias Apitz wrote: >> El d=C3=ADa viernes, junio 30, 2017 a las 08:34:21a. m. +0200,=20 >> Matthias Apitz escribi=C3=B3: >>=20 >>> Hi, >>> >>> Thanks for the hint. I disabled the three entries for uhci,=20 >>> ohci and ehci: >>> >>> # USB support >>> options USB_DEBUG # enable debug msgs >>> # device uhci # UHCI PCI->USB interface >>> # device ohci # OHCI PCI->USB interface >>> # device ehci # EHCI PCI->USB=20 >>> interface (USB 2.0) >>> device xhci # XHCI PCI->USB=20 >>> interface (USB 3.0) >>> device usb # USB Bus (required) >>> device ukbd # Keyboard >>> device umass # Disks/Mass storage=20 >>> - Requires scbus and da >>> >>> and maybe this will help already. I will let you know and update the PR >>> later the day. >>=20 >> The new kernel detects fine the uTrust Token on USB: >>=20 >> $ dmesg | egrep 'ugen|uhub|xhci|ehci' >> xhci0: mem=20 >> 0xe0500000-0xe050ffff at device 20.0 on pci0 >> xhci0: 32 bytes context size, 64-bit DMA >> xhci0: Port routing mask set to 0xffffffff >> usbus0 on xhci0 >> ugen0.1: <0x8086 XHCI root HUB> at usbus0 >> uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 >> uhub0: 13 ports with 13 removable, self powered >> ugen0.2: at usbus0 >> ugen0.3: at usbus0 >> ugen0.4: at usbus0 >>=20 >=20 > OK, nice to know. We might want to delay the attachment of the=20 > ehci/ohci/uhci drivers after xhci by default if this is a widespread issue.= >=20 If you want me to test some patch/changes, just let me know. matthias --=20 Sent from my Ubuntu phone http://www.unixarea.de/