Re: [Xenomai-core] Build tests: analogy, blackfin, rtcan and nios2.

2009-12-22 Thread Jan Kiszka
Gilles Chanteperdrix wrote: * rtcan: on blackfin we seem to have a conflict with rtcan. The warning is about CAN_ERR_MASK, sure blackfin is a bit strange to define this in core headers which are included everywhere. This said, not prefixing a Xenomai symbol with something like XN seems to be

Re: [Xenomai-core] Build tests: analogy, blackfin, rtcan and nios2.

2009-12-22 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Wolfgang Grandegger wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: * rtcan: on blackfin we seem to have a conflict with rtcan. The warning is about CAN_ERR_MASK, sure blackfin is a bit strange to define this in core headers which

Re: [Xenomai-core] Remove outdated x86 adeos patches

2009-12-21 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: Hi Philippe, as adeos-ipipe-2.4.35.5-i386-1.3-05.patch and adeos-ipipe-2.6.29.5-x86-2.4-02.patch are no longer up to date /wrt to latest i-pipe fixes, I would suggest to remove them for 2.5-final. Avoids that people trap into known issues

[Xenomai-core] Remove outdated x86 adeos patches

2009-12-20 Thread Jan Kiszka
Hi Philippe, as adeos-ipipe-2.4.35.5-i386-1.3-05.patch and adeos-ipipe-2.6.29.5-x86-2.4-02.patch are no longer up to date /wrt to latest i-pipe fixes, I would suggest to remove them for 2.5-final. Avoids that people trap into known issues. Jan signature.asc Description: OpenPGP digital

Re: [Xenomai-core] Build tests.

2009-12-14 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Hi, I am working on automated build tests of several configurations of Xenomai head. While running them, I found a few issues, and would need acks, since it is in parts others maintain. Alex: https://mail.gna.org/public/xenomai-git/2009-12/msg00112.html

Re: [Xenomai-core] Undefined reference to Posix shm_* with uClibc

2009-12-09 Thread Jan Kiszka
hagen.langbart...@sieb-meyer.de wrote: Hi all, I tried to compile Xenomai 2.5rc4 with uClibc 0.9.30.1 and ran into some problems with references to the posix functions shm_open and shm_unlink in /src/skins/posix/wrappers.c, which do not exist in uClibc. Unlinke in

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-07 Thread Jan Kiszka
Philippe Gerum wrote: On Thu, 2009-12-03 at 22:42 +0100, Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: Hi, On 03.12.2009, at 14:14, Gilles Chanteperdrix gilles.chanteperd...@xenomai.org wrote: Wolfgang Mauerer wrote: Hi,

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-07 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: Philippe Gerum wrote: On Thu, 2009-12-03 at 22:42 +0100, Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: Hi, On 03.12.2009, at 14:14, Gilles Chanteperdrix gilles.chanteperd

[Xenomai-core] [pull request] A smarter watchdog

2009-12-07 Thread Jan Kiszka
The following changes since commit 1d53d0298f6d50b5136080b3b3322efee8b05c8a: Philippe Gerum (1): doc: regenerate are available in the git repository at: git://git.xenomai.org/xenomai-jki.git for-upstream Jan Kiszka (1): nucleus: Try to send SIGXCPU to runaway threads first

Re: [Xenomai-core] [pull request] Signals support.

2009-12-02 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Hi, here come the pull request for user-space signals support. The simple solution; handling signals upon system call return, has been implemented since the other solution (handling signals upon any return to user-space) required to change the I-pipe patch, and

Re: [Xenomai-core] [pull request] Signals support.

2009-12-02 Thread Jan Kiszka
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Hi, here come the pull request for user-space signals support. The simple solution; handling signals upon system call return, has been implemented since the other solution (handling signals upon any return to user-space) required to change

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-02 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: Hi, we'd like to implement a gettimeofday() mechanism that works in realtime context, both from user- and kernelland. Most importantly, the correctins made to the wall time by the NTP protcol on Linux must be transferred into the Xenomai

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-02 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: Hi, we'd like to implement a gettimeofday() mechanism that works in realtime context, both from user- and kernelland. Most importantly, the correctins made to the wall time by the NTP protcol

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-02 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: Why? It delivers us the core mechanism we need for the rest as well - and it does not require fancy I-pipe hooks. Because relying on the vdso/vsyscall only works on x86. Whereas implementing clock slew down/acceleration at nucleus level

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-02 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Why? It delivers us the core mechanism we need for the rest as well - and it does not require fancy I-pipe hooks. Because relying on the vdso/vsyscall

Re: [Xenomai-core] [pull request] Signals support.

2009-12-02 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Hi, here come the pull request for user-space signals support. The simple solution; handling signals upon system call return, has been implemented since the other solution (handling signals upon

Re: [Xenomai-core] Bug in rt_task_sleep() ?

2009-11-28 Thread Jan Kiszka
Michael Löffler wrote: Hello List! I have an application running rt_task_sleep() in a loop. After a more or less random number of loops, something up to 5000 cycles, the system reboots with the following error message: Kernel panic - not syncing: BUG! 4BUG: failure at

Re: [Xenomai-core] [PATCH] can: Free I/O region when unloading the xeno_can_isa.ko driver

2009-11-23 Thread Jan Kiszka
Wolfgang Grandegger wrote: Sebastian Smolorz wrote: can: Free I/O region when unloading the xeno_can_isa.ko driver Signed-off-by: Sebastian Smolorz smol...@rts.uni-hannover.de Signed-off-by: Wolfgang Grandegger w...@grandegger.com Philippe, should I apply the patch? Do you have write

[Xenomai-core] [pull request] RTDM: phys_addr mapping and ISA CAN driver fix

2009-11-23 Thread Jan Kiszka
The following changes since commit 3fded6232aad90e2c6799857a21aa492a0fa8e22: Philippe Gerum (1): Merge commit 'jan' are available in the git repository at: git://git.xenomai.org/xenomai-jki.git for-upstream Luis Herrera-Bendezu (1): rtdm: Extend rtdm_iomap_to_user to map phys

Re: [Xenomai-core] [PATCH] rtdm: Extend rtdm_iomap_to_user to map phys addr 4G

2009-11-23 Thread Jan Kiszka
Herrera-Bendezu, Luis wrote: Jan, Thanks for your feedback and help. Merged your patch (and sent out a pull request), though the line wrapping issue persisted (manually fixed up). Your next patch to an open source project probably deserves the use of a better mail client. Jan

Re: [Xenomai-core] [PATCH] rtdm: Extend rtdm_iomap_to_user to map phys addr 4G

2009-11-21 Thread Jan Kiszka
Herrera-Bendezu, Luis wrote: rtdm_iomap_to_user does not handle I/O memory mapping of physical I/O address grater than 4 GB. This patch changes the src_addr argument and underlying code to handle this case. Signed-off-by: Luis Herrera-Bendezu lherr...@xxx

Re: [Xenomai-core] rtdm_iomap_to_user with phys addr 4G

2009-11-20 Thread Jan Kiszka
Please make sure to always preserve CCs. Herrera-Bendezu, Luis wrote: -Original Message- From: Jan Kiszka [mailto:jan.kis...@siemens.com] Sent: Wednesday, November 18, 2009 11:42 AM To: Herrera-Bendezu, Luis Cc: xenomai-core@gna.org Subject: Re: rtdm_iomap_to_user with phys addr

[Xenomai-core] [pull request] nucleus: Allow runtime setting of xeno_nucleus.watchdog_timeout

2009-11-20 Thread Jan Kiszka
The following changes since commit bdda0013bb4a666a1d2c55ef52c5dd55e5fb6f3b: Jan Kiszka (1): nucleus: Include all heaps in statistics are available in the git repository at: git://git.xenomai.org/xenomai-jki.git for-upstream Jan Kiszka (1): nucleus: Allow runtime setting

Re: [Xenomai-core] rtdm_iomap_to_user with phys addr 4G

2009-11-18 Thread Jan Kiszka
Herrera-Bendezu, Luis wrote: Jan, I think we can change rtdm_iomap_to_user to take src_addr as phys_addr_t and propagate this internally properly. We also need to add a wrapper for phys_addr_t for kernels that doesn't support this (2.6.28). To my current understanding, this should be

Re: [Xenomai-core] [PATCH v3 9/9] nucleus: Include all heaps in statistics

2009-11-16 Thread Jan Kiszka
Philippe Gerum wrote: ... I would rather pick your suggestion to introduce a display-oriented name we could call a label instead, to make clear that we are only dealing with pretty-printing in /proc. I.e. - xnheap_init() remains unchanged - xnheap_set_label(fmt, args...) is introduced

[Xenomai-core] [pull request, extended] Added heap stats

2009-11-16 Thread Jan Kiszka
: /proc label strings are set via a new service xnheap_set_label, the existing API is not touched. And I think I even fixed some bugs of the previous version. Jan Kiszka (2): rtdm: Fix copypaste mistake in instrumentation nucleus: Include all heaps in statistics include/nucleus/heap.h

Re: [Xenomai-core] [Xenomai-git] Jan Kiszka : nucleus: Include all heaps in statistics

2009-11-16 Thread Jan Kiszka
Gilles Chanteperdrix wrote: GIT version control wrote: +void xnheap_set_label(xnheap_t *heap, const char *label, ...) +{ +va_list args; +spl_t s; + +va_start(args, label); + +xnlock_get_irqsave(nklock, s); +vsnprintf(heap-label, sizeof(heap-label), label, args); +

Re: [Xenomai-core] [Xenomai-git] Jan Kiszka : nucleus: Include all heaps in statistics

2009-11-16 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: GIT version control wrote: +void xnheap_set_label(xnheap_t *heap, const char *label, ...) +{ + va_list args; + spl_t s; + + va_start(args, label); + + xnlock_get_irqsave(nklock, s); + vsnprintf(heap-label

[Xenomai-core] [pull request] rtdm: Fix copypaste mistake in instrumentation

2009-11-15 Thread Jan Kiszka
The following changes since commit cd3465f1862a4aa29e488a3876097d9e425ef907: Philippe Gerum (1): nios2: upgrade I-pipe support to 2.6.30-nios2-1.1-00 are available in the git repository at: git://git.xenomai.org/xenomai-jki for-upstream Jan Kiszka (1): rtdm: Fix copypaste

[Xenomai-core] [pull request] DEBUG_SYNCH_RELAX fix and some cleanups

2009-11-11 Thread Jan Kiszka
here once we enabled it for our customer. The first one is a resend, the other two are a cleanup and a minor instrumentation fix. Jan Kiszka (4): hal: Ensure atomicity of rthal_local_irq_disabled nucleus: Cosmetic cleanup of lostage_handler nucleus: Improve lostage_work

Re: [Xenomai-core] [PATCH v3 9/9] nucleus: Include all heaps in statistics

2009-11-11 Thread Jan Kiszka
Jan Kiszka wrote: Philippe Gerum wrote: On Tue, 2009-10-20 at 13:37 +0200, Jan Kiszka wrote: This extends /proc/xenomai/heap with statistics about all currently used heaps. It takes care to flush nklock while iterating of this potentially long list. Signed-off-by: Jan Kiszka jan.kis

Re: [Xenomai-core] rtdm_iomap_to_user with phys addr 4GB

2009-11-11 Thread Jan Kiszka
: -Original Message- From: Jan Kiszka [mailto:jan.kis...@siemens.com] Sent: Tuesday, November 10, 2009 1:55 PM To: Herrera-Bendezu, Luis Cc: xenomai-core@gna.org Subject: Re: rtdm_iomap_to_user with phys addr 4GB Herrera-Bendezu, Luis wrote: -Original Message- From

Re: [Xenomai-core] tasklet using Xenomai

2009-11-10 Thread Jan Kiszka
Anisha Kaul wrote: Dear all, How to define a tasklet using Xenomai for a serial port interrupt handler? Does 'rtdm_event_init()' function work as a tasklet in Xenomai ? An RTDM event is a binary semaphore for use inside a kernel driver - probably not what you are looking for. What should be

Re: [Xenomai-core] [PATCH] hal: Ensure atomicity of rthal_local_irq_disabled

2009-11-10 Thread Jan Kiszka
Philippe Gerum wrote: On Tue, 2009-11-10 at 01:34 +0100, Gilles Chanteperdrix wrote: Jan Kiszka wrote: [Patch is now also available in 'for-upstream'] ipipe_test_pipeline_from is not atomic /wrt reading the current cpu number (or an offset for the per-cpu area) and actually reading

Re: [Xenomai-core] tasklet using Xenomai

2009-11-10 Thread Jan Kiszka
Anisha Kaul wrote: Thanks for the prompt reply ! The tasklet I am talking about is supposed to re-set the registers of the serial port each time an interrupt occurs ! We can do this the following way in using Linux system calls : void resetRegisters (unsigned long currentlyUnused);

Re: [Xenomai-core] [PATCH] hal: Ensure atomicity of rthal_local_irq_disabled

2009-11-10 Thread Jan Kiszka
Philippe Gerum wrote: On Tue, 2009-11-10 at 12:33 +0100, Jan Kiszka wrote: Philippe Gerum wrote: On Tue, 2009-11-10 at 11:43 +0100, Jan Kiszka wrote: [...] Oh, *_hw_smp is new, isn't it? Do we need to wrap it for older I-pipes? Yes, it was introduced to solve the SMP migration issue actually

Re: [Xenomai-core] [pull request] heap reference and trivial build fixes

2009-11-10 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: The following changes since commit 6d7d6bc436ef3d1fb51fa8de06d4ecf004e3b6a5: Gilles Chanteperdrix (1): nucleus: defer selector block deletion to an APC. are available in the git

Re: [Xenomai-core] rtdm_iomap_to_user with phys addr 4GB

2009-11-10 Thread Jan Kiszka
Herrera-Bendezu, Luis wrote: Hello, I am writing an RTDM driver to replace one that uses UIO. The device resides in a physical address 4 GB on a PPC440EPx. The UIO could not handle this address so I made a proposal to address it, details at:

Re: [Xenomai-core] rtdm_iomap_to_user with phys addr 4GB

2009-11-10 Thread Jan Kiszka
Herrera-Bendezu, Luis wrote: -Original Message- From: Jan Kiszka [mailto:jan.kis...@siemens.com] Sent: Tuesday, November 10, 2009 12:03 PM To: Herrera-Bendezu, Luis Cc: xenomai-core@gna.org Subject: Re: rtdm_iomap_to_user with phys addr 4GB Herrera-Bendezu, Luis wrote

Re: [Xenomai-core] rtdm_iomap_to_user with phys addr 4GB

2009-11-10 Thread Jan Kiszka
Herrera-Bendezu, Luis wrote: -Original Message- From: Jan Kiszka [mailto:jan.kis...@siemens.com] Sent: Tuesday, November 10, 2009 1:13 PM To: Herrera-Bendezu, Luis Cc: xenomai-core@gna.org Subject: Re: rtdm_iomap_to_user with phys addr 4GB Herrera-Bendezu, Luis wrote

Re: [Xenomai-core] rtdm_iomap_to_user with phys addr 4GB

2009-11-10 Thread Jan Kiszka
Herrera-Bendezu, Luis wrote: -Original Message- From: Jan Kiszka [mailto:jan.kis...@siemens.com] Sent: Tuesday, November 10, 2009 1:55 PM To: Herrera-Bendezu, Luis Cc: xenomai-core@gna.org Subject: Re: rtdm_iomap_to_user with phys addr 4GB Herrera-Bendezu, Luis wrote

Re: [Xenomai-core] Context-sharing semaphores

2009-11-09 Thread Jan Kiszka
Remco den Breeje wrote: Hi all, I'm having trouble trying to share a semaphore that is created in user-space context with a rtdm-driver that runs in kernel-space. I was hoping you could explain me what I'm doing wrong. The design. :) I'm using a posix-skin based user-space Xenomai

[Xenomai-core] Heaps again...

2009-11-09 Thread Jan Kiszka
Philippe, having a Xenomai heap mapped and then forking / exiting the fork is not a good idea, is it? I mean for the sake of archdep.numaps... Jan -- Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux ___

Re: [Xenomai-core] Heaps again...

2009-11-09 Thread Jan Kiszka
Jan Kiszka wrote: Philippe, having a Xenomai heap mapped and then forking / exiting the fork is not a good idea, is it? I mean for the sake of archdep.numaps... OK, think I found the gremlin: xnheap_vmclose must be paired with a xnheap_vmopen for proper reference counting, not simple mapping

[Xenomai-core] [pull request] heap reference and trivial build fixes

2009-11-09 Thread Jan Kiszka
The following changes since commit 6d7d6bc436ef3d1fb51fa8de06d4ecf004e3b6a5: Gilles Chanteperdrix (1): nucleus: defer selector block deletion to an APC. are available in the git repository at: git://git.xenomai.org/xenomai-jki.git for-upstream Jan Kiszka (2): nucleus: Track

[Xenomai-core] [PATCH] hal: Ensure atomicity of rthal_local_irq_disabled

2009-11-09 Thread Jan Kiszka
false-positives of RTDM driver debug checks. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- include/asm-generic/hal.h |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/include/asm-generic/hal.h b/include/asm-generic/hal.h index 97c549e..3095b85 100644

Re: [Xenomai-core] [PATCH] hal: Ensure atomicity of rthal_local_irq_disabled

2009-11-09 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: [Patch is now also available in 'for-upstream'] ipipe_test_pipeline_from is not atomic /wrt reading the current cpu number (or an offset for the per-cpu area) and actually reading the virtualized interrupt state. Work around this by disabling

Re: [Xenomai-core] [pull request] rtdm: Add padding to rtser_config

2009-11-04 Thread Jan Kiszka
Jan Kiszka wrote: The following changes since commit 6b1a185b460765c933b17932d77be6967d2e42dc: Philippe Gerum (1): nucleus: fix locking in shared heap deletion are available in the git repository at: git://git.xenomai.org/xenomai-jki.git for-upstream Jan Kiszka (1

Re: [Xenomai-core] [PATCH v3 5/9] nucleus: Avoid returning errors from xnheap_destroy_mapped

2009-11-03 Thread Jan Kiszka
Philippe Gerum wrote: On Mon, 2009-11-02 at 19:01 +0100, Jan Kiszka wrote: Jan Kiszka wrote: Philippe Gerum wrote: On Mon, 2009-11-02 at 17:41 +0100, Jan Kiszka wrote: Philippe Gerum wrote: On Sat, 2009-10-24 at 19:22 +0200, Philippe Gerum wrote: On Tue, 2009-10-20 at 13:37 +0200, Jan

[Xenomai-core] [pull request] rtdm: Add padding to rtser_config

2009-11-03 Thread Jan Kiszka
The following changes since commit 6b1a185b460765c933b17932d77be6967d2e42dc: Philippe Gerum (1): nucleus: fix locking in shared heap deletion are available in the git repository at: git://git.xenomai.org/xenomai-jki.git for-upstream Jan Kiszka (1): rtdm: Add padding

Re: [Xenomai-core] [PATCH v3 5/9] nucleus: Avoid returning errors from xnheap_destroy_mapped

2009-11-02 Thread Jan Kiszka
Philippe Gerum wrote: On Sat, 2009-10-24 at 19:22 +0200, Philippe Gerum wrote: On Tue, 2009-10-20 at 13:37 +0200, Jan Kiszka wrote: Allowing xnheap_delete_mapped to return an error and then attempting to recover from it does not work out very well: Corner cases are racy, intransparent

Re: [Xenomai-core] [PATCH v3 5/9] nucleus: Avoid returning errors from xnheap_destroy_mapped

2009-11-02 Thread Jan Kiszka
Jan Kiszka wrote: Philippe Gerum wrote: On Mon, 2009-11-02 at 17:41 +0100, Jan Kiszka wrote: Philippe Gerum wrote: On Sat, 2009-10-24 at 19:22 +0200, Philippe Gerum wrote: On Tue, 2009-10-20 at 13:37 +0200, Jan Kiszka wrote: Allowing xnheap_delete_mapped to return an error

Re: [Xenomai-core] lots of mode switches in xenomai-head tree?

2009-11-01 Thread Jan Kiszka
Stefan Schaal wrote: Hi, I am working with the latest xenomai-head tree (we need analogy for our NI board ...). Under Xenomai 2.4.8 our code did not have any mode switches. Using the xenomai-head, we get a lot of mode switches. Using he backtrace_symbols_fd, we get print-outs like:

[Xenomai-core] [BUG] Broken .so generation since dbbd33f50d

2009-10-29 Thread Jan Kiszka
Hi Philippe, your commit dbbd33f50d (nios2: introduce architecture support) broke any .so generation, at least for x86. Not sure why, but it is related to moving AC_PROG_LIBTOOL around in configure.in. You had to push it after nios2's AC_DISABLE_SHARED, right? Jan -- Siemens AG, Corporate

Re: [Xenomai-core] [BUG] Broken .so generation since dbbd33f50d

2009-10-29 Thread Jan Kiszka
Jan Kiszka wrote: Hi Philippe, your commit dbbd33f50d (nios2: introduce architecture support) broke any .so generation, at least for x86. Not sure why, but it is related to moving AC_PROG_LIBTOOL around in configure.in. You had to push it after nios2's AC_DISABLE_SHARED, right? diff

[Xenomai-core] [PATCH] build system: Fix shared libs generation

2009-10-29 Thread Jan Kiszka
This fixes a regression of dbbd33f50d: There must be no AC_DISABLE_SHARED without AS_ENABLE_SHARED for the cases where it shall remain enabled. Autotools are great, aren't they? Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- configure.in | 12 ++-- 1 files changed, 10 insertions

[Xenomai-core] [PATCH v2] build system: Fix shared libs generation

2009-10-29 Thread Jan Kiszka
This fixes a regression of dbbd33f50d: There must be no AC_DISABLE_SHARED without AS_ENABLE_SHARED for the cases where it shall remain enabled. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- configure.in | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) v2: properly

Re: [Xenomai-core] [PATCH v2] build system: Fix shared libs generation

2009-10-29 Thread Jan Kiszka
Philippe Gerum wrote: On Thu, 2009-10-29 at 12:33 +0100, Jan Kiszka wrote: This fixes a regression of dbbd33f50d: There must be no AC_DISABLE_SHARED without AS_ENABLE_SHARED for the cases where it shall remain enabled. Makes sense. Will you queue this in your tree? Done, it's ready

Re: [Xenomai-core] [PATCH 0/2] fork-safe rt_print, rt_syslog extension

2009-10-26 Thread Jan Kiszka
Philippe Gerum wrote: On Sat, 2009-10-24 at 10:03 +0200, Jan Kiszka wrote: Please pull Oliver's rt_print patches from git://xenomai.org/xenomai-jki.git for-upstream Oliver Schlenker (2): Fork-safe rt_print Syslog extension of rt_print include/rtdk.h |2 + src

[Xenomai-core] [PATCH 0/2] fork-safe rt_print, rt_syslog extension

2009-10-24 Thread Jan Kiszka
Please pull Oliver's rt_print patches from git://xenomai.org/xenomai-jki.git for-upstream Oliver Schlenker (2): Fork-safe rt_print Syslog extension of rt_print include/rtdk.h |2 + src/rtdk/rt_print.c | 72 ++- 2 files

[Xenomai-core] [PATCH 2/2] Syslog extension of rt_print

2009-10-24 Thread Jan Kiszka
From: Oliver Schlenker oliver.schlen...@smmotioncontrol.de Extension of rt_print library with rt_syslog() and rt_vsyslog() to print messages rt-safe directly to syslog. Signed-off-by: Oliver Schlenker oliver.schlen...@smmotioncontrol.de Signed-off-by: Jan Kiszka jan.kis...@siemens.com

[Xenomai-core] [PATCH 1/2] Fork-safe rt_print

2009-10-24 Thread Jan Kiszka
From: Oliver Schlenker oliver.schlen...@smmotioncontrol.de Fork-safe initialisation of rt_print library, necessary child initialisation are done via pthread_atfork() when child process is started. Signed-off-by: Oliver Schlenker oliver.schlen...@smmotioncontrol.de Signed-off-by: Jan Kiszka

[Xenomai-core] [PATCH] native: Avoid double release on queue/heap auto-cleanup

2009-10-22 Thread Jan Kiszka
Jan Kiszka wrote: We are currently leaking user space heap/queue objects when the owner terminates without deleting them before. Fix it by releasing the objects in the corresponding cleanup callbacks which are also called on owner termination. Just realized that we need this patch in addition

Re: [Xenomai-core] [PATCH v3 9/9] nucleus: Include all heaps in statistics

2009-10-22 Thread Jan Kiszka
Philippe Gerum wrote: On Tue, 2009-10-20 at 13:37 +0200, Jan Kiszka wrote: This extends /proc/xenomai/heap with statistics about all currently used heaps. It takes care to flush nklock while iterating of this potentially long list. Signed-off-by: Jan Kiszka jan.kis...@siemens.com

Re: [Xenomai-core] Native: Fixing auto-cleanup

2009-10-20 Thread Jan Kiszka
Philippe Gerum wrote: Well, I can tell you that there are quite a few corner cases you would face in rewriting the queue/heap cleanup code. I'm not saying this should not be done, I just won't merge this to 2.5.0 to avoid more regressions. Let's fix the obvious for now, such as the missing

[Xenomai-core] [PATCH v3 8/9] native: Fix memory leak on heap/queue auto-deletion

2009-10-20 Thread Jan Kiszka
We are currently leaking user space heap/queue objects when the owner terminates without deleting them before. Fix it by releasing the objects in the corresponding cleanup callbacks which are also called on owner termination. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- ksrc/skins

[Xenomai-core] [PATCH v3 2/9] nucleus: Use Linux spin lock for heap list management

2009-10-20 Thread Jan Kiszka
No need for hard nklock protection of kheapq and the map counter, a normal spin lock suffices as all users must run over the root thread anyway. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- ksrc/nucleus/heap.c | 26 -- 1 files changed, 12 insertions(+), 14

[Xenomai-core] [PATCH v3 0/9] heap setup/cleanup fixes, refactorings more

2009-10-20 Thread Jan Kiszka
-deletion and introduces complete heap statistics (this time without using a Linux spin lock). Please pull the series (or cherry-pick individual patches) from git://xenomai.org/xenomai-jki.git for-upstream if there are no concerns. Jan Kiszka (9): native: Release fastlock to the proper heap

[Xenomai-core] [PATCH v3 7/9] native: Do not requeue on auto-cleanup errors

2009-10-20 Thread Jan Kiszka
. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- include/native/ppd.h | 16 1 files changed, 4 insertions(+), 12 deletions(-) diff --git a/include/native/ppd.h b/include/native/ppd.h index 3dbda6a..c6e7479 100644 --- a/include/native/ppd.h +++ b/include/native/ppd.h @@ -101,19

[Xenomai-core] [PATCH v3 5/9] nucleus: Avoid returning errors from xnheap_destroy_mapped

2009-10-20 Thread Jan Kiszka
handler that belongs to the module text, deferred release will cause a crash. But this corner case is no new regression, so let's keep the head in the sand. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- include/nucleus/heap.h|6 +++--- ksrc/nucleus/heap.c | 45

[Xenomai-core] [PATCH v3 3/9] nucleus: Fix race window in heap mapping procedure

2009-10-20 Thread Jan Kiszka
with declaring the heap valid. Otherwise xnheap_destroy_mapped may draw wrong conclusions about the heap mapping state. As archdep.numaps is now exclusively modified under heapq_lock, we can switch it to a non-atomic counter. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- include/asm-generic/bits

[Xenomai-core] [PATCH v3 1/9] native: Release fastlock to the proper heap

2009-10-20 Thread Jan Kiszka
Don't assume rt_task_delete is only called for in-kernel users, it may be triggered via auto-cleanup also on user space objects. So check for the creator and release the fastlock to the correct heap. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- ksrc/skins/native/mutex.c | 14

[Xenomai-core] [PATCH v3 6/9] rtai: Try to fix _shm_free

2009-10-20 Thread Jan Kiszka
This is totally untested but should not make things worse than they already are. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- ksrc/skins/rtai/shm.c | 31 +++ 1 files changed, 19 insertions(+), 12 deletions(-) diff --git a/ksrc/skins/rtai/shm.c b/ksrc/skins

[Xenomai-core] [PATCH v3 9/9] nucleus: Include all heaps in statistics

2009-10-20 Thread Jan Kiszka
This extends /proc/xenomai/heap with statistics about all currently used heaps. It takes care to flush nklock while iterating of this potentially long list. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- include/nucleus/heap.h| 12 +++- ksrc/drivers/ipc/iddp.c |3 + ksrc

Re: [Xenomai-core] [PATCH v2 2/3] nucleus: Include all heaps in statistics

2009-10-20 Thread Jan Kiszka
Philippe Gerum wrote: On Mon, 2009-10-19 at 21:09 +0200, Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: @@ -234,12 +239,65 @@ int xnheap_init(xnheap_t *heap, appendq(heap-extents, extent-link); + vsnprintf(heap-name, sizeof(heap-name), name, args); + + spin_lock

[Xenomai-core] [PATCH 2/2] native: Release fastlock to the proper heap

2009-10-19 Thread Jan Kiszka
Don't assume rt_task_delete is only called for in-kernel users, it may be triggered via auto-cleanup also on user space objects. So check for the creator and release the fastlock to the correct heap. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- ksrc/skins/native/mutex.c | 14

[Xenomai-core] [PATCH 1/2] nucleus: Add semaphore heap statistics

2009-10-19 Thread Jan Kiszka
deletion. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- include/nucleus/sys_ppd.h | 11 +++ ksrc/nucleus/heap.c | 30 ++ ksrc/nucleus/shadow.c | 23 +++ 3 files changed, 64 insertions(+), 0 deletions(-) diff --git

[Xenomai-core] [PATCH 0/2] Sem heap statistics mutex auto-cleanup fixes

2009-10-19 Thread Jan Kiszka
in this pull request is a statistic enhancement for /proc/xenomai/heap: It was lacking the sem heaps so far. Please pull the series from git://xenomai.org/xenomai-jki.git for-upstream if there are no concerns. Jan Kiszka (2): nucleus: Add semaphore heap statistics native: Release

[Xenomai-core] [PATCH v2 1/3] nucleus: Use Linux spin lock for heap list management

2009-10-19 Thread Jan Kiszka
No need for hard nklock protection of kheapq and the map counter, a normal spin lock suffices as all users must run over the root thread anyway. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- ksrc/nucleus/heap.c | 26 -- 1 files changed, 12 insertions(+), 14

[Xenomai-core] [PATCH v2 0/3] Sem heap statistics mutex auto-cleanup fixes

2009-10-19 Thread Jan Kiszka
of heavy nklock. Please pull the series from git://xenomai.org/xenomai-jki.git for-upstream if there are no concerns. Jan Kiszka (3): nucleus: Use Linux spin lock for heap list management nucleus: Include all heaps in statistics native: Release fastlock to the proper heap

[Xenomai-core] [PATCH v2 3/3] native: Release fastlock to the proper heap

2009-10-19 Thread Jan Kiszka
Don't assume rt_task_delete is only called for in-kernel users, it may be triggered via auto-cleanup also on user space objects. So check for the creator and release the fastlock to the correct heap. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- ksrc/skins/native/mutex.c | 14

Re: [Xenomai-core] [PATCH v2 1/3] nucleus: Use Linux spin lock for heap list management

2009-10-19 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: No need for hard nklock protection of kheapq and the map counter, a normal spin lock suffices as all users must run over the root thread anyway. At the very least, this should use rthal_spin_lock, in order to seem to respect the layering

Re: [Xenomai-core] [PATCH v2 2/3] nucleus: Include all heaps in statistics

2009-10-19 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: @@ -234,12 +239,65 @@ int xnheap_init(xnheap_t *heap, appendq(heap-extents, extent-link); +vsnprintf(heap-name, sizeof(heap-name), name, args); + +spin_lock(heapq_lock); +appendq(heapq, heap-stat_link); +spin_unlock

Re: [Xenomai-core] [PATCH v2 1/3] nucleus: Use Linux spin lock for heap list management

2009-10-19 Thread Jan Kiszka
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: No need for hard nklock protection of kheapq and the map counter, a normal spin lock suffices as all users must run over the root thread anyway. At the very least, this should use rthal_spin_lock, in order to seem to respect

Re: [Xenomai-core] Native: Fixing auto-cleanup

2009-10-18 Thread Jan Kiszka
Philippe Gerum wrote: On Fri, 2009-10-16 at 19:08 +0200, Jan Kiszka wrote: Hi, our automatic object cleanup on process termination is slightly broken for the native skin. The inline and macro magic behind __native_*_flush_rq() blindly calls rt_*_delete(), but that's not correct for mutexes

Re: [Xenomai-core] Native: Fixing auto-cleanup

2009-10-18 Thread Jan Kiszka
Philippe Gerum wrote: On Sun, 2009-10-18 at 14:54 +0200, Jan Kiszka wrote: Philippe Gerum wrote: On Fri, 2009-10-16 at 19:08 +0200, Jan Kiszka wrote: Hi, our automatic object cleanup on process termination is slightly broken for the native skin. The inline and macro magic behind __native_

[Xenomai-core] Native: Fixing auto-cleanup

2009-10-16 Thread Jan Kiszka
Hi, our automatic object cleanup on process termination is slightly broken for the native skin. The inline and macro magic behind __native_*_flush_rq() blindly calls rt_*_delete(), but that's not correct for mutexes (we can leak memory and/or corrupt the system heap), queues and heaps (we may

Re: [Xenomai-core] Native: Fixing auto-cleanup

2009-10-16 Thread Jan Kiszka
Jan Kiszka wrote: Hi, our automatic object cleanup on process termination is slightly broken for the native skin. The inline and macro magic behind __native_*_flush_rq() blindly calls rt_*_delete(), but that's not correct for mutexes (we can leak memory and/or corrupt the system heap), Hmm

Re: [Xenomai-core] XUM 2009 follow-up : Powerlink, CANopen and sockets.

2009-10-08 Thread Jan Kiszka
[restoring CC] Edouard TISSERANT wrote: [...] And I hope we will find the required resources/contributor to welcome a cleaned up RTnet stack inside the Xenomai 3 source tree one day. Could you detail that point ? What is to be changed in RTnet to fit with Xenomai 3 ? No ground shaking

[Xenomai-core] [pull request] librtdk: Mark __wrap_clock_gettime as weak symbol

2009-10-07 Thread Jan Kiszka
The following changes since commit cd669afa1b220242c157de74b9e3cd86c37b8433: Philippe Gerum (1): x86: upgrade I-pipe support to 2.6.30.8-x86-2.4-06, 2.6.31.1-x86-2.4-06 are available in the git repository at: git://git.xenomai.org/xenomai-jki.git for-upstream Jan Kiszka (1

Re: [Xenomai-core] RTDM fd support.

2009-10-03 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: Then please summarize again what you want change from the user's POV (fd range and arbitration, I guess, but also their scope?) Basically, when going from user-space to kernel-space, instead of a simple translation, currently done

[Xenomai-core] [PULL REQUEST] Various fixes

2009-10-02 Thread Jan Kiszka
The following changes since commit 50ee47db78117e8711d4d2f5310dff262a425eb7: Gilles Chanteperdrix (1): Do not use the 2 stages build for building non-posix applications are available in the git repository at: git://xenomai.org/xenomai-jki.git for-upstream Jan Kiszka (1): POSIX

Re: [Xenomai-core] RTDM fd support.

2009-10-02 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Hi Jan, from discussions on the mailing list, it seems that we are going to need that unified file descriptors thing. However, since everybody wants 2.5.0 to be released ASAP, we should try to think about any changes for this support which would break the ABI, do

Re: [Xenomai-core] RTDM fd support.

2009-10-02 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Hi Jan, from discussions on the mailing list, it seems that we are going to need that unified file descriptors thing. However, since everybody wants 2.5.0 to be released ASAP, we should try to think about any changes

Re: [Xenomai-core] RFC: 2.5 todo list.

2009-10-02 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Philippe Gerum wrote: On Tue, 2009-09-29 at 19:31 +0200, Gilles Chanteperdrix wrote: Hi guys, full of energy after this tremendous first XUM, Agreed, thanks to the DENX folks for having thought of it in the first place, and organized it nicely. I would like to

Re: [Xenomai-core] RTDM fd support.

2009-10-02 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Hi Jan, from discussions on the mailing list, it seems that we are going to need that unified file descriptors thing. However, since everybody wants 2.5.0 to be released

Re: [Xenomai-core] RFC: 2.5 todo list.

2009-10-02 Thread Jan Kiszka
Philippe Gerum wrote: On Fri, 2009-10-02 at 21:25 +0200, Jan Kiszka wrote: Gilles Chanteperdrix wrote: Philippe Gerum wrote: On Tue, 2009-09-29 at 19:31 +0200, Gilles Chanteperdrix wrote: Hi guys, full of energy after this tremendous first XUM, Agreed, thanks to the DENX folks for having

Re: [Xenomai-core] RFC: 2.5 todo list.

2009-10-01 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Peter Soetens wrote: On Tue, Sep 29, 2009 at 19:31, Gilles Chanteperdrix gilles.chanteperd...@xenomai.org wrote: Hi guys, full of energy after this tremendous first XUM, I would like to start a discussion about what people would like to see in the 2.5 branch. So

Re: [Xenomai-core] [bug] accept() in non-blocking mode fails with EPERM instead of EAGAIN

2009-10-01 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: Matthieu Nottale wrote: Hi, I believe I found a bug in the Xenomai Posix skin while trying to use boost::asio: The accept() call in asychronous mode fails with ENOPEM instead of EAGAIN. Other than that, the call 'works' in the sense

[Xenomai-core] [PULL REQUEST] rtipc: Fix 64-bit related warnings

2009-09-18 Thread Jan Kiszka
The following changes since commit 13d66eb4c8f1648614095d43dd529a3c98fc5278: Philippe Gerum (1): x86: upgrade I-pipe support to 2.6.31-x86-2.4-05 are available in the git repository at: git://xenomai.org/xenomai-jki.git for-upstream Jan Kiszka (1): rtipc: Fix 64-bit related

<    1   2   3   4   5   6   7   8   9   10   >