From owner-freebsd-current Fri Feb 23 12:47:50 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA08873 for current-outgoing; Fri, 23 Feb 1996 12:47:50 -0800 (PST) Received: from ccnet.ccnet.com (root@ccnet.ccnet.com [192.215.96.2]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id MAA08868 Fri, 23 Feb 1996 12:47:49 -0800 (PST) Received: (from root@localhost) by ccnet.ccnet.com (8.6.12/8.6.12) id MAA07614; Fri, 23 Feb 1996 12:43:07 -0800 Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [192.216.222.4]) by ccnet.ccnet.com (8.6.12/8.6.12) with ESMTP id LAA20133 for ; Fri, 23 Feb 1996 11:02:11 -0800 Received: from localhost (daemon@localhost) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id JAA22976 Fri, 23 Feb 1996 09:23:47 -0800 (PST) Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA22953 for current-outgoing; Fri, 23 Feb 1996 09:23:33 -0800 (PST) Received: from DeepCore.dk (aalb26.pip.dknet.dk [194.192.0.186]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id JAA22943 Fri, 23 Feb 1996 09:23:21 -0800 (PST) Received: (from sos@localhost) by DeepCore.dk (8.7.3/8.7.3) id SAA00597; Fri, 23 Feb 1996 18:19:14 +0100 (MET) From: Søren Schmidt Message-Id: <199602231719.SAA00597@DeepCore.dk> Subject: Re: Keyboard lockout on 2.x.x To: bde@zeta.org.au (Bruce Evans) Date: Fri, 23 Feb 1996 18:19:14 +0100 (MET) Cc: joerg_wunsch@uriah.heep.sax.de, olah@cs.utwente.nl, freebsd-current@freebsd.org, sos@freebsd.org In-Reply-To: <199602231613.DAA19724@godzilla.zeta.org.au> from "Bruce Evans" at Feb 24, 96 03:13:53 am Reply-to: sos@freebsd.org X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-current@freebsd.org Precedence: bulk In reply to Bruce Evans who wrote: > > >> > > Just FYI, specifying ASYNCH apparently fixed the lockups for me. > >> > > >> > So far me too. > >> > >> Søren, time to make it the default? > > Time to rewrite the keyboard driver? Yep and has been for a looooong time... I've started on the project some time ago, but I'm still agueing with myself how it should be done, also taking the ps/2 mouse into the picture and making a separate kbd driver out of it (which the console driver then talks to). I seem to be stuck on the pro's and con on this, and has sort of given up on it again :( > >I'm not sure that everyone would like it, because a virtual console > >switch takes now a few 10th's of a second during which the system > >seems to be halted (at least the HD stops grinding). I'm still > > The delay is because ASYNCH is less asynchronous than !ASYNCH. > kbd_cmd() is always called at spltty(), so keyboard interrupts are > blocked, so `kbd_reply' is as nonvolatile as it looks in the ASYNCH > spinloop in kbd_cmd(), so the spinloop always times out. The > keyboard reply is received and discarded some time later. Perhaps > this sort of works by waiting for a few thousand times as long as > necessary instead of a few microseconds shorter than necessary. *sigh*, that was not the intend with it, I guess its been screwed at some point in time. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Søren Schmidt (sos@FreeBSD.org) FreeBSD Core Team Even more code to hack -- will it ever end ..