From: "Shem Multinymous" <multinymous@gmail.com>
To: "Dmitry Torokhov" <dtor@insightbb.com>
Cc: hdaps-devel@lists.sourceforge.net, rlove@rlove.org,
"Linux Kernel ML" <linux-kernel@vger.kernel.org>,
"Andrew Morton" <akpm@osdl.org>,
"Michael Riepe" <michael@mr511.de>,
"Henrique de Moraes Holschuh" <hmh@debian.org>
Subject: Re: [Hdaps-devel] [PATCH] hdaps - switch to using input-polldev
Date: Mon, 9 Jul 2007 02:06:27 -0400 [thread overview]
Message-ID: <41840b750707082306n6509ee6ds3a0ccd16b6387353@mail.gmail.com> (raw)
In-Reply-To: <200707090144.45557.dtor@insightbb.com>
Hi,
On 7/9/07, Dmitry Torokhov <dtor@insightbb.com> wrote:
> On Monday 09 July 2007 01:29, Shem Multinymous wrote:
> > > Every input event carries a timestamp so even if there are irregularities
> > > in taking the samples you should be able to account for it.
> >
> > The issue is how good are the input event timestamps. The way it works
> > is that the EC samples the analog sensor at some fixed rate and makes
> > them available over the LPC bus. If the hdaps driver consumes these
> > samples at the same rate then the timestamps will be accurate up to a
> > small phase difference, which is mostly inconsequential. But if the
> > hdaps driver gets scheduled irregularly, its timestamps will be offset
> > by varying amounts, which will completely throw off computation (e.g.,
> > think of estimating the angular velocity).
>
> Timers do not guarantee you that they will be fired at the exact time.
> If system is under load and there are hard IRQs they will also be
> delayed.
I understand there's no guaranteed scheduling with either timers or
workqueues, but that doesn't mean we should ignore the quantitative
difference when it's so relevant.
Are there any hard numbers on this?
> > A delay of 20ms in invoking the userspace daemon is negligible, but a
> > timing variance of 20ms in the driver's measurements is devastating.
>
> Even if you know that there is such variance?
Yes, because you'll now need 4-5 samples to reasonably estimate
something like angular velocity, and 100ms are no longer negligible.
> > > Have 2nd input device's ->open() method call input_open_device() for
> > > the first one.
> >
> > Won't that create an overhead by the redundant, unused notifications?
>
> They won't leave input core so nothing really noticeable.
Sounds good, then. It's a bit of a hack, but the benefits are well
worth it (if we can resolve the scheduling issue).
Shem
next prev parent reply other threads:[~2007-07-09 6:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200705252354.43730.dtor@insightbb.com>
2007-07-09 1:00 ` Shem Multinymous
2007-07-09 3:24 ` Dmitry Torokhov
2007-07-09 4:31 ` Shem Multinymous
2007-07-09 4:53 ` Dmitry Torokhov
2007-07-09 5:29 ` Shem Multinymous
2007-07-09 5:44 ` Dmitry Torokhov
2007-07-09 6:06 ` Shem Multinymous [this message]
2007-07-10 3:58 ` Dmitry Torokhov
2007-07-10 5:56 ` Shem Multinymous
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=41840b750707082306n6509ee6ds3a0ccd16b6387353@mail.gmail.com \
--to=multinymous@gmail.com \
--cc=akpm@osdl.org \
--cc=dtor@insightbb.com \
--cc=hdaps-devel@lists.sourceforge.net \
--cc=hmh@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael@mr511.de \
--cc=rlove@rlove.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®