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--