Re: Xeno3-x86: system freezes with SEGFAULT

2021-07-02 Thread Mauro S. via Xenomai
Il 01/07/21 08:38, Jan Kiszka ha scritto: On 28.06.21 16:33, Mauro S. via Xenomai wrote: Hi all, I'm using Xenomai3 (master branch, commit d98c99798836dd3571144203b51ff787d2108f1b) on a X86_64bit Intel Atom x5-E8000 with 2GB RAM, using kernel from Xenomai repos, in Cobalt coniguration. Just

Xeno3-x86: system freezes with SEGFAULT

2021-06-28 Thread Mauro S. via Xenomai
Hi all, I'm using Xenomai3 (master branch, commit d98c99798836dd3571144203b51ff787d2108f1b) on a X86_64bit Intel Atom x5-E8000 with 2GB RAM, using kernel from Xenomai repos, in Cobalt coniguration. Just for completeness, I'm using a Yocto built filesystem (but I think it doesn't matter to

Re: Xeno3-x86: system freezes with SEGFAULT

2021-06-29 Thread Mauro S. via Xenomai
Il 28/06/21 16:33, Mauro S. via Xenomai ha scritto: Hi all, I'm using Xenomai3 (master branch, commit d98c99798836dd3571144203b51ff787d2108f1b) on a X86_64bit Intel Atom x5-E8000 with 2GB RAM, using kernel from Xenomai repos, in Cobalt coniguration. Just for completeness, I'm using a Yocto

Re: (rt_)printf and virtual memory

2021-09-14 Thread Mauro S. via Xenomai
Il 09/09/21 20:44, Jan Kiszka ha scritto: On 07.09.21 11:21, Mauro S. via Xenomai wrote: ..snip.. Starting from a number of tasks > 4, the VMEM got a jump and then increases very rapidly. Is it normal? Or I'm misusing the rt_printf? No, that's related to glibc's internal mem

Re: Xenomai 3: Wierd problem resuming task

2021-09-14 Thread Mauro S. via Xenomai
Il 19/07/21 10:10, Mauro S. via Xenomai ha scritto: Il 16/07/21 16:58, Philippe Gerum ha scritto: Mauro S. writes: Il 16/07/21 14:06, Philippe Gerum ha scritto: Mauro S. via Xenomai writes: Hi, I'm using Xenomai3 (master branch, commit bca41678742be80c3a0d5a01935c671c385a95a1

(rt_)printf and virtual memory

2021-09-07 Thread Mauro S. via Xenomai
Hi all, consider the simple code attached. I'm using Xenomai 3.1 on a x86_64 CPU, 2GB RAM. I compile and link the code using "xeno-config --skin=alchemy --cflags" and "xeno-config --skin=alchemy --ldflags" * Scenario 1) #define printf rt_printf commented out (use printf for prints)

Re: (rt_)printf and virtual memory

2021-09-07 Thread Mauro S. via Xenomai
Il 07/09/21 11:21, Mauro S. via Xenomai ha scritto: Hi all, consider the simple code attached. I'm using Xenomai 3.1 on a x86_64 CPU, 2GB RAM. I compile and link the code using "xeno-config --skin=alchemy --cflags" and "xeno-config --skin=alchemy --ldflags" * Scenario

rt_pipe_read(): timeout does not expire

2021-09-25 Thread Mauro S. via Xenomai
Hi all, I'm using Xenomai 3.1.1 in cobalt mode, on x84_64. Please consider the attached simple test code. When I start the application, I never see the "Pipe task running" printf. When I close application (ctrl+c), rt_pipe_join() on pipe task hangs. Analyzing the code with gdb, the timeout

Re: rt_pipe_read(): timeout does not expire

2021-10-18 Thread Mauro S. via Xenomai
Il 06/10/21 13:30, Mauro S. via Xenomai ha scritto: Il 06/10/21 12:26, Jan Kiszka ha scritto: On 06.10.21 09:00, Jan Kiszka via Xenomai wrote: On 05.10.21 18:00, Jan Kiszka via Xenomai wrote: On 25.09.21 18:20, Mauro S. via Xenomai wrote: Hi all, I'm using Xenomai 3.1.1 in cobalt mode

Re: rt_pipe_read(): timeout does not expire

2021-10-06 Thread Mauro S. via Xenomai
Il 06/10/21 12:26, Jan Kiszka ha scritto: On 06.10.21 09:00, Jan Kiszka via Xenomai wrote: On 05.10.21 18:00, Jan Kiszka via Xenomai wrote: On 25.09.21 18:20, Mauro S. via Xenomai wrote: Hi all, I'm using Xenomai 3.1.1 in cobalt mode, on x84_64. Please consider the attached simple test code

Re: Xenomai 3: Wierd problem resuming task

2021-07-19 Thread Mauro S. via Xenomai
Il 16/07/21 16:58, Philippe Gerum ha scritto: Mauro S. writes: Il 16/07/21 14:06, Philippe Gerum ha scritto: Mauro S. via Xenomai writes: Hi, I'm using Xenomai3 (master branch, commit bca41678742be80c3a0d5a01935c671c385a95a1) on a X86_64bit Intel Atom x5-E8000 with 2GB RAM, using kernel

Re: Xenomai 3: Wierd problem resuming task

2021-07-16 Thread Mauro S. via Xenomai
Il 16/07/21 14:06, Philippe Gerum ha scritto: Mauro S. via Xenomai writes: Hi, I'm using Xenomai3 (master branch, commit bca41678742be80c3a0d5a01935c671c385a95a1) on a X86_64bit Intel Atom x5-E8000 with 2GB RAM, using kernel from Xenomai repos, in Cobalt coniguration. SMI workaround

Xenomai 3: Wierd problem resuming task

2021-07-16 Thread Mauro S. via Xenomai
Hi, I'm using Xenomai3 (master branch, commit bca41678742be80c3a0d5a01935c671c385a95a1) on a X86_64bit Intel Atom x5-E8000 with 2GB RAM, using kernel from Xenomai repos, in Cobalt coniguration. SMI workaround is enabled and all latency tests are good. I'm facing with a very weird problem in

Re: Xenomai 3: Wierd problem resuming task

2021-07-16 Thread Mauro S. via Xenomai
Il 16/07/21 11:47, Jan Kiszka ha scritto: On 16.07.21 11:45, Mauro S. via Xenomai wrote: Hi, I'm using Xenomai3 (master branch, commit bca41678742be80c3a0d5a01935c671c385a95a1) on a X86_64bit Intel Atom x5-E8000 with 2GB RAM, using kernel from Xenomai repos, in Cobalt coniguration. SMI

[rtnet] kernel bug during slave configuration

2022-03-21 Thread Mauro S. via Xenomai
Hi all, I'm using Xenomai 3.1.2 on a Intel Atom x5-E8000 64bit with an Intel I210 gigabit ethernet controller. Linux kernel is 5.4.181. I have two identical devices, one configured as master: - $ cat /etc/rtnet.conf prefix="/usr" exec_prefix="/usr" RTNET_MOD="/lib/modules/`uname

Re: [rtnet] kernel bug during slave configuration

2022-03-21 Thread Mauro S. via Xenomai
Il 21/03/22 15:27, Mauro S. via Xenomai ha scritto: Hi all, I'm using Xenomai 3.1.2 on a Intel Atom x5-E8000 64bit with an Intel I210 gigabit ethernet controller. Linux kernel is 5.4.181. I have two identical devices, one configured as master: ---8<--- usercopy: Kernel memory expos

Re: [rtnet] kernel bug during slave configuration

2022-03-22 Thread Mauro S. via Xenomai
Il 21/03/22 17:28, Jan Kiszka ha scritto: On 21.03.22 17:25, Jan Kiszka via Xenomai wrote: On 21.03.22 15:40, Mauro via Xenomai wrote: Hi all, I'm using Xenomai 3.1.2 on a Intel Atom x5-E8000 64bit with an Intel I210 gigabit ethernet controller. Linux kernel is 5.4.181. I have two identical

[PATCH] utils/net/rtnet.in: add delay during master configuration

2022-04-22 Thread Mauro S. via Xenomai
Some cards are slow to get the connection link up after the "rtifconfig rteth0 up" command, e.g. on an Atom-x5 with an Intel I210 (rt_igb driver) I detected approximately 3 seconds to get the link up. On master, the "rtifconfig rteth0 up" is followed by TDMA configuration and start. After the

[PATCH v2] utils/net/rtnet.in: add delay during master configuration

2022-04-22 Thread Mauro S. via Xenomai
Some cards are slow to get the connection link up after the "rtifconfig rteth0 up" command, e.g. on an Atom-x5 with an Intel I210 (rt_igb driver) I detected approximately 3 seconds to get the link up. On master, the "rtifconfig rteth0 up" is followed by TDMA configuration and start. After the

Re: [PATCH] utils/net/rtnet.in: add delay during master configuration

2022-04-22 Thread Mauro S. via Xenomai
Il 22/04/22 18:55, Jan Kiszka ha scritto: On 22.04.22 16:25, Mauro S. via Xenomai wrote: Some cards are slow to get the connection link up after the "rtifconfig rteth0 up" command, e.g. on an Atom-x5 with an Intel I210 (rt_igb driver) I detected approximately 3 seconds to get t

Re: [PATCH v2] utils/net/rtnet.in: add delay during master configuration

2022-04-26 Thread Mauro S. via Xenomai
Hi Florian, thanks for your comments. See below mine. Il 23/04/22 19:26, Florian Bezdeka ha scritto: Hi all, some minor comments, see below: On 22.04.22 20:58, Mauro S. via Xenomai wrote: Some cards are slow to get the connection link up after the "rtifconfig rteth0 up" co

Re: RTNet: sendto(): EAGAIN error

2022-05-13 Thread Mauro S. via Xenomai
Il 05/05/22 17:04, Mauro S. via Xenomai ha scritto: Il 05/05/22 15:05, Jan Kiszka ha scritto: On 03.05.22 17:18, Mauro S. via Xenomai wrote: Hi all, I'm trying to use RTNet with TDMA. I succesfully set up my bus: - 1GBps speed - 3 devices - cycle time 1ms - timeslots with 200us offset I

[PATCH v3] utils/net/rtnet.in: fixes after shellcheck inspection

2022-05-12 Thread Mauro S. via Xenomai
Remaning shellcheck warnings: - "SC2086: Double quote to prevent globbing and word splitting." line 120, 153, 289 (variables STAGE_2_OPT and NETMASK_OPT) Suggested fix not applicable because these variables can be empty, resulting in command failure due to "" in command line - "SC2153:

Re: RTNet: sendto(): EAGAIN error

2022-05-25 Thread Mauro S. via Xenomai
Il 24/05/22 08:33, Jan Kiszka ha scritto: On 13.05.22 14:51, Mauro S. via Xenomai wrote: Il 05/05/22 17:04, Mauro S. via Xenomai ha scritto: Il 05/05/22 15:05, Jan Kiszka ha scritto: On 03.05.22 17:18, Mauro S. via Xenomai wrote: Hi all, I'm trying to use RTNet with TDMA. I succesfully set

RTNet: sendto(): EAGAIN error

2022-05-03 Thread Mauro S. via Xenomai
Hi all, I'm trying to use RTNet with TDMA. I succesfully set up my bus: - 1GBps speed - 3 devices - cycle time 1ms - timeslots with 200us offset I wrote a simple application that in parallel receives and sends UDP packets on TDMA bus. - sendto() is done to the broadcast address, port

[PATCH] utils/net/rtnet.in: fixes after shellcheck inspection

2022-05-03 Thread Mauro S. via Xenomai
Signed-off-by: Mauro Salvini --- utils/net/rtnet.in | 76 +++--- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/utils/net/rtnet.in b/utils/net/rtnet.in index f81a7bb0a..06e796cd2 100644 --- a/utils/net/rtnet.in +++ b/utils/net/rtnet.in @@

Re: [PATCH v2] utils/net/rtnet.in: add delay during master configuration

2022-05-03 Thread Mauro S. via Xenomai
Il 26/04/22 17:18, Bezdeka, Florian ha scritto: On Tue, 2022-04-26 at 16:24 +0200, Mauro S. wrote: Hi Florian, thanks for your comments. See below mine. Il 23/04/22 19:26, Florian Bezdeka ha scritto: Hi all, some minor comments, see below: [snip] +    The parameter -d allows to

Re: [PATCH v2] utils/net/rtnet.in: fixes after shellcheck inspection

2022-05-05 Thread Mauro S. via Xenomai
Il 05/05/22 17:25, Jan Kiszka ha scritto: On 05.05.22 17:12, Mauro S. wrote: Signed-off-by: Mauro Salvini ---  utils/net/rtnet.in | 76 +++---  1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/utils/net/rtnet.in b/utils/net/rtnet.in index

[PATCH v2] utils/net/rtnet.in: fixes after shellcheck inspection

2022-05-05 Thread Mauro S. via Xenomai
Signed-off-by: Mauro Salvini --- utils/net/rtnet.in | 76 +++--- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/utils/net/rtnet.in b/utils/net/rtnet.in index f81a7bb0a..9f136b804 100644 --- a/utils/net/rtnet.in +++ b/utils/net/rtnet.in @@

Re: RTNet: sendto(): EAGAIN error

2022-05-05 Thread Mauro S. via Xenomai
Il 05/05/22 15:05, Jan Kiszka ha scritto: On 03.05.22 17:18, Mauro S. via Xenomai wrote: Hi all, I'm trying to use RTNet with TDMA. I succesfully set up my bus: - 1GBps speed - 3 devices - cycle time 1ms - timeslots with 200us offset I wrote a simple application that in parallel receives