From: Willy Tarreau <w@1wt.eu>
To: David W Studeman <avionicsdv@aim.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Keyboard Jammed error patch 2.4.35-pre4
Date: Wed, 30 Jul 2008 09:51:01 +0200 [thread overview]
Message-ID: <20080730075101.GA31668@1wt.eu> (raw)
In-Reply-To: <489016AB.6050309@aim.com>
On Wed, Jul 30, 2008 at 12:22:19AM -0700, David W Studeman wrote:
> No I can't use the nokeybd option as a Cobalt uses no bootloader on the
> mbr. The arguments would have to be embedded into the flashrom image and
> it isn't something most people want to deal with.
OK, I was not talking about a solution but about a temporary workaround
anyway :-)
> >Also, if you don't have any PC keyboard on your machines, you can
> >build without support for any VT/keyboard. I'm already doing this
> >on some embedded systems, and it works fine. If your platform still
> >requires that some keyboard is enabled, you may want to try to enable
> >CONFIG_DUMMY_KEYB which I've been using in the past.
> >
> That didn't work either, what did save me was patching back to 2.4.34
> for the dmi and keyboard headers and compiling without any keyboard
> support at all. Also, since this is essentially a PC without a normal
> bios, the kernel reports that there is no dmi present. The boot method
> here reminds me of EFI but it isn't.
Just so that I understand, when you say it is a PC, is it x86-based or
a different arch ? I thought it was a mips, but now you're speaking about
a PC I'm confused. If it's x86, I don't see why the patch caused a regression
since it does not change the default behaviour for x86. If it's a mips, I don't
see why the proposed patch does not work as it was supposed to revert to
previous behaviour :-/
> >@@ -905,7 +908,7 @@ static char * __init initialize_kbd(void)
> >
> > void __init pckbd_init_hw(void)
> > {
> >- if (!keyboard_controller_present) {
> >+ if (!kbd_controller_present()) {
> > kbd_exists = 0;
> > return;
> > }
> >
> The last hunk at 905 fails to apply, line 61 passes due to some fuzz
> factor although I can't see what is different and why it needs to fuzz
> but line 61 still passes. Here is a snip from the log:
hmm sorry, I did it in a hurry against next 2.4.37-rc1. I'll check.
> patching file drivers/char/pc_keyb.c
> Hunk #1 succeeded at 61 with fuzz 1.
> Hunk #4 FAILED at 908.
> 1 out of 4 hunks FAILED -- saving rejects to file drivers/char/pc_keyb.c.rej
> make: *** [/usr/src/log/linux-2.4.36.6] Error 1
>
> And here is the pc_keyb.c.rej:
>
> ***************
> *** 905,911 ****
>
> void __init pckbd_init_hw(void)
> {
> - if (!keyboard_controller_present) {
> kbd_exists = 0;
> return;
> }
> --- 908,914 ----
>
> void __init pckbd_init_hw(void)
> {
> + if (!kbd_controller_present()) {
> kbd_exists = 0;
> return;
> }
This was the important part. Did you fix it by hand ? If not, it would
explain why it did not change the behaviour.
Regards,
Willy
next prev parent reply other threads:[~2008-07-30 7:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-28 6:59 Keyboard Jammed error patch 2.4.35-pre4 David W Studeman
2008-07-29 5:15 ` Willy Tarreau
2008-07-30 7:22 ` David W Studeman
2008-07-30 7:51 ` Willy Tarreau [this message]
2008-07-30 10:39 ` David W Studeman
2008-07-30 12:38 ` Willy Tarreau
2008-09-21 13:00 ` David W Studeman
2008-09-21 14:40 ` Willy Tarreau
2008-09-22 3:30 ` David W Studeman
2008-09-22 4:18 ` Willy Tarreau
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=20080730075101.GA31668@1wt.eu \
--to=w@1wt.eu \
--cc=avionicsdv@aim.com \
--cc=linux-kernel@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