From: Mikael Pettersson <mikpe@csd.uu.se>
To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Cc: mathieu.desnoyers@polymtl.ca, linux-kernel@vger.kernel.org,
mingo@redhat.com
Subject: Re: PROBLEM: APIC on a Pentium Classic SMP, 2.4.21-pre2 and 2.4.21-pre3 ksymoops
Date: Wed, 10 Sep 2003 18:18:31 +0200 [thread overview]
Message-ID: <16223.20183.242571.608500@gargle.gargle.HOWL> (raw)
In-Reply-To: <Pine.GSO.3.96.1030910121939.5295A-100000@delta.ds2.pg.gda.pl>
Maciej W. Rozycki writes:
> > Fixing the oops is easy (see below), but the real problem is
> > that 2.4.21-pre2 apparently broke MP table parsing on your HW.
> > I suggest you sprinkle tracing printk()s in setup/smpboot/mpparse
> > and compare 2.4.20 (good) and later (bad) to see where things
> > start to diverge.
>
> There is no need to -- the problem is already known. Mikael, if you need
> additional details on how default MP configurations work in our code, feel
I think I nailed it.
First I found one very strange thing in Mathieu's boot log:
--- mpbug-2.4.20 Wed Sep 10 17:19:05 2003
+++ mpbug-2.4.23-pre3 Wed Sep 10 17:18:44 2003
...
+DMI not present.
Intel MultiProcessor Specification v1.1
Virtual Wire compatibility mode.
Default MP configuration #6
This means construct_default_ISA_mptable() still gets called.
Ok so far.
...
ENABLING IO-APIC IRQs
Setting 2 in the phys_id_present_map
...changing IO-APIC physical APIC ID to 2 ... ok.
smp_found_config is true, we're now in setup_IO_APIC()
and have completed setup_ioapic_ids_from_mpc(). Ok so far.
-init IO_APIC IRQs
-IO-APIC (apicid-pin) 2-0 not connected.
THIS IS BAD. setup_IO_APIC() calls setup_IO_APIC_IRQs(),
which starts by printk()ing the first line above.
This line is missing from the 2.4.23-pre3 dmesg log, which
seems like an impossibility.
At this point I was thinking "memory corruption",
and the following struck me:
What used to be arrays (mp_irqs[] etc) are now pointers to
memory which is sized and allocated by smp_read_mpc().
In the case when construct_default_ISA_mptable() is called,
smp_read_mpc() is _not_ called, the pointers never get initialised,
and reads and writes of these arrays end up in la-la land.
The fix would be to add allocation and initialisation of
these pointers at the start of construct_default_ISA_mptable().
I'll prepare a patch doing this sometime tomorrow.
/Mikael
next prev parent reply other threads:[~2003-09-10 16:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-09 20:31 Mikael Pettersson
2003-09-10 10:26 ` Maciej W. Rozycki
2003-09-10 16:18 ` Mikael Pettersson [this message]
2003-09-10 16:58 ` Maciej W. Rozycki
-- strict thread matches above, loose matches on Subject: below --
2003-09-08 9:33 PROBLEM: APIC on a Pentium Classic SMP, kernel 2.4.21-pre5 to 2.4.23-pre3 Mikael Pettersson
2003-09-08 23:22 ` PROBLEM: APIC on a Pentium Classic SMP, 2.4.21-pre2 and 2.4.21-pre3 ksymoops Mathieu Desnoyers
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=16223.20183.242571.608500@gargle.gargle.HOWL \
--to=mikpe@csd.uu.se \
--cc=linux-kernel@vger.kernel.org \
--cc=macro@ds2.pg.gda.pl \
--cc=mathieu.desnoyers@polymtl.ca \
--cc=mingo@redhat.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
Powered by JetHome