From: Bjorn Helgaas <bjorn.helgaas@hp.com>
To: Nathan Bryant <nbryant@optonline.net>
Cc: Lorenzo Allegrucci <l_allegrucci@yahoo.it>,
Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org,
Bjorn Helgaas <bjorn.helgaas@hp.com>
Subject: Re: 2.6.9-rc1-mm4
Date: Tue, 7 Sep 2004 15:07:41 -0600 [thread overview]
Message-ID: <200409071507.41870.bjorn.helgaas@hp.com> (raw)
In-Reply-To: <413E18CB.7020305@optonline.net>
On Tuesday 07 September 2004 2:23 pm, Nathan Bryant wrote:
> Lorenzo Allegrucci wrote:
> > On Tuesday 07 September 2004 11:08, Andrew Morton wrote:
> >
> >>ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.9-rc1/2.6
> >>.9-rc1-mm4/
> >
> >
> > My PS/2 keyboard doesn't work, I tried "pci=routeirq" but it didn't help.
> >
> > Sep 7 21:39:00 odyssey kernel: i8042: ACPI [PS2K] at I/O 0x0, 0x0, irq 1
> > Sep 7 21:39:00 odyssey kernel: i8042: ACPI [PS2M] at irq 12
> > Sep 7 21:39:00 odyssey kernel: i8042.c: Can't read CTR while initializing
> > i8042.
> >
>
> Try i8042.noacpi on the kernel command line
>
> Seems Bjorn's patch needs to be reworked to ignore obviously broken BIOS
> return values
Yup, how about this for a starter? We may have to iterate on this as we
discover all the ways ACPI can be screwed up ;-)
This also falls back to the original scheme if ACPI is disabled on the
command line ("acpi=off").
--- 2.6.9-rc1-mm4-bh1/drivers/input/serio/i8042-x86ia64io.h.orig 2004-09-07 14:41:42.000000000 -0600
+++ 2.6.9-rc1-mm4-bh1/drivers/input/serio/i8042-x86ia64io.h 2004-09-07 14:51:06.000000000 -0600
@@ -155,9 +155,23 @@
acpi_device_name(device), acpi_device_bid(device),
kbd_res.port1, kbd_res.port2, kbd_res.irq);
- i8042_data_reg = kbd_res.port1;
- i8042_command_reg = kbd_res.port2;
- i8042_kbd_irq = kbd_res.irq;
+ if (kbd_res.port1)
+ i8042_data_reg = kbd_res.port1;
+ else
+ printk(KERN_WARNING "i8042: bogus data port address in %s _CRS, defaulting to 0x%x\n",
+ acpi_device_bid(device), i8042_data_reg);
+
+ if (kbd_res.port2)
+ i8042_command_reg = kbd_res.port2;
+ else
+ printk(KERN_WARNING "i8042: bogus command port address in %s _CRS, defaulting to 0x%x\n",
+ acpi_device_bid(device), i8042_command_reg);
+
+ if (kbd_res.irq)
+ i8042_kbd_irq = kbd_res.irq;
+ else
+ printk(KERN_WARNING "i8042: bogus IRQ in %s _CRS, defaulting to %d\n",
+ acpi_device_bid(device), i8042_kbd_irq);
return 0;
}
@@ -176,7 +190,11 @@
printk("i8042: ACPI %s [%s] at irq %d\n",
acpi_device_name(device), acpi_device_bid(device), aux_res.irq);
- i8042_aux_irq = aux_res.irq;
+ if (aux_res.irq)
+ i8042_aux_irq = aux_res.irq;
+ else
+ printk(KERN_WARNING "i8042: bogus IRQ in %s _CRS, defaulting to %d\n",
+ acpi_device_bid(device), i8042_aux_irq);
return 0;
}
@@ -201,7 +219,7 @@
{
int result;
- if (i8042_noacpi) {
+ if (acpi_disabled || i8042_noacpi) {
printk("i8042: ACPI detection disabled\n");
return 0;
}
next prev parent reply other threads:[~2004-09-07 21:24 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-07 9:08 2.6.9-rc1-mm4 Andrew Morton
2004-09-07 11:59 ` 2.6.9-rc1-mm4 Terje Kvernes
2004-09-07 14:24 ` 2.6.9-rc1-mm4 Kasper Sandberg
2004-09-07 14:32 ` 2.6.9-rc1-mm4 Terje Kvernes
2004-09-07 17:04 ` 2.6.9-rc1-mm4 Francois Romieu
2004-09-07 18:30 ` 2.6.9-rc1-mm4 Terje Kvernes
2004-09-07 12:05 ` 2.6.9-rc1-mm4 Terje Kvernes
2004-09-07 12:21 ` 2.6.9-rc1-mm4 Simon Derr
2004-09-08 8:47 ` 2.6.9-rc1-mm4 Andrew Morton
2004-09-08 8:54 ` 2.6.9-rc1-mm4 Simon Derr
2004-09-08 12:06 ` [PATCH] Move syscall declarations from linux/key.h David Howells
2004-09-08 12:17 ` [PATCH] Move syscall declarations from linux/key.h [try #2] David Howells
2004-09-08 9:30 ` [PATCH] Remove syscall declarations from linux/key.h David Howells
2004-09-08 11:23 ` Arnd Bergmann
2004-09-08 9:37 ` 2.6.9-rc1-mm4 David Howells
2004-09-07 14:31 ` 2.6.9-rc1-mm4 Norberto Bensa
2004-09-07 15:45 ` 2.6.9-rc1-mm4 Zwane Mwaikambo
2004-09-07 16:46 ` 2.6.9-rc1-mm4 Danny ter Haar
2004-09-07 22:12 ` Killer CacheFS [was Re: 2.6.9-rc1-mm4] J.A. Magallon
2004-09-07 18:43 ` [patch] 2.6.9-rc1-mm4: small LOCALVERSION help text corrections Adrian Bunk
2004-09-07 21:27 ` Sam Ravnborg
2004-09-07 19:42 ` Adrian Bunk
2004-09-07 23:26 ` Ian Wienand
2004-09-07 19:02 ` [patch] 2.6.9-rc1-mm4: Makefile: remove tabs from empty lines Adrian Bunk
2004-09-07 21:14 ` Sam Ravnborg
2004-09-07 19:40 ` Adrian Bunk
2004-09-08 5:51 ` Dmitry Torokhov
2004-09-08 8:17 ` Sam Ravnborg
2004-09-07 19:26 ` [patch] 2.6.9-rc1-mm4: atyfb_base.c gcc 2.95 compile error Adrian Bunk
2004-09-08 0:38 ` [Linux-fbdev-devel] " Antonino A. Daplas
2004-09-07 20:01 ` 2.6.9-rc1-mm4 Lorenzo Allegrucci
2004-09-07 20:23 ` 2.6.9-rc1-mm4 Nathan Bryant
2004-09-07 21:07 ` Bjorn Helgaas [this message]
2004-09-08 8:15 ` 2.6.9-rc1-mm4 Lorenzo Allegrucci
2004-09-07 21:47 ` 2.6.9-rc1-mm4 (compile stats) John Cherry
2004-09-07 21:58 ` John Cherry
2004-09-08 13:00 ` 2.6.9-rc1-mm4 William Lee Irwin III
2004-09-08 13:10 ` 2.6.9-rc1-mm4 David Howells
2004-09-08 20:16 ` 2.6.9-rc1-mm4 Nathan Lynch
2004-09-09 2:01 ` 2.6.9-rc1-mm4 William Lee Irwin III
2004-09-09 2:30 ` 2.6.9-rc1-mm4 William Lee Irwin III
2004-09-09 18:04 ` 2.6.9-rc1-mm4 Pasi Savolainen
2004-09-09 19:33 ` 2.6.9-rc1-mm4 Pasi Savolainen
2004-09-07 16:45 2.6.9-rc1-mm4 Martin J. Bligh
2004-09-07 20:13 ` 2.6.9-rc1-mm4 Sam Ravnborg
2004-09-07 21:17 ` 2.6.9-rc1-mm4 Andrew Morton
2004-09-09 14:27 ` 2.6.9-rc1-mm4 Martin J. Bligh
2004-09-09 17:57 ` 2.6.9-rc1-mm4 Nick Piggin
2004-09-07 21:29 ` 2.6.9-rc1-mm4 Sam Ravnborg
2004-09-08 7:29 2.6.9-rc1-mm4 Sid Boyce
2004-09-08 15:43 2.6.9-rc1-mm4 Sid Boyce
2004-09-09 4:42 2.6.9-rc1-mm4 Paul Blazejowski
2004-09-09 4:44 ` 2.6.9-rc1-mm4 Andrew Morton
2004-09-09 13:37 ` 2.6.9-rc1-mm4 Alan Cox
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=200409071507.41870.bjorn.helgaas@hp.com \
--to=bjorn.helgaas@hp.com \
--cc=akpm@osdl.org \
--cc=l_allegrucci@yahoo.it \
--cc=linux-kernel@vger.kernel.org \
--cc=nbryant@optonline.net \
/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®