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: Sun, 8 Jul 2007 21:00:24 -0400 [thread overview]
Message-ID: <41840b750707081800g1465eeeet12365fed84241c29@mail.gmail.com> (raw)
In-Reply-To: <200705252354.43730.dtor@insightbb.com>
On 5/25/07, Dmitry Torokhov <dtor@insightbb.com> wrote:
> HWMON: hdaps - convert to use input-polldev.
>
> Switch to using input-polldev skeleton instead of implementing
> polling loop by itself. This also fixes problem with trylock
> on a mutex in atomic context.
>
> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
There's a couple of inherent problems with this patch (now in -mm).
First, the hdaps driver regularly polls the embedded controller, which
in turns regularly polls the hardware. If the two polling rates differ
or fluctuate, we lose events. AFAICT, the delayed workqueues used by
input-polldev can get very laggy under load. That's very bad for
sensitive clients like hdapsd (the hard disk shock protection daemon).
Second, this is incompatible with the much-needed addition of a 2nd
input device relying on the same data. The existing hdaps input device
does "joystick emulation", i.e., reports values after calibration and
fuzzing. Userspace programs that need the raw data, like hdapsd,
currently have to poll the sysfs attribute, which is inefficient,
lag-prone and induces unnecessary interrupts on tickless sytems. To
solve this we'll have to add a 2nd input device to hdaps, for
reporting the raw accelerometer data. (Michael Riepe and me are now
working on such a patch.) But these two input devices need to share
their polling of the underlying EC hardware, and this is impossible
using input-polldev.
Since this patch will degrade accuracy and will eventually be
reverted anyway, I suggest retracting it.
As for the mutex in atomic context issue, isn't it best addressed by
making mutex_trylock() do the sensible thing in softirqt?
Shem
next parent reply other threads:[~2007-07-09 1:00 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 [this message]
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
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=41840b750707081800g1465eeeet12365fed84241c29@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®