* [BUG] 2.6.2 crazy mouse under heavy load
@ 2004-02-05 14:17 Murilo Pontes
2004-02-05 18:18 ` Norberto Bensa
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Murilo Pontes @ 2004-02-05 14:17 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 374 bytes --]
Compiling recent kde-3.2.0-final, on twm with xterm, several times the mouse is out of control!!!!
-------Syslog output--------------
psmouse.c: Wheel Mouse at isa0060/serio1/input0 lost synchronization, throwing 3 bytes away.
psmouse.c: Wheel Mouse at isa0060/serio1/input0 lost synchronization, throwing 3 bytes away.
--------------------------------------
Any ideias?
[-- Attachment #2: config.gz --]
[-- Type: application/x-gzip, Size: 6261 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [BUG] 2.6.2 crazy mouse under heavy load
2004-02-05 14:17 [BUG] 2.6.2 crazy mouse under heavy load Murilo Pontes
@ 2004-02-05 18:18 ` Norberto Bensa
2004-02-06 8:38 ` Wichert Akkerman
2004-02-06 9:50 ` hungerburg
2004-02-08 5:58 ` Harald Dunkel
2 siblings, 1 reply; 10+ messages in thread
From: Norberto Bensa @ 2004-02-05 18:18 UTC (permalink / raw)
To: Murilo Pontes; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 471 bytes --]
Murilo Pontes wrote:
> Compiling recent kde-3.2.0-final, on twm with xterm, several times the
> mouse is out of control!!!!
2.6.2-rc3-mm1. Compiling same packages on Gentoo. When the box starts
swapping, it is almost totally unresponsive.
> Any ideias?
Wait 'til developement on 2.6.x stabilize :-)
Regards,
Norberto
--
Linux 2.6.2-mm1 Pentium III (Coppermine) GenuineIntel GNU/Linux
15:16:26 up 58 min, 2 users, load average: 1.18, 1.92, 1.74
[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] 2.6.2 crazy mouse under heavy load
2004-02-05 18:18 ` Norberto Bensa
@ 2004-02-06 8:38 ` Wichert Akkerman
0 siblings, 0 replies; 10+ messages in thread
From: Wichert Akkerman @ 2004-02-06 8:38 UTC (permalink / raw)
To: linux-kernel
Previously Norberto Bensa wrote:
> 2.6.2-rc3-mm1. Compiling same packages on Gentoo. When the box starts
> swapping, it is almost totally unresponsive.
I had the same happen to me with vanilla 2.6.2 yesterday, but I was
messing around with ndiswrappers at the time so it might be unrelated.
Wichert.
--
Wichert Akkerman <wichert@wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] 2.6.2 crazy mouse under heavy load
2004-02-05 14:17 [BUG] 2.6.2 crazy mouse under heavy load Murilo Pontes
2004-02-05 18:18 ` Norberto Bensa
@ 2004-02-06 9:50 ` hungerburg
2004-02-08 5:58 ` Harald Dunkel
2 siblings, 0 replies; 10+ messages in thread
From: hungerburg @ 2004-02-06 9:50 UTC (permalink / raw)
To: linux-kernel
Murilo Pontes wrote:
> Compiling recent kde-3.2.0-final, on twm with xterm, several times the
> mouse is out of control!!!!
did you enable DMA on the disks?
hu
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] 2.6.2 crazy mouse under heavy load
2004-02-05 14:17 [BUG] 2.6.2 crazy mouse under heavy load Murilo Pontes
2004-02-05 18:18 ` Norberto Bensa
2004-02-06 9:50 ` hungerburg
@ 2004-02-08 5:58 ` Harald Dunkel
2 siblings, 0 replies; 10+ messages in thread
From: Harald Dunkel @ 2004-02-08 5:58 UTC (permalink / raw)
To: Murilo Pontes; +Cc: linux-kernel
Murilo Pontes wrote:
> Compiling recent kde-3.2.0-final, on twm with xterm, several times the mouse is out of control!!!!
>
Tried to disable CONFIG_PREEMPT? I kicked it out,
and my mouse never went mad since then. Surely
just a workaround (if it helps at all).
Good luck
Harri
^ permalink raw reply [flat|nested] 10+ messages in thread
* [BUG] 2.6.2 crazy mouse under heavy load
@ 2004-02-05 17:34 Luis Miguel García
2004-02-05 15:24 ` Murilo Pontes
0 siblings, 1 reply; 10+ messages in thread
From: Luis Miguel García @ 2004-02-05 17:34 UTC (permalink / raw)
To: LINUX KERNEL MAILING LIST, murilo_pontes
> Compiling recent kde-3.2.0-final, on twm with xterm, several times
the mouse is out of control!!!!
The same happened to me. I was thinking if the cause could be the
batteries of my wireless mouse, but seeing your post, it could really be
a bug.
Any way of reproduce it?
Any test to perform?
Thanks!
Luis Miguel Garcia
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] 2.6.2 crazy mouse under heavy load
2004-02-05 17:34 Luis Miguel García
@ 2004-02-05 15:24 ` Murilo Pontes
0 siblings, 0 replies; 10+ messages in thread
From: Murilo Pontes @ 2004-02-05 15:24 UTC (permalink / raw)
To: LINUX KERNEL MAILING LIST
My mouse is not wireless, is a logitech ps/2 mouse whell
To reprocude is simple put heavy loader such compile a larger C++ source like kde-3.2
Em Qui 05 Fev 2004 17:34, você escreveu:
> > Compiling recent kde-3.2.0-final, on twm with xterm, several times
> the mouse is out of control!!!!
>
>
> The same happened to me. I was thinking if the cause could be the
> batteries of my wireless mouse, but seeing your post, it could really be
> a bug.
>
> Any way of reproduce it?
>
> Any test to perform?
>
> Thanks!
>
> Luis Miguel Garcia
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* re: [BUG] 2.6.2 crazy mouse under heavy load
@ 2004-02-05 17:34 Luis Miguel García
0 siblings, 0 replies; 10+ messages in thread
From: Luis Miguel García @ 2004-02-05 17:34 UTC (permalink / raw)
To: LINUX KERNEL MAILING LIST, murilo_pontes
> Compiling recent kde-3.2.0-final, on twm with xterm, several times
the mouse is out of control!!!!
The same happened to me. I was thinking if the cause could be the
batteries of my wireless mouse, but seeing your post, it could really be
a bug.
Any way of reproduce it?
Any test to perform?
Thanks!
Luis Miguel Garcia
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [BUG] 2.6.2 crazy mouse under heavy load
@ 2004-02-05 20:59 Bob Gill
2004-02-05 22:05 ` Vojtech Pavlik
0 siblings, 1 reply; 10+ messages in thread
From: Bob Gill @ 2004-02-05 20:59 UTC (permalink / raw)
To: Linux Kernel Mailing List
The exception seems to be coming from
linux-2.6.2/drivers/input/mouse/psmouse-base.c, specifically from
if (psmouse->state == PSMOUSE_ACTIVATED &&
psmouse->pktcnt && time_after(jiffies, psmouse->last +
HZ/2)) {
printk(KERN_WARNING "psmouse.c: %s at %s lost
synchronization, throwing %d bytes away.\n",
psmouse->name, psmouse->phys, psmouse->pktcnt);
psmouse->pktcnt = 0;
}
where (for me) HZ is 1804768000, and therefore HZ/2 is 902384000,
psmouse->pktcnt is 3, and (I assume) PSMOUSE_ACTIVATED is non-0 after
boot. I assume that pktcnt is fed by interrupt, and the problem then is
that psmouse->last + HZ/2 blows past the jiffies value, causing the
warning message to be issued. When mouse service finally comes back,
pktcnt is non-zero (and possibly whatever the maximum is that it will
hold), and when it flushes, the mouse pointer goes nuts for a second.
The real problem then, is why does the sum of ps->last + HZ/2 grow to
beyond the size of jiffies (or what is delaying the mouse service)?
This is just a rough guesstimate of what is going on, but seems to fit
the facts. Cheers!
Bob
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [BUG] 2.6.2 crazy mouse under heavy load
2004-02-05 20:59 Bob Gill
@ 2004-02-05 22:05 ` Vojtech Pavlik
0 siblings, 0 replies; 10+ messages in thread
From: Vojtech Pavlik @ 2004-02-05 22:05 UTC (permalink / raw)
To: Bob Gill; +Cc: Linux Kernel Mailing List
On Thu, Feb 05, 2004 at 01:59:12PM -0700, Bob Gill wrote:
> The exception seems to be coming from
> linux-2.6.2/drivers/input/mouse/psmouse-base.c, specifically from
>
> if (psmouse->state == PSMOUSE_ACTIVATED &&
> psmouse->pktcnt && time_after(jiffies, psmouse->last +
> HZ/2)) {
> printk(KERN_WARNING "psmouse.c: %s at %s lost
> synchronization, throwing %d bytes away.\n",
> psmouse->name, psmouse->phys, psmouse->pktcnt);
> psmouse->pktcnt = 0;
> }
>
>
> where (for me) HZ is 1804768000, and therefore HZ/2 is 902384000,
This looks very wrong. HZ should be 1000 on a normal machine.
Maybe you were looking at jiffies?
> psmouse->pktcnt is 3, and (I assume) PSMOUSE_ACTIVATED is non-0 after
> boot. I assume that pktcnt is fed by interrupt, and the problem then is
> that psmouse->last + HZ/2 blows past the jiffies value, causing the
> warning message to be issued. When mouse service finally comes back,
> pktcnt is non-zero (and possibly whatever the maximum is that it will
> hold), and when it flushes, the mouse pointer goes nuts for a second.
> The real problem then, is why does the sum of ps->last + HZ/2 grow to
> beyond the size of jiffies (or what is delaying the mouse service)?
Exactly. The if statement means "If no data arrived for more than half a
second, and we're in the middle of a packet, something is wrong - we
better should start from scratch."
The goal of that statement is to resynchronize the mouse data stream if
a byte is lost.
-----
There are two scenarios of this message appearing (assuming 4-byte
packets):
#1 Messages always appearing in pairs, and the sum being 4. This is a
delayed or lost interrupt. Since the driver polls the controller in
addition to servicing interrupts, if the controller has the byte,
regardless of whether an interrupt arrived, it'll be processed.
#2 Messages appearing single, with numbers from 1 to 3. This is a lost
byte. The controller either didn't receive the byte at all or something
very fishy happened.
> This is just a rough guesstimate of what is going on, but seems to fit
> the facts. Cheers!
--
Vojtech Pavlik
SuSE Labs, SuSE CR
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2004-02-08 5:59 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-05 14:17 [BUG] 2.6.2 crazy mouse under heavy load Murilo Pontes
2004-02-05 18:18 ` Norberto Bensa
2004-02-06 8:38 ` Wichert Akkerman
2004-02-06 9:50 ` hungerburg
2004-02-08 5:58 ` Harald Dunkel
-- strict thread matches above, loose matches on Subject: below --
2004-02-05 17:34 Luis Miguel García
2004-02-05 15:24 ` Murilo Pontes
2004-02-05 17:34 Luis Miguel García
2004-02-05 20:59 Bob Gill
2004-02-05 22:05 ` Vojtech Pavlik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox