lkml.org 
[lkml]   [2004]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: 2.6.9-rc1-mm4
Date
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;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.064 / U:1.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site