public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Guido Trentalancia <guido@trentalancia.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Skip looking for ioapic overrides when ioapics are not present
Date: Fri, 06 Aug 2010 04:40:33 +0200	[thread overview]
Message-ID: <1281062433.5716.18.camel@tesla.lan> (raw)

I have applied the patch below to the 2.6.35 kernel and it finally
stopped reporting "Unable to locate IOAPIC for GSI..." on bootup.

>Eric W. Biederman writes on 2010-06-06 03:56:05
>Avinash Kurup <kurup.avinash@gmail.com> writes:
>
>> Hi Eric,
>>     I get the following errors while booting into 2.6.35-rc1. I did not
>> get these in 2.6.34 . The computer however boots and works fine, So its not
>> serious but the following errors are displayed in dmesg.
>>
>> [    0.089969] ERROR: Unable to locate IOAPIC for GSI 13
>> [    0.090556] ERROR: Unable to locate IOAPIC for GSI 8
>> [    0.091104] ERROR: Unable to locate IOAPIC for GSI 12
>> [    0.091375] ERROR: Unable to locate IOAPIC for GSI 1
>> [    0.093195] ERROR: Unable to locate IOAPIC for GSI 4
>> [    0.094342] ERROR: Unable to locate IOAPIC for GSI 10
>> [    0.096335] ERROR: Unable to locate IOAPIC for GSI 6
>
>The new warning originates from acpi_get_override_irq, which I changed to
>use helper functions that warn when they fail.
>
>When IOAPICs and ACPI are enabled in a kernel and run on ACPI hardware
>that doesn't use the ioapics the pnp acpi code calls this function,
>looking for ACPI irq overrides.  ACPI irq overrides exist only in the
>ioapic case so this function will never succeed.  So make the function
>fail fast so we don't call into help functions that legitimately
>complain when they fail.
>
>Tested-by: Avinash Kurup <kurup.avinash@gmail.com>
>Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
>
>---
>
>diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
>index 33f3563..226a6d1 100644
>--- a/arch/x86/kernel/apic/io_apic.c
>+++ b/arch/x86/kernel/apic/io_apic.c
>@@ -4066,6 +4066,9 @@  int acpi_get_override_irq(u32 gsi, int *trigger, int *polarity)
> {
> 	int ioapic, pin, idx;
> 
>+	if (acpi_irq_model != ACPI_IRQ_MODEL_IOAPIC)
>+		return -1;
>+
> 	if (skip_ioapic_setup)
> 		return -1;
> 
>



                 reply	other threads:[~2010-08-06  2:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1281062433.5716.18.camel@tesla.lan \
    --to=guido@trentalancia.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