Re: [Xenomai] watchdog triggered -- signalling runaway thread

2017-06-28 Thread Lowell Gilbert
Ashok kumar writes: > In xenomai I am running two task for 1ms task period for two task > after a while I get Cpu time limit exceeded (core dumped) in the terminal > and in the syslog the error message "watchdog triggered -- signalling > runaway thread" > > is there any solution to this problem

Re: [Xenomai] matching patch version to kernel version

2017-11-30 Thread Lowell Gilbert
Hi, Steve. Steve Pavao writes: > I am building Yocto poky linux for an Intel board at head in Master > branch in Yocto poky, which currently results in a kernel version > 4.9.61. I stick to release branches for Poky for my own releases. Probably not a big deal, as my experience using HEAD on re

Re: [Xenomai] Cobalt core and Yocto

2017-12-19 Thread Lowell Gilbert
Steve Pavao writes: > Here are my recipes, which work fine, but Cobalt core does not boot. I must > need something else in my recipe(s). > > For I-PIPE Patch, my recipe file is linux-intel_4.9.bbappend: > > FILESEXTRAPATHS_prepend := "${THISDIR}/files:" > SRC_URI += "file://ipipe-core-4.9.51-x8

Re: [Xenomai] Cobalt core and Yocto

2017-12-19 Thread Lowell Gilbert
Steve Pavao writes: > Thanks for that tip. That’s what I was thinking I might need to do. > > I guess the solution in Yocto terms is to rework my I-PIPE patch > recipe to not directly apply the I-PIPE patch, but rather to call > prepare-kernel.sh and allow it to apply the patch, plus do the othe

[Xenomai] rtdm_timer_start latency?

2018-02-08 Thread Lowell Gilbert
Am I correct in assuming that when calling rtdm_timer_start(), I should not be getting multi-second latencies before the first call to the timer routine? Just checking before I dig in too far. Thanks. ___ Xenomai mailing list Xenomai@xenomai.org https:/

Re: [Xenomai] rtdm_timer_start latency?

2018-02-09 Thread Lowell Gilbert
Philippe Gerum writes: > On 02/09/2018 11:02 AM, Philippe Gerum wrote: >> On 02/09/2018 12:45 AM, Lowell Gilbert wrote: >>> Am I correct in assuming that when calling rtdm_timer_start(), I should >>> not be getting multi-second latencies before the first call to

Re: [Xenomai] rtdm_timer_start latency?

2018-02-09 Thread Lowell Gilbert
Lowell Gilbert writes: > To put it another way, I'm trying to figure out what am I doing wrong in: > ret = rtdm_timer_start(&pstate.collect.timer, rtdm_clock_read() > + 1, >

Re: [Xenomai] rtdm_timer_start latency?

2018-02-12 Thread Lowell Gilbert
Lowell Gilbert writes: > Philippe Gerum writes: > >> On 02/09/2018 11:02 AM, Philippe Gerum wrote: >>> On 02/09/2018 12:45 AM, Lowell Gilbert wrote: >>>> Am I correct in assuming that when calling rtdm_timer_start(), I should >>>> not be getting mu

Re: [Xenomai] rtdm_timer_start latency?

2018-02-12 Thread Lowell Gilbert
Lange Norbert writes: > this seems identical to an issue I have. I wanted to start a > millisecond tick, aligned to seconds, but used the POSIX > timerfd_settime. Under Linux this works as intendent, under cobalt it > doesn't. > > I expect that the first timeout would be somewhat close to the ca

Re: [Xenomai] rtdm_timer_start latency?

2018-02-13 Thread Lowell Gilbert
Lowell Gilbert writes: > Lowell Gilbert writes: > >> Philippe Gerum writes: >> >>> On 02/09/2018 11:02 AM, Philippe Gerum wrote: >>>> On 02/09/2018 12:45 AM, Lowell Gilbert wrote: >>>>> Am I correct in assuming that when calling rtdm_tim

[Xenomai] Altera Cyclone V

2014-01-07 Thread Lowell Gilbert
it, and the file would be used the same for other chips containing the Cortex A9, so I'm confused about what might be wrong. Any pointers would be appreciated. Thanks. Be well. Lowell Gilbert ___ Xenomai mailing list Xenomai@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai

Re: [Xenomai] Altera Cyclone V

2014-01-07 Thread Lowell Gilbert
Gilles Chanteperdrix writes: > On 01/07/2014 11:19 PM, Charles Steinkuehler wrote: >> The single-core A8 on the >> BeagleBone is good for about 25 uS typical and 80 uS or so worst case >> latency. > > That is really high. On a 720MHz OMAP3, with the latency test running > with a 100us period, I t

Re: [Xenomai] Altera Cyclone V

2014-01-08 Thread Lowell Gilbert
Gilles Chanteperdrix writes: > On 01/07/2014 08:52 PM, Lowell Gilbert wrote: >> What I'm hitting at the moment is that gt_setup() is getting called, >> but twd_timer_setup() hasn't run yet, so the frequency isn't set yet. >> Both functions are in __cpuinit,

Re: [Xenomai] Altera Cyclone V

2014-01-09 Thread Lowell Gilbert
Gilles Chanteperdrix writes: > No, you do not have to write your own __ipipe_mach_update_tsc(). See: > https://www.xenomai.org/index.php/I-pipe-core:ArmPorting#High_resolution_counter I appreciate the help, but I still don't see an implementation of __ipipe_mach_update_tsc() that I could have us

Re: [Xenomai] Altera Cyclone V

2014-01-13 Thread Lowell Gilbert
Gilles Chanteperdrix writes: > No, every ARM SOC has its own clocks implementation. This is currently > changing with the switch to device tree, but not all SOCs are > converted, at least not all of them were last time I checked. Anyway, > if your SOC uses device tree, adding a clock may simpl

Re: [Xenomai] Raspberry Pi - 3.10.34

2014-03-27 Thread Lowell Gilbert
Gregory Dymarek writes: > To get kernel 3.10.34 to work the ipipe patch needs updating. > (ipipe-3.8.x does not apply cleanly). > > What is the process to release a new ipipe patch for 3.10.34? > > Or what is the alternative? The source control trees are easily available, so there are a lot of o

Re: [Xenomai] Rescnt imbalance in rtdm_mutex_timedlock

2014-03-27 Thread Lowell Gilbert
Jan Kiszka writes: > On 2014-03-27 19:24, Philippe Gerum wrote: >> On 03/27/2014 07:04 PM, Jan Kiszka wrote: >>> if (unlikely(...)) - locks are generally unlikely to be contended >>> (unless something is suboptimally designed at the user site). >>> >> >> I'm unsure we really need to take a chan

Re: [Xenomai] How to debug xenomai source

2014-07-08 Thread Lowell Gilbert
yogesh garg writes: > I am using Xenomai to create my kernel module. But I am getting some errors. > To debug more on issues I want to print Xenomai debug messages(" > *trace_mark*"). > Please help me what I need to configure or enable to see *trace_mark * > messages. Is there a particular probl

Re: [Xenomai] Menuconfig

2014-10-17 Thread Lowell Gilbert
"Mallik, Udayan (GSFC-5640)" writes: > I am installing Xenomai-2.6.4 on my Linux box with Linux-3.10.32. on a PC-type machine, most likely... Do you have a kernel working with the ipipe extensions before adding Xenomai? > I disabled all but the MSI switch (I could not change this one!) under

[Xenomai] interrupt service

2015-02-18 Thread Lowell Gilbert
Hi. I have a kernel task created with rtdm_task_init(). I can wake it up from my ioctl handler in non-RT, but not from inside my ISR, which was hooked with rtdm_irq_request(). I tried it with a semaphore, with an event, and then with just rtdm_task_unblock(). I'm probably doing something silly her

Re: [Xenomai] interrupt service

2015-02-18 Thread Lowell Gilbert
Gilles Chanteperdrix writes: > On Wed, Feb 18, 2015 at 05:03:33PM -0500, Lowell Gilbert wrote: >> Hi. >> >> I have a kernel task created with rtdm_task_init(). I can wake it up >> from my ioctl handler in non-RT, but not from inside my ISR, which was >> hooked

Re: [Xenomai] interrupt service

2015-02-19 Thread Lowell Gilbert
Lowell Gilbert writes: > Gilles Chanteperdrix writes: > >> On Wed, Feb 18, 2015 at 05:03:33PM -0500, Lowell Gilbert wrote: >>> Hi. >>> >>> I have a kernel task created with rtdm_task_init(). I can wake it up >>> from my ioctl handler in non-RT,

Re: [Xenomai] interrupt service

2015-02-20 Thread Lowell Gilbert
Lowell Gilbert writes: > Gilles Chanteperdrix writes: > >> On Wed, Feb 18, 2015 at 05:03:33PM -0500, Lowell Gilbert wrote: >>> Hi. >>> >>> I have a kernel task created with rtdm_task_init(). I can wake it up >>> from my ioctl handler in non-RT,

Re: [Xenomai] interrupt service

2015-02-24 Thread Lowell Gilbert
Gilles Chanteperdrix writes: > On Fri, Feb 20, 2015 at 02:38:12PM -0500, Lowell Gilbert wrote: >> The mailing list stripped my code, so I'll attach it inline. > > It does not strip it, it puts it on a server that can be accessed > with http, so that only the people who

Re: [Xenomai] interrupt service

2015-02-25 Thread Lowell Gilbert
Thanks for the help, even if I'm not making much progress yet. Gilles Chanteperdrix writes: > On Tue, Feb 24, 2015 at 06:01:18PM -0500, Lowell Gilbert wrote: > To have a real basic configuration, you should use Xenomai 2.6.4 and > with the latest I-pipe patch for Linux 3.14.

Re: [Xenomai] interrupt service

2015-02-25 Thread Lowell Gilbert
Philippe Gerum writes: > # echo 1024 > /proc/ipipe/trace/back_trace_points > > Then run the test. The output of /proc/ipipe/trace/frozen may help in > figuring out what happens. I haven't had a chance to look at it yet, but it's in: http://be-well.ilk.org/~lowell/projects/ipipe.trace.output.t

Re: [Xenomai] interrupt service

2015-02-25 Thread Lowell Gilbert
Lowell Gilbert writes: > Philippe Gerum writes: > >> # echo 1024 > /proc/ipipe/trace/back_trace_points >> >> Then run the test. The output of /proc/ipipe/trace/frozen may help in >> figuring out what happens. > > I haven't had a chance to

Re: [Xenomai] interrupt service

2015-02-26 Thread Lowell Gilbert
Philippe Gerum writes: > Your test code in user-space seems to enable the timing IRQ only for a > very short time, between the write and read calls to the driver which > happen in sequence. > > Those two interrupts are very close in the time line, i.e. 42 us: > > :| +begin 0x9000 -68

Re: [Xenomai] interrupt service

2015-02-26 Thread Lowell Gilbert
Philippe Gerum writes: > On 02/26/2015 05:38 PM, Lowell Gilbert wrote: > The new task will be pinned to the CPU running rtdm_task_init() by > default, which is likely CPU0 as well. > > To check this, I would set the global Xenomai affinity to CPU1 before > starting the test, s

Re: [Xenomai] interrupt service

2015-02-26 Thread Lowell Gilbert
Gilles Chanteperdrix writes: > On Thu, Feb 26, 2015 at 02:25:13PM -0500, Lowell Gilbert wrote: >> Philippe Gerum writes: >> >> > On 02/26/2015 05:38 PM, Lowell Gilbert wrote: >> > The new task will be pinned to the CPU running rtdm_task_init() by >>

Re: [Xenomai] interrupt service

2015-02-26 Thread Lowell Gilbert
Philippe Gerum writes: > On 02/26/2015 08:25 PM, Lowell Gilbert wrote: >> Philippe Gerum writes: >> >>> On 02/26/2015 05:38 PM, Lowell Gilbert wrote: >>> The new task will be pinned to the CPU running rtdm_task_init() by >>> default, which is likely CP

Re: [Xenomai] interrupt service

2015-02-26 Thread Lowell Gilbert
Gilles Chanteperdrix writes: > On Thu, Feb 26, 2015 at 04:58:06PM -0500, Lowell Gilbert wrote: >> Gilles Chanteperdrix writes: >> > So, to be clear, does the ISR run on CPU0 and the thread doing the >> > reads run on CPU1? If no, does it work if you do it that w

Re: [Xenomai] interrupt service

2015-03-06 Thread Lowell Gilbert
I meant *without* using /proc/xenomai/affinity. Fixed below: Gilles Chanteperdrix writes: > Another problem may be in handling the /proc/xenomai/affinity, so > could you try without using it? Same for isolcpus. If the ISR runs > on cpu0 and the tasks run on cpu1, an IPI should be sent in > __xnp

Re: [Xenomai] interrupt service

2015-03-06 Thread Lowell Gilbert
Gilles Chanteperdrix writes: > Another problem may be in handling the /proc/xenomai/affinity, so > could you try without using it? Same for isolcpus. If the ISR runs > on cpu0 and the tasks run on cpu1, an IPI should be sent in > __xnpod_schedule to wake up the task blocked in read, you can check

Re: [Xenomai] interrupt service

2015-03-09 Thread Lowell Gilbert
Gilles Chanteperdrix writes: > On Fri, Mar 06, 2015 at 05:58:25PM -0500, Lowell Gilbert wrote: >> I meant *without* using /proc/xenomai/affinity. Fixed below: >> >> Gilles Chanteperdrix writes: >> >> > Another problem may be in handling the /proc/xen

Re: [Xenomai] [Xenomai-git] Jan Kiszka : Create gitignore for autotools files

2015-04-01 Thread Lowell Gilbert
Gilles Chanteperdrix writes: > I am not sure having a gitignore file in the repository is a good > idea, for instance, it will conflict with the gitignore I already > had, because not using the same autotools version as Philippe, my > git status was already filled with tons of autotools files wit

Re: [Xenomai] rt_sem_p(&semCC_, TM_INFINITE);

2015-04-20 Thread Lowell Gilbert
cristian ramos writes: >I get error -3 when I use int status = rt_sem_p(&semCC_, TM_INFINITE). I > have seen in the documentation that the possible values are: -EINVAL(-22), > -EIDRM(43), -EWOULDBLOCK(11), -EINTR(4), -ETIMEDOUT(110), -EPERM(-1), > somebody know what is meaning -3 values? #de

Re: [Xenomai] init failed code -19 on Cyclone V SoC

2015-06-11 Thread Lowell Gilbert
"Gilles Chanteperdrix" writes: > Lopes, Alexandre wrote: >> Hello, >> >> I am trying to get Xenomai 3.0 rc4 with the 3.18.12 Linux Kernel and the >> corresponding ipipe patch to work on an ARM SoC. >> The device in question is a MitySoM module which is based on the Cyclone V >> from Altera and co

Re: [Xenomai] init failed code -19 on Cyclone V SoC

2015-06-11 Thread Lowell Gilbert
>> Note that the mail you are replying to is talking about "global timer", not >> "global clock". >> >> -- >> Gilles. Oops. Sorry; and thanks. "Lopes, Alexandre" writes: > @Lowell: Like Gilles mentioned, there are several timers in the > Cortex A9. At address PERIPH_BASE_

Re: [Xenomai] Error code -19

2015-09-16 Thread Lowell Gilbert
vibnwis writes: > I am a newbie and I believe code -19 has been asked before. That is just reporting ENODEV. It doesn't tell you much, although it usually means a missing timer. > My system is made of > > arch = arm > board = PandaBoard ES > Kernel = 3.18.12 > Patch = > xenomai-3/kernel/cobal

[Xenomai] slackspot

2016-06-16 Thread Lowell Gilbert
I have been unable to use slackspot, because /proc/xenomai/debug/relax is empty. I do have CONFIG_XENO_OPT_DEBUG_TRACE_RELAX enabled (without that enabled, I don't even have the file). I have not run /bin/relax, mentioned in the manual page, because I don't have such a program and can't find any re

Re: [Xenomai] slackspot

2016-06-20 Thread Lowell Gilbert
Philippe Gerum writes: > On 06/16/2016 04:43 PM, Lowell Gilbert wrote: >> I have not run /bin/relax, >> mentioned in the manual page, because I don't have such a program and >> can't find any reference to it. >> >> I am using 3.0.2. > > > /

Re: [Xenomai] slackspot

2016-06-20 Thread Lowell Gilbert
Gilles Chanteperdrix writes: > There is one possibility: if your thread runs with the > SCHED_OTHER/SCHED_WEAK scheduling policy, I would not expect the > relaxes to trigger anything, as you have been asking for them by > choosing to use these policies. Yes, I should have mentioned that topic. I

Re: [Xenomai] slackspot

2016-06-20 Thread Lowell Gilbert
Gilles Chanteperdrix writes: > > Ok. Could you post an example allowing us to reproduce the issue ? I would be happy to do so. ___ Xenomai mailing list Xenomai@xenomai.org https://xenomai.org/mailman/listinfo/xenomai

Re: [Xenomai] slackspot

2016-06-21 Thread Lowell Gilbert
Gilles Chanteperdrix writes: > On Mon, Jun 20, 2016 at 01:15:38PM -0400, Lowell Gilbert wrote: >> Gilles Chanteperdrix writes: >> >> > There is one possibility: if your thread runs with the >> > SCHED_OTHER/SCHED_WEAK scheduling policy, I would not expect the

Re: [Xenomai] slackspot

2016-06-21 Thread Lowell Gilbert
Lowell Gilbert writes: > I'm attaching a tar file, but in case this list strips attachments, it's > also at > http://be-well.ilk.org/~lowell/example.tar > It's about a hundred lines each for the application and kernel module. I have updated the tarball with a missing

Re: [Xenomai] slackspot

2016-06-21 Thread Lowell Gilbert
Philippe Gerum writes: > You app is missing a call to pthread_setmode_np() for enabling the > warn-upon-switch bit, > e.g. calling pthread_set_mode_np(0, PTHREAD_WARNSW, NULL) would enable > tracing for the calling thread. My real application has that. My example stripped out everything I could

Re: [Xenomai] slackspot

2016-06-27 Thread Lowell Gilbert
Lowell Gilbert writes: > Gilles Chanteperdrix writes: >> Ok. Could you post an example allowing us to reproduce the issue ? > > I can. It took me a little longer than I figured because I had > accidentally deleted the MODULE_LICENSE. Is it possible to get the > kernel makef

Re: [Xenomai] slackspot

2016-06-27 Thread Lowell Gilbert
Lowell Gilbert writes: > Lowell Gilbert writes: > >> Gilles Chanteperdrix writes: >>> Ok. Could you post an example allowing us to reproduce the issue ? >> >> I can. It took me a little longer than I figured because I had >> accidentally deleted the MO

[Xenomai] irqchip missing?

2016-11-07 Thread Lowell Gilbert
Hi. I have a system based on a Cortex A9. When I was running under Xenomai 2.6, I was able to grab interrupts in RTDM. A few months ago, I updated from a 3.16 Linux kernel and 2.6.4 Xenomai to a 4.1 kernel with 3.0.2 Xenomai. I'm trying to grab the same IRQ now, and the irqchip doesn't seem to hav

Re: [Xenomai] irqchip missing?

2016-11-07 Thread Lowell Gilbert
Lowell Gilbert writes: > I have a system based on a Cortex A9. When I was running under Xenomai > 2.6, I was able to grab interrupts in RTDM. A few months ago, I updated > from a 3.16 Linux kernel and 2.6.4 Xenomai to a 4.1 kernel with 3.0.2 > Xenomai. I'm trying to grab the

Re: [Xenomai] irqchip missing?

2016-11-14 Thread Lowell Gilbert
Philippe Gerum writes: > On 11/07/2016 11:11 PM, Lowell Gilbert wrote: >> Lowell Gilbert writes: >> >>> I have a system based on a Cortex A9. When I was running under Xenomai >>> 2.6, I was able to grab interrupts in RTDM. A few months ago, I updated >&

Re: [Xenomai] Is that possible to use xenomai in multi user environment without root permission?

2017-02-21 Thread Lowell Gilbert
Cong Monkey writes: > I have a center server shared by multi user which is assigned sudo > permission for special cmd when needed. > > Is that possible to allow the user to run any self develop rt base > application(the user will not attack server by this way) without root > permission? Not real

Re: [Xenomai] Is that possible to use xenomai in multi user environment without root permission?

2017-02-22 Thread Lowell Gilbert
> 2017-02-22 3:00 GMT+08:00 Lowell Gilbert : >> Cong Monkey writes: >> >>> I have a center server shared by multi user which is assigned sudo >>> permission for special cmd when needed. >>> >>> Is that possible to allow the user to run any sel

having problems with daemonizing

2019-04-26 Thread Lowell Gilbert via Xenomai
Hi. I have an application working successfully with Xenomai 3.0.8 on a 4.14 kernel. I use Yocto to build the system; when I tried to move to a newer version of Yocto, my application hung on trying to become a daemon. This is happening with the daemon() call (which is what I've used up to now) and

Re: having problems with daemonizing

2019-04-29 Thread Lowell Gilbert via Xenomai
Philippe Gerum via Xenomai writes: > On 4/27/19 12:20 AM, Steve Freyder wrote: >> I think deamonizing in its canonical form of: fork(), let the forked >> process take over, and then exit() in the parent, is problematic when >> you have a wrapped main() where the wrappers already initialized the >

problems opening files without auto-init

2019-05-01 Thread Lowell Gilbert via Xenomai
I disabled auto-init to be able to fork my daemon process, but now I can't open a file, whether it's before or after I call xenomai_init(). What would be doing that? I kind of need a pid file. Be well.

Re: problems opening files without auto-init

2019-05-01 Thread Lowell Gilbert via Xenomai
Lowell Gilbert via Xenomai writes: > I disabled auto-init to be able to fork my daemon process, but now I > can't open a file, whether it's before or after I call xenomai_init(). The errno is EPERM.

Re: having problems with daemonizing

2019-05-03 Thread Lowell Gilbert via Xenomai
Philippe Gerum via Xenomai writes: > Could you try the patch below? Ideally, we should have this in 3.0.9 if this > improves the situation. It works for me with auto-init enabled, and solves my file-open problem as well.

Re: rt_task_inquire() equivalent for POSIX ?

2019-11-06 Thread Lowell Gilbert via Xenomai
Pierre FICHEUX via Xenomai writes: > Is there a way to get the Xenomai thread "pid" with POSIX API ? I didn't > see anything in the "thread management" section. getpid()?

crash on accessing /proc/xenomai/sched/Â

2019-01-29 Thread Lowell Gilbert via Xenomai
I was trying to update to 3.0.8, and looking at stat or acct in the sched branch of the proc tree gives me an instant kernel crash, usually with a null pointer access from a bogus code address, although the locations aren't always the same. This is without even having my kernel module or applicatio

Re: crash on accessing /proc/xenomai/sched/Â

2019-01-30 Thread Lowell Gilbert via Xenomai
Jan Kiszka writes: > On 29.01.19 22:06, Lowell Gilbert via Xenomai wrote: >> I was trying to update to 3.0.8, and looking at stat or acct in the >> sched branch of the proc tree gives me an instant kernel crash, usually >> with a null pointer access from a bogus code