[Xenomai] [RFC][PATCH] cobalt/synch: Do not drop PP on xnsynch_release if it wasn't committed

2018-04-26 Thread Jan Kiszka
We must not try to drop the prio ceiling in the kernel if it wasn't committed yet. That could easily happen when using a prio-ceiling mutex to wait on a cond-var. This is not the most robust solution as it bases the decision on userspace controlled state which could be corrupted. Signed-off-by:

Re: [Xenomai] rtnet 8168g 8168h master -slave

2018-04-26 Thread Jan Kiszka
On 2018-04-26 19:28, Шевченко Тарас Григорьевич wrote: > No , I dont use > > tell, to disable TDMA is it enought comment it in rtnet script > #modprobe rtmac >/dev/null > #modprobe tdma >/dev/null > If you don't want rtmac and rtcfg, don't use the script. Just do what init_rtnet does

Re: [Xenomai] rtnet 8168g 8168h master -slave

2018-04-26 Thread Jan Kiszka
On 2018-04-26 18:34, Шевченко Тарас Григорьевич wrote: > do you mean NAPI and polling mechanism ? > They do not exist for RTnet drivers. If you still use them, change the driver. Look at the existing models, how the handle interrupts and TX requests. Jan > С уважением и надеждой на

Re: [Xenomai] Crash with longer dlopen/dlcose sequence

2018-04-26 Thread Edouard Tisserant
> If by pointer setup, you mean all the init stuff run by the various > Xenomai libraries when called on behalf of xenomai_init(), then yes. Perfect ! Then I will build that xeno_stub.so, dlopen() it and it will be all fine Wait. Did I miss something ? I need to build and dlopen a stub

Re: [Xenomai] Issue with Xenomai 3.0.6, I-Pipe 4.9.51 and Linux 4.9.51 on Xilinx Zynq 7000 MPSOC

2018-04-26 Thread Greg Gallagher
Sounds good, and I will test out the 4.9.51 patch tonight and see what happens. On Thu, Apr 26, 2018 at 1:05 PM, Salvatore Barone wrote: > Ok, I'll try. > > I keep you updated > Thanks a lot! > > 2018-04-26 19:02 GMT+02:00 Greg Gallagher : >> >>

Re: [Xenomai] Issue with Xenomai 3.0.6, I-Pipe 4.9.51 and Linux 4.9.51 on Xilinx Zynq 7000 MPSOC

2018-04-26 Thread Greg Gallagher
You can clone this: git://git.xenomai.org/ipipe-arm.git Then when you patch the kernel with scripts/prepare-kernel.sh leave --ipipe= blank or not add that argument. If you add --verbose to prepare-kernel you should see that the script detects the ipipe is already present in the tree and then

Re: [Xenomai] Issue with Xenomai 3.0.6, I-Pipe 4.9.51 and Linux 4.9.51 on Xilinx Zynq 7000 MPSOC

2018-04-26 Thread Greg Gallagher
okay, I will try to reproduce tonight. If you need to be up and running i can send you a 4.14 image, (4.14 kernel with Ubuntu 16.04 fs) to test out. -Greg On Thu, Apr 26, 2018 at 12:54 PM, Salvatore Barone wrote: > Just before the last attempt! About two hours ago...

Re: [Xenomai] Issue with Xenomai 3.0.6, I-Pipe 4.9.51 and Linux 4.9.51 on Xilinx Zynq 7000 MPSOC

2018-04-26 Thread Greg Gallagher
git clone git://git.xenomai.org/xenomai-3.git git checkout stable-3.0.x When was the last time you sync'd with the Linux stable tree? On Thu, Apr 26, 2018 at 12:39 PM, Salvatore Barone wrote: > Which repo sould I use? > > > 2018-04-26 18:35 GMT+02:00 Greg Gallagher

Re: [Xenomai] Issue with Xenomai 3.0.6, I-Pipe 4.9.51 and Linux 4.9.51 on Xilinx Zynq 7000 MPSOC

2018-04-26 Thread Greg Gallagher
My email cutoff the last part of your panic, I can see the full log now. Try using the latest git repo, so checkout the stable-3.0.x branch for Xenomai. The only difference between my test setup is I'm using the stable branch. I'll attempt to reproduce tonight if you still see the error. On

Re: [Xenomai] rtnet 8168g 8168h master -slave

2018-04-26 Thread Шевченко Тарас Григорьевич
do you mean NAPI and polling mechanism ? С уважением и надеждой на сотрудничество, Шевченко Т.Г. - Original Message - From: "Jan Kiszka" To: "Шевченко Тарас Григорьевич" , "xenomai" Cc: "Greg Gallagher"

Re: [Xenomai] rtnet 8168g 8168h master -slave

2018-04-26 Thread Jan Kiszka
On 2018-04-25 19:23, Шевченко Тарас Григорьевич wrote: > Hi! > I change driver  and try to make  master - slave configuration > its connected > Below logs from slave (with i pipe debug turns on)     TDMA master > parametrs are cycle 500  offset 50 > Question is I get ping master -slave about 400

Re: [Xenomai] Kernel oops during rtnet loopback usage on x86_64 (e1000e)

2018-04-26 Thread Jan Kiszka
On 2018-04-25 13:36, Pintu Kumar wrote: > Dear Jan, > > Thank you so much for your reply. > I will try the latest stable version to check again. > Is ipipe patches (linux: 4.9.51) also needs to be upgraded for this > issue? Or only xenomai-3/kernel patches are enough? This particular issue was

Re: [Xenomai] Issue with Xenomai 3.0.6, I-Pipe 4.9.51 and Linux 4.9.51 on Xilinx Zynq 7000 MPSOC

2018-04-26 Thread Greg Gallagher
Are you patching the Xilinx Linux kernel with the Xenomai patch? Have you tried mainline? Greg From: salvator.bar...@gmail.com Sent: April 26, 2018 12:01 PM To: g...@embeddedgreg.com Cc: xenomai@xenomai.org Subject: Re: [Xenomai] Issue with Xenomai 3.0.6, I-Pipe 4.9.51

[Xenomai] Xenomai 3.0.6 on kernel 4.4.71 freeze

2018-04-26 Thread Fazio Maurizio
.log URL: <http://xenomai.org/pipermail/xenomai/attachments/20180426/94658f27/attachment.obj> -- next part -- A non-text attachment was scrubbed... Name: linux4.4.71OK.log Type: application/octet-stream Size: 151304 bytes Desc: linux4.4.71OK.log URL: <http:

Re: [Xenomai] Crash with longer dlopen/dlcose sequence

2018-04-26 Thread Philippe Gerum
On 04/26/2018 11:24 AM, Edouard Tisserant wrote: > One more question. Sorry for flooding the list. > > As a workaround to avoid leaking memory, I would like to try this : > >  - xeno_stub.so : stub library, linked with bootstrap-pic.o >  - 1.so, 2.so, ... n.so : libraries calling alchemy/posix

Re: [Xenomai] Issue with Xenomai 3.0.6, I-Pipe 4.9.51 and Linux 4.9.51 on Xilinx Zynq 7000 MPSOC

2018-04-26 Thread Greg Gallagher
If you load a non Xenomai kernel do you see the panic? I think there's an issue with your rootfs. I've tested zynq running on 4.14 ipipe and 4.9 ipipe with Xenomai 3.0.x stable using both a ubuntu and busybox file system with no issues. I've tested on Zybo, Minized and the Zc702 board. If it's

[Xenomai-git] New commits on branch wip/heapmem

2018-04-26 Thread git repository hosting
URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=984ce322de865a3ba7896ff9f5272bc07f0c4075 Author: Philippe Gerum Date: Sun Apr 22 19:50:57 2018 +0200 copperplate/heapobj: enable heapmem for private memory Make HEAPMEM the default private memory

[Xenomai-git] New commits on branch next

2018-04-26 Thread git repository hosting
URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=d044252681c6740fcd83095a001f07f11366e51f Author: Norbert Lange Date: Wed Apr 25 15:05:00 2018 +0200 demo/posix, testsuite/smokey: silences some compiler warnings Signed-off-by: Norbert Lange

[Xenomai] Issue with Xenomai 3.0.6, I-Pipe 4.9.51 and Linux 4.9.51 on Xilinx Zynq 7000 MPSOC

2018-04-26 Thread Salvatore Barone
Hi all, I'm trying to run Xenomai 3 on a Xilinx Zynq 7000 MPSOC (on a Digilent Zybo development board). I've read a lot of tutorial and documentation before posting here. I run into a "kernel panic" and I cannot solve it. I know to be annoying, but just to be not prone to misunderstanding, I'm

[Xenomai-git] Henning Schild : smokey/dlopen: fix testcase

2018-04-26 Thread git repository hosting
Module: xenomai-3 Branch: stable-3.0.x Commit: 34f28393ede872e50a24cc3ffcc810c40422c717 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=34f28393ede872e50a24cc3ffcc810c40422c717 Author: Henning Schild Date: Tue Apr 24 14:37:00 2018 +0200 smokey/dlopen:

[Xenomai-git] Henning Schild : Revert "boilerplate/setup: introduce destructors for __setup_call"

2018-04-26 Thread git repository hosting
Module: xenomai-3 Branch: stable-3.0.x Commit: 0dfccf7e8d50738c5dd542f1120d04bc6692d1eb URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=0dfccf7e8d50738c5dd542f1120d04bc6692d1eb Author: Henning Schild Date: Tue Apr 24 14:37:00 2018 +0200 Revert

[Xenomai-git] Henning Schild : build: link dlopen libs with "nodelete"

2018-04-26 Thread git repository hosting
Module: xenomai-3 Branch: stable-3.0.x Commit: aa008686091484c88cbb809bc190133a98769a30 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=aa008686091484c88cbb809bc190133a98769a30 Author: Henning Schild Date: Tue Apr 24 14:37:00 2018 +0200 build: link

[Xenomai-git] Norbert Lange : smokey/net_common: fix one out-of-bounds access

2018-04-26 Thread git repository hosting
Module: xenomai-3 Branch: next Commit: 6472486c50e0e7b8d48bef6de6912220e65ddf0e URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=6472486c50e0e7b8d48bef6de6912220e65ddf0e Author: Norbert Lange Date: Wed Apr 25 15:05:00 2018 +0200 smokey/net_common: fix one

[Xenomai-git] Norbert Lange : demo/posix, testsuite/smokey: silences some compiler warnings

2018-04-26 Thread git repository hosting
Module: xenomai-3 Branch: next Commit: 6eae2e3cbc7b91dfc8cc0f6c4d56b82c40c2d49f URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=6eae2e3cbc7b91dfc8cc0f6c4d56b82c40c2d49f Author: Norbert Lange Date: Wed Apr 25 15:05:00 2018 +0200 demo/posix, testsuite/smokey:

[Xenomai-git] Norbert Lange : smokey/net_common: fix one out-of-bounds access

2018-04-26 Thread git repository hosting
Module: xenomai-3 Branch: stable-3.0.x Commit: d18c8ad0b824b9c98c2925e3f50dbfd836060576 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=d18c8ad0b824b9c98c2925e3f50dbfd836060576 Author: Norbert Lange Date: Wed Apr 25 15:05:00 2018 +0200 smokey/net_common: fix

Re: [Xenomai] Crash with longer dlopen/dlcose sequence

2018-04-26 Thread Henning Schild
Hi, i recently looked into dlopen()/dlclose() again, because the testcase i wrote did not really work. What i found is that dlclose() currently can not work because we lack destructor code for the core and skins. Removing the setup_descriptors from the list is only a small fraction of what would

Re: [Xenomai] [PATCH] I.mx28 with Ipipe 4.9.x

2018-04-26 Thread Edouard Tisserant
xt part -- A non-text attachment was scrubbed... Name: 0001-imx28-ipipe-4.9.y.patch Type: text/x-patch Size: 1923 bytes Desc: not available URL: <http://xenomai.org/pipermail/xenomai/attachments/20180426/9d3e90c3/attachment.bin> ___ Xenom

Re: [Xenomai] [PATCH] I.mx28 with Ipipe 4.9.x

2018-04-26 Thread Philippe Gerum
On 04/26/2018 08:05 AM, Edouard Tisserant wrote: > Dear Xenomai crew, > > Attached is a patch to enable building Ipipe again for I.mx28 with > kernel 4.9.x. > > It seems to work... In some tests, latencies are ranging for 5 to 100us. > Was something in between 70-100us with xenomai 2 on ipipe

[Xenomai] [BUG] critical bug fixed in the shared heap memory allocator

2018-04-26 Thread Philippe Gerum
If you rely on --enable-pshared, i.e. having a multi-process application sharing a central heap, you do want to pick this fix: http://git.xenomai.org/xenomai-3.git/commit/?id=984d13432547d9cb9283162e3efd6b2224acb2a9 -- Philippe. ___ Xenomai mailing

[Xenomai-git] Philippe Gerum : boilerplate: add heapmem allocator

2018-04-26 Thread git repository hosting
Module: xenomai-3 Branch: wip/heapmem Commit: 1d468fb85145130866c84a40481b714bef49fecb URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=1d468fb85145130866c84a40481b714bef49fecb Author: Philippe Gerum Date: Fri Apr 13 12:15:15 2018 +0200 boilerplate: add heapmem

[Xenomai-git] Philippe Gerum : copperplate/heapobj: enable heapmem for private memory

2018-04-26 Thread git repository hosting
Module: xenomai-3 Branch: wip/heapmem Commit: a36437ed07959f21cf7d63510a6bf8d53db54bbb URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=a36437ed07959f21cf7d63510a6bf8d53db54bbb Author: Philippe Gerum Date: Sun Apr 22 19:50:57 2018 +0200 copperplate/heapobj: enable

[Xenomai-git] Philippe Gerum : smokey: add helper to retrieve size expr

2018-04-26 Thread git repository hosting
Module: xenomai-3 Branch: wip/heapmem Commit: 91ec9082982a7f42b7de7e933425b08ec9895ef2 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=91ec9082982a7f42b7de7e933425b08ec9895ef2 Author: Philippe Gerum Date: Mon Apr 23 18:29:46 2018 +0200 smokey: add helper to

[Xenomai-git] Philippe Gerum : testsuite/smokey: add test suite for memory allocators

2018-04-26 Thread git repository hosting
Module: xenomai-3 Branch: wip/heapmem Commit: a2c232d73b0ffdae8235a9c3f68728f68500fad4 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=a2c232d73b0ffdae8235a9c3f68728f68500fad4 Author: Philippe Gerum Date: Sun Apr 22 18:20:04 2018 +0200 testsuite/smokey: add test

[Xenomai-git] Philippe Gerum : smokey: argument accessors using variables

2018-04-26 Thread git repository hosting
Module: xenomai-3 Branch: wip/heapmem Commit: eccf431e4158052855bd07ebf292b50fe5799b90 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=eccf431e4158052855bd07ebf292b50fe5799b90 Author: Philippe Gerum Date: Mon Apr 23 18:03:07 2018 +0200 smokey: argument accessors

[Xenomai-git] Philippe Gerum : copperplate/heapobj-pshared: fix reservation in allocation bitmap

2018-04-26 Thread git repository hosting
Module: xenomai-3 Branch: wip/heapmem Commit: bd6a419fe1d0e2ee0382baf2ed1db22355abe69b URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=bd6a419fe1d0e2ee0382baf2ed1db22355abe69b Author: Philippe Gerum Date: Thu Apr 26 11:03:50 2018 +0200

[Xenomai-git] Gilles Chanteperdrix : boilerplate/avl: merge pshared support for AVL trees

2018-04-26 Thread git repository hosting
Module: xenomai-3 Branch: wip/heapmem Commit: 748488c18143c680696714428dda8e05a9bd31c0 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=748488c18143c680696714428dda8e05a9bd31c0 Author: Gilles Chanteperdrix Date: Tue Jul 12 20:29:22 2016 +0200

[Xenomai-git] Philippe Gerum : copperplate/heapobj-pshared: add helper to return the total heap size

2018-04-26 Thread git repository hosting
Module: xenomai-3 Branch: wip/heapmem Commit: 5964a2e18703e5d956efb86fb824716104109841 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=5964a2e18703e5d956efb86fb824716104109841 Author: Philippe Gerum Date: Mon Apr 23 10:47:28 2018 +0200

[Xenomai-git] Philippe Gerum : boilerplate: compiler: add more helpers and attribute tags

2018-04-26 Thread git repository hosting
Module: xenomai-3 Branch: wip/heapmem Commit: 5849eff618549d00f79bf58fb170b1e3694df856 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=5849eff618549d00f79bf58fb170b1e3694df856 Author: Philippe Gerum Date: Mon Apr 23 10:28:49 2018 +0200 boilerplate: compiler: add

[Xenomai-git] Philippe Gerum : copperplate/heapobj-pshared: fix reservation in allocation bitmap

2018-04-26 Thread git repository hosting
Module: xenomai-3 Branch: next Commit: bd6a419fe1d0e2ee0382baf2ed1db22355abe69b URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=bd6a419fe1d0e2ee0382baf2ed1db22355abe69b Author: Philippe Gerum Date: Thu Apr 26 11:03:50 2018 +0200 copperplate/heapobj-pshared: fix

[Xenomai-git] Philippe Gerum : copperplate/heapobj-pshared: fix reservation in allocation bitmap

2018-04-26 Thread git repository hosting
Module: xenomai-3 Branch: stable-3.0.x Commit: 984d13432547d9cb9283162e3efd6b2224acb2a9 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=984d13432547d9cb9283162e3efd6b2224acb2a9 Author: Philippe Gerum Date: Thu Apr 26 11:03:50 2018 +0200

[Xenomai-git] Philippe Gerum : testsuite/smokey: add test suite for memory allocators

2018-04-26 Thread git repository hosting
Module: xenomai-3 Branch: wip/heapmem Commit: 4756348e6de8693b957540fda92bb10f21ec16f6 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=4756348e6de8693b957540fda92bb10f21ec16f6 Author: Philippe Gerum Date: Sun Apr 22 18:20:04 2018 +0200 testsuite/smokey: add test

[Xenomai-git] Philippe Gerum : copperplate/heapobj: enable heapmem for private memory

2018-04-26 Thread git repository hosting
Module: xenomai-3 Branch: wip/heapmem Commit: 3471a0e2ed6f0407e393ad194bd27ba5236bcef8 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=3471a0e2ed6f0407e393ad194bd27ba5236bcef8 Author: Philippe Gerum Date: Sun Apr 22 19:50:57 2018 +0200 copperplate/heapobj: enable

[Xenomai-git] Philippe Gerum : copperplate/heapobj-pshared: fix reservation in allocation bitmap

2018-04-26 Thread git repository hosting
Module: xenomai-3 Branch: wip/heapmem Commit: 6987444c499aae975e3fce6b70fa706d8f93081c URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=6987444c499aae975e3fce6b70fa706d8f93081c Author: Philippe Gerum Date: Thu Apr 26 11:03:50 2018 +0200

Re: [Xenomai] Crash with longer dlopen/dlcose sequence

2018-04-26 Thread Edouard Tisserant
One more question. Sorry for flooding the list. As a workaround to avoid leaking memory, I would like to try this :  - xeno_stub.so : stub library, linked with bootstrap-pic.o  - 1.so, 2.so, ... n.so : libraries calling alchemy/posix realtime resources, NOT linked with bootstrap-pic.o Process

Re: [Xenomai] Crash with longer dlopen/dlcose sequence

2018-04-26 Thread Edouard Tisserant
@Henning Schild : I just see your message from Tuesday : '[PATCH 3/3] build: link dlopen libs with "nodelete"' Is "nodelete" the only way to make it stable ? Does it apply only to Xenomai libs (i.e. alchemy, copperplalte) or should it also apply to final shared object that uses Xenomai libs ? 

[Xenomai] Crash with longer dlopen/dlcose sequence

2018-04-26 Thread Edouard Tisserant
Good Morning ! I'm chasing the origins of a random segfault when porting Beremiz to Xenomai 3. Beremiz PLC runtime loads PLC logic as a shared object. Loading is performed as dlopen call from python interpreter. Each time PLC programmer tries a new program, previous shared object is dlcosed and

[Xenomai] [PATCH] I.mx28 with Ipipe 4.9.x

2018-04-26 Thread Edouard Tisserant
-- A non-text attachment was scrubbed... Name: 0042-armv5_ipipe_support.patch Type: text/x-patch Size: 1237 bytes Desc: not available URL: <http://xenomai.org/pipermail/xenomai/attachments/20180426/34da1c9c/attachment.bin> ___ Xenomai mailin