* [Xenomai] error in xenomai porting to new arm soc
@ 2015-02-09 5:14 satya patel
2015-02-09 13:11 ` Gilles Chanteperdrix
0 siblings, 1 reply; 3+ messages in thread
From: satya patel @ 2015-02-09 5:14 UTC (permalink / raw)
To: xenomai
Hi,
>
>
>
> I am trying to port xenomai on an ARM A-9 based SOC (configured for
single core processor).
>
> I need to use Linux kernel version 10.3.31.
>
> Hence I patched Xenomai as below:
>
>
>
> Linux 10.3.31 (LTSI version) + ipipe-core-3.10.32-arm-6.patch +
xenomai-3.0-rc2.tar.bz2.
>
>
>
> 1. Patching is successful. (few patching conflicts are resolved
manually in files - irq-gic.c, arm_arch_timer.c, irqdesc.c.
>
> 2. Merged code is compiled successfully in all the three
combinations:
>
> a. CONFIG_IPIPE and XENOMAI disabled.
>
> b. CONFIG_IPIPE Enabled and XENOMAI disabled.
>
> c. CONFIG_IPIPE and XENOMAI Enabled.
>
> 3. However kernel boots successfully only for the option “2.a”
above (i.e. CONFIG_IPIPE and XENOMAI disabled).
>
> Below error is observed in option “2.b”:
>
>
>
> Switching to clocksource ipipe_tsc
>
>
>
> INFO: rcu_preempt self-detected stall on CPU { 0} (t=27486 jiffies
g=4294967038 c=4294967037 q=10)
>
>
>
> CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.31-ltsi-20141215 #17
>
>
>
> [<c0013818>] (unwind_backtrace+0x0/0x138) from [<c0011ea8>]
(show_stack+0x10/0x14)
>
>
>
> 4. Below changes are done apart from applying the ipipe patch:
>
> a. Conflicts are resolved manually to keep latest ipipe code in
files irq-gic.c, arm_arch_timer.c, irqdesc.c.
>
> b. Enabled “IPIPE_ARM_KUSER_TSC” for target SoC in KConfig file
>
> c. Set CONFIG_UIDGID_STRICT_TYPE_CHECKS=n
>
> d. Modified timer.c file for ipipe_timer and tsc as per below link:
>
>
https://xenomai.org/2014/09/porting-xenomai-dual-kernel-to-a-new-arm-soc/#config-multi-irq-handler
>
>
>
> Please let me know how to avoid the above warning to boot the kernel.
>
> Regards.
>
> Satya
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai] error in xenomai porting to new arm soc
2015-02-09 5:14 [Xenomai] error in xenomai porting to new arm soc satya patel
@ 2015-02-09 13:11 ` Gilles Chanteperdrix
[not found] ` <CA+HFbxDNu_--M3uydO2e2XHwMtEjmTeLFDCSiOSAFpmiKSa=hA@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Gilles Chanteperdrix @ 2015-02-09 13:11 UTC (permalink / raw)
To: satya patel; +Cc: xenomai
On Mon, Feb 09, 2015 at 10:44:07AM +0530, satya patel wrote:
> Hi,
> >
> >
> >
> > I am trying to port xenomai on an ARM A-9 based SOC (configured for
> single core processor).
> >
> > I need to use Linux kernel version 10.3.31.
This kernel version does not exist yet, unless maybe if you are
using ftp over IPOT. The latest kernel version is 3.19
> >
> > Hence I patched Xenomai as below:
> >
> >
> >
> > Linux 10.3.31 (LTSI version) + ipipe-core-3.10.32-arm-6.patch +
> xenomai-3.0-rc2.tar.bz2.
> >
> >
> >
> > 1. Patching is successful. (few patching conflicts are resolved
> manually in files - irq-gic.c, arm_arch_timer.c, irqdesc.c.
> >
> > 2. Merged code is compiled successfully in all the three
> combinations:
> >
> > a. CONFIG_IPIPE and XENOMAI disabled.
> >
> > b. CONFIG_IPIPE Enabled and XENOMAI disabled.
> >
> > c. CONFIG_IPIPE and XENOMAI Enabled.
> >
> > 3. However kernel boots successfully only for the option “2.a”
> above (i.e. CONFIG_IPIPE and XENOMAI disabled).
> >
> > Below error is observed in option “2.b”:
> >
> >
> >
> > Switching to clocksource ipipe_tsc
> >
> >
> >
> > INFO: rcu_preempt self-detected stall on CPU { 0} (t=27486 jiffies
> g=4294967038 c=4294967037 q=10)
> >
> >
> >
> > CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.31-ltsi-20141215 #17
> >
> >
> >
> > [<c0013818>] (unwind_backtrace+0x0/0x138) from [<c0011ea8>]
> (show_stack+0x10/0x14)
> >
> >
> >
> > 4. Below changes are done apart from applying the ipipe patch:
> >
> > a. Conflicts are resolved manually to keep latest ipipe code in
> files irq-gic.c, arm_arch_timer.c, irqdesc.c.
> >
> > b. Enabled “IPIPE_ARM_KUSER_TSC” for target SoC in KConfig file
> >
> > c. Set CONFIG_UIDGID_STRICT_TYPE_CHECKS=n
> >
> > d. Modified timer.c file for ipipe_timer and tsc as per below link:
> >
> >
> https://xenomai.org/2014/09/porting-xenomai-dual-kernel-to-a-new-arm-soc/#config-multi-irq-handler
> >
> >
> >
> > Please let me know how to avoid the above warning to boot the kernel.
Your tsc emulation probably has an issue.
--
Gilles.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai] error in xenomai porting to new arm soc
[not found] ` <CA+HFbxDNu_--M3uydO2e2XHwMtEjmTeLFDCSiOSAFpmiKSa=hA@mail.gmail.com>
@ 2015-02-09 13:27 ` Gilles Chanteperdrix
0 siblings, 0 replies; 3+ messages in thread
From: Gilles Chanteperdrix @ 2015-02-09 13:27 UTC (permalink / raw)
To: satya patel; +Cc: Xenomai
On Mon, Feb 09, 2015 at 06:47:03PM +0530, satya patel wrote:
> Sorry it is kernel 3.10.31 version
It does not really matter. Please read my answer completely, do not
top post, and keep the conversation on the mailing list.
--
Gilles.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-09 13:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-09 5:14 [Xenomai] error in xenomai porting to new arm soc satya patel
2015-02-09 13:11 ` Gilles Chanteperdrix
[not found] ` <CA+HFbxDNu_--M3uydO2e2XHwMtEjmTeLFDCSiOSAFpmiKSa=hA@mail.gmail.com>
2015-02-09 13:27 ` Gilles Chanteperdrix
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.