Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 13 Mar 2002 10:03:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 13 Mar 2002 10:03:20 -0500 Received: from waste.org ([209.173.204.2]:11649 "EHLO waste.org") by vger.kernel.org with ESMTP id ; Wed, 13 Mar 2002 10:03:13 -0500 Date: Wed, 13 Mar 2002 09:03:09 -0600 (CST) From: Oliver Xymoron To: Samuel Hocevar cc: linux-kernel Subject: Re: 2.5.5-dj2: psmouse.c: Lost synchronization In-Reply-To: <20020313050621.O21836@zoy.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 13 Mar 2002, Samuel Hocevar wrote: > Hi, I have a Thinkpad T20 and experienced the same problem as you > with the 2.5.x series, and I'm trying to understand what's causing it. > Are you using the preemptive kernel patch? Yes, and now that I think about it, I was probably running with HZ=1024 too. Switched back to 2.4 due to problems with my wireless. > The following simple change worked for me, would you maybe have time > to test it and tell me whether it works? > > --- drivers/input/mouse/psmouse.c.orig Wed Mar 13 05:04:26 2002 > +++ drivers/input/mouse/psmouse.c Wed Mar 13 05:04:30 2002 > @@ -200,7 +200,7 @@ > return; > } > > - if (psmouse->pktcnt && jiffies - psmouse->last > 2) { > + if (psmouse->pktcnt && jiffies - psmouse->last > 10) { > printk(KERN_WARNING "psmouse.c: Lost synchronization, throwing %d bytes away.\n", psmouse->pktcnt); > psmouse->pktcnt = 0; > } Egads. I never even bothered to look up the code generating that message. That should be HZ/50 or HZ/10. Tempting to propose making HZ=HZ*100 and doing jiffies+=100 to ferret out any code that makes assumptions about what the units of HZ are. -- "Love the dolphins," she advised him. "Write by W.A.S.T.E.." - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/