From: Richard Hirst <rhirst@linuxcare.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] AT Keyboard not present?
Date: Wed, 19 Sep 2001 13:35:24 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590698805225@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590698805137@msgid-missing>
On Fri, Sep 07, 2001 at 10:49:07AM -0700, KOCHI Takayoshi wrote:
> Recently I noticed
>
> keyboard: Timeout - AT keyboard not present?
>
> message appears when the kernel tries to control keyboard LEDs
> (i.e. CAPS, NumLock, ScrLock).
> I don't see any symptoms in X environment, this is only at
> VGA console. I remember this was the behavior of ia64 linux of
> very early days, but fixed at some point.
>
> Does someone have ideas?
The following patch fixes this for me. It seems that after the SET_LEDS
command is written, the keyboard sets it's status bit to say the acknowledge
is available, but never generates an interrupt. Or maybe it does
generate the interrupt and somehow it gets cleared without the keyboard
driver being called.
Richard
--- linux.ori/drivers/char/pc_keyb.c Tue Aug 14 23:49:50 2001
+++ build-itanium/drivers/char/pc_keyb.c Wed Sep 19 15:18:14 2001
@@ -512,6 +512,19 @@
reply_expected = 1;
kbd_write_output_w(data);
for (;;) {
+#ifdef __ia64__
+ /* On my ia64 box, at least, we don't always get an int
+ * from the k/b when the acknowledge is available, so
+ * do a manual status check. Interrupts are enabled
+ * (jiffies changes, at least).
+ * Richard Hirst <rhirst@linuxcare.com>
+ */
+ unsigned long flags;
+
+ spin_lock_irqsave(&kbd_controller_lock, flags);
+ handle_kbd_event();
+ spin_unlock_irqrestore(&kbd_controller_lock, flags);
+#endif
if (acknowledge)
return 1;
if (resend)
next prev parent reply other threads:[~2001-09-19 13:35 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-07 17:49 [Linux-ia64] AT Keyboard not present? KOCHI Takayoshi
2001-09-07 19:05 ` Krishnakumar B
2001-09-07 19:36 ` Johannes Erdfelt
2001-09-07 19:55 ` Krishnakumar B
2001-09-07 20:02 ` Johannes Erdfelt
2001-09-07 20:09 ` Khalid Aziz
2001-09-07 20:12 ` KOCHI Takayoshi
2001-09-10 8:46 ` Martin Wilck
2001-09-10 21:43 ` Michael Madore
2001-09-10 22:10 ` Luck, Tony
2001-09-10 23:28 ` David Mosberger
2001-09-19 13:35 ` Richard Hirst [this message]
2001-09-19 21:49 ` David Mosberger
2001-09-19 22:27 ` Richard Hirst
2001-09-20 22:56 ` Richard Hirst
2001-09-21 15:44 ` David Mosberger
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=marc-linux-ia64-105590698805225@msgid-missing \
--to=rhirst@linuxcare.com \
--cc=linux-ia64@vger.kernel.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