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/