Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jan 2019 07:04:31 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: r342378: usbconfig takes 3-5 minutes to read the bus
Message-ID:  <20190103060431.GA2711@c720-r342378>
In-Reply-To: <d0f569af-342f-dac8-8f6d-4fc0ff21924e@selasky.org>
References:  <20190101135156.GA3557@c720-r342378> <3ac801b2-899a-ee09-1398-ecab6ec7130a@selasky.org> <20190102104853.GA2622@c720-r342378> <4bf80067-8e3a-572f-c1b5-ae83b1c40c22@selasky.org> <20190102154701.GA13702@c720-r342378> <2f013cf9-b073-04fd-9932-079f86fa24b1@selasky.org> <d0f569af-342f-dac8-8f6d-4fc0ff21924e@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

El d=C3=ADa mi=C3=A9rcoles, enero 02, 2019 a las 05:04:42p. m. +0100, Hans =
Petter Selasky escribi=C3=B3:

> Let's move this thread freebsd-usb only.
>=20
> Have a look here:
>=20
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231076

I read carefully through the PR 231076 (and deleted freebsd-current from
the mail thread). The PR does not match my problem.

I think, we should isolate the problem from PCSC and focus (first) on the
question why are calls to usbconfig(8) are not answered anymore
*without* any kind of PCSC software being involved as I wrote in the
originating email of this thread. Here it is again in case in got lost
while talking about PCSC:

If it would help, I could file a new separate PR with the dates below.



I updated my amd64 laptop Acer C720 from r314251 to r342378. ...

=2E... To separate the problem from GnuPG and it's software stack, I have h=
ere some
small tests with usbconfig(8). First usbconfig reads fine the bus, but then
it takes 3-5 minutes to get any results, see below.

Please, what can I check or enable to get additional logs for the problem.

=2E..

Ther first 3 commands usbconfig(8) are answered immediately, then it
takes minutes to get any response. Why?

# usbconfig list
ugen1.1: <Intel EHCI root HUB> at usbus1, cfg=3D0 md=3DHOST spd=3DHIGH (480=
Mbps) pwr=3DSAVE (0mA)
ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=3D0 md=3DHOST spd=3DSUPER (5=
=2E0Gbps) pwr=3DSAVE (0mA)
ugen0.2: <SunplusIT Inc HD WebCam> at usbus0, cfg=3D0 md=3DHOST spd=3DHIGH =
(480Mbps) pwr=3DON (500mA)
ugen1.2: <vendor 0x8087 product 0x8000> at usbus1, cfg=3D0 md=3DHOST spd=3D=
HIGH (480Mbps) pwr=3DSAVE (0mA)
ugen0.3: <vendor 0x0489 product 0xe056> at usbus0, cfg=3D0 md=3DHOST spd=3D=
FULL (12Mbps) pwr=3DON (100mA)
ugen0.4: <HID Global OMNIKEY 6121 Smart Card Reader> at usbus0, cfg=3D0 md=
=3DHOST spd=3DFULL (12Mbps) pwr=3DON (100mA)


# usbconfig -d ugen0.4 list
ugen0.4: <HID Global OMNIKEY 6121 Smart Card Reader> at usbus0, cfg=3D0 md=
=3DHOST spd=3DFULL (12Mbps) pwr=3DON (100mA)


# usbconfig -d ugen0.4 dump_device_desc
ugen0.4: <HID Global OMNIKEY 6121 Smart Card Reader> at usbus0, cfg=3D0 md=
=3DHOST spd=3DFULL (12Mbps) pwr=3DON (100mA)

  bLength =3D 0x0012
  bDescriptorType =3D 0x0001
  bcdUSB =3D 0x0200
  bDeviceClass =3D 0x0000  <Probed by interface class>
  bDeviceSubClass =3D 0x0000
  bDeviceProtocol =3D 0x0000
  bMaxPacketSize0 =3D 0x0008
  idVendor =3D 0x076b
  idProduct =3D 0x6632
  bcdDevice =3D 0x0103
  iManufacturer =3D 0x0001  <HID Global>
  iProduct =3D 0x0002  <OMNIKEY 6121 Smart Card Reader>
  iSerialNumber =3D 0x0000  <no string>
  bNumConfigurations =3D 0x0001


>From now it takes 3++ minutes to get the information from USB:

# date ; usbconfig -d ugen0.4 dump_device_desc ; date
Tue Jan  1 11:51:55 CET 2019
ugen0.4: <HID Global OMNIKEY 6121 Smart Card Reader> at usbus0, cfg=3D0 md=
=3DHOST spd=3DFULL (12Mbps) pwr=3DON (100mA)

  bLength =3D 0x0012
  bDescriptorType =3D 0x0001
  bcdUSB =3D 0x0200
  bDeviceClass =3D 0x0000  <Probed by interface class>
  bDeviceSubClass =3D 0x0000
  bDeviceProtocol =3D 0x0000
  bMaxPacketSize0 =3D 0x0008
  idVendor =3D 0x076b
  idProduct =3D 0x6632
  bcdDevice =3D 0x0103
  iManufacturer =3D 0x0001  <HID Global>
  iProduct =3D 0x0002  <OMNIKEY 6121 Smart Card Reader>
  iSerialNumber =3D 0x0000  <no string>
  bNumConfigurations =3D 0x0001

Tue Jan  1 11:54:59 CET 2019

# date ; usbconfig -d ugen0.4 dump_device_desc ; date
Tue Jan  1 14:30:19 CET 2019
ugen0.4: <HID Global OMNIKEY 6121 Smart Card Reader> at usbus0, cfg=3D0 md=
=3DHOST spd=3DFULL (12Mbps) pwr=3DON (100mA)

  bLength =3D 0x0012
  bDescriptorType =3D 0x0001
  bcdUSB =3D 0x0200
  bDeviceClass =3D 0x0000  <Probed by interface class>
  bDeviceSubClass =3D 0x0000
  bDeviceProtocol =3D 0x0000
  bMaxPacketSize0 =3D 0x0008
  idVendor =3D 0x076b
  idProduct =3D 0x6632
  bcdDevice =3D 0x0103
  iManufacturer =3D 0x0001  <HID Global>
  iProduct =3D 0x0002  <OMNIKEY 6121 Smart Card Reader>
  iSerialNumber =3D 0x0000  <no string>
  bNumConfigurations =3D 0x0001

Tue Jan  1 14:34:05 CET 2019

# tail -f /var/log/messages
=2E..
Jan  1 14:34:30 c720-r342378 kernel: ugen0.4: <HID Global OMNIKEY 6121 Smar=
t Card Reader> at usbus0 (disconnected)
Jan  1 14:34:36 c720-r342378 kernel: ugen0.4: <HID Global OMNIKEY 6121 Smar=
t Card Reader> at usbus0


# date ; usbconfig -d ugen0.4 dump_device_desc ; date
Tue Jan  1 14:34:46 CET 2019
ugen0.4: <HID Global OMNIKEY 6121 Smart Card Reader> at usbus0, cfg=3D0 md=
=3DHOST spd=3DFULL (12Mbps) pwr=3DON (100mA)

  bLength =3D 0x0012
  bDescriptorType =3D 0x0001
  bcdUSB =3D 0x0200
  bDeviceClass =3D 0x0000  <Probed by interface class>
  bDeviceSubClass =3D 0x0000
  bDeviceProtocol =3D 0x0000
  bMaxPacketSize0 =3D 0x0008
  idVendor =3D 0x076b
  idProduct =3D 0x6632
  bcdDevice =3D 0x0103
  iManufacturer =3D 0x0001  <HID Global>
  iProduct =3D 0x0002  <OMNIKEY 6121 Smart Card Reader>
  iSerialNumber =3D 0x0000  <no string>
  bNumConfigurations =3D 0x0001

Tue Jan  1 14:39:13 CET 2019


--=20
Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ +49-176=
-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
October, 7 -- The GDR was different: Peace instead of Bundeswehr and wars, =
Druschba
instead of Nazis, to live instead of to survive.

--BXVAT5kNtrzKuDFl
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEXmn7rBYYViyzy/vBR8z35Hb+nREFAlwtpewACgkQR8z35Hb+
nRH2Ag/8CAQxF8iHlaFGmyVzCyWyopFrU12SOTt6UBAVwyqEQvsZad12vCdCY6X9
FruMp/z5shUX69OX8TsYduVnFxaORQADojLTaQes5zuVszl+5SypbVOxeP+mzTL0
/QB4v1RdOKNaz55GuKjWh8bNRdwexywM6UGQBKiPEu3uxs2XwFiGjHBBc9A6xGYr
9Fino1jt9uU4rR2KR0hJFSgt0QlES1y40EgOxEzBpGUYTPB4jUWY4OW/RCDfMhHZ
zoD/QXa4LIUh7AhZlRt41Ul7mnR8NeeFwtfZwvpMpLXoJaGFDrTTjFeU9av1AWWn
6MWV/0V2cdrUrTvIpcRLSFMjoME3kt8t0t8bgvMBH7MHhJfoQuP9F4qSj0jFj7O3
l/qUBnVST7T1r3SSDXDKLUfUxTUWG4Vo0Djg/K0gh+DVWFkM34Jpeg5y/urtgk9K
J4AZVT4SGFoRv9tEpkkJ6M8Dd3i2g/cwac38Xd5gqlH0nQBUa8CIAzw+mkR+elta
UlDX3yOFcY5tPMIGsecqf4KwkMeze07qDRfD/arRWo7AUrHyT6nH2/JuDcJN4Ypm
adt8C+aMx5+TpFp3JjMCbIc5lY/YfCc7QqybN3ZalXts9J4H3xC0DM84gP6wzt1d
CGiAjnMoHRWGejKg+RyPxR5nMpEuCPSPbmepypPjpLM3SiWdfVU=
=lcco
-----END PGP SIGNATURE-----

--BXVAT5kNtrzKuDFl--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190103060431.GA2711>