From: Richard Cochran <richardcochran@domain.hid>
To: Philippe Gerum <rpm@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] [Xenomai core] Freeze on MPC8572 and P2020 with SMP
Date: Wed, 4 Nov 2009 19:19:07 +0100 [thread overview]
Message-ID: <20091104181907.GA24561@domain.hid> (raw)
In-Reply-To: <20091104140832.GA32220@domain.hid>
On Wed, Nov 04, 2009 at 03:08:32PM +0100, Richard Cochran wrote:
> On Wed, Nov 04, 2009 at 12:26:45PM +0100, Philippe Gerum wrote:
> > Ok, this is a porting issue. The critical IPI (IPIPE_CRITICAL_IPI) does
> > not seem to be properly handled on this platform.
Okay, after playing with the BDI3000 today, I have found out that both
cores end up running in infinite loops.
Core 0 runs this loop in ipipe_critical_enter() at
arch/powerpc/kernel/ipipe.c:278
while (!cpus_equal(__ipipe_cpu_sync_map, lock_map))
cpu_relax();
Dissambles to...
0xc000a5d4 <ipipe_critical_enter+368>: lwz r0,-23316(r30)
0xc000a5d8 <ipipe_critical_enter+372>: xor r0,r3,r0
0xc000a5dc <ipipe_critical_enter+376>: andi. r9,r0,3
0xc000a5e0 <ipipe_critical_enter+380>: bne+ 0xc000a5d4 <ipipe_critical_enter+368>
Core 1 runs an infinite loop in cpu_idle() calling into
ipipe_suspend_domain() now and again. The stack looks like:
#0 ipipe_suspend_domain () at kernel/ipipe/core.c:614
#1 0xc0008c0c in cpu_idle () at arch/powerpc/kernel/idle.c:62
#2 0xc030262c in start_secondary () at arch/powerpc/kernel/smp.c:556
#3 0xc0001ca8 in __secondary_start ()
I realize this is only the symptom, but now I'll study the code
leading up to this condition.
Any ideas on the prossible cause, Philippe?
Thanks,
Richard
next prev parent reply other threads:[~2009-11-04 18:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-03 13:34 [Xenomai-core] [Xenomai core] Freeze on MPC8572 and P2020 with SMP Richard Cochran
2009-11-03 14:44 ` Philippe Gerum
2009-11-04 5:56 ` Richard Cochran
2009-11-04 9:54 ` Philippe Gerum
2009-11-04 11:15 ` Richard Cochran
2009-11-04 11:26 ` Philippe Gerum
2009-11-04 14:08 ` Richard Cochran
2009-11-04 18:19 ` Richard Cochran [this message]
2009-11-04 22:16 ` Philippe Gerum
2009-11-06 8:10 ` Richard Cochran
2009-11-06 8:26 ` Philippe Gerum
2009-11-06 9:20 ` Richard Cochran
2009-11-06 9:32 ` Philippe Gerum
2010-02-09 10:46 ` Richard Cochran
2010-02-09 10:58 ` Philippe Gerum
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=20091104181907.GA24561@domain.hid \
--to=richardcochran@domain.hid \
--cc=rpm@xenomai.org \
--cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.