From owner-freebsd-current Thu Jul 27 17:24: 5 2000 Delivered-To: freebsd-current@freebsd.org Received: from outmail.utsunomiya-u.ac.jp (outmail.utsunomiya-u.ac.jp [160.12.196.3]) by hub.freebsd.org (Postfix) with ESMTP id 96D7637C17A; Thu, 27 Jul 2000 17:23:53 -0700 (PDT) (envelope-from yokota@zodiac.mech.utsunomiya-u.ac.jp) Received: from zodiac.mech.utsunomiya-u.ac.jp (IDENT:/eXMOaQycWEUeRck2nQ5pAWgX6T2fDfw@zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1]) by outmail.utsunomiya-u.ac.jp (8.9.3/3.7Wpl2) with ESMTP id JAA00951; Fri, 28 Jul 2000 09:23:51 +0900 (JST) Received: from zodiac.mech.utsunomiya-u.ac.jp (IDENT:if4DYpac1vYnrVcB2o8lT0Q8tqTPRiIN@zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1]) by zodiac.mech.utsunomiya-u.ac.jp (8.9.3+3.2W/3.7W/zodiac-May2000) with ESMTP id JAA02407; Fri, 28 Jul 2000 09:30:43 +0900 (JST) Message-Id: <200007280030.JAA02407@zodiac.mech.utsunomiya-u.ac.jp> To: Donn Miller Cc: Robert Watson , freebsd-current@FreeBSD.org, yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: Re: Mouse behaving funny since 5.0-CURRENT upgrade In-reply-to: Your message of "Thu, 27 Jul 2000 18:53:38 -0400." <3980BD72.C3540196@cvzoom.net> References: <3980BD72.C3540196@cvzoom.net> Date: Fri, 28 Jul 2000 09:30:42 +0900 From: Kazutaka YOKOTA Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Try the attached patch for /sys/isa/psm.c, and please report the result. Kazu >Robert Watson wrote: >> >> I'm using a Micron P133 box with a PS/2 mouse. Up until this morning, I >> was running 4.0-STABLE from a month or two back. I upgraded to >> 5.0-CURRENT, and since that time, my mouse has been responding slowly and >> erratically, jumping as it moves, et al. > >> I'm using the default arguments to moused, with moused enabled in >> /etc/rc.conf. I'm not sure what changed, but it would be nice if it >> hadn't :-). > >Yep. It's been that way in 5.0-current for about 2-3 weeks now. When >I use /dev/sysmouse in X, my mouse is really jumpy. It's so bad that >I don't use moused anymore in X. When I use my mouse normally, i.e. >without moused (/dev/mouse), in X, mouse movements are OK. Also, >cursor motion is jumpy as well. Must be the recent commits to >syscons. > >-- >- Donn Index: psm.c =================================================================== RCS file: /src/CVS/src/sys/isa/psm.c,v retrieving revision 1.27 diff -u -r1.27 psm.c --- psm.c 2000/07/22 04:08:12 1.27 +++ psm.c 2000/07/27 06:53:24 @@ -1827,9 +1827,11 @@ { struct psm_softc *sc; int unit; + int s; unit = (int)arg; sc = devclass_get_softc(psm_devclass, unit); + s = spltty(); if (sc->watchdog && kbdc_lock(sc->kbdc, TRUE)) { if (verbose >= 4) log(LOG_DEBUG, "psm%d: lost interrupt?\n", unit); @@ -1837,6 +1839,7 @@ kbdc_lock(sc->kbdc, FALSE); } sc->watchdog = TRUE; + splx(s); sc->callout = timeout(psmtimeout, (void *)unit, hz); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message