mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: wzab <wzab@ise.pw.edu.pl>
To: linux-kernel@vger.kernel.org
Cc: maciej.rutecki@gmail.com
Subject: Probably solved or worked around: 2.6.37 says WARNING: at arch/x86/kernel/apic/apic.c:1287 setup_local_APIC+0x18f/0x263()
Date: Thu, 16 Jun 2011 21:49:21 +0200	[thread overview]
Message-ID: <4DFA5E41.5090803@ise.pw.edu.pl> (raw)

I had similar problems as reported in 
https://bugzilla.kernel.org/show_bug.cgi?id=27642

I was using buildroot buildroot-2011.02 with kernel 2.6.37.2 on virtual 
machine inside of QEMU
The warning shown in the subject further lead to incorrect routing of 
IRQs from PCI devices
connected withg QEMU's option "-device DEVICE_NAME".

The warning was reported as:
------------[ cut here ]------------
WARNING: at arch/x86/kernel/apic/apic.c:1287 setup_local_APIC+0x22a/0x34d()
Hardware name: Bochs
Modules linked in:
Pid: 0, comm: kworker/0:0 Tainted: G        W   2.6.37 #3
Call Trace:
  [<c102f318>] ? warn_slowpath_common+0x78/0xb0
  [<c12ebde5>] ? setup_local_APIC+0x22a/0x34d
  [<c12ebde5>] ? setup_local_APIC+0x22a/0x34d
  [<c102f36b>] ? warn_slowpath_null+0x1b/0x20
  [<c12ebde5>] ? setup_local_APIC+0x22a/0x34d
  [<c12eb0d8>] ? start_secondary+0xd3/0x1c1
---[ end trace 4eaa2a86a8e2da23 ]---

And IRQs were routed as follows:

wzab_enc1 0000:00:04.0: PCI->APIC IRQ transform: INT A -> IRQ 35
  mmio_start=f2060000, mmio_end=f2060fff, mmio_len=1000, irq=35

IRQ35 was not available in the emulated system so driver was not able to 
request it.

The problem disappeared, after I have switched on the following options 
in kernel configuration:
CONFIG_PM=y
CONFIG_ACPI=y

I have verified, that this resulted in automatic selection of option
CONFIG_PCI_IOAPIC=y

After recompilation of kernel, I don't get the mentioned warning during 
the boot
and IRQs are routed correctly:
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
wzab_enc1 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 11 (level, high) 
-> IRQ 11
  mmio_start=f2060000, mmio_end=f2060fff, mmio_len=1000, irq=11

-- 
HTH & Regards,
Wojtek






                 reply	other threads:[~2011-06-16 19:49 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=4DFA5E41.5090803@ise.pw.edu.pl \
    --to=wzab@ise.pw.edu.pl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maciej.rutecki@gmail.com \
    /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®