[patch] Ps2 mouse/keyboard hang fix. (Digital HiNote)

Phillip Ezolt (ezolt@perf.zko.dec.com)
Mon, 15 Nov 1999 20:24:25 -0500 (EST)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--0-877271033-942715465=:17732
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi All,
After two solid days of frustration, a coworker and I found
and fixed a bug in the the Linux ps2 mouse/keyboard driver. After a
certain amount of mouse use, the keyboard and mouse would hang,
leaving the machine unresponsive to keypresses.

The problem was as follows.

The Linux driver polled the ps2 status register faster than the device
could keep up. The FreeBSD ps2 driver inserted a pause between the
polls. By doing the same in Linux, the problem disappears.

This bug showed up on our Digital HiNote CT475 laptops. Without the
fix, the boxes are quite useless.

This fix shouldn't harm anyone, but may help some. (It may eliminate the
"pc_keyboard jammed" warning that appears right below the patch.)

Attached is a patch for both 2.2.13 and 2.3.28.

Cheers,
--Phil

Compaq: High Performance Server Division/Benchmark Performance Engineering
---------------- Alpha, The Fastest Processor on Earth --------------------
Phillip.Ezolt@compaq.com |C|O|M|P|A|Q| ezolt@perf.zko.dec.com

--0-877271033-942715465=:17732
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="2.2.12-ps2-delay"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.OSF.3.96.991115202425.17732B@perf.zko.dec.com>
Content-Description:

ZGlmZiAtdXIgbGludXgtb3JpZy9kcml2ZXJzL2NoYXIvcGNfa2V5Yi5jIGxp
bnV4L2RyaXZlcnMvY2hhci9wY19rZXliLmMNCi0tLSBsaW51eC1vcmlnL2Ry
aXZlcnMvY2hhci9wY19rZXliLmMJTW9uIEF1ZyAgOSAxNTowNDozOSAxOTk5
DQorKysgbGludXgvZHJpdmVycy9jaGFyL3BjX2tleWIuYwlNb24gTm92IDE1
IDE5OjI3OjA5IDE5OTkNCkBAIC00MzMsNyArNDMzLDcgQEANCiAJCQkJaGFu
ZGxlX3NjYW5jb2RlKHNjYW5jb2RlLCAhKHNjYW5jb2RlICYgMHg4MCkpOw0K
IAkJCW1hcmtfYmgoS0VZQk9BUkRfQkgpOw0KIAkJfQ0KLQ0KKwkJbWRlbGF5
KDEpOw0KIAkJc3RhdHVzID0ga2JkX3JlYWRfc3RhdHVzKCk7DQogCQkNCiAJ
CWlmKCF3b3JrLS0pDQo=
--0-877271033-942715465=:17732
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="2.3.28-ps2-delay"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.OSF.3.96.991115202425.17732C@perf.zko.dec.com>
Content-Description:

ZGlmZiAtdXIgbGludXgtb3JpZy9kcml2ZXJzL2NoYXIvcGNfa2V5Yi5jIGxp
bnV4L2RyaXZlcnMvY2hhci9wY19rZXliLmMNCi0tLSBsaW51eC1vcmlnL2Ry
aXZlcnMvY2hhci9wY19rZXliLmMJVHVlIE9jdCAxMiAxNjoyNTowNyAxOTk5
DQorKysgbGludXgvZHJpdmVycy9jaGFyL3BjX2tleWIuYwlNb24gTm92IDE1
IDE5OjQwOjI0IDE5OTkNCkBAIC00MzcsNyArNDM3LDcgQEANCiAjZW5kaWYJ
CQkJDQogCQkJbWFya19iaChLRVlCT0FSRF9CSCk7DQogCQl9DQotDQorCQlt
ZGVsYXkoMSk7DQogCQlzdGF0dXMgPSBrYmRfcmVhZF9zdGF0dXMoKTsNCiAJ
CQ0KIAkJaWYoIXdvcmstLSkNCk9ubHkgaW4gbGludXgvZHJpdmVycy9jaGFy
OiBwY19rZXliLmN+DQo=
--0-877271033-942715465=:17732--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/