Re: [Xenomai-core] latency hangs on AT91RM9200

2007-03-08 Thread Gilles Chanteperdrix
Steven Scholz wrote: > Gilles Chanteperdrix wrote: > >>Steven Scholz wrote: >> > Hi Gilles, >> > >> > >> Ok, found the bug (actually, Philippe did), as almost expected, the way >> > >> it is related to the latency program period is not really obvious. The >> > >> bug is that in the macro "irq_han

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-03-08 Thread Steven Scholz
Gilles Chanteperdrix wrote: > Steven Scholz wrote: > > Hi Gilles, > > > > >> Ok, found the bug (actually, Philippe did), as almost expected, the way > > >> it is related to the latency program period is not really obvious. The > > >> bug is that in the macro "irq_handler" in entry-armv.S, the

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-03-08 Thread Gilles Chanteperdrix
Steven Scholz wrote: > Hi Gilles, > > >> Ok, found the bug (actually, Philippe did), as almost expected, the way > >> it is related to the latency program period is not really obvious. The > >> bug is that in the macro "irq_handler" in entry-armv.S, the return value > >> (in r0) of __ipipe_g

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-03-08 Thread Steven Scholz
Hi Gilles, >> Ok, found the bug (actually, Philippe did), as almost expected, the way >> it is related to the latency program period is not really obvious. The >> bug is that in the macro "irq_handler" in entry-armv.S, the return value >> (in r0) of __ipipe_grab_irq is overriden by the subsequent

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-26 Thread Steven Scholz
Hi Gilles, >> Ok, found the bug (actually, Philippe did), as almost expected, the way >> it is related to the latency program period is not really obvious. The >> bug is that in the macro "irq_handler" in entry-armv.S, the return value >> (in r0) of __ipipe_grab_irq is overriden by the subsequent

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-26 Thread Gilles Chanteperdrix
Gilles Chanteperdrix wrote: > Ok, found the bug (actually, Philippe did), as almost expected, the way > it is related to the latency program period is not really obvious. The > bug is that in the macro "irq_handler" in entry-armv.S, the return value > (in r0) of __ipipe_grab_irq is overriden by the

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-26 Thread Gilles Chanteperdrix
Gilles Chanteperdrix wrote: > Steven Scholz wrote: > >>Hi all, >> >> >> >>>I am running 2.6.19 + adeos-ipipe-2.6.19-arm-1.6-02.patch + >>>xenomai-svn-2007-02-22 >>>on an AT91RM9200 (160MHz/80MHz). >>> >>>When starting "latency -p 200" it runs for a while printing >>> >>>RTT| 00:05:37 (periodic

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-26 Thread Steven Scholz
Jan, >>> BTW, do you have the nucleus option "disable priority coupling" set or >>> not in your config (the latter is default, ie. it's on)? The other bug >>> is triggered when prio coupling is on, and doesn't appear while it's >>> off. Just to collect more patterns... >> CONFIG_XENO_OPT_PRIOCPL=y

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Gilles Chanteperdrix
Steven Scholz wrote: > Hi all, > > >>I am running 2.6.19 + adeos-ipipe-2.6.19-arm-1.6-02.patch + >>xenomai-svn-2007-02-22 >>on an AT91RM9200 (160MHz/80MHz). >> >>When starting "latency -p 200" it runs for a while printing >> >>RTT| 00:05:37 (periodic user-mode task, 200 us period, priority 99)

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Steven Scholz wrote: >> Hi all, >> >> >>> I am running 2.6.19 + adeos-ipipe-2.6.19-arm-1.6-02.patch + >>> xenomai-svn-2007-02-22 >>> on an AT91RM9200 (160MHz/80MHz). >>> >>> When starting "latency -p 200" it runs for a while printing >>> >>> RTT| 00:05:37 (periodic

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Gilles Chanteperdrix
Steven Scholz wrote: > Hi all, > > >>I am running 2.6.19 + adeos-ipipe-2.6.19-arm-1.6-02.patch + >>xenomai-svn-2007-02-22 >>on an AT91RM9200 (160MHz/80MHz). >> >>When starting "latency -p 200" it runs for a while printing >> >>RTT| 00:05:37 (periodic user-mode task, 200 us period, priority 99)

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Steven Scholz
Hi all, > I am running 2.6.19 + adeos-ipipe-2.6.19-arm-1.6-02.patch + > xenomai-svn-2007-02-22 > on an AT91RM9200 (160MHz/80MHz). > > When starting "latency -p 200" it runs for a while printing > > RTT| 00:05:37 (periodic user-mode task, 200 us period, priority 99) > RTH|-lat min|-lat

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Jan Kiszka
Steven Scholz wrote: > Jan, > >>> So what exactly shell I do? I have never worked with "the tracer". >>> >> Start here: http://www.xenomai.org/index.php/I-pipe:Tracer >> >> I haven't followed all details (while hacking on other bugs :)), but you >> have two options to catch a trace: the one descri

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Gilles Chanteperdrix
Steven Scholz wrote: > Hi, > > >>>schedule. Anyway, I think the tracer will give better results than a >>>simple backtrace. >> >>Ok. Thanks. >> >>So what exactly shell I do? I have never worked with "the tracer". > > > Just enabled > > CONFIG_IPIPE_DEBUG=y > CONFIG_IPIPE_TRACE=y > CONFIG_IPIPE

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Steven Scholz
Jan, >> So what exactly shell I do? I have never worked with "the tracer". >> > > Start here: http://www.xenomai.org/index.php/I-pipe:Tracer > > I haven't followed all details (while hacking on other bugs :)), but you > have two options to catch a trace: the one described on that page *if* > you

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Jan Kiszka
Steven Scholz wrote: > Jan, > >> BTW, do you have the nucleus option "disable priority coupling" set or >> not in your config (the latter is default, ie. it's on)? The other bug >> is triggered when prio coupling is on, and doesn't appear while it's >> off. Just to collect more patterns... > > CO

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Steven Scholz
Jan, > BTW, do you have the nucleus option "disable priority coupling" set or > not in your config (the latter is default, ie. it's on)? The other bug > is triggered when prio coupling is on, and doesn't appear while it's > off. Just to collect more patterns... CONFIG_XENO_OPT_PRIOCPL=y Steven

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Jan Kiszka
Steven Scholz wrote: > Gilles, > >>> Sure but I would still not expect the system to hang! >>> As I said missing a deadline is bad but ok. >>> But hanging the whole system is not quite ok. >> I want this bug solved too, especially since I am not sure that we will >> only see it with too short peri

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Steven Scholz
Hi, >> schedule. Anyway, I think the tracer will give better results than a >> simple backtrace. > Ok. Thanks. > > So what exactly shell I do? I have never worked with "the tracer". Just enabled CONFIG_IPIPE_DEBUG=y CONFIG_IPIPE_TRACE=y CONFIG_IPIPE_TRACE_ENABLE=y CONFIG_IPIPE_TRACE_MCOUNT=y CO

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Jan Kiszka
Steven Scholz wrote: > Gilles, > >>> Sure but I would still not expect the system to hang! >>> As I said missing a deadline is bad but ok. >>> But hanging the whole system is not quite ok. >> I want this bug solved too, especially since I am not sure that we will >> only see it with too short peri

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Gilles Chanteperdrix
Steven Scholz wrote: > Gilles, > > >>>Sure but I would still not expect the system to hang! >>>As I said missing a deadline is bad but ok. >>>But hanging the whole system is not quite ok. >> >>I want this bug solved too, especially since I am not sure that we will >>only see it with too short per

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Steven Scholz
Philippe, But I don't get the output of __backtrace()! >>> Before calling your backtrace helper, try adding: >>> >>> ipipe_set_printk_sync(ipipe_current_domain); >> And then use printk() instead of my_printk()? >> > > Yes, switching this on is a brute force attempt to bypass any > buffer

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Steven Scholz
Gilles, >> Sure but I would still not expect the system to hang! >> As I said missing a deadline is bad but ok. >> But hanging the whole system is not quite ok. > > I want this bug solved too, especially since I am not sure that we will > only see it with too short periods. Makes us two! ;-) >

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Philippe Gerum
On Fri, 2007-02-23 at 14:56 +0100, Steven Scholz wrote: > Philippe, > > >> I tried! Attached the patch I used. Since teh scheduler hangs I can't use > >> normal printk(), right? > >> > >> *ipipe_current_domain != ipipe_root_domain ! > >> *ipipe_current_domain = c01fc2c0 > >> *ipipe_root_domain

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Gilles Chanteperdrix
Steven Scholz wrote: > Gilles, > > >>>I am running 2.6.19 + adeos-ipipe-2.6.19-arm-1.6-02.patch + >>>xenomai-svn-2007-02-22 >>>on an AT91RM9200 (160MHz/80MHz). >>> >>>When starting "latency -p 200" it runs for a while printing >>> >>>RTT| 00:05:37 (periodic user-mode task, 200 us period, prior

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Steven Scholz
Philippe, >> I tried! Attached the patch I used. Since teh scheduler hangs I can't use >> normal printk(), right? >> >> *ipipe_current_domain != ipipe_root_domain ! >> *ipipe_current_domain = c01fc2c0 >> *ipipe_root_domain= c01af2c0 >> >> But I don't get the output of __backtrace()! > > Befo

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Steven Scholz
Gilles, >> I am running 2.6.19 + adeos-ipipe-2.6.19-arm-1.6-02.patch + >> xenomai-svn-2007-02-22 >> on an AT91RM9200 (160MHz/80MHz). >> >> When starting "latency -p 200" it runs for a while printing >> >> RTT| 00:05:37 (periodic user-mode task, 200 us period, priority 99) >> RTH|-lat min|--

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Philippe Gerum
On Fri, 2007-02-23 at 14:50 +0100, Steven Scholz wrote: > Gilles, > > >> I am running 2.6.19 + adeos-ipipe-2.6.19-arm-1.6-02.patch + > >> xenomai-svn-2007-02-22 > >> on an AT91RM9200 (160MHz/80MHz). > >> > >> When starting "latency -p 200" it runs for a while printing > >> > >> RTT| 00:05:37 (p

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Steven Scholz
Steven Scholz wrote: > Hi, > > i pick up this issue again. > > I am running 2.6.19 + adeos-ipipe-2.6.19-arm-1.6-02.patch + > xenomai-svn-2007-02-22 > on an AT91RM9200 (160MHz/80MHz). > > When starting "latency -p 200" it runs for a while printing > > RTT| 00:05:37 (periodic user-mode task, 2

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Steven Scholz
Philippe Gerum wrote: > On Fri, 2007-02-23 at 14:16 +0100, Gilles Chanteperdrix wrote: > >> I do not think to remember that there are cases where calling schedule >> from a real-time context is done by Xenomai, so maybe you can call panic >> in schedule instead of returning. I will try and trig a

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Philippe Gerum
On Fri, 2007-02-23 at 14:16 +0100, Gilles Chanteperdrix wrote: > I do not think to remember that there are cases where calling schedule > from a real-time context is done by Xenomai, so maybe you can call panic > in schedule instead of returning. I will try and trig a tracer freeze > and dump the

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Philippe Gerum
On Fri, 2007-02-23 at 12:27 +0100, Steven Scholz wrote: > #ifdef CONFIG_IPIPE > if (unlikely(!ipipe_root_domain_p)) > return; > #endif /* CONFIG_IPIPE */ > > When stepping trough I only see him getting into schedule() but leaving > it in the above lines and in include/linu

Re: [Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Gilles Chanteperdrix
Steven Scholz wrote: > Hi, > > i pick up this issue again. > > I am running 2.6.19 + adeos-ipipe-2.6.19-arm-1.6-02.patch + > xenomai-svn-2007-02-22 > on an AT91RM9200 (160MHz/80MHz). > > When starting "latency -p 200" it runs for a while printing > > RTT| 00:05:37 (periodic user-mode task, 2

[Xenomai-core] latency hangs on AT91RM9200

2007-02-23 Thread Steven Scholz
Hi, i pick up this issue again. I am running 2.6.19 + adeos-ipipe-2.6.19-arm-1.6-02.patch + xenomai-svn-2007-02-22 on an AT91RM9200 (160MHz/80MHz). When starting "latency -p 200" it runs for a while printing RTT| 00:05:37 (periodic user-mode task, 200 us period, priority 99) RTH|-lat min