On Sat Apr  5 03:58:14 EDT 2014, [email protected] wrote:
> Eric,
> 
> I reported I had no problem to use pcpae kernel so far.
> This time, I must report a problem.
> 
> I switched from 1CPU mode to 2CPU mode, and have
> problem of too much high speed of keyboard input,
> like aaaaaaaaaaa when I typed only one 'a'.
> 
> Please check this, I want to use pcpae kernel for
> CPU server soon.

i assume this is a usb keyboard, and happens on
any key?  and i'll assume that you're using 9atom's
usb/usbd built recently.  is this what you're doing?

can you run sos/sos and copy or email the output?
sos itself gives instructions.

also, check with a watch that sleep 10 or sleep 60
tracks correctly.

i'm fairly confident in the usb/kb repeat process itself.
i rewrote it because i was frustrated with this very
problem.  you are using usb and 9atom's usb/kb, right?

the repeat mechanism is in /sys/src/cmd/usb/kb/kb.c:^/repeatproc
and :^/repeattimerproc.  the initial repeat delay
is 500msec, and the subsequent delay is 30ms. 
which should be 33 repeats/sec.

sources uses 160 and 25 (!) and warns

         * Rewrite instead of debug, if needed.

you can verify the repeat rate tracks correctly with the
system clock by running clock -s in one window and
typing

        echo <tick>| freq

hold down the 'a'  where <tick> is for 10s exactly.
we would expect

        1 + 9.5*(1000/30)  = 317 'a's

on my machine, i get about 270-280.  likely because
kbin is unbuffered.

- erik

Reply via email to