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: Tue, 9 Feb 2010 11:46:14 +0100 [thread overview]
Message-ID: <20100209104614.GA26894@domain.hid> (raw)
In-Reply-To: <1257499920.2210.247.camel@domain.hid>
On Fri, Nov 06, 2009 at 10:32:00AM +0100, Philippe Gerum wrote:
> On Fri, 2009-11-06 at 10:20 +0100, Richard Cochran wrote:
> > Yes, works fine now. Thanks for your help.
I am working again on PowerPC, and I now notice that I spoke too
soon. I had fixed the problem for myself, in a different way.
The fix you gave is still not quite right.
> diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c
> index 8968b24..a4fe229 100644
> --- a/arch/powerpc/kernel/smp.c
> +++ b/arch/powerpc/kernel/smp.c
> @@ -164,16 +164,16 @@ int smp_request_message_ipi(int virq, int msg)
> if (msg < 0 || msg > PPC_MSG_DEBUGGER_BREAK) {
> return -EINVAL;
> }
Even if this block...
> -#if !defined(CONFIG_DEBUGGER) && !defined(CONFIG_KEXEC)
> - if (msg == PPC_MSG_DEBUGGER_BREAK) {
> - return 1;
> - }
> -#endif
> #ifdef CONFIG_IPIPE
> if (msg == PPC_MSG_DEBUGGER_BREAK)
> /* Piggyback the debugger IPI for the I-pipe. */
> __ipipe_register_ipi(virq);
> #endif
appears here...
> +#if !defined(CONFIG_DEBUGGER) && !defined(CONFIG_KEXEC)
> + if (msg == PPC_MSG_DEBUGGER_BREAK) {
> + return 1;
> + }
> +#endif
it still prevents the following call...
> err = request_irq(virq, smp_ipi_action[msg], IRQF_DISABLED|IRQF_PERCPU,
> smp_ipi_name[msg], 0);
The function, smp_request_message_ipi(), is called unconditionally
with virq=0,1,2,3, and 3=PPC_MSG_DEBUGGER_BREAK. AFAICT, ipipe needs
the call to request_irq() to go through.
I suggest:
#ifdef CONFIG_IPIPE
if (msg == PPC_MSG_DEBUGGER_BREAK)
/* Piggyback the debugger IPI for the I-pipe. */
__ipipe_register_ipi(virq);
#else
#if !defined(CONFIG_DEBUGGER) && !defined(CONFIG_KEXEC)
if (msg == PPC_MSG_DEBUGGER_BREAK) {
return 1;
}
#endif
#endif
Richard
next prev parent reply other threads:[~2010-02-09 10:46 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
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 [this message]
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=20100209104614.GA26894@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.