svn commit: r195960 - in head/sys/dev/usb: . controller input

Hans Petter Selasky hselasky at c2i.net
Sat Aug 1 05:16:04 UTC 2009


On Friday 31 July 2009 23:21:40 Alfred Perlstein wrote:
> Hans, can you please look into this issue?
>
> * Navdeep Parhar <nparhar at gmail.com> [090731 00:45] wrote:
> > On Wed, Jul 29, 2009 at 5:14 PM, Alfred Perlstein<alfred at freebsd.org> 
wrote:
> > > Author: alfred
> > > Date: Thu Jul 30 00:14:34 2009
> > > New Revision: 195960
> > > URL: http://svn.freebsd.org/changeset/base/195960
> > >
> > > Log:
> > > ?USB CORE:
> > > ?- Add minimum polling support to drive UMASS
> > > ? ?and UKBD in case of panic.
> > > ?- Add extra check to ukbd probe to fix problem about
> > > ? ?mouse devices attaching like keyboards.
> > > ?- P4 ID: 166148
> > >
> > > ?Submitted by: hps
> > > ?Approved by: ?re
> >
> > This has slowed down core dumps very significantly.  What used to take
> > 10-15s on my system now takes around 3 minutes.  A simple test is to
> > break into ddb and "call doadump" with or without this rev.  I have a
> > serial console on this machine
> > and so I can use ddb whether the attached USB keyboard works or not.
> >
> > Here is the usbconfig from the machine:
> > ugen0.1: <UHCI root HUB Intel> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps)
> > pwr=ON ugen1.1: <UHCI root HUB Intel> at usbus1, cfg=0 md=HOST spd=FULL
> > (12Mbps) pwr=ON ugen2.1: <UHCI root HUB Intel> at usbus2, cfg=0 md=HOST
> > spd=FULL (12Mbps) pwr=ON ugen3.1: <UHCI root HUB Intel> at usbus3, cfg=0
> > md=HOST spd=FULL (12Mbps) pwr=ON ugen4.1: <EHCI root HUB Intel> at
> > usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON
> > ugen1.2: <product 0x7000 vendor 0x0557> at usbus1, cfg=0 md=HOST
> > spd=FULL (12Mbps) pwr=SAVE
> > ugen1.3: <USB Multimedia Keyboard BTC> at usbus1, cfg=0 md=HOST
> > spd=LOW (1.5Mbps) pwr=ON
> > ugen1.4: <USB-PS/2 Optical Mouse Logitech> at usbus1, cfg=0 md=HOST
> > spd=LOW (1.5Mbps) pwr=ON

It's because there is a DELAY(1000) in the UKBD's polling routine so that key-
repeating will work, no magic.

--HPS


More information about the svn-src-head mailing list