From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Michael Lausch <michael.lausch@omicron.at>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] xenomai 2.6.1 on ixp4xx hangs on boot
Date: Fri, 20 Jul 2012 19:06:51 +0200 [thread overview]
Message-ID: <5009902B.7070705@xenomai.org> (raw)
In-Reply-To: <6B3AC2788014DD49B43AF9611365BBAA21B0B94DE9@mary.at.omicron.at>
On 07/19/2012 01:27 PM, Michael Lausch wrote:
> Hi,
> I'm trying to get xenomai-2.6.1 running on an ixp4xx board
> with kernel 3.2.21.
>
> The kernel boots with Xenomai and IPIPE disabled in the kernel configuration.
>
> The kernel also boots with Xenmai disabled and IPIPE enabled.
>
> But the kernel does not boot correctly with both, Xenomai and IPIPE enabled.
>
> Using a JTAG debugger i found that the kernel always hits a breakpoint
> On xnintr_clock_handler() with this backtrace:
>
> #1 0xc00516b8 in __ipipe_dispatch_irq_fast (irq=5) at kernel/ipipe/core.c:1272
> #2 0xc00083b0 in __ipipe_grab_irq (irq=<optimized out>, regs=0xc381ff30) at arch/arm/kernel/ipipe.c:458
> #3 0xc0008db0 in __irq_svc () at arch/arm/kernel/entry-armv.S:216
>
> The last line is repeated very often, but i think this is just a gdb artefact.
> The kernel seems to loop in __irq_svc->__ipipe_grab_irq->__irq_svc.
> Maybe the timer interrupt is not cleared and therefore executed as soon as the
> IRQ service function finishes?
Please try the following patch:
diff --git a/arch/arm/mach-ixp4xx/common.c b/arch/arm/mach-ixp4xx/common.c
index f4b878e..cafa9fa 100644
--- a/arch/arm/mach-ixp4xx/common.c
+++ b/arch/arm/mach-ixp4xx/common.c
@@ -593,6 +593,7 @@ static void ixp4xx_set_mode(enum clock_event_mode mode,
static struct ipipe_timer ixp4xx_itimer = {
.irq = IRQ_IXP4XX_TIMER1,
.min_delay_ticks = 333, /* 5 usec with the 66.66 MHz system clock */
+ .ack = ixp4xx_timer_ack,
};
#endif /* CONFIG_IPIPE */
--
Gilles.
next prev parent reply other threads:[~2012-07-20 17:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-19 11:27 [Xenomai] xenomai 2.6.1 on ixp4xx hangs on boot Michael Lausch
2012-07-20 17:06 ` Gilles Chanteperdrix [this message]
2012-07-23 10:28 ` Michael Lausch
2012-07-23 10:38 ` Gilles Chanteperdrix
2012-07-23 10:48 ` Michael Lausch
2012-07-24 6:49 ` Michael Lausch
2012-07-24 6:51 ` Gilles Chanteperdrix
2012-07-26 20:22 ` Gilles Chanteperdrix
2012-07-30 16:03 ` Michael Lausch
2012-07-30 16:28 ` Gilles Chanteperdrix
2012-07-31 6:15 ` Michael Lausch
2012-08-05 22:15 ` Gilles Chanteperdrix
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=5009902B.7070705@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=michael.lausch@omicron.at \
--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.