Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 16 Feb 2010 17:42:08 -0600 Message-ID: <181804936ABC2349BE503168465576460DDA2F4F@exchserver.basler.com> References: <181804936ABC2349BE503168465576460DD4DE8B@exchserver.basler.com> From: "Steve Deiters" Subject: Re: [Xenomai-help] Supported I-pipe versions? List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org 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 #include #include #include #include #include #include #include #include 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 =3D rt_cond_wait(&cond,&mutex,rt_timer_ns2ticks(10000000000ULL)); rt_mutex_release(&mutex); errno =3D -err; perror("rt_cond_wait"); rt_cond_delete(&cond); rt_mutex_delete(&mutex); return 0; } -----Original Message----- From: xenomai-help-bounces@domain.hid [mailto:xenomai-help-bounces@domain.hid] On Behalf Of Steve Deiters Sent: Tuesday, February 16, 2010 2:21 PM To: xenomai@xenomai.org 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. =20 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. =20 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: =20 [ 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 =3D 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 =3D 0xff38e14 _______________________________________________ Xenomai-help mailing list Xenomai-help@domain.hid https://mail.gna.org/listinfo/xenomai-help