From: Jason Wessel <jason.wessel@windriver.com>
To: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Chris Ball <cjb@laptop.org>,
kgdb-bugreport@lists.sourceforge.net,
linux-input <linux-input@vger.kernel.org>
Subject: Re: sysrq filter and stuck keys [ was Re: [Nouveau] [PATCH] drm/nouveau/kms: Implement KDB debug hooks for nouveau KMS.]
Date: Wed, 27 Oct 2010 07:51:11 -0500 [thread overview]
Message-ID: <4CC8203F.6040407@windriver.com> (raw)
In-Reply-To: <1287800961.21313.4.camel@maxim-laptop>
On 10/22/2010 09:29 PM, Maxim Levitsky wrote:
> Jason, I already found the root cause of the problem.
> First of all, note that I use xorg's evdev driver.
> The in-kernel tty kbd driver is only used for virtual consoles.
>
>
I would like to clarify where you observed the problem. Was it only on
the tty console in X or both places?
> The root cause is that in-kernel kbd driver beeing a client of the input
> subsystem just doesn't see the sysrq keys because they are filtered,
> therefore it can't release them.
>
>
With the 3 patches to the input layer in kgdb-next I cannot duplicate
the problem at all. If I remove the last patch in the series, and use
the tty console, I can definitely see the behavior you mention. I had
added a change to the sysrq input filter (which is consumes the key
strokes) that also resets the key mask in the tty keyboard driver
Specifically in
+ /* Clear handled keys from being flagged as a
repeated stroke */
+ __clear_bit(code, handle->dev->key);
Else drivers that use these bits for autorepeat (like the atkbd driver)
will end up with stuck keys.
> The right solution is to somehow hook at the atkbd driver , tell it that
> kbd tampered with its hardware, and make it release the keys.
>
>
I don't think we need to do that because the input filter should be able
to actually "properly" filter state to all its clients. As a last
resort of course the HW state could be tracked and updated, but ideally
I'd like to avoid it.
Jason.
prev parent reply other threads:[~2010-10-27 12:51 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <m3iq9yqd7w.fsf@pullcord.laptop.org>
[not found] ` <4C5ACF3F.8050409@windriver.com>
[not found] ` <m3hbj0fju3.fsf_-_@pullcord.laptop.org>
2010-08-19 17:55 ` [PATCH] drm/nouveau/kms: Implement KDB debug hooks for nouveau KMS Chris Ball
[not found] ` <m3aaoimqrp.fsf_-_-0VGQAjvlmrQzNDMTQreKSUB+6BGkLq7r@public.gmane.org>
2010-08-21 2:22 ` Francisco Jerez
2010-08-23 20:50 ` Chris Ball
[not found] ` <m3k4nhqcia.fsf_-_-0VGQAjvlmrQzNDMTQreKSUB+6BGkLq7r@public.gmane.org>
2010-08-26 16:55 ` Francisco Jerez
2010-09-26 11:20 ` Jason Wessel
2010-09-01 9:56 ` Maxim Levitsky
2010-09-01 11:35 ` [Nouveau] " Jason Wessel
2010-09-02 10:46 ` Maxim Levitsky
2010-09-22 1:42 ` Maxim Levitsky
2010-09-22 14:03 ` Maxim Levitsky
2010-09-22 14:06 ` Maxim Levitsky
2010-09-22 17:07 ` Maxim Levitsky
2010-09-24 20:50 ` Maxim Levitsky
2010-09-24 20:58 ` Jason Wessel
2010-09-25 0:14 ` Maxim Levitsky
2010-09-25 4:08 ` Dmitry Torokhov
2010-10-05 20:56 ` Jason Wessel
2010-10-14 2:34 ` Maxim Levitsky
2010-10-20 16:01 ` sysrq filter and stuck keys [ was Re: [Nouveau] [PATCH] drm/nouveau/kms: Implement KDB debug hooks for nouveau KMS.] Jason Wessel
2010-10-23 2:29 ` Maxim Levitsky
2010-10-27 12:51 ` Jason Wessel [this message]
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=4CC8203F.6040407@windriver.com \
--to=jason.wessel@windriver.com \
--cc=cjb@laptop.org \
--cc=dmitry.torokhov@gmail.com \
--cc=kgdb-bugreport@lists.sourceforge.net \
--cc=linux-input@vger.kernel.org \
--cc=maximlevitsky@gmail.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.