From owner-freebsd-usb@freebsd.org Tue Jul 24 21:00:58 2018 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 904A91055FB2 for ; Tue, 24 Jul 2018 21:00:58 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2a00:14b0:4200:32e0::1ea]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gilb.zs64.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3414E7FEB8 for ; Tue, 24 Jul 2018 21:00:58 +0000 (UTC) (envelope-from stb@lassitu.de) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id 5827F1A9438; Tue, 24 Jul 2018 21:00:50 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: USB problems on PC Engines APU2C4 From: Stefan Bethke In-Reply-To: <6a8453c5-fac7-31dc-c899-23a391c0230d@sentex.net> Date: Tue, 24 Jul 2018 23:00:49 +0200 Cc: freebsd-usb@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <819CF258-CD67-4E8B-9267-AC47A70EDCB0@lassitu.de> References: <43997AE2-089D-48AE-9285-9B3C6864DC9D@lassitu.de> <4d1b92dc-d675-ac9b-63d9-7239b902b73d@selasky.org> <03FBBC5B-D359-41D8-9508-B3890EDEF540@lassitu.de> <27C05F37-7D65-48E9-A7D3-26B555002081@lassitu.de> <6a8453c5-fac7-31dc-c899-23a391c0230d@sentex.net> To: Mike Tancsa X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jul 2018 21:00:58 -0000 > Am 24.07.2018 um 21:13 schrieb Mike Tancsa : >=20 > On 7/24/2018 2:48 PM, Stefan Bethke wrote: >> The USB2 ports on the APU are not exposed in the case, and I don=E2=80=99= t really feel like trying to drill a hole into the case to try and get = the adapter cable out. The only ports available on the case are the two = USB3 ports. >>=20 >> How could I go about debugging the XHCI driver that apparently has = trouble communicating? Is there some more debug bits I can enable? >=20 >=20 > Not sure about debugging the xhci driver, but if you compile out the > xhci driver from your kernel, and then after the APU2 has booted load = it > (or leave it unloaded) does the USB device behave as expected on its > normal external ports ? I had to do this on an older version of the > board to work around some timing issues. Thank you for that suggestion! I=E2=80=99ve compiled and installed = MINIMAL, and am loading xhci.ko through rc.conf. The first reboot was = successful, but since then I=E2=80=99ve had one problematic one out of = five more. The one problematic one looked like it only affected the = Huawei modem, though, so it might be something specific to that device. The Kingston thumb drive appears to be probed quickly, and I can = transfer ~24 MB/s with dd, which seems reasonable for a budget USB2 = stick. I=E2=80=99ll see how stable this is over the next couple of days; = hopefully this workaround will allow me to put the box into production. If Hans-Petter or anyone else would like me to dig into xhci further, = I=E2=80=99m happy to do that, but I will need some pointers. I could = compile the module with USB_DEBUG and post the output, if that would be = helpful, for example. Stefan --=20 Stefan Bethke Fon +49 151 14070811