Re: [Xenomai] q on rt_task_self() and mode switching

2013-07-08 Thread Philippe Gerum
On 07/08/2013 03:45 PM, Michael Haberler wrote: Am 08.07.2013 um 15:37 schrieb Philippe Gerum : On 07/08/2013 03:23 PM, Michael Haberler wrote: if a userland RT thread gets modeswitched, the SIGXCPU handler obviously still executes in the RT domain, Nope. All regular signal handlers are

Re: [Xenomai] __xn_sys_current_info failed: Operation not permitted

2013-07-19 Thread Philippe Gerum
On 07/18/2013 12:24 PM, Franz Engel wrote: Hi, I get this error when I run a programm: __xn_sys_current_info failed: Operation not permitted I know that the error comes from the assert_nrt_inner(void) function inside the assert_context.c file. But I have no idea what is the reason. The Operati

Re: [Xenomai] __xn_sys_current_info failed: Operation not permitted

2013-07-19 Thread Philippe Gerum
On 07/19/2013 11:49 AM, Franz Engel wrote: Philippe wrote: Franz Engel wrote: Hi, > I get this error when I run a programm: __xn_sys_current_info failed: Operation not permitted > I know that the error comes from the assert_nrt_inner(void) function inside the assert_context.c file. But I ha

Re: [Xenomai] __xn_sys_current_info failed: Operation not permitted

2013-07-19 Thread Philippe Gerum
On 07/19/2013 12:57 PM, Franz Engel wrote: *Von:* Philippe Gerum *An:* Franz Engel *CC:* "xenomai@xenomai.org" *Gesendet:* 12:09 Freitag, 19.Juli 2013 *Betreff:* Re

Re: [Xenomai] __xn_sys_current_info failed: Operation not permitted

2013-07-22 Thread Philippe Gerum
On 07/19/2013 12:57 PM, Franz Engel wrote: *Von:* Philippe Gerum *An:* Franz Engel *CC:* "xenomai@xenomai.org" *Gesendet:* 12:09 Freitag, 19.Juli 2013 *Betreff:* Re

Re: [Xenomai] [xenomai-forge] psos/sm_p: error handling not correct.

2013-07-23 Thread Philippe Gerum
On 07/22/2013 10:07 AM, Ronny Meeus wrote: Hello If the sm_p service is called with the SM_NOWAIT flag and the semaphore is not available the EWOULDBLOCK error code is returned to the application. This is not correct since the application expects to see only pSOS errorcodes. The attached patch

Re: [Xenomai] XDDP test failure on Raspberry Pi, 3.8.13 kernel

2013-07-26 Thread Philippe Gerum
On 07/26/2013 02:18 PM, GP Orcullo wrote: -- On Fri, Jul 26, 2013 5:09 AM PDT GP Orcullo wrote: - Original Message - From: Gilles Chanteperdrix To: GP Orcullo Cc: "xenomai@xenomai.org" Sent: Friday, July 26, 2013 4:26 AM Subject: Re: [Xenomai] XDDP test

Re: [Xenomai] XDDP test failure on Raspberry Pi, 3.8.13 kernel

2013-07-26 Thread Philippe Gerum
On 07/26/2013 06:33 PM, Philippe Gerum wrote: > On 07/26/2013 02:18 PM, GP Orcullo wrote: >> >> -- >> On Fri, Jul 26, 2013 5:09 AM PDT GP Orcullo wrote: >> >>> - Original Message - >>> >>> From: Gill

Re: [Xenomai] Queue issue

2013-07-26 Thread Philippe Gerum
On 07/26/2013 09:28 PM, Ricardo Amézquita wrote: Hello All I'm writing a simple wrapper in python to be able to control some real-time processes. To communicate between the real-time process, and the python process I'm using native queues. Sending messages from the python process to the realtime

Re: [Xenomai] Queue issue

2013-07-26 Thread Philippe Gerum
On 07/26/2013 10:07 PM, Philippe Gerum wrote: On 07/26/2013 09:28 PM, Ricardo Amézquita wrote: Hello All I'm writing a simple wrapper in python to be able to control some real-time processes. To communicate between the real-time process, and the python process I'm using native queue

Re: [Xenomai] Queue issue

2013-07-26 Thread Philippe Gerum
ng plain character-based I/O to chat with a real-time side. If this is not a strong requirement, or if you plan to extend your python client with real-time services, then using rt_task_shadow() to promote the caller to the Xenomai real would make sense. Thanks again 2013/7/26 Philippe Gerum

Re: [Xenomai] Queue issue

2013-07-26 Thread Philippe Gerum
On 07/26/2013 10:31 PM, Philippe Gerum wrote: On 07/26/2013 10:20 PM, Ricardo Amézquita wrote: Thanks for the answer. I'm using cython, so in a way I'm linked to the Xenomai libraries, and I don’t know if this makes a difference. The python->xenomai messages are working. Can

Re: [Xenomai] Using a PowerPC Critical Interrupt Input alongside Xenomai

2013-08-06 Thread Philippe Gerum
On 08/06/2013 01:05 AM, Henry Bausley wrote: > > > I am experimenting with powerpc critical interrupts. > > Is it feasible to use a powerpc Critical Interrupt along side xenomai? > What would I have to do in general to accomplish this? > >I have written to the appropiate powerpc registers

Re: [Xenomai] Using a PowerPC Critical Interrupt Input alongside Xenomai

2013-08-07 Thread Philippe Gerum
[8007cf68] __ipipe_ack_fasteoi_irq+0x20/0x30 On Tue, 2013-08-06 at 10:30 +0200, Philippe Gerum wrote: On 08/06/2013 01:05 AM, Henry Bausley wrote: I am experimenting with powerpc critical interrupts. Is it feasible to use a powerpc Critical Interrupt along side xenomai? What would I have to do in

Re: [Xenomai] Xenomai: fatal: Hardened thread xxxx running in Linux domain?!

2013-08-13 Thread Philippe Gerum
On 08/13/2013 12:01 PM, jeanmicheltapr...@free.fr wrote: hello, I use a Linux kernel 2.6.29.6 patched with Xenomai 2.5.2. Please upgrade to 2.6.2, 2.5.2 is seriously updated, and bugs have been fixed since then, including in that area. Even if running a legacy 2.6.29 kernel is not recommende

Re: [Xenomai] About pathcing xenomai into linux

2013-08-13 Thread Philippe Gerum
On 08/13/2013 04:54 AM, wxs3314...@sina.cn wrote: Thanks for reading. I wonder that can I use xenomai 2.6.2.1 in linux kernel 3.2.1 versions or above . And about using xenomai ,do I need Adeos with xenomai together? You should find answers to your questions here: ht

Re: [Xenomai] How to synchronize a non-realtime Linux thread with a Xenomai task?

2013-08-19 Thread Philippe Gerum
On 08/19/2013 03:06 PM, Robert McCullough wrote: Hi, I tried using a semaphore to synchronize the two, but when I call rt_sem_p(...) in the non-realtime Linux thread* *I get the -EPERM error. Is there a way to synchronize a non-realtime Linux thread with a Xenomai task? You need to make your

Re: [Xenomai] IPIPE_KEVT_SETAFFINITY

2013-08-28 Thread Philippe Gerum
On 08/28/2013 12:41 PM, Jan Kiszka wrote: Hi Philippe, please push to ipipe.git what introduces IPIPE_KEVT_SETAFFINITY. I'm riding on the tip of all trees and cannot build forge anymore. Or does this event rather require some feature detection in forge? Thanks, Jan You need the top two commi

Re: [Xenomai] IPIPE_KEVT_SETAFFINITY

2013-08-28 Thread Philippe Gerum
On 08/28/2013 12:58 PM, Jan Kiszka wrote: On 2013-08-28 12:41, Jan Kiszka wrote: Hi Philippe, please push to ipipe.git what introduces IPIPE_KEVT_SETAFFINITY. I'm riding on the tip of all trees and cannot build forge anymore. Ah, oversaw it. It's in stable ipipe-3.8 only. Will pick it up for

Re: [Xenomai] IPIPE_KEVT_SETAFFINITY

2013-08-28 Thread Philippe Gerum
On 08/28/2013 01:07 PM, Jan Kiszka wrote: On 2013-08-28 13:04, Philippe Gerum wrote: On 08/28/2013 12:58 PM, Jan Kiszka wrote: On 2013-08-28 12:41, Jan Kiszka wrote: Hi Philippe, please push to ipipe.git what introduces IPIPE_KEVT_SETAFFINITY. I'm riding on the tip of all trees and c

Re: [Xenomai] CONFIG_CONTEXT_TRACKING

2013-08-31 Thread Philippe Gerum
On 08/31/2013 01:50 PM, Gilles Chanteperdrix wrote: Hi, this new option popped up in ARM's entry.S, what do other arches do, do we support it? or do we forbid the option with CONFIG_IPIPE? Full nohz is desirable for an increasing number of users who have requirements on power consumption, s

Re: [Xenomai] [PULL 3.8] x86/ipipe: Fix x86-64 issue when debugging applications

2013-09-19 Thread Philippe Gerum
On 09/17/2013 02:36 PM, Jan Kiszka wrote: The following changes since commit 6c40e8586e309608579f4baa0b7b5252d061686a: arm/fcse: avoid compilation warning in guaranteed mode (2013-09-08 22:45:39 +0200) are available in the git repository at: git://git.xenomai.org/ipipe-jki for-upstream/

Re: [Xenomai] [Xenomai-git] Jan Kiszka : cobalt/posix/sem: Fix locking imbalances in cobalt_sem_open

2013-09-21 Thread Philippe Gerum
On 09/20/2013 08:42 PM, git repository hosting wrote: Module: xenomai-jki Branch: for-forge Commit: 8775720ae828d1e1be076f91b93a3eeac1b7ed90 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=8775720ae828d1e1be076f91b93a3eeac1b7ed90 Author: Jan Kiszka Date: Fri Sep 20 20:39:18 2013

Re: [Xenomai] [Xenomai-git] Jan Kiszka : cobalt/posix/sem: Fix locking imbalances in cobalt_sem_open

2013-09-21 Thread Philippe Gerum
On 09/21/2013 11:17 AM, Jan Kiszka wrote: On 2013-09-21 10:31, Philippe Gerum wrote: On 09/20/2013 08:42 PM, git repository hosting wrote: Module: xenomai-jki Branch: for-forge Commit: 8775720ae828d1e1be076f91b93a3eeac1b7ed90 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h

Re: [Xenomai] rt_intr_wait bug during debugging

2013-09-24 Thread Philippe Gerum
On 09/23/2013 10:48 AM, Paolo Minazzi wrote: Hi to all, the problem arise when I debug an application that uses an external interrupt. Below there is a sample (pseudo) code that show how I can see the problem. The irq stuff is related on my specific machine, so I think it is not important give de

Re: [Xenomai] libalchemy: failing test case task-5

2013-09-25 Thread Philippe Gerum
On 09/24/2013 08:32 PM, Jan Kiszka wrote: Hi, I played a bit with the native skin emulation in Xenomai 3. The shipped test cases in lib/alchemy/testsuite point a problem: rt_task_set_priority is no longer a pure real-time services. As it calls libc's pthread_setschedparam internally, it will - a

Re: [Xenomai] [Xenomai-git] Gilles Chanteperdrix : hal/x86: fix smi message

2013-09-28 Thread Philippe Gerum
On 09/27/2013 10:19 PM, git repository hosting wrote: Module: xenomai-gch Branch: for-forge Commit: 283fabdf63e23f03a45565fa1f9937f9a5825a59 URL: http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=283fabdf63e23f03a45565fa1f9937f9a5825a59 Author: Gilles Chanteperdrix Date: Sun Sep 15 15:

Re: [Xenomai] [Xenomai-git] Gilles Chanteperdrix : hal/x86: fix smi message

2013-09-28 Thread Philippe Gerum
On 09/28/2013 10:36 AM, Gilles Chanteperdrix wrote: On 09/28/2013 10:28 AM, Philippe Gerum wrote: On 09/27/2013 10:19 PM, git repository hosting wrote: Module: xenomai-gch Branch: for-forge Commit: 283fabdf63e23f03a45565fa1f9937f9a5825a59 URL: http://git.xenomai.org/?p=xenomai-gch.git;a

Re: [Xenomai] [Xenomai-git] Gilles Chanteperdrix : hal/x86: fix smi message

2013-09-28 Thread Philippe Gerum
On 09/28/2013 01:12 PM, Gilles Chanteperdrix wrote: On 09/28/2013 11:52 AM, Philippe Gerum wrote: On 09/28/2013 10:36 AM, Gilles Chanteperdrix wrote: On 09/28/2013 10:28 AM, Philippe Gerum wrote: On 09/27/2013 10:19 PM, git repository hosting wrote: Module: xenomai-gch Branch: for-forge

Re: [Xenomai] [Xenomai-git] Gilles Chanteperdrix : hal/x86: fix smi message

2013-09-29 Thread Philippe Gerum
On 09/29/2013 12:12 PM, Jan Kiszka wrote: On 2013-09-28 18:30, Philippe Gerum wrote: On 09/28/2013 01:12 PM, Gilles Chanteperdrix wrote: On 09/28/2013 11:52 AM, Philippe Gerum wrote: On 09/28/2013 10:36 AM, Gilles Chanteperdrix wrote: On 09/28/2013 10:28 AM, Philippe Gerum wrote: On 09/27

Re: [Xenomai] [Xenomai-git] Gilles Chanteperdrix : hal/x86: fix smi message

2013-09-29 Thread Philippe Gerum
On 09/29/2013 05:37 PM, Jan Kiszka wrote: On 2013-09-29 16:56, Philippe Gerum wrote: On 09/29/2013 12:12 PM, Jan Kiszka wrote: On 2013-09-28 18:30, Philippe Gerum wrote: On 09/28/2013 01:12 PM, Gilles Chanteperdrix wrote: On 09/28/2013 11:52 AM, Philippe Gerum wrote: On 09/28/2013 10:36 AM

Re: [Xenomai] [Xenomai-git] Gilles Chanteperdrix : hal/x86: fix smi message

2013-09-29 Thread Philippe Gerum
On 09/29/2013 05:46 PM, Jan Kiszka wrote: On 2013-09-29 17:45, Philippe Gerum wrote: On 09/29/2013 05:37 PM, Jan Kiszka wrote: On 2013-09-29 16:56, Philippe Gerum wrote: On 09/29/2013 12:12 PM, Jan Kiszka wrote: On 2013-09-28 18:30, Philippe Gerum wrote: On 09/28/2013 01:12 PM, Gilles

Re: [Xenomai] [Xenomai-git] Gilles Chanteperdrix : hal/x86: fix smi message

2013-09-29 Thread Philippe Gerum
On 09/29/2013 06:10 PM, Jan Kiszka wrote: On 2013-09-29 18:00, Philippe Gerum wrote: On 09/29/2013 05:46 PM, Jan Kiszka wrote: On 2013-09-29 17:45, Philippe Gerum wrote: On 09/29/2013 05:37 PM, Jan Kiszka wrote: On 2013-09-29 16:56, Philippe Gerum wrote: On 09/29/2013 12:12 PM, Jan Kiszka

Re: [Xenomai] xenomai smp - how it works

2013-09-30 Thread Philippe Gerum
On 09/30/2013 06:37 PM, Roberto Bielli wrote: Hi, i would like to know how works in theory xenomai on smp system (with local timers, imx6q for example). When per-cpu timers are available, Xenomai commonly uses them. They are usually shared with linux, so Xenomai interposes on the tick managem

Re: [Xenomai] psos+ tm_wkafter never resumes task when using gdb

2013-10-01 Thread Philippe Gerum
On 09/26/2013 05:33 PM, Daniel Merrill wrote: We are attempting to port to xenomai some legacy code written for the pSOS+ operating system. Up to this point everything in the xenomai pSOS+ skin has been working perfectly, but now we've uncovered a strange problem. The legacy code has around 50 ta

Re: [Xenomai] xenomai-forge: multiple COPYING files

2013-10-04 Thread Philippe Gerum
On 10/02/2013 01:42 PM, Thomas De Schampheleire wrote: Hi, The (L)GPL requires that every distribution of a derived work is accompanied with the license of the program (xenomai-forge). Currently, xenomai-forge contains several COPYING files: ./kernel/cobalt/nucleus/COPYING ./kernel/cobalt/COPYI

Re: [Xenomai] Fuse version in Xenomai-forge with "--enabled-registry"

2013-10-08 Thread Philippe Gerum
On 10/08/2013 10:54 AM, Ronny Meeus wrote: On Tue, Oct 1, 2013 at 12:13 PM, K. De Mey wrote: Hello everybody, We use xenomai-forge for a project. I however came across a problem when adding the "--enabled-registry" option. It seems that the FUSE functions (for example fuse_main()) that are be

Re: [Xenomai] t_suspend and XNBREAK

2013-10-09 Thread Philippe Gerum
On 10/09/2013 06:29 PM, Daniel Merrill wrote: All, I'm hoping maybe someone can shed a little more light on the issue we see occasionally. Occasionally our code using the psos+ skin will fail a t_suspend(0) with error code -4, which I found to be EINTR and appears to be set if the XNBREAK flag

Re: [Xenomai] t_suspend and XNBREAK

2013-10-09 Thread Philippe Gerum
On 10/09/2013 06:37 PM, Daniel Merrill wrote: On 10/09/2013 06:29 PM, Daniel Merrill wrote: All, I'm hoping maybe someone can shed a little more light on the issue we see occasionally. Occasionally our code using the psos+ skin will fail a t_suspend(0) with error code -4, which I found to be

Re: [Xenomai] [PULL] forge: Cleanup COPYING files

2013-10-13 Thread Philippe Gerum
On 10/11/2013 09:32 AM, Jan Kiszka wrote: Hi Philippe, The following changes since commit 926e0441446aae116bf5b0701753e4b87a5386a2: doc: update installation guidelines (2013-10-04 15:46:23 +0200) are available in the git repository at: git://git.xenomai.org/xenomai-jki.git for-forge fo

Re: [Xenomai] [PULL] forge: Cleanup COPYING files

2013-10-13 Thread Philippe Gerum
On 10/13/2013 01:12 PM, Jan Kiszka wrote: On 2013-10-13 12:08, Philippe Gerum wrote: On 10/11/2013 09:32 AM, Jan Kiszka wrote: Hi Philippe, The following changes since commit 926e0441446aae116bf5b0701753e4b87a5386a2: doc: update installation guidelines (2013-10-04 15:46:23 +0200) are

Re: [Xenomai] [PATCH] Xenomai-forge pSOS task: Allow event send to self (current task)

2013-10-13 Thread Philippe Gerum
On 10/11/2013 08:06 AM, Kim De Mey wrote: Support 0 as value for the tid parameter in ev_send. This then sends the event to the current task. Signed-off-by: Kim De Mey --- Hello, I believe this is existing functionality in Xenomai. Would it be possible to add this in Xenomai-forge? Merged,

Re: [Xenomai] FW: Xenomai support for mips64

2013-10-18 Thread Philippe Gerum
On 10/18/2013 09:50 AM, Saravana Kumar P M wrote: Hi, We are having a system with lots of legacy code(device drivers) developed out of kernel 2.6.32 We are adding new processes which require hard real time performance. We are using Cavium-Octeon II device which has a mips64 core. To solve the p

Re: [Xenomai] [PATCH 2 of 2] Xenomai-forge notifier_init: panic on failed pipe

2013-10-18 Thread Philippe Gerum
On 10/18/2013 02:50 PM, Kim De Mey wrote: Panic if one of the pipe() system calls fails. To indicate that there is an underlying problem. Signed-off-by: Kim De Mey --- lib/copperplate/notifier.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/copperplate/notif

Re: [Xenomai] [PATCH 2 of 2] Xenomai-forge notifier_init: panic on failed pipe

2013-10-18 Thread Philippe Gerum
On 10/18/2013 02:54 PM, Philippe Gerum wrote: On 10/18/2013 02:50 PM, Kim De Mey wrote: Panic if one of the pipe() system calls fails. To indicate that there is an underlying problem. Signed-off-by: Kim De Mey --- lib/copperplate/notifier.c | 4 ++-- 1 files changed, 2 insertions(+), 2

Re: [Xenomai] [PATCH 0 of 2] Xenomai-forge thread_obj: unset __THREAD_S_SAFE when not needed

2013-10-18 Thread Philippe Gerum
On 10/18/2013 02:50 PM, Kim De Mey wrote: Hello list, I believe that there is a problem in xenomai-forge when you create tasks from within another task and the newly created tasks have a lower priority than the priority of the task where you created them from. In the threadobj_start() function

Re: [Xenomai] [PATCH 2 of 2] Xenomai-forge notifier_init: panic on failed pipe

2013-10-18 Thread Philippe Gerum
On 10/18/2013 03:21 PM, Kim De Mey wrote: 2013/10/18 Philippe Gerum mailto:r...@xenomai.org>> On 10/18/2013 02:54 PM, Philippe Gerum wrote: On 10/18/2013 02:50 PM, Kim De Mey wrote: Panic if one of the pipe() system calls fails. To indicate that

Re: [Xenomai] [PATCH 0 of 3] Xenomai-forge: Initial implementation of registry for pSOS

2013-10-19 Thread Philippe Gerum
On 10/15/2013 10:50 AM, Kim De Mey wrote: This patch set adds an initial implementation of registry for pSOS tasks, semaphores and queues. It is similar as the already existing vxworks implementation but with more output data. Important to mention is that the "size" parameter in the read functio

Re: [Xenomai] [PATCH 0 of 2] Xenomai-forge thread_obj: unset __THREAD_S_SAFE when not needed

2013-10-20 Thread Philippe Gerum
On 10/19/2013 08:42 PM, Ronny Meeus wrote: test code snippet: static void test_task(u_long a,u_long b,u_long c,u_long d) { while (1) tm_wkafter(1000); } static void main_task(u_long a,u_long b,u_long c,u_long d) { u_long tid,args[4] = {0,0,0,0};

Re: [Xenomai] t_suspend and XNBREAK

2013-10-22 Thread Philippe Gerum
On 10/21/2013 08:21 PM, Daniel Merrill wrote: More follow up on this, we went ahead and put some logging in shadow.c which from what we could find is where the signal is "kicking" the thread. From the logging it looks like the only signals we get (while attached to GDB) are SIGSTOP, SIGTRAP, S

Re: [Xenomai] [PATCH] Xenomai-forge: psos: extended object names

2013-10-22 Thread Philippe Gerum
On 10/22/2013 03:05 PM, Kim De Mey wrote: Extend object names with number to make them unique Signed-off-by: Thomas De Schampheleire Signed-off-by: Ronny Meeus Signed-off-by: Kim De Mey --- Although this is not a requirement for pSOS, it would be nice to have unique names for debugging purp

Re: [Xenomai] t_suspend and XNBREAK

2013-10-22 Thread Philippe Gerum
On 10/22/2013 04:49 PM, Gilles Chanteperdrix wrote: On 10/22/2013 03:46 PM, Philippe Gerum wrote: On 10/21/2013 08:21 PM, Daniel Merrill wrote: More follow up on this, we went ahead and put some logging in shadow.c which from what we could find is where the signal is "kicking"

Re: [Xenomai] [PATCH 0 of 3] Xenomai-forge: Initial implementation of registry for pSOS

2013-10-22 Thread Philippe Gerum
On 10/22/2013 06:45 PM, Kim De Mey wrote: 2013/10/19 Ronny Meeus mailto:ronny.me...@gmail.com>> IIUC, this would add the quite unexpected requirement of having to reopen a file for getting fresh data. read() should actually (re-)read the current object state each time

Re: [Xenomai] t_suspend and XNBREAK

2013-10-23 Thread Philippe Gerum
On 10/23/2013 12:10 AM, Daniel Merrill wrote: > > >> -Original Message----- >> From: Philippe Gerum [mailto:r...@xenomai.org] >> Sent: Tuesday, October 22, 2013 9:53 AM >> To: Gilles Chanteperdrix >> Cc: Daniel Merrill; xenomai@xenomai.org >> Su

Re: [Xenomai] [PATCH 0 of 3] Xenomai-forge: Initial implementation of registry for pSOS

2013-10-24 Thread Philippe Gerum
On 10/24/2013 10:28 AM, Kim De Mey wrote: 2013/10/22 Kim De Mey mailto:kim.de...@gmail.com>> 2013/10/22 Philippe Gerum mailto:r...@xenomai.org>> On 10/22/2013 06:45 PM, Kim De Mey wrote: 2013/10/19 Ronny Meeus mailto:ronny.me.

Re: [Xenomai] t_suspend and XNBREAK

2013-10-24 Thread Philippe Gerum
On 10/24/2013 01:11 AM, Daniel Merrill wrote: >> >> Ok, I can't reproduce with this code yet. Let's proceed differently. >> Could you apply the patch below, then send back the kernel output >> you should get when the issue happens? The traces are emitted only when >> a task self-suspends using a nu

Re: [Xenomai] rt_heap_alloc priority inversion

2013-10-26 Thread Philippe Gerum
On 10/25/2013 11:59 PM, George Broz wrote: Hello All, I'm running Linux 2.6.37.6 w/Xenomai 2.6.1, native API on x86 (Atom, SMP, 32-bit). I have two tasks, both running in Xenomai user-space. One is priority=99 and blocks on rt_intr_wait(), running every 250 us with 125us margin. This task does

Re: [Xenomai] Atom N455

2013-11-12 Thread Philippe Gerum
On 11/07/2013 02:04 PM, Marc LAURENS wrote: Hello, Can you tell me if the N455 Atom processor is supported by Xenomai ? I plan to buy the adlink 745 CoreModule CPU Board. As for any real-time linux variant/implementation over x86, the only showstopper might be the massive latency spots ind

Re: [Xenomai] issues with debugging enabled

2013-11-13 Thread Philippe Gerum
On 11/12/2013 09:34 PM, Gilles Chanteperdrix wrote: Hi, for a change, I ran the xeno-regression-test with a lot of debugging and options known to having caused problems in the past and found two issues: on x86 SMP, with full dynticks and debugging enabled (preemptible kernel debugging, mutex,

Re: [Xenomai] issues with debugging enabled

2013-11-13 Thread Philippe Gerum
On 11/13/2013 09:37 AM, Gilles Chanteperdrix wrote: On 11/13/2013 09:23 AM, Philippe Gerum wrote: On 11/12/2013 09:34 PM, Gilles Chanteperdrix wrote: Hi, for a change, I ran the xeno-regression-test with a lot of debugging and options known to having caused problems in the past and found two

Re: [Xenomai] patch the kernel?

2013-11-13 Thread Philippe Gerum
On 11/13/2013 04:02 PM, Gilles Chanteperdrix wrote: On 11/13/2013 02:36 PM, Grant wrote: Is patching the kernel necessary in order to use xenomai? It depends on which version of Xenomai you are talking about. If you are talking about Xenomai stable version, then yes, you have to follow the ins

Re: [Xenomai] [Xenomai-git] Jan Kiszka : switchtest: Account for invalid last_switch.from field

2013-11-18 Thread Philippe Gerum
On 11/18/2013 02:44 PM, Gilles Chanteperdrix wrote: On 11/18/2013 01:41 PM, git repository hosting wrote: Module: xenomai-jki Branch: for-forge Commit: 3e6d8ff9a99262e78655329dc043aacc607eb158 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=3e6d8ff9a99262e78655329dc043aacc607eb158 Au

Re: [Xenomai] rt_task_set_periodic

2013-11-21 Thread Philippe Gerum
On 11/21/2013 08:45 PM, Alex Martin wrote: Hi, I want to adjust the period set for rt_task_set_periodic. It is required to adjust the period value at run time when task is running. I want to adjust the task period to external clock. period will about 5 milli seconds.( I set it to 5e6 ). There

Re: [Xenomai] [Xenomai-git] Jan Kiszka : switchtest: Account for invalid last_switch.from field

2013-11-24 Thread Philippe Gerum
On 11/20/2013 07:25 PM, Jan Kiszka wrote: On 2013-11-18 17:58, Jan Kiszka wrote: However, stress-testing switchtest with early interrupts also triggers this oops once in a while: [ 279.547820] [Xenomai] closing RTDM file descriptor 0 [ 279.548966] BUG: unable to handle kernel paging request a

Re: [Xenomai] [PATCH] Xenomai-forge: pSOS add priority denormalize

2013-11-24 Thread Philippe Gerum
On 11/21/2013 06:02 PM, Kim De Mey wrote: Add the psos_task_denormalize_priority() and psos_task_get_priority() functions. Use psos_task_get_priority() to fill oldprio_r in t_setpri(). Signed-off-by: Kim De Mey --- It is necessary to denormalize the oldprio_r in t_setpri(). Else this oldprio_

Re: [Xenomai] rtdm_event_pulse in user space

2013-11-25 Thread Philippe Gerum
On 11/25/2013 10:39 AM, Johann Obermayr wrote: Hello, Is there a way to make a rt_event_pulse. A kernel function rtdm_event_pulse is available, but no user space function. rtdm_event_pulse() is part of the inter-driver API, which explains why there is no userland access to it. Assuming you

Re: [Xenomai] [PATCH v2] Xenomai-forge: pSOS add priority denormalize

2013-11-25 Thread Philippe Gerum
On 11/25/2013 12:18 PM, Kim De Mey wrote: Add the psos_task_denormalize_priority() and psos_task_get_priority() functions. Use psos_task_get_priority() to fill oldprio_r in t_setpri(). Merged, thanks. Signed-off-by: Kim De Mey --- v2: Removed the psos_task_get_priority() call from task.h

Re: [Xenomai] rtdm_event_pulse in user space

2013-11-26 Thread Philippe Gerum
On 11/26/2013 11:50 AM, Johann Obermayr wrote: Am 25.11.2013 10:46, schrieb Philippe Gerum: On 11/25/2013 10:39 AM, Johann Obermayr wrote: Hello, Is there a way to make a rt_event_pulse. A kernel function rtdm_event_pulse is available, but no user space function. rtdm_event_pulse() is

Re: [Xenomai] mmap and domain switch

2013-11-26 Thread Philippe Gerum
On 11/26/2013 12:20 PM, Giuseppe Iellamo wrote: Hi all, In my project I'm accessing a device using a linux device driver (via sysfs) . In order to speedup the control loop I've mmapped the register i need to read. The question is: If I access a device register using mmap assuming you mean "m

Re: [Xenomai] test suite programs crash with Illegal instruction on MPC5200

2013-11-28 Thread Philippe Gerum
On 11/28/2013 02:31 PM, Bukuli Norbert wrote: Hello! I am having a little problem with some programs from the Xenomai test suite. The clocktest, cyclictest and switchtest crashes with "Illegal instruction": ~ # /usr/xenomai/bin/clocktest == Tested clock: 0 (CLOCK_REALTIME) CPU ToD offset [

Re: [Xenomai] test suite programs crash with Illegal instruction on MPC5200

2013-11-29 Thread Philippe Gerum
On 11/29/2013 09:41 AM, Bukuli Norbert wrote: (gdb) cont Continuing. warning: Could not load shared library symbols for linux-vdso32.so.1. Do you need "set solib-search-path" or "set sysroot"? warning: .dynamic section for "/opt/eldk-5.4/powerpc/sysroots/powerpc-linux/usr/xenomai/lib/libpthread_

Re: [Xenomai] test suite programs crash with Illegal instruction on MPC5200

2013-11-29 Thread Philippe Gerum
On 11/29/2013 10:29 AM, Philippe Gerum wrote: On 11/29/2013 09:41 AM, Bukuli Norbert wrote: (gdb) cont Continuing. warning: Could not load shared library symbols for linux-vdso32.so.1. Do you need "set solib-search-path" or "set sysroot"? warning: .dynamic section for &q

Re: [Xenomai] test suite programs crash with Illegal instruction on MPC5200

2013-11-29 Thread Philippe Gerum
On 11/29/2013 11:27 AM, Bukuli Norbert wrote: On Fri, 29 Nov 2013 10:29:56 +0100 Philippe Gerum wrote: On 11/29/2013 09:41 AM, Bukuli Norbert wrote: (gdb) cont Continuing. warning: Could not load shared library symbols for linux-vdso32.so.1. Do you need "set solib-search-path&quo

Re: [Xenomai] test suite programs crash with Illegal instruction on MPC5200

2013-12-02 Thread Philippe Gerum
On 12/02/2013 09:50 AM, Bukuli Norbert wrote: Program received signal SIGILL, Illegal instruction. [Switching to Thread 338] 0x4800ce74 in ?? () (gdb) bt #0 0x4800ce74 in ?? () #1 0x0ff98534 in ?? () #2 0x0fe17a68 in ?? () #3 0x480eba4c in ?? () (gdb) info sharedlibrary FromTo

Re: [Xenomai] test suite programs crash with Illegal instruction on MPC5200

2013-12-02 Thread Philippe Gerum
On 12/02/2013 10:24 AM, Bukuli Norbert wrote: On Mon, 2 Dec 2013 10:15:22 +0100 Philippe Gerum wrote: On 12/02/2013 09:50 AM, Bukuli Norbert wrote: Program received signal SIGILL, Illegal instruction. [Switching to Thread 338] 0x4800ce74 in ?? () (gdb) bt #0 0x4800ce74 in ?? () #1

Re: [Xenomai] test suite programs crash with Illegal instruction on MPC5200

2013-12-02 Thread Philippe Gerum
On 12/02/2013 09:50 AM, Bukuli Norbert wrote: On Fri, 29 Nov 2013 23:53:20 +0100 Wolfgang Denk wrote: Dear Philippe Gerum, In message <52985e94.4070...@xenomai.org> you wrote: On 11/29/2013 09:41 AM, Bukuli Norbert wrote: (gdb) cont Continuing. warning: Could not load shared l

Re: [Xenomai] latency spikes under load

2013-12-04 Thread Philippe Gerum
On 12/03/2013 07:50 PM, Gilles Chanteperdrix wrote: On 12/03/2013 05:49 PM, Kurijn Buys wrote: Op 3-dec.-2013, om 15:54 heeft Gilles Chanteperdrix het volgende geschreven: On 12/03/2013 04:31 PM, Kurijn Buys wrote: Op 3-dec.-2013, om 13:23 heeft Gilles Chanteperdrix het volgende geschreven:

Re: [Xenomai] latency spikes under load

2013-12-04 Thread Philippe Gerum
On 12/04/2013 09:51 AM, Gilles Chanteperdrix wrote: On 12/04/2013 09:44 AM, Philippe Gerum wrote: On 12/03/2013 07:50 PM, Gilles Chanteperdrix wrote: On 12/03/2013 05:49 PM, Kurijn Buys wrote: Op 3-dec.-2013, om 15:54 heeft Gilles Chanteperdrix het volgende geschreven: On 12/03/2013 04:31

Re: [Xenomai] latency spikes under load

2013-12-04 Thread Philippe Gerum
On 12/04/2013 10:31 AM, Gilles Chanteperdrix wrote: On 12/04/2013 10:27 AM, Philippe Gerum wrote: On 12/04/2013 09:51 AM, Gilles Chanteperdrix wrote: On 12/04/2013 09:44 AM, Philippe Gerum wrote: On 12/03/2013 07:50 PM, Gilles Chanteperdrix wrote: On 12/03/2013 05:49 PM, Kurijn Buys wrote

Re: [Xenomai] latency spikes under load

2013-12-04 Thread Philippe Gerum
On 12/04/2013 11:29 AM, Philippe Gerum wrote: On 12/04/2013 10:51 AM, Gilles Chanteperdrix wrote: On 12/04/2013 10:40 AM, Philippe Gerum wrote: On 12/04/2013 10:31 AM, Gilles Chanteperdrix wrote: On 12/04/2013 10:27 AM, Philippe Gerum wrote: On 12/04/2013 09:51 AM, Gilles Chanteperdrix wrote

Re: [Xenomai] latency spikes under load

2013-12-04 Thread Philippe Gerum
On 12/04/2013 10:51 AM, Gilles Chanteperdrix wrote: On 12/04/2013 10:40 AM, Philippe Gerum wrote: On 12/04/2013 10:31 AM, Gilles Chanteperdrix wrote: On 12/04/2013 10:27 AM, Philippe Gerum wrote: On 12/04/2013 09:51 AM, Gilles Chanteperdrix wrote: On 12/04/2013 09:44 AM, Philippe Gerum wrote

Re: [Xenomai] latency spikes under load

2013-12-04 Thread Philippe Gerum
On 12/04/2013 11:33 AM, Philippe Gerum wrote: On 12/04/2013 11:29 AM, Philippe Gerum wrote: On 12/04/2013 10:51 AM, Gilles Chanteperdrix wrote: On 12/04/2013 10:40 AM, Philippe Gerum wrote: On 12/04/2013 10:31 AM, Gilles Chanteperdrix wrote: On 12/04/2013 10:27 AM, Philippe Gerum wrote: On

Re: [Xenomai] latency spikes under load

2013-12-04 Thread Philippe Gerum
On 12/04/2013 12:10 PM, Gilles Chanteperdrix wrote: On 12/04/2013 12:04 PM, Philippe Gerum wrote: On 12/04/2013 11:33 AM, Philippe Gerum wrote: On 12/04/2013 11:29 AM, Philippe Gerum wrote: On 12/04/2013 10:51 AM, Gilles Chanteperdrix wrote: On 12/04/2013 10:40 AM, Philippe Gerum wrote: On

Re: [Xenomai] latency spikes under load

2013-12-04 Thread Philippe Gerum
On 12/04/2013 12:36 PM, Philippe Gerum wrote: On 12/04/2013 12:10 PM, Gilles Chanteperdrix wrote: On 12/04/2013 12:04 PM, Philippe Gerum wrote: On 12/04/2013 11:33 AM, Philippe Gerum wrote: On 12/04/2013 11:29 AM, Philippe Gerum wrote: On 12/04/2013 10:51 AM, Gilles Chanteperdrix wrote: On

Re: [Xenomai] latency spikes under load

2013-12-04 Thread Philippe Gerum
On 12/04/2013 01:00 PM, Gilles Chanteperdrix wrote: On 12/04/2013 12:59 PM, Philippe Gerum wrote: On 12/04/2013 12:36 PM, Philippe Gerum wrote: On 12/04/2013 12:10 PM, Gilles Chanteperdrix wrote: On 12/04/2013 12:04 PM, Philippe Gerum wrote: On 12/04/2013 11:33 AM, Philippe Gerum wrote: On

Re: [Xenomai] latency spikes under load

2013-12-04 Thread Philippe Gerum
On 12/04/2013 05:03 PM, Gilles Chanteperdrix wrote: On 12/04/2013 02:19 PM, Philippe Gerum wrote: On 12/04/2013 01:00 PM, Gilles Chanteperdrix wrote: Ok, could you push the branch somewhere so that I can try it? testing/ipipe-3.8-i915-fix I could test it, I no longer get high latencies

Re: [Xenomai] latency spikes under load

2013-12-05 Thread Philippe Gerum
On 12/05/2013 11:28 AM, Kurijn Buys wrote: Op 5-dec.-2013, om 00:44 heeft Kurijn Buys het volgende geschreven: Op 4-dec.-2013, om 17:43 heeft Philippe Gerum het volgende geschreven: On 12/04/2013 05:03 PM, Gilles Chanteperdrix wrote: On 12/04/2013 02:19 PM, Philippe Gerum wrote: On 12/04

Re: [Xenomai] rt_task_set_priority hangs/loops sometimes on boot

2013-12-06 Thread Philippe Gerum
On 12/06/2013 09:03 AM, Roberto Bielli wrote: Hi, sometimes i have a strange behaviour on boot. The kernel hangs. I saw with an hardware debugger the backtrace when i was in that situation and i saw this: probe_irq_off | devm_free_irq probe_irq_on probe_irq_on register_handler_proc timecounter_

Re: [Xenomai] PCI-MSI interrupt handling Issue

2013-12-13 Thread Philippe Gerum
On 12/13/2013 04:56 AM, Rajeshkumar R wrote: Hi, We are using MPC8641D processor (arch - powerpc) in our module. Our issue is MSI interrupt didn't handled in xenomai. We have the XMC module, this is the source of the MSI interrupt. This XMC MSI interrupt directly given to Processor. We are usi

Re: [Xenomai] rehashing

2013-12-16 Thread Philippe Gerum
On 12/16/2013 09:05 AM, Gilles Chanteperdrix wrote: Hi Philippe, looking at the registry code, I had an idea: we could increase the number of descriptors dynamically when they are exhausted, and increase the hash size as well. This would make the configurable number of slots a starting point, b

Re: [Xenomai] rehashing

2013-12-16 Thread Philippe Gerum
On 12/16/2013 05:13 PM, Gilles Chanteperdrix wrote: On 12/16/2013 05:12 PM, Philippe Gerum wrote: On 12/16/2013 09:05 AM, Gilles Chanteperdrix wrote: Hi Philippe, looking at the registry code, I had an idea: we could increase the number of descriptors dynamically when they are exhausted, and

Re: [Xenomai] rehashing

2013-12-16 Thread Philippe Gerum
On 12/16/2013 05:38 PM, Gilles Chanteperdrix wrote: On 12/16/2013 05:35 PM, Philippe Gerum wrote: On 12/16/2013 05:13 PM, Gilles Chanteperdrix wrote: On 12/16/2013 05:12 PM, Philippe Gerum wrote: On 12/16/2013 09:05 AM, Gilles Chanteperdrix wrote: Hi Philippe, looking at the registry code

Re: [Xenomai] forge: Trying to understand new semaphore code

2013-12-17 Thread Philippe Gerum
On 12/16/2013 11:27 PM, Gilles Chanteperdrix wrote: Hi, here comes the fix for the two issues. If we are allowed to rebase the next branch, I suggest to fold it with the original semaphore commit. Otherwise, I can push this commit on my branch. Rebasing is always allowed on -next, I'll pick t

Re: [Xenomai] Xddp protocol: question of one example

2013-12-20 Thread Philippe Gerum
asked about make recvfrom call non-blocking in xddp context, and *Philippe Gerum* answered that MSG_DONTWAIT should be set in flags. So, my question is that using that flag, some code like this: /* Read back packets echoed by the regular thread */ ret = recvfrom(s, buf, sizeof(buf), 0, NULL, 0); i

Re: [Xenomai] Xddp protocol: question of one example

2013-12-20 Thread Philippe Gerum
On 12/20/2013 01:42 PM, Leopold Palomo-Avellaneda wrote: A Divendres, 20 de desembre de 2013, Philippe Gerum va escriure: On 12/19/2013 12:37 AM, Leopold Palomo-Avellaneda wrote: Hi, I'm developing an application that need (as always) interchange data between a realtime part and non-rea

Re: [Xenomai] file descriptors rework

2013-12-23 Thread Philippe Gerum
On 12/22/2013 06:00 PM, Gilles Chanteperdrix wrote: Here is the new proposed API for file descriptors: struct xnfd_ops { int (*destroy)(struct xnfd *fd); int (*select_bind)(struct xnfd *fd, struct xnselector *selector, unsigned type, unsigned index); };

Re: [Xenomai] kernel panic for rt_task_add_hook

2013-12-29 Thread Philippe Gerum
On 12/29/2013 09:15 AM, ali hagigat wrote: I am using a 32 bit Fedora 13, linux kernel 3.5.7 and xenomai-2.6.3. Please do the followings: 1) insmod ./kerneltask2.ko 2) rmmod kerneltask2 The first time is OK. The second time the computer freezes and i have a kernel panic and carsh dump every tim

Re: [Xenomai] rehashing

2013-12-29 Thread Philippe Gerum
On 12/29/2013 02:45 PM, Gilles Chanteperdrix wrote: On 12/16/2013 05:48 PM, Philippe Gerum wrote: On 12/16/2013 05:38 PM, Gilles Chanteperdrix wrote: On 12/16/2013 05:35 PM, Philippe Gerum wrote: On 12/16/2013 05:13 PM, Gilles Chanteperdrix wrote: On 12/16/2013 05:12 PM, Philippe Gerum wrote

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-04 Thread Philippe Gerum
On 01/04/2014 01:48 AM, Nima Nourozi wrote: I'm writing an SPI device driver using rtdm skin. If I call rtdm_task_init from anywhere in the code the system freezes indefinitely with no errors thrown. Here is how I call the function in __init function of my module: retval = rtdm_task_init(&heartb

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-04 Thread Philippe Gerum
On 01/04/2014 07:18 PM, Gilles Chanteperdrix wrote: On 01/04/2014 10:06 AM, Philippe Gerum wrote: On 01/04/2014 01:48 AM, Nima Nourozi wrote: I'm writing an SPI device driver using rtdm skin. If I call rtdm_task_init from anywhere in the code the system freezes indefinitely with no e

<    6   7   8   9   10   11   12   13   14   15   >