Supported I-pipe versions?
Is there a list of supported I-pipe versions, or is it assumed that any version is compatible with the current versions of Xenomai? I have a PowerPC architecture kernel version 2.6.24.6, using the following adeos patch:
http://download.gna.org/adeos/patches/v2.6/powerpc/older/adeos-ipipe-2.6
.24.6-powerpc-DENX-2.4-03.patch.
I believe this patch was included in the 2.4.10 installer, but I've had to include this myself for the 2.5.1 installer.
The only reason I ask is because with the Xenomai 2.5.1 I now get exceptions of the type "BUG: scheduling while atomic" for programs that previously worked in 2.4.10. I am still trying to track down more information. I just wanted to first make sure I am not having problems due to the version of kernel and adeos patch. I am still trying to make a minimal example that exhibits the issue.
This is the stack trace I get for one particular program:
[ 363.207532] BUG: scheduling while atomic: zc_test/1459/0x00000002 [ 363.213683] Call Trace: [ 363.216110] [c7155da0] [c00094e8] show_stack+0x60/0x1a8 (unreliable) [ 363.222616] [c7155de0] [c000965c] dump_stack+0x2c/0x44 [ 363.227829] [c7155df0] [c001cee8] __schedule_bug+0x7c/0x94 [ 363.233307] [c7155e10] [c02cdfb8] schedule+0x4d4/0x4e0 [ 363.238517] [c7155e70] [c0076c60] xnshadow_harden+0xf8/0x178 [ 363.244168] [c7155e90] [c0076d90] losyscall_event+0xb0/0x380 [ 363.249946] [c7155ee0] [c0061ab0] __ipipe_dispatch_event+0x1d4/0x2b8 [ 363.256291] [c7155f30] [c000b2f8] __ipipe_syscall_root+0x54/0x144 [ 363.262516] [c7155f40] [c0013d60] DoSyscall+0x20/0x5c [ 363.267640] --- Exception: c01 at 0xffd3c60 [ 363.271824] LR = 0xffd3c04 [ 363.297702] BUG: scheduling while atomic: zc_test/1459/0x00000002 [ 363.303821] Call Trace: [ 363.306546] [c7155da0] [c00094e8] show_stack+0x60/0x1a8 (unreliable) [ 363.313652] [c7155de0] [c000965c] dump_stack+0x2c/0x44 [ 363.318883] [c7155df0] [c001cee8] __schedule_bug+0x7c/0x94 [ 363.324359] [c7155e10] [c02cdfb8] schedule+0x4d4/0x4e0 [ 363.329626] [c7155e70] [c0076c60] xnshadow_harden+0xf8/0x178 [ 363.335275] [c7155e90] [c0076d90] losyscall_event+0xb0/0x380 [ 363.341071] [c7155ee0] [c0061ab0] __ipipe_dispatch_event+0x1d4/0x2b8 [ 363.347562] [c7155f30] [c000b2f8] __ipipe_syscall_root+0x54/0x144 [ 363.353656] [c7155f40] [c0013d60] DoSyscall+0x20/0x5c [ 363.358789] --- Exception: c01 at 0xff38eac [ 363.362974] LR = 0xff38e14
Not sure if this is related to my earlier issue, but the following simple program does not work with my setup described below. In 2.5.1 the rt_cond_wait always returns immediately with success. I am expecting a 10 second delay, followed by an error of ETIMEDOUT. This works properly using 2.4.10.
--------------------------
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/mman.h>
#include <native/task.h>
#include <native/mutex.h>
#include <native/cond.h>
#include <native/timer.h>
static RT_COND cond;
static RT_MUTEX mutex;
static RT_TASK rt_main;
int main(int argc, char **argv)
{
int err;
mlockall(MCL_CURRENT|MCL_FUTURE);
rt_task_shadow(&rt_main, "rt_main", 1, 0);
if(rt_mutex_create(&mutex,NULL) < 0)
{
perror("rt_mutex_create");
exit(EXIT_FAILURE);
}
if(rt_cond_create(&cond,NULL) < 0)
{
perror("rt_cond_create");
exit(EXIT_FAILURE);
}
rt_mutex_acquire(&mutex,TM_INFINITE);
err = rt_cond_wait(&cond,&mutex,rt_timer_ns2ticks(10000000000ULL));
rt_mutex_release(&mutex);
errno = -err;
perror("rt_cond_wait");
rt_cond_delete(&cond);
rt_mutex_delete(&mutex); return 0;
}
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Steve Deiters
Sent: Tuesday, February 16, 2010 2:21 PM
To: [email protected]
Subject: [Xenomai-help] Supported I-pipe versions?
Is there a list of supported I-pipe versions, or is it assumed that any version is compatible with the current versions of Xenomai? I have a PowerPC architecture kernel version 2.6.24.6, using the following adeos patch:
http://download.gna.org/adeos/patches/v2.6/powerpc/older/adeos-ipipe-2.6
.24.6-powerpc-DENX-2.4-03.patch.
I believe this patch was included in the 2.4.10 installer, but I've had to include this myself for the 2.5.1 installer.
The only reason I ask is because with the Xenomai 2.5.1 I now get exceptions of the type "BUG: scheduling while atomic" for programs that previously worked in 2.4.10. I am still trying to track down more information. I just wanted to first make sure I am not having problems due to the version of kernel and adeos patch. I am still trying to make a minimal example that exhibits the issue.
This is the stack trace I get for one particular program:
[ 363.207532] BUG: scheduling while atomic: zc_test/1459/0x00000002 [ 363.213683] Call Trace: [ 363.216110] [c7155da0] [c00094e8] show_stack+0x60/0x1a8 (unreliable) [ 363.222616] [c7155de0] [c000965c] dump_stack+0x2c/0x44 [ 363.227829] [c7155df0] [c001cee8] __schedule_bug+0x7c/0x94 [ 363.233307] [c7155e10] [c02cdfb8] schedule+0x4d4/0x4e0 [ 363.238517] [c7155e70] [c0076c60] xnshadow_harden+0xf8/0x178 [ 363.244168] [c7155e90] [c0076d90] losyscall_event+0xb0/0x380 [ 363.249946] [c7155ee0] [c0061ab0] __ipipe_dispatch_event+0x1d4/0x2b8 [ 363.256291] [c7155f30] [c000b2f8] __ipipe_syscall_root+0x54/0x144 [ 363.262516] [c7155f40] [c0013d60] DoSyscall+0x20/0x5c [ 363.267640] --- Exception: c01 at 0xffd3c60 [ 363.271824] LR = 0xffd3c04 [ 363.297702] BUG: scheduling while atomic: zc_test/1459/0x00000002 [ 363.303821] Call Trace: [ 363.306546] [c7155da0] [c00094e8] show_stack+0x60/0x1a8 (unreliable) [ 363.313652] [c7155de0] [c000965c] dump_stack+0x2c/0x44 [ 363.318883] [c7155df0] [c001cee8] __schedule_bug+0x7c/0x94 [ 363.324359] [c7155e10] [c02cdfb8] schedule+0x4d4/0x4e0 [ 363.329626] [c7155e70] [c0076c60] xnshadow_harden+0xf8/0x178 [ 363.335275] [c7155e90] [c0076d90] losyscall_event+0xb0/0x380 [ 363.341071] [c7155ee0] [c0061ab0] __ipipe_dispatch_event+0x1d4/0x2b8 [ 363.347562] [c7155f30] [c000b2f8] __ipipe_syscall_root+0x54/0x144 [ 363.353656] [c7155f40] [c0013d60] DoSyscall+0x20/0x5c [ 363.358789] --- Exception: c01 at 0xff38eac [ 363.362974] LR = 0xff38e14
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Sorry to keep bringing this up, but does anybody know if there are compatibility issues with Xenomai 2.5.1, PowerPC Linux 2.6.24.6, and the following adeos patch:
http://download.gna.org/adeos/patches/v2.6/powerpc/older/adeos-ipipe-2.6
.24.6-powerpc-DENX-2.4-03.patch?
Thanks.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Steve Deiters
Sent: Tuesday, February 16, 2010 5:42 PM
To: [email protected]
Subject: Re: [Xenomai-help] Supported I-pipe versions?
Not sure if this is related to my earlier issue, but the following simple program does not work with my setup described below. In 2.5.1 the rt_cond_wait always returns immediately with success. I am expecting a 10 second delay, followed by an error of ETIMEDOUT. This works properly using 2.4.10.
--------------------------
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/mman.h>
#include <native/task.h>
#include <native/mutex.h>
#include <native/cond.h>
#include <native/timer.h>
static RT_COND cond;
static RT_MUTEX mutex;
static RT_TASK rt_main;
int main(int argc, char **argv)
{
int err;
mlockall(MCL_CURRENT|MCL_FUTURE);
rt_task_shadow(&rt_main, "rt_main", 1, 0);
if(rt_mutex_create(&mutex,NULL) < 0)
{
perror("rt_mutex_create");
exit(EXIT_FAILURE);
}
if(rt_cond_create(&cond,NULL) < 0)
{
perror("rt_cond_create");
exit(EXIT_FAILURE);
}
rt_mutex_acquire(&mutex,TM_INFINITE);
err = rt_cond_wait(&cond,&mutex,rt_timer_ns2ticks(10000000000ULL));
rt_mutex_release(&mutex);
errno = -err;
perror("rt_cond_wait");
rt_cond_delete(&cond);
rt_mutex_delete(&mutex); return 0;
}
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Steve Deiters
Sent: Tuesday, February 16, 2010 2:21 PM
To: [email protected]
Subject: [Xenomai-help] Supported I-pipe versions?
Is there a list of supported I-pipe versions, or is it assumed that any version is compatible with the current versions of Xenomai? I have a PowerPC architecture kernel version 2.6.24.6, using the following adeos patch:
http://download.gna.org/adeos/patches/v2.6/powerpc/older/adeos-ipipe-2.6
.24.6-powerpc-DENX-2.4-03.patch.
I believe this patch was included in the 2.4.10 installer, but I've had to include this myself for the 2.5.1 installer.
The only reason I ask is because with the Xenomai 2.5.1 I now get exceptions of the type "BUG: scheduling while atomic" for programs that previously worked in 2.4.10. I am still trying to track down more information. I just wanted to first make sure I am not having problems due to the version of kernel and adeos patch. I am still trying to make a minimal example that exhibits the issue.
This is the stack trace I get for one particular program:
[ 363.207532] BUG: scheduling while atomic: zc_test/1459/0x00000002 [ 363.213683] Call Trace: [ 363.216110] [c7155da0] [c00094e8] show_stack+0x60/0x1a8 (unreliable) [ 363.222616] [c7155de0] [c000965c] dump_stack+0x2c/0x44 [ 363.227829] [c7155df0] [c001cee8] __schedule_bug+0x7c/0x94 [ 363.233307] [c7155e10] [c02cdfb8] schedule+0x4d4/0x4e0 [ 363.238517] [c7155e70] [c0076c60] xnshadow_harden+0xf8/0x178 [ 363.244168] [c7155e90] [c0076d90] losyscall_event+0xb0/0x380 [ 363.249946] [c7155ee0] [c0061ab0] __ipipe_dispatch_event+0x1d4/0x2b8 [ 363.256291] [c7155f30] [c000b2f8] __ipipe_syscall_root+0x54/0x144 [ 363.262516] [c7155f40] [c0013d60] DoSyscall+0x20/0x5c [ 363.267640] --- Exception: c01 at 0xffd3c60 [ 363.271824] LR = 0xffd3c04 [ 363.297702] BUG: scheduling while atomic: zc_test/1459/0x00000002 [ 363.303821] Call Trace: [ 363.306546] [c7155da0] [c00094e8] show_stack+0x60/0x1a8 (unreliable) [ 363.313652] [c7155de0] [c000965c] dump_stack+0x2c/0x44 [ 363.318883] [c7155df0] [c001cee8] __schedule_bug+0x7c/0x94 [ 363.324359] [c7155e10] [c02cdfb8] schedule+0x4d4/0x4e0 [ 363.329626] [c7155e70] [c0076c60] xnshadow_harden+0xf8/0x178 [ 363.335275] [c7155e90] [c0076d90] losyscall_event+0xb0/0x380 [ 363.341071] [c7155ee0] [c0061ab0] __ipipe_dispatch_event+0x1d4/0x2b8 [ 363.347562] [c7155f30] [c000b2f8] __ipipe_syscall_root+0x54/0x144 [ 363.353656] [c7155f40] [c0013d60] DoSyscall+0x20/0x5c [ 363.358789] --- Exception: c01 at 0xff38eac [ 363.362974] LR = 0xff38e14
Quoted 5 lines · Steve Deiters
Sorry to keep bringing this up, but does anybody know if there are compatibility issues with Xenomai 2.5.1, PowerPC Linux 2.6.24.6, and the following adeos patch:
http://download.gna.org/adeos/patches/v2.6/powerpc/older/adeos-ipipe-2.6
.24.6-powerpc-DENX-2.4-03.patch?
2.6.24 has a bug which has only be fixed with recent patches. So, even if you use it with an older Xenomai version, and it seems to work, in fact it does not.
Signature · 1 line
Gilles.
Quoted 13 lines
-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]
Sent: Saturday, February 20, 2010 4:39 AM
To: Steve Deiters
Cc: [email protected]
Subject: Re: [Xenomai-help] Supported I-pipe versions?Quoted 2 lines · Steve Deiters
Sorry to keep bringing this up, but does anybody know if there are compatibility issues with Xenomai 2.5.1, PowerPC Linux
2.6.24.6, and
Quoted 2 lines
the following adeos patch:
Quoted 11 lines
http://download.gna.org/adeos/patches/v2.6/powerpc/older/adeos-ipipe-2
Quoted 2 lines
.6
.24.6-powerpc-DENX-2.4-03.patch?2.6.24 has a bug which has only be fixed with recent patches. So, even if you use it with an older Xenomai version, and it seems to work, in fact it does not.
Signature · 1 line
Gilles.
Could you elaborate on this a bit more? Is there a bug in the kernel or the I-pipe patch? Should I upgrade the kernel version, or I-pipe, or both?
Is there a list of supported versions somewhere, or do I assume that it is not supported if the I-pipe patch is not bundled with the tarball?
Thanks.
Quoted 20 lines · Steve Deiters
Quoted 20 lines
-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]]
Sent: Saturday, February 20, 2010 4:39 AM
To: Steve Deiters
Cc: [email protected]
Subject: Re: [Xenomai-help] Supported I-pipe versions?Quoted 2 lines · Steve Deiters
Sorry to keep bringing this up, but does anybody know if there are compatibility issues with Xenomai 2.5.1, PowerPC Linux
2.6.24.6, and
Quoted 2 lines
the following adeos patch:
http://download.gna.org/adeos/patches/v2.6/powerpc/older/adeos-ipipe-2
Quoted 2 lines
.6
.24.6-powerpc-DENX-2.4-03.patch?2.6.24 has a bug which has only be fixed with recent patches. So, even if you use it with an older Xenomai version, and it seems to work, in fact it does not.
Quoted 6 lines
Quoted 3 lines
Signature · 1 line
Gilles.Could you elaborate on this a bit more? Is there a bug in the kernel or the I-pipe patch?
The I-pipe patch. For details, search the archives, the bug was announced publicly on this list.
Quoted 2 lines
Should I upgrade the kernel version, or I-pipe, or both?
I do not understand this question.
Quoted 3 lines
Is there a list of supported versions somewhere, or do I assume that it is not supported if the I-pipe patch is not bundled with the tarball?
Looks to me like you have not read ksrc/arch/powerpc/patches/README.
Signature · 1 line
Gilles.
Quoted 37 lines
-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]
Sent: Saturday, February 20, 2010 1:04 PM
To: Steve Deiters
Cc: [email protected]
Subject: Re: [Xenomai-help] Supported I-pipe versions?Quoted 2 lines · Steve Deiters
Quoted 2 lines
-----Original Message-----
From: Gilles Chanteperdrix[mailto:[email protected]]
Quoted 7 lines
Quoted 7 lines
Sent: Saturday, February 20, 2010 4:39 AM
To: Steve Deiters
Cc: [email protected]
Subject: Re: [Xenomai-help] Supported I-pipe versions?Quoted 1 line · Steve Deiters
Sorry to keep bringing this up, but does anybody know if
there are
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
compatibility issues with Xenomai 2.5.1, PowerPC Linux
2.6.24.6, and
Quoted 2 lines
the following adeos patch:
http://download.gna.org/adeos/patches/v2.6/powerpc/older/adeos-ipipe-
Quoted 5 lines
Quoted 5 lines
2
Quoted 2 lines
.6
.24.6-powerpc-DENX-2.4-03.patch?2.6.24 has a bug which has only be fixed with recent patches. So, even if you use it with an older Xenomai version, and
it seems to
Quoted 6 lines
Quoted 5 lines
work, in fact it does not.
Signature · 1 line
Gilles.
Quoted 6 lines
Quoted 1 line
Could you elaborate on this a bit more? Is there a bug in
the kernel
Quoted 1 line
or the I-pipe patch?
The I-pipe patch. For details, search the archives, the bug was announced publicly on this list.
I will check the list archives.
Quoted 4 lines
Quoted 2 lines
Should I upgrade the kernel version, or I-pipe, or both?
I do not understand this question.
I was simply asking to what the bug you were referring to applies, the kernel version, or to the I-pipe patch version, and for which one of these I should look for updates if there is some issue with 2.6.24.6.
Quoted 11 lines
Quoted 2 lines
Is there a list of supported versions somewhere, or do I
assume that
Quoted 1 line
it is not supported if the I-pipe patch is not bundled with
the tarball?
Looks to me like you have not read ksrc/arch/powerpc/patches/README.
Signature · 1 line
Gilles.
I have read that. In the README it lists the 2.6.24.6-DENX-2.4-03 patch in the list of older patches, and only makes a note that they are not guaranteed to work, but likely will as you try to maintain backward compatibility. This patch was included in Xenomai 2.4.10 as 'ksrc/arch/powerpc/patches/adeos-ipipe-2.6.24.6-powerpc-DENX-2.4-03.patc h', which seems to be leading to my confusion as this patch and kernel version seem to no longer work, and you are telling me it should have never worked.
So as to not dwell on this issue, is there a recommended version of the Linux kernel for running a PowerPC? I was using a branch of the DENX tree for 2.6.24.6, as it had support for the MPC5121e. The latest mainstream kernel that seems to have good support for this is the 2.6.33 series, but I do not see an adeos patch for that version of the kernel either. Maybe the 2.6.32 patch will work, but I haven't tried it.
Quoted 8 lines · Steve Deiters
I have read that. In the README it lists the 2.6.24.6-DENX-2.4-03 patch in the list of older patches, and only makes a note that they are not guaranteed to work, but likely will as you try to maintain backward compatibility. This patch was included in Xenomai 2.4.10 as 'ksrc/arch/powerpc/patches/adeos-ipipe-2.6.24.6-powerpc-DENX-2.4-03.patc h', which seems to be leading to my confusion as this patch and kernel version seem to no longer work, and you are telling me it should have never worked.
I told you that it could appear to work, but was in fact buggy.
Quoted 8 lines
So as to not dwell on this issue, is there a recommended version of the Linux kernel for running a PowerPC? I was using a branch of the DENX tree for 2.6.24.6, as it had support for the MPC5121e. The latest mainstream kernel that seems to have good support for this is the 2.6.33 series, but I do not see an adeos patch for that version of the kernel either. Maybe the 2.6.32 patch will work, but I haven't tried it.
The latest mainstream kernel release is 2.6.32, 2.6.33 was not yet released, as you will find out by connecting to http://www.kernel.org.
So, there is a patch for the latest mainstream kernel release, and it is included in Xenomai package, so, as said in the README file, you should get better chances than by using a one year old kernel.
Signature · 1 line
Gilles.
Quoted 35 lines · Steve Deiters
Quoted 35 lines
-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]]
Sent: Saturday, February 20, 2010 1:04 PM
To: Steve Deiters
Cc: [email protected]
Subject: Re: [Xenomai-help] Supported I-pipe versions?Quoted 2 lines · Steve Deiters
Quoted 2 lines
-----Original Message-----
From: Gilles Chanteperdrix[mailto:[email protected]]
Quoted 7 lines
Quoted 7 lines
Sent: Saturday, February 20, 2010 4:39 AM
To: Steve Deiters
Cc: [email protected]
Subject: Re: [Xenomai-help] Supported I-pipe versions?Quoted 1 line · Steve Deiters
Sorry to keep bringing this up, but does anybody know if
there are
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
compatibility issues with Xenomai 2.5.1, PowerPC Linux
2.6.24.6, and
Quoted 2 lines
the following adeos patch:
http://download.gna.org/adeos/patches/v2.6/powerpc/older/adeos-ipipe-
Quoted 5 lines
Quoted 5 lines
2
Quoted 2 lines
.6
.24.6-powerpc-DENX-2.4-03.patch?2.6.24 has a bug which has only be fixed with recent patches. So, even if you use it with an older Xenomai version, and
it seems to
Quoted 5 lines
Quoted 5 lines
work, in fact it does not.
Signature · 1 line
Gilles.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Could you elaborate on this a bit more? Is there a bug in
the kernel
Quoted 1 line
or the I-pipe patch?
The I-pipe patch. For details, search the archives, the bug was announced publicly on this list.
I will check the list archives.
The commit I am referring to is:
http://git.denx.de/?p=ipipe-2.6.git;a=commit;h=b1947dc2ed54e0f838965918dbb36cf8c8d97fb6
Which took place in the 2.6.29 development branch. In 2.5.1, you should not see the bug if you are compiling with unlocked context switches.
I made a public announce for the same problem on ARM, but not for powerpc.
Signature · 1 line
Gilles.