From: Kumar Gala <galak@kernel.crashing.org>
To: "Morrison, Tom" <tmorrison@empirix.com>
Cc: linuxppc-dev@ozlabs.org, "Young,
Andrew" <andrew.young@windriver.com>,
"Brown, Jeff" <jbrown@empirix.com>
Subject: Re: How to debug a hung multi-core system....
Date: Thu, 21 May 2009 08:12:42 -0500 [thread overview]
Message-ID: <C966FFF1-23FD-4581-A001-79F6961F8E49@kernel.crashing.org> (raw)
In-Reply-To: <BD261180E6D35F4D9D32F3E44FD3D90110EFACB2@EMPBEDEX.empirix.com>
On May 20, 2009, at 6:17 PM, Morrison, Tom wrote:
> All,
>
> First off, we turned SPE off completely in our build - so we
> could debug a much deeper problem that seems to be occurring
> in our application (before we try to find a potential test
> case for corruption of GPR registers).
>
> We have had this problem for 3 weeks, and just recently have
> come down to a single test case that makes it fail (although
> extremely complicated test case)...
>
> Setup:
> Master Blade (8548E) with Linux 2.6.23 (and custom BSP)
> Slave Blade (8572E) with Linux 2.6.23 (and similar custom BSP).
>
> The Master Blade works flawlessly (and also works in a slave
> capacity too flawlessly). The single 'slave' 8572E blades
> communicates with the 'master' blade over TCP/IP & PCI Express
> (and is running a similar application)...
>
> Running Single Core on slave 8572E (nosmp option on command line)
> the application works in all conditions (from modestly loaded to
> well oversubscribed/pegged CPU).
>
> In Multi-core option, the application also works flawlessly. The
> problem comes when we oversubscribe our application and push
> this 'slave' blade to the extreme edge of processing (falling
> behind in our processing...etc).
>
> Eventually, sometime between 5-15 minutes, this board becomes
> hung (where the console becomes completely unresponsive and
> you cannot 'ping' the box).
>
> I have a JTAG WindRiver ICE and connect to this blade after it
> is hung, and it appears that both cores are running to some
> extent:
>
> Core 1 seems to be Idle loop - happily doing nothing
> (and not servicing TCP and/or the console)...
>
> Core 0 seems to be 'stuck' at the "InstructionStorage"
> Exception. And it seems to be going 'nowhere' fast
>
> SRR0 seems to point to this same spot (0xc00006C0)
> SRR1 value is 0x00021200
>
> I am at a loss to see how the kernel (and/or our kernel BSP)
> cause this exception, and I am even more of a loss on figuring
> out an application could cause this exception...
This is a bit odd as we shouldn't see an ISI from 0xc00006C0.
Are you able to single step Core0? Can you dump the contents of the
TLBs on Core0
> Anybody have any ideas - and/or ways to re-configure our
> setup to obtain more data? Or does this sound familiar to
> a bug somebody has already found in the kernel?
>
> We are even having trouble defining a test program that can
> cause (on purpose) the 'InstructionStorage' Exception (does
> anybody have an simple 'c' (or ppc assembly) program that
> causes this exception (so we can run in user application land
> and see if the symptoms are similar))?
>
> Thank you in advance for any / all help you can provide....
> because I am completely stumped on even how to proceed!
Is your application generating a lot of processes or have a lot of
concurrent processes on the 8572?
- k
next prev parent reply other threads:[~2009-05-21 13:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-20 23:17 How to debug a hung multi-core system Morrison, Tom
2009-05-21 13:12 ` Kumar Gala [this message]
2009-05-21 13:52 ` Morrison, Tom
2009-05-21 14:45 ` Kumar Gala
2009-05-21 14:57 ` Morrison, Tom
2009-05-21 15:23 ` Morrison, Tom
2009-05-28 18:46 ` Kernel bug in 2.6.23...was: " Morrison, Tom
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=C966FFF1-23FD-4581-A001-79F6961F8E49@kernel.crashing.org \
--to=galak@kernel.crashing.org \
--cc=andrew.young@windriver.com \
--cc=jbrown@empirix.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=tmorrison@empirix.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