From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Arnaud Degroote <arnaud.degroote@isae.fr>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Porting Xenomai on Odroid-U3
Date: Mon, 26 Jan 2015 20:54:09 +0100 [thread overview]
Message-ID: <20150126195409.GA1491@hermes.click-hack.org> (raw)
In-Reply-To: <20150126195219.GA10959@bugfree>
On Mon, Jan 26, 2015 at 08:52:19PM +0100, Arnaud Degroote wrote:
> On 26/Jan - 20:09, Gilles Chanteperdrix wrote:
> > On Mon, Jan 26, 2015 at 08:02:41PM +0100, Arnaud Degroote wrote:
> > > Hi list,
> > >
> > > I'm trying to port Xenomai on Odroid-U3. I read on the list that there
> > > is a first try by GP Orcullo, so I start from its work.
> > >
> > > I'm working on a 3.17.8 kernel on which I ported the Ipipe / Xenomai
> > > patch. I validated it on two omaps platform where I don't see regression
> > > against previous version of the patch, so I'm fairly confident that the
> > > core part is correct. In a second time, I ported the previous effort of
> > > GP Orcullo. The current state of the effort is available on
> > >
> > > https://github.com/adegroote/linux/tree/linux-stable-xenomai-odroid-3.17.y
> > >
> > > I tested without IPIPE, and with IPIPE. Troubles start with the XENOMAI
> > > option. Basically, the kernel seems to hangs when I load any "skin" (I
> > > compiled them in modules to be sure). For example,
> > >
> > > modprobe xeno-native
> > >
> > > prints
> > >
> > > Xenomai: starting native API services.
> > >
> > > but I cannot get back the shell prompt.
> > >
> > > From the Troubleshooting part, I suppose something is wrong with the
> > > ipipe_timer, but I don't have much idea where to look for.
> > >
> > > Can someone give me some inputs about how to trace / debug this issue
> > > or/and quickly check if I miss something obvious in my patch.
> > >
> > > https://github.com/adegroote/linux/commit/81c6ebeb3127efdceb3e31f9d3f1f400ecbb579f.patch
> >
> > Well, you should put some printks in the timer code to see what is
> > the last action done. Is the ->ack function called, does it really
> > acknowledge the timer interrupt at timer level (because if it does
> > not, the interrupt will trigger again at the end of the current
> > interrupt).
>
> Thanks Gilles,
> I will try tomorrow morning, when I will be back to work.
> >
> > Could you post a link to the patched file handling the timer ?
>
> The timer used is exynos-mct, available here
>
> https://github.com/adegroote/linux/blob/linux-stable-xenomai-odroid-3.17.y/drivers/clocksource/exynos_mct.c
The ISR is wrong. The acknowledge should be skipped when the timer is
stolen, not the event handler.
--
Gilles.
next prev parent reply other threads:[~2015-01-26 19:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-26 19:02 [Xenomai] Porting Xenomai on Odroid-U3 Arnaud Degroote
2015-01-26 19:09 ` Gilles Chanteperdrix
2015-01-26 19:52 ` Arnaud Degroote
2015-01-26 19:54 ` Gilles Chanteperdrix [this message]
2015-01-26 20:13 ` Arnaud Degroote
2015-01-27 13:09 ` Arnaud Degroote
2015-01-27 13:26 ` Gilles Chanteperdrix
2015-01-27 13:55 ` Arnaud Degroote
2015-01-27 14:00 ` Gilles Chanteperdrix
[not found] ` <20150127145812.GC22089@dmia-degroote.isae.fr>
2015-01-27 15:03 ` Gilles Chanteperdrix
2015-01-27 16:49 ` Arnaud Degroote
2015-01-27 17:18 ` Gilles Chanteperdrix
[not found] ` <20150127172741.GE22089@dmia-degroote.isae.fr>
2015-01-27 17:47 ` 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=20150126195409.GA1491@hermes.click-hack.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=arnaud.degroote@isae.fr \
--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.