Re: [Xenomai-core] [PATCH v4 02/25] RTDM: Add rtdm_rt_capable() service

2010-04-19 Thread Jan Kiszka
Philippe Gerum wrote: > On Mon, 2010-04-19 at 12:28 +0200, Jan Kiszka wrote: >> This adds rtdm_rt_capable(), a function that can be used by drivers to >> detect callers that could issue a service request also from the >> (typically preferred) real-time context. If that is the case, the driver >> ca

Re: [Xenomai-core] [PATCH v4 02/25] RTDM: Add rtdm_rt_capable() service

2010-04-19 Thread Philippe Gerum
On Mon, 2010-04-19 at 12:28 +0200, Jan Kiszka wrote: > This adds rtdm_rt_capable(), a function that can be used by drivers to > detect callers that could issue a service request also from the > (typically preferred) real-time context. If that is the case, the driver > can trigger a restart of the r

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > diff --git a/scripts/prepare-kernel.sh b/scripts/prepare-kernel.sh > index 24b1f17..d8038e0 100755 > Please let me know what precisely you dislike in this approach. You have to re-run prepare-kernel when you modify the source. >>> Normally, you have to anyway as

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: My compiler still complains about undefined 'y0' in the enabled case. >

[Xenomai-core] [RFC][PATCH] Automatically generate CONFIG_XENO_OPT_DEBUG stubs

2010-04-19 Thread Jan Kiszka
This avoids forgetting to add the #ifndef-#define lines for debug switches that shall be used with nucleus/assert.h. Generation takes place during the prepare-kernel step, thus doesn't prolongs the normal build. Signed-off-by: Jan Kiszka --- include/asm-generic/system.h |4 include/

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > My prepare-kernel approach also detects stall debug stuff: The uitron > use of XENO_DEBUG is not backed by any config option. This can be checked when we do the build-test, this will be much more economic. -- Gilles. __

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Gilles Chanteperdrix wrote: Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> My compiler still complains about undefined 'y0' in the enabled case. >>> >>> I'll try to dig into a

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> My compiler still complains about undefined 'y0' in the enabled case. >> >> I'll try to dig into a different direction now: Au

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Gilles Chanteperdrix wrote: Jan Kiszka wrote: > My compiler still complains about undefined 'y0' in the enabled case. > > I'll try to dig into a different direction now: Automatic generation > during build

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: My compiler still complains about undefined 'y0' in the enabled case. I'll try to dig into a different direction now: Automatic generation during build. This is what the kernel d

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> My compiler still complains about undefined 'y0' in the enabled case. >>> >>> I'll try to dig into a different direction now: Automatic generation >>> during build. This is what the kernel does as well when the preprocessor >>

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> My compiler still complains about undefined 'y0' in the enabled case. >> >> I'll try to dig into a different direction now: Automatic generation >> during build. This is what the kernel does as well when the preprocessor >> gives up. Would even sav

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: Philippe Gerum wrote: config XENO_OPT_DEBUG_FOO >>

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Gilles Chanteperdrix wrote: Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Philippe Gerum wrote: >>> config XENO_OPT_DEBUG_FOO >>> bool "..." >>>

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Gilles Chanteperdrix
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Philippe Gerum wrote: >> config XENO_OPT_DEBUG_FOO >> bool "..." >> >> config XENO_OPT_DEBUG_FOO_

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Gilles Chanteperdrix wrote: Jan Kiszka wrote: > Philippe Gerum wrote: > config XENO_OPT_DEBUG_FOO > bool "..." > > config XENO_OPT_DEBUG_FOO_P > int >

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Gilles Chanteperdrix wrote: Jan Kiszka wrote: > Philippe Gerum wrote: > config XENO_OPT_DEBUG_FOO > bool "..." > > config XENO_OPT_DEBUG_FOO_P > int >

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: Philippe Gerum wrote: config XENO_OPT_DEBUG_FOO bool "..." config XENO_OPT_DEBUG_FOO_P int default "1" if XENO_OPT_DEB

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Philippe Gerum
On Mon, 2010-04-19 at 19:22 +0200, Jan Kiszka wrote: > Philippe Gerum wrote: > > On Mon, 2010-04-19 at 18:25 +0200, Philippe Gerum wrote: > >> On Mon, 2010-04-19 at 18:14 +0200, Jan Kiszka wrote: > >>> Philippe Gerum wrote: > On Mon, 2010-04-19 at 17:58 +0200, Jan Kiszka wrote: > > Gilles

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Philippe Gerum wrote: >>> config XENO_OPT_DEBUG_FOO >>> bool "..." >>> >>> config XENO_OPT_DEBUG_FOO_P >>> int >>> default "1" if XENO_OPT_DEBUG_FOO >>> default "0" >

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Philippe Gerum
On Mon, 2010-04-19 at 19:22 +0200, Jan Kiszka wrote: > Philippe Gerum wrote: > > On Mon, 2010-04-19 at 18:25 +0200, Philippe Gerum wrote: > >> On Mon, 2010-04-19 at 18:14 +0200, Jan Kiszka wrote: > >>> Philippe Gerum wrote: > On Mon, 2010-04-19 at 17:58 +0200, Jan Kiszka wrote: > > Gilles

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Jan Kiszka
Philippe Gerum wrote: > On Mon, 2010-04-19 at 18:25 +0200, Philippe Gerum wrote: >> On Mon, 2010-04-19 at 18:14 +0200, Jan Kiszka wrote: >>> Philippe Gerum wrote: On Mon, 2010-04-19 at 17:58 +0200, Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Gilles Chan

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Philippe Gerum wrote: >> config XENO_OPT_DEBUG_FOO >> bool "..." >> >> config XENO_OPT_DEBUG_FOO_P >> int >> default "1" if XENO_OPT_DEBUG_FOO >> default "0" >> >> and XENO_DEBUG() could be extended to test f

Re: [Xenomai-core] [PATCH v4 00/25] [git pull v4] RTDM fixes and reworks

2010-04-19 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: The following changes since commit 2bed24477882dd7937d59f4e33a0811981c7362c: Gilles Chanteperdrix (1): arm: declare the VFP inline asm snippets as volatile.

Re: [Xenomai-core] [PATCH v4 00/25] [git pull v4] RTDM fixes and reworks

2010-04-19 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> The following changes since commit 2bed24477882dd7937d59f4e33a0811981c7362c: >>> Gilles Chanteperdrix (1): >>> arm: declare the VFP inline asm snippets as volatile. >>> >>> are available in the git repository at: >>>

Re: [Xenomai-core] [PATCH v4 00/25] [git pull v4] RTDM fixes and reworks

2010-04-19 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> The following changes since commit 2bed24477882dd7937d59f4e33a0811981c7362c: >> Gilles Chanteperdrix (1): >> arm: declare the VFP inline asm snippets as volatile. >> >> are available in the git repository at: >> >> git://git.xenomai.org

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Philippe Gerum
On Mon, 2010-04-19 at 18:25 +0200, Philippe Gerum wrote: > On Mon, 2010-04-19 at 18:14 +0200, Jan Kiszka wrote: > > Philippe Gerum wrote: > > > On Mon, 2010-04-19 at 17:58 +0200, Jan Kiszka wrote: > > >> Gilles Chanteperdrix wrote: > > >>> Jan Kiszka wrote: > > Gilles Chanteperdrix wrote: > >

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Philippe Gerum wrote: > config XENO_OPT_DEBUG_FOO > bool "..." > > config XENO_OPT_DEBUG_FOO_P > int > default "1" if XENO_OPT_DEBUG_FOO > default "0" > > and XENO_DEBUG() could be extended to test for > CONFIG_XENO_OPT_DEBUG_FOO_P

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Philippe Gerum
On Mon, 2010-04-19 at 18:14 +0200, Jan Kiszka wrote: > Philippe Gerum wrote: > > On Mon, 2010-04-19 at 17:58 +0200, Jan Kiszka wrote: > >> Gilles Chanteperdrix wrote: > >>> Jan Kiszka wrote: > Gilles Chanteperdrix wrote: > > Jan Kiszka wrote: > >> Gilles Chanteperdrix wrote: > >>>

Re: [Xenomai-core] [PATCH v4 00/25] [git pull v4] RTDM fixes and reworks

2010-04-19 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > The following changes since commit 2bed24477882dd7937d59f4e33a0811981c7362c: > Gilles Chanteperdrix (1): > arm: declare the VFP inline asm snippets as volatile. > > are available in the git repository at: > > git://git.xenomai.org/xenomai-jki.git for-upstream Ok,

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Jan Kiszka
Philippe Gerum wrote: > On Mon, 2010-04-19 at 17:58 +0200, Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: Gilles Chanteperdrix wrote: > Hi,

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Philippe Gerum
On Mon, 2010-04-19 at 17:58 +0200, Jan Kiszka wrote: > Gilles Chanteperdrix wrote: > > Jan Kiszka wrote: > >> Gilles Chanteperdrix wrote: > >>> Jan Kiszka wrote: > Gilles Chanteperdrix wrote: > > Jan Kiszka wrote: > >> Gilles Chanteperdrix wrote: > >>> Hi, > >>> > >>> I fou

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Hi, >>> >>> I found some code which was referencing directly some >>> CONFIG_XENO_OPT_

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Gilles Chanteperdrix wrote: Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Hi, >> >> I found some code which was referencing directly some >> CONFIG_XENO_OPT_DEBUG_ variables with things like:

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: Gilles Chanteperdrix wrote: > Hi, > > I found some code which was referencing directly some > CONFIG_XENO_OPT_DEBUG_ variables with things like: > > #ifdef CONFIG_XENO_O

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Hi, > > I found some code which was referencing directly some > CONFIG_XENO_OPT_DEBUG_ variables with things like: > > #ifdef CONFIG_XENO_OPT_DEBUG_FOO > > This usage is incompatible with the pre-requisites of the assert.h > header that CONFIG_XENO_OPT_DEBUG_FOO sho

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Gilles Chanteperdrix wrote: Hi, I found some code which was referencing directly some CONFIG_XENO_OPT_DEBUG_ variables with things like: #ifdef CONFIG_XENO_OPT_DEBUG_FOO This usage is in

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Philippe Gerum
On Mon, 2010-04-19 at 15:58 +0200, Gilles Chanteperdrix wrote: > Hi, > > I found some code which was referencing directly some > CONFIG_XENO_OPT_DEBUG_ variables with things like: > > #ifdef CONFIG_XENO_OPT_DEBUG_FOO > > This usage is incompatible with the pre-requisites of the assert.h > header

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Hi, >>> >>> I found some code which was referencing directly some >>> CONFIG_XENO_OPT_DEBUG_ variables with things like: >>> >>> #ifdef CONFIG_XENO_OPT_DEBUG_FOO >>> >>> This usage is incompatible with the pre-requis

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Hi, >> >> I found some code which was referencing directly some >> CONFIG_XENO_OPT_DEBUG_ variables with things like: >> >> #ifdef CONFIG_XENO_OPT_DEBUG_FOO >> >> This usage is incompatible with the pre-requisites of the assert.h >> header that CON

Re: [Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Gilles Chanteperdrix
Gilles Chanteperdrix wrote: > (...) > So, a patch follows which: Sorry, here is a patch without the whitespace changes. diff --git a/include/asm-generic/system.h b/include/asm-generic/system.h index a2c8fb9..6a255c0 100644 --- a/include/asm-generic/system.h +++ b/include/asm-generic/system.h @@ -

[Xenomai-core] [PATCH] debug: fix direct references to CONFIG_XENO_OPT_DEBUG_*

2010-04-19 Thread Gilles Chanteperdrix
We have some #ifdef CONFIG_XENO_OPT_DEBUG_FOO, it is incompatible with XENO_DEBUG(FOO), XENO_BUGON(FOO, ...) etc... So, this commit: - replaces these #ifdef with #if XENO_DEBUG(FOO) - moves all the piece of code like: to include/nucleus/assert.h, this avoids some code duplication, and allows us to

[Xenomai-core] [RFC] fix XENO_OPT_DEBUG bugs.

2010-04-19 Thread Gilles Chanteperdrix
Hi, I found some code which was referencing directly some CONFIG_XENO_OPT_DEBUG_ variables with things like: #ifdef CONFIG_XENO_OPT_DEBUG_FOO This usage is incompatible with the pre-requisites of the assert.h header that CONFIG_XENO_OPT_DEBUG_FOO should be defined at all times. While grepping f

[Xenomai-core] [PATCH v4 03/25] RTDM: Bump API version and document changes

2010-04-19 Thread Jan Kiszka
Signed-off-by: Jan Kiszka --- include/rtdm/rtdm.h |4 ++-- ksrc/skins/rtdm/API.CHANGES |6 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/rtdm/rtdm.h b/include/rtdm/rtdm.h index 6e02083..1e6e41e 100644 --- a/include/rtdm/rtdm.h +++ b/include/rtdm/rtd

[Xenomai-core] [PATCH v4 24/25] RTDM: Add basic unit test

2010-04-19 Thread Jan Kiszka
This unit test for RTDM validates deferred device closing and driver deregistration due to pending references. Further tests can be added in the future. CC: Philippe Gerum Signed-off-by: Jan Kiszka --- include/rtdm/rttesting.h|9 ++ ksrc/drivers/testing/Config.in |2 + ksrc/dri

[Xenomai-core] [PATCH v4 25/25] RTDM: Use non-atomic bitops for used_fildes

2010-04-19 Thread Jan Kiszka
All bit manipulations happen under rt_fildes_lock, so there is no need for atomic ops. Signed-off-by: Jan Kiszka --- ksrc/skins/rtdm/core.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ksrc/skins/rtdm/core.c b/ksrc/skins/rtdm/core.c index bf905df..11102e2 100644 --

[Xenomai-core] [PATCH v4 23/25] RTDM: Early fd release with poll-free context reference tracking

2010-04-19 Thread Jan Kiszka
Two changes in one as they are tightly related: Once close is called, remove the file descriptor from open table, allowing its reuse while close for the previous user proceeds. The second and major part of the patch avoids time-based polling while waiting for context references to be dropped. This

[Xenomai-core] [PATCH v4 16/25] irqbench: Auto-detect bases of port address and IRQ values

2010-04-19 Thread Jan Kiszka
Signed-off-by: Jan Kiszka --- src/testsuite/irqbench/irqbench.c |2 +- src/testsuite/irqbench/irqloop.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/testsuite/irqbench/irqbench.c b/src/testsuite/irqbench/irqbench.c index 844f187..ca7a313 100644 --- a/src/t

[Xenomai-core] [PATCH v4 07/25] RTIPC: Drop support for RT socket creation/deletion

2010-04-19 Thread Jan Kiszka
This is deprecated now, RT callers will automatically be migrated to NRT to perform the requests. Moreover, dropping it allows us to allocate resources from Linux instead of using the precious system heap. CC: Philippe Gerum Signed-off-by: Jan Kiszka --- ksrc/drivers/ipc/rtipc.c |8 +++-

[Xenomai-core] [PATCH v4 02/25] RTDM: Add rtdm_rt_capable() service

2010-04-19 Thread Jan Kiszka
This adds rtdm_rt_capable(), a function that can be used by drivers to detect callers that could issue a service request also from the (typically preferred) real-time context. If that is the case, the driver can trigger a restart of the request if the current context is not real-time. CC: Philippe

[Xenomai-core] [PATCH v4 21/25] Add list_first_entry wrapper for older kernels

2010-04-19 Thread Jan Kiszka
CC: Philippe Gerum Signed-off-by: Jan Kiszka --- include/asm-generic/wrappers.h |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h index 64ec43f..d864397 100644 --- a/include/asm-generic/wrappers.h +++ b/in

[Xenomai-core] [PATCH v4 00/25] [git pull v4] RTDM fixes and reworks

2010-04-19 Thread Jan Kiszka
The following changes since commit 2bed24477882dd7937d59f4e33a0811981c7362c: Gilles Chanteperdrix (1): arm: declare the VFP inline asm snippets as volatile. are available in the git repository at: git://git.xenomai.org/xenomai-jki.git for-upstream Changes in v4: - fixed rtdm_rt_capa

[Xenomai-core] [PATCH v4 20/25] RTDM: Document device close procedure

2010-04-19 Thread Jan Kiszka
Interating over the close handler when it returns -EAGAIN or in case a pending reference to the device context exists is RTDM practice since day one. Documenting this is seriously overdue. CC: Philippe Gerum Signed-off-by: Jan Kiszka --- include/rtdm/rtdm_driver.h | 11 +-- 1 files ch

[Xenomai-core] [PATCH v4 18/25] testing: Clean up Kconfig rules

2010-04-19 Thread Jan Kiszka
To exclude modules from built-in, make them depend on 'm' is sufficient. Signed-off-by: Jan Kiszka --- ksrc/drivers/testing/Config.in |2 +- ksrc/drivers/testing/Kconfig | 14 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/ksrc/drivers/testing/Config.in b/

[Xenomai-core] [PATCH v4 17/25] rttest: Resolved test device conflicts via separate name spaces

2010-04-19 Thread Jan Kiszka
Usually, all devices of some RTDM class use the same naming scheme. But as test devices are different as they do not provide compatible APIs, let's give them separate name space for their device names. That finally resolves all the detection troubles that showed up once more than one test device wa

[Xenomai-core] [PATCH v4 10/25] Analogy: Drop support for opening/closing in real-time

2010-04-19 Thread Jan Kiszka
This is deprected now, RT callers will automatically be switched to non-RT. CC: Alexis Berlemont Signed-off-by: Jan Kiszka --- ksrc/drivers/analogy/rtdm_interface.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/ksrc/drivers/analogy/rtdm_interface.c b/ksrc/drivers/an

[Xenomai-core] [PATCH v4 15/25] irqbench: Refactor user space helpers

2010-04-19 Thread Jan Kiszka
Indent according to our style, push irqbench's inner loop into separate function. No functional changes. Signed-off-by: Jan Kiszka --- src/testsuite/irqbench/irqbench.c | 480 ++--- src/testsuite/irqbench/irqloop.c | 303 2 files change

[Xenomai-core] [PATCH v4 22/25] Add legacy kernel support for delayed_work

2010-04-19 Thread Jan Kiszka
Note that the kernel 2.4 version of schedule_delayed_work is not universally usable. CC: Philippe Gerum Signed-off-by: Jan Kiszka --- include/asm-generic/wrappers.h |3 +++ include/compat/linux/workqueue.h | 13 + 2 files changed, 16 insertions(+), 0 deletions(-) diff --git

[Xenomai-core] [PATCH v4 13/25] Fix historic msleep wrapping

2010-04-19 Thread Jan Kiszka
Probably only an academic exercise: Fix the rounding bug in msleep wrapper for kernels < 2.4.28. Signed-off-by: Jan Kiszka --- include/asm-generic/wrappers.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h

[Xenomai-core] [PATCH v4 05/25] RTDM: Deprecate open_rt, socket_rt, and close_rt

2010-04-19 Thread Jan Kiszka
Support for RTDM device creation and destruction in RT context will be removed in the future. Start warning the users about this when loading a driver that makes use of it. CC: Philippe Gerum Signed-off-by: Jan Kiszka --- include/rtdm/rtdm_driver.h | 12 +--- ksrc/skins/rtdm/API.CHAN

[Xenomai-core] [PATCH v4 08/25] RTCAN: Drop support for socket creation/deletion in real-time

2010-04-19 Thread Jan Kiszka
This is deprecated now, RT callers will automatically be migrated to NRT to perform the requests. CC: Wolfgang Grandegger Signed-off-by: Jan Kiszka --- ksrc/drivers/can/rtcan_raw.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/ksrc/drivers/can/rtcan_raw.c b/ksrc/driv

[Xenomai-core] [PATCH v4 04/25] Revert "rtdm: tag syscalls as conforming"

2010-04-19 Thread Jan Kiszka
This reverts commit 13bfdd477ab880499d2e8f3b82c49ef4d2cccff0. We better let the driver trigger the confoming switch once it detects such a case by using the new service rtdm_rt_capable(). Always being comforming caused regressions for existing designs. CC: Philippe Gerum CC: Alexis Berlemont Sig

[Xenomai-core] [PATCH v4 14/25] irqbench: Fix x86-64 build

2010-04-19 Thread Jan Kiszka
Signed-off-by: Jan Kiszka --- configure.in |2 +- src/testsuite/irqbench/Makefile.am |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 0228f51..9d6fe35 100644 --- a/configure.in +++ b/configure.in @@ -127,7 +127,7

[Xenomai-core] [PATCH v4 19/25] RTIPC: Drop unused wrapper around close_lock_count

2010-04-19 Thread Jan Kiszka
CC: Philippe Gerum Signed-off-by: Jan Kiszka --- ksrc/drivers/ipc/internal.h |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/ksrc/drivers/ipc/internal.h b/ksrc/drivers/ipc/internal.h index 296a988..ed8c103 100644 --- a/ksrc/drivers/ipc/internal.h +++ b/ksrc/drivers/i

[Xenomai-core] [PATCH v4 06/25] RTIPC: Fix memory leak on failing socket creation

2010-04-19 Thread Jan Kiszka
CC: Philippe Gerum Signed-off-by: Jan Kiszka --- ksrc/drivers/ipc/rtipc.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/ksrc/drivers/ipc/rtipc.c b/ksrc/drivers/ipc/rtipc.c index d529912..563cc4e 100644 --- a/ksrc/drivers/ipc/rtipc.c +++ b/ksrc/drivers/ipc/rtipc.c

[Xenomai-core] [PATCH v4 12/25] RTDM: Add rtdm_context_put()

2010-04-19 Thread Jan Kiszka
As suggested by Philippe: This is an alias of rtdm_context_unlock(), but it is more intuitive to match it with rtdm_context_get() calls. CC: Philippe Gerum Signed-off-by: Jan Kiszka --- include/rtdm/rtdm_driver.h |5 + ksrc/skins/rtdm/API.CHANGES |1 + ksrc/skins/rtdm/core.c |

[Xenomai-core] [PATCH v4 01/25] RTDM: Fix potential NULL pointer dereference

2010-04-19 Thread Jan Kiszka
From: Wolfgang Mauerer The rework in 95278926edc559d4 misses the case that context can be NULL, which can (and has) triggered a kernel oops. Take care of this case. Signed-off-by: Wolfgang Mauerer Signed-off-by: Jan Kiszka --- ksrc/skins/rtdm/core.c |2 +- 1 files changed, 1 insertions(+)

[Xenomai-core] [PATCH v4 09/25] 16550A: Drop support for device opening/closing in real-time

2010-04-19 Thread Jan Kiszka
This is deprected now, RT callers will automatically be switched to non-RT. Along this, simplify the allocation logic for the RX timestamp history buffer. We only support allocations from non-RT now and migrate RT callers as required. Signed-off-by: Jan Kiszka --- ksrc/drivers/serial/16550A.c |

[Xenomai-core] [PATCH v4 11/25] RTDM: Instrument rtdm_context_lock/unlock to detect misuses

2010-04-19 Thread Jan Kiszka
rtdm_context_lock must only be called on context structures that are already locked, and rtdm_context_unlock must be kept in balance with rtdm_context_get/rtdm_context_lock. Try to check for mistakes by requiring non-null clock_lock_count on entry of both services. Also fix a typo and clarify the

Re: [Xenomai-core] [PATCH v3 02/24] RTDM: Add rtdm_rt_capable() service

2010-04-19 Thread Philippe Gerum
On Mon, 2010-04-19 at 09:37 +0200, Philippe Gerum wrote: > On Mon, 2010-04-19 at 09:31 +0200, Jan Kiszka wrote: > > Philippe Gerum wrote: > > > On Sun, 2010-04-18 at 15:40 +0200, Jan Kiszka wrote: > > >> Philippe Gerum wrote: > > >>> On Sun, 2010-04-18 at 15:26 +0200, Philippe Gerum wrote: > >

Re: [Xenomai-core] [PATCH v3 02/24] RTDM: Add rtdm_rt_capable() service

2010-04-19 Thread Philippe Gerum
On Mon, 2010-04-19 at 09:31 +0200, Jan Kiszka wrote: > Philippe Gerum wrote: > > On Sun, 2010-04-18 at 15:40 +0200, Jan Kiszka wrote: > >> Philippe Gerum wrote: > >>> On Sun, 2010-04-18 at 15:26 +0200, Philippe Gerum wrote: > On Sun, 2010-04-18 at 15:12 +0200, Jan Kiszka wrote: > > From: J

Re: [Xenomai-core] [PATCH v3 02/24] RTDM: Add rtdm_rt_capable() service

2010-04-19 Thread Jan Kiszka
Philippe Gerum wrote: > On Sun, 2010-04-18 at 15:40 +0200, Jan Kiszka wrote: >> Philippe Gerum wrote: >>> On Sun, 2010-04-18 at 15:26 +0200, Philippe Gerum wrote: On Sun, 2010-04-18 at 15:12 +0200, Jan Kiszka wrote: > From: Jan Kiszka > > This adds rtdm_rt_capable(), a function th