From: Paul Fulghum <paulkf@microgate.com>
To: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ACPI-based i8042 keyboard/aux controller enumeration
Date: 07 Sep 2004 16:17:46 -0500 [thread overview]
Message-ID: <1094591865.2532.1.camel@deimos.microgate.com> (raw)
In-Reply-To: <200409071504.54173.bjorn.helgaas@hp.com>
On Tue, 2004-09-07 at 16:04, Bjorn Helgaas wrote:
> On Tuesday 07 September 2004 2:59 pm, Paul Fulghum wrote:
> > On Tue, 2004-09-07 at 15:03, Bjorn Helgaas wrote:
> > > Can you apply the following patch on top of 2.6.9-rc1-mm4, boot
> > > with "i8042.lsacpi", and post the resulting dmesg?
> >
> > Nothing is output with i8042.lsacpi=1.
> > I tried it with both i8042.noacpi=1 and 0.
> >
> > I did notice the following:
> >
> > Sep 7 15:53:57 deimos kernel: ACPI: Unable to locate RSDP
> > <snip>...
> > Sep 7 15:53:58 deimos kernel: ACPI: Subsystem revision 20040816
> > Sep 7 15:53:58 deimos kernel: ACPI: Interpreter disabled.
>
> Ah, that explains it. Can you try this patch, please? It falls back
> to the original scheme if ACPI is disabled.
>
> --- 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;
> }
That worked:
Sep 7 16:12:53 deimos kernel: i8042: ACPI detection disabled
Sep 7 16:12:53 deimos kernel: serio: i8042 AUX port at 0x60,0x64 irq 12
Sep 7 16:12:53 deimos kernel: serio: i8042 KBD port at 0x60,0x64 irq 1
Thanks,
Paul
--
Paul Fulghum
paulkf@microgate.com
next prev parent reply other threads:[~2004-09-07 21:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-07 19:37 [PATCH] ACPI-based i8042 keyboard/aux controller enumeration Paul Fulghum
2004-09-07 20:03 ` Bjorn Helgaas
[not found] ` <1094590748.2531.2.camel@deimos.microgate.com>
[not found] ` <200409071504.54173.bjorn.helgaas@hp.com>
2004-09-07 21:17 ` Paul Fulghum [this message]
2004-09-07 20:04 ` Nathan Bryant
-- strict thread matches above, loose matches on Subject: below --
2004-09-07 21:04 Paul Fulghum
2004-09-03 9:23 Matthieu Castet
2004-09-02 17:52 Bjorn Helgaas
2004-09-02 18:24 ` 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=1094591865.2532.1.camel@deimos.microgate.com \
--to=paulkf@microgate.com \
--cc=bjorn.helgaas@hp.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