From root@home2.morten-johansen.net  Sat Nov  8 17:02:53 2003
Return-Path: <root@home2.morten-johansen.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9ED8A16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  8 Nov 2003 17:02:53 -0800 (PST)
Received: from home2.morten-johansen.net (213.234.113.122.adsl.o-d.tiscali.no [213.234.113.122])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0F0EB43FB1
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  8 Nov 2003 17:02:52 -0800 (PST)
	(envelope-from root@home2.morten-johansen.net)
Received: from home2.morten-johansen.net (localhost [127.0.0.1])
	by home2.morten-johansen.net (8.12.9/8.12.9) with ESMTP id hA9138pJ001012
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 9 Nov 2003 02:03:08 +0100 (CET)
	(envelope-from root@home2.morten-johansen.net)
Received: (from root@localhost)
	by home2.morten-johansen.net (8.12.9/8.12.9/Submit) id hA9137IQ001011;
	Sun, 9 Nov 2003 02:03:07 +0100 (CET)
Message-Id: <200311090103.hA9137IQ001011@home2.morten-johansen.net>
Date: Sun, 9 Nov 2003 02:03:07 +0100 (CET)
From: Morten Johansen <mail@morten-johansen.net>
Reply-To: Morten Johansen <mail@morten-johansen.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] PS/2 mouse unstable
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         59067
>Category:       kern
>Synopsis:       [patch] PS/2 mouse unstable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 08 17:10:18 PST 2003
>Closed-Date:    Wed Oct 26 00:08:50 GMT 2005
>Last-Modified:  Wed Oct 26 00:08:50 GMT 2005
>Originator:     Morten Johansen
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD home2.morten-johansen.net 5.1-CURRENT FreeBSD 5.1-CURRENT #89: Sun Nov 9 00:27:46 CET 2003 root@home2.morten-johansen.net:/usr/src/sys/i386/compile/i686 i386
Intel Celeron 700MHz, VIA chipset, ATA-66 disk
MS Intellimouse 1.1A
XFree86 4.3.0
(dmesg attached)
>Description:
Sometimes when the system is under heavy IO load, the mouse will freeze for a second or two.
Then the pointer starts moving around by itself in an unordered fashion, and click events are recieved.
This goes on for several seconds, until the driver recovers.
This message is printed to the console:
psmintr: delay too long; resetting byte count
This spesific mouse model must be probed as Generic PS/2 by hint.psm.0.flags="0x300".
Otherwise it is unusable, similar to what is described in PR kern/24827, but that's another bug.
The mouse does not show erratic behaviour under Linux or Windows 2000.
>How-To-Repeat:
On the above system, moving the mouse around fast, while executing:
# dd if=/dev/zero of=test bs=32768 count=4000; sync; sync; sync
>Fix:
Make the psm(4) interrupt handler INTR_FAST.
A patch is attached which moves the data processing into a fast taskqueue or callout.
Leaving the interrupt handler just reading data from hardware into a buffer.
It may break your system, but works for me, until a final fix is found.


>Release-Note:
>Audit-Trail:

From: Morten Johansen <mail@morten-johansen.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/59067: [patch] PS/2 mouse unstable
Date: Sun, 09 Nov 2003 18:49:30 +0100

 Patch did not attach? Well it's here:
 
 http://dsm.oslonett.no/patch-psm-fast
 
 
 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Tue Oct 25 23:33:28 GMT 2005 
State-Changed-Why:  
To submitter: it appears that the patch is no longer at the URL listed. 
Is there a newer one? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=59067 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Wed Oct 26 00:08:32 GMT 2005 
State-Changed-Why:  
Submitter's email address bounces. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=59067 
>Unformatted:
