From: "Vegard Nossum" <vegard.nossum@gmail.com>
To: "Maciej W. Rozycki" <macro@linux-mips.org>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
"Frans Pop" <elendil@planet.nl>,
linux-kernel@vger.kernel.org, "Andi Kleen" <andi@firstfloor.org>,
"Ingo Molnar" <mingo@elte.hu>
Subject: Re: 2.6.27-rc3: 'APIC error on CPU1: 00(40)', but only on resume!
Date: Thu, 21 Aug 2008 13:18:23 +0200 [thread overview]
Message-ID: <19f34abd0808210418w39341d05p43712356b352cdc9@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.55.0808211023020.22938@cliff.in.clinika.pl>
On Thu, Aug 21, 2008 at 11:27 AM, Maciej W. Rozycki
<macro@linux-mips.org> wrote:
> On Wed, 20 Aug 2008, Rafael J. Wysocki wrote:
>
>> On my box I see many "APIC error on CPU1: 00(40)" messages that don't seem
>> to be related to anything obviously bad and I've alwas been seeing them.
>
> Barring a hardware erratum, this is a bug in the kernel. It should be
> moderately easy to track down with some debugging added to writes
> accessing LVT and redirection table entries.
Hi,
I've also seen this a lot, so I have now written (I think) such a
debug patch (it's very crude) and tested it on my laptop, which
exhibits this problem.
The patch and full dmesg (with debug output) can be found here:
http://userweb.kernel.org/~vegard/bugs/20080821-apic/
The output looks like this (with register annotations by me; CPU id is
the second column)
APIC error on CPU0: 00(40)
Last 16 APIC writes:
0: 1: [00000380] = 00001f79
1: 1: [000000b0] = 00000000
2: 1: [00000380] = 00001f7e
3: 1: [000000b0] = 00000000
4: 1: [00000380] = 00001fa5
5: 1: [000000b0] = 00000000
6: 1: [00000380] = 00001f8c
7: 1: [000000b0] = 00000000
8: 1: [000000b0] = 00000000
9: 1: [00000380] = 00001e4e
10: 1: [000000b0] = 00000000
11: 1: [00000380] = 00001fa5
12: 1: [000000b0] = 00000000
13: 1: [00000380] = 00001f87 # Initial Count Register (for Timer)
14: 0: [00000280] = 00000000 # Error Status Register
15: 0: [000000b0] = 00000000 # EOI Register
The order is from oldest (0) to newest (15) write. I don't see any
writes to ICR in there, which means that IPIs can be ruled out? It
seems that it is the write to Timer that causes it. In another place,
we have this:
13: 1: [00000320] = 000100ef # LVT Timer Register
14: 0: [00000280] = 00000000
15: 0: [000000b0] = 00000000
This would be APIC_LVT_MASKED | LOCAL_TIMER_VECTOR.
The APIC error is seen approximately every 3 minutes.
Vegard
--
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
-- E. W. Dijkstra, EWD1036
next prev parent reply other threads:[~2008-08-21 11:18 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-20 19:06 Frans Pop
2008-08-20 19:38 ` Rafael J. Wysocki
2008-08-20 20:26 ` Frans Pop
2008-08-20 21:56 ` Rafael J. Wysocki
2008-08-21 9:27 ` Maciej W. Rozycki
2008-08-21 11:18 ` Vegard Nossum [this message]
2008-08-21 11:51 ` Maciej W. Rozycki
2008-08-21 12:01 ` Maciej W. Rozycki
2008-08-21 12:20 ` Vegard Nossum
2008-08-21 12:57 ` Maciej W. Rozycki
2008-08-21 13:14 ` Vegard Nossum
2008-08-21 13:15 ` Mikael Pettersson
2008-08-30 19:33 ` Yinghai Lu
2008-08-30 19:16 ` Frans Pop
2008-08-30 20:16 ` Maciej W. Rozycki
2008-09-04 20:18 ` Frans Pop
2008-08-21 11:30 ` Matthew Garrett
2008-08-21 11:31 ` Matthew Garrett
2008-08-22 0:02 ` Frans Pop
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=19f34abd0808210418w39341d05p43712356b352cdc9@mail.gmail.com \
--to=vegard.nossum@gmail.com \
--cc=andi@firstfloor.org \
--cc=elendil@planet.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=macro@linux-mips.org \
--cc=mingo@elte.hu \
--cc=rjw@sisk.pl \
/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®