From: Vojtech Pavlik <vojtech@suse.cz>
To: Dmitry Torokhov <dtor@insightbb.com>
Cc: Dave Neuer <mr.fred.smoothie@pobox.com>,
LKML <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>
Subject: Re: [RFT/PATCH] i8042: remove polling timer (v6)
Date: Mon, 30 Oct 2006 10:08:51 +0100 [thread overview]
Message-ID: <20061030090851.GA2687@suse.cz> (raw)
In-Reply-To: <200610292234.02487.dtor@insightbb.com>
On Sun, Oct 29, 2006 at 10:34:00PM -0500, Dmitry Torokhov wrote:
> On Sunday 29 October 2006 18:20, Dave Neuer wrote:
> > On 8/23/06, Dmitry Torokhov <dtor@insightbb.com> wrote:
> > > Hi everyone,
> > >
> > > Here is another version of the patch removing polling timer from i8042
> > > which is needed if we want tickless kernel. Keyboards should now work
> > > on boxes that do not have mouse plugged in. PLease give it a test.
> >
> > What's the intent of this; just to allow tickless? Or is it also to
> > make the i8042 driver less racy? I ask because I've applied this over
> > (a modified) 2.6.18 on my Compaq Presario X1010us laptop which has
> > been driving me crazy w/ Synaptics problems and keyboard problems
> > (intermittent, but frequent enough lately that I finally figured I
> > needed to do something about it).
> >
> > If removing raciness is part of the goal, isn't the window in
> > i8042_aux_write still a problem?
> >
> > if (port->mux == -1)
> > retval = i8042_command(&c, I8042_CMD_AUX_SEND);
> > else
> > retval = i8042_command(&c, I8042_CMD_MUX_SEND + port->mux);
> >
> > /* i8042_command has re-enabled interrupts;
> > what happens if real interrupt happens here, before we call
> > the ISR ourselves? */
> >
> > i8042_interrupt(0, NULL, NULL);
> > return retval;
> > }
>
> Hi Dave,
>
> i8042_interrupt() uses spinlock to serialize access to the KBC so if real
> interrupt happens before we call i8042_interrupt() manually (and it should
> normally happen) it will just process the response and second i8042_interrupt()
> will be just a no-op.
This would, however, create two reads of the i8042 controller
back-to-back, which has been a problem on old i8042's: IIRC IBM
documentation states that between the reads there should be a delay.
--
Vojtech Pavlik
Director SuSE Labs
next prev parent reply other threads:[~2006-10-30 9:08 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-24 3:11 [RFT/PATCH] i8042: remove polling timer (v6) Dmitry Torokhov
2006-10-29 23:20 ` Dave Neuer
2006-10-30 3:34 ` Dmitry Torokhov
2006-10-30 9:08 ` Vojtech Pavlik [this message]
2006-10-30 13:01 ` Dave Neuer
2006-10-30 14:22 ` Dave Neuer
2006-11-03 5:56 ` Dmitry Torokhov
2006-11-03 8:18 ` Vojtech Pavlik
2006-11-03 14:08 ` Dmitry Torokhov
2006-11-03 6:03 ` Dmitry Torokhov
2006-11-06 16:22 ` Dave Neuer
2006-11-06 16:48 ` Dmitry Torokhov
2006-11-06 17:09 ` Dave Neuer
2006-11-06 17:21 ` Dave Neuer
2006-11-20 4:36 ` Dave Neuer
2006-11-20 5:04 ` Dave Neuer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061030090851.GA2687@suse.cz \
--to=vojtech@suse.cz \
--cc=akpm@osdl.org \
--cc=dtor@insightbb.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mr.fred.smoothie@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.