Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jan 2019 11:01:05 +0100
From:      Hans Petter Selasky <hps@selasky.org>
To:        Ludovic Rousseau <ludovic.rousseau@gmail.com>, freebsd-usb@freebsd.org
Subject:   Re: r342378: usbconfig takes 3-5 minutes to read the bus
Message-ID:  <64a0f5c6-ea58-6fdb-8d94-dd442619cde9@selasky.org>
In-Reply-To: <20190104080227.GB2604@c720-r342378>
References:  <20190102154701.GA13702@c720-r342378> <2f013cf9-b073-04fd-9932-079f86fa24b1@selasky.org> <d0f569af-342f-dac8-8f6d-4fc0ff21924e@selasky.org> <20190103060431.GA2711@c720-r342378> <5950d771-ffa9-9325-b102-295fd092052e@selasky.org> <20190103094850.GA2595@c720-r342378> <076e01a2-51e7-b140-28c9-1c58d034327b@selasky.org> <20190103113512.GA2547@c720-r342378> <34dfc02b-b252-9f38-a905-31a713012c6a@selasky.org> <CAGstE8B6RxBqBG9uqUXc60JcsB6=-QcmN1Q4kTgbgwoWGVaNyA@mail.gmail.com> <20190104080227.GB2604@c720-r342378>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/4/19 9:02 AM, Matthias Apitz wrote:
> We definitely should resolve this before anything else.
> 
> The output of the 'usbconfig list' was:
> 
> # usbconfig list
> ugen1.1: <Intel EHCI root HUB> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
> ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
> ugen0.2: <SunplusIT Inc HD WebCam> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
> ugen1.2: <vendor 0x8087 product 0x8000> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
> ugen0.3: <vendor 0x0489 product 0xe056> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
> ugen0.4: <HID Global OMNIKEY 6121 Smart Card Reader> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps)
> pwr=ON (100mA)
> 
> Any comments on this ugen1.X?

Hi,

Can you collect USB HUB debug messages in dmesg?

sysctl hw.usb.uhub.debug=16

Then reproduce then hang and send relevant output from "/var/log/messages".

It seems to me like something is constantly keeping the USB enumeration 
thread busy. This can for example be:

1) fake USB plug/unplug events
2) pcscd going into a loop

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64a0f5c6-ea58-6fdb-8d94-dd442619cde9>