From: 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
+
From: 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
From: 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
From: 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.
From: 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/
From: 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: Al
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(+)
From: 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
+++
From: 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/
From: 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
From: 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/rtip
From: 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-
From: 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-
From: 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
From: 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 -
From: 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
From: 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
From: 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 ty
From: 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 delet
From: 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/
From: 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/t
From: 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
From: 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/rtca
The following changes since commit 113ea4d56e8b215cb56ae7673013163ea5a5987d:
Gilles Chanteperdrix (1):
switchtest: increase stack sizes
are available in the git repository at:
git://git.xenomai.org/xenomai-jki.git for-upstream
Changes in v3:
- extended RTDM unit test to check for r
From: 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
On Sun, 2010-04-18 at 15:12 +0200, Jan Kiszka wrote:
> From: 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 tri
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 that can be used by drivers to
> > detect callers that could issue a service request also from the
> > (typically pr
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 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 th
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 that can be used by drivers to
>>> detect callers that could issue a service request also fr
From: Jan Kiszka
Given a large amount of devices, we could overflow the output page so
far. Fix it by moving to seq_file operations. This also allows us to
drop the RTDM_PROC_PRINT macros, now that the last user is converted.
Signed-off-by: Jan Kiszka
---
ksrc/skins/rtdm/device.c | 21 +---
From: Wolfgang Mauerer
The entries depend on the number of CPUs and can thus overflow a single page.
Signed-off-by: Wolfgang Mauerer
Signed-off-by: Jan Kiszka
---
ksrc/arch/generic/hal.c | 148 +--
1 files changed, 118 insertions(+), 30 deletions(-
From: Wolfgang Mauerer
Signed-off-by: Wolfgang Mauerer
Signed-off-by: Jan Kiszka
---
ksrc/skins/native/buffer.c | 46 ++-
1 files changed, 24 insertions(+), 22 deletions(-)
diff --git a/ksrc/skins/native/buffer.c b/ksrc/skins/native/buffer.c
index 2d3
From: Wolfgang Mauerer
Signed-off-by: Wolfgang Mauerer
Signed-off-by: Jan Kiszka
---
ksrc/skins/native/alarm.c | 43 +++
1 files changed, 23 insertions(+), 20 deletions(-)
diff --git a/ksrc/skins/native/alarm.c b/ksrc/skins/native/alarm.c
index 1130df
The following changes since commit 113ea4d56e8b215cb56ae7673013163ea5a5987d:
Gilles Chanteperdrix (1):
switchtest: increase stack sizes
are available in the git repository at:
git://git.xenomai.org/xenomai-jki.git queues/proc
This series fixes some of the potential (but when they hap
From: Wolfgang Mauerer
Signed-off-by: Wolfgang Mauerer
Signed-off-by: Jan Kiszka
---
ksrc/skins/native/intr.c | 44 +++-
1 files changed, 23 insertions(+), 21 deletions(-)
diff --git a/ksrc/skins/native/intr.c b/ksrc/skins/native/intr.c
index a69bd46.
From: Jan Kiszka
Signed-off-by: Jan Kiszka
---
ksrc/skins/rtdm/proc.c | 14 +-
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/ksrc/skins/rtdm/proc.c b/ksrc/skins/rtdm/proc.c
index b889f73..70ee4a2 100644
--- a/ksrc/skins/rtdm/proc.c
+++ b/ksrc/skins/rtdm/proc.c
@@
From: Jan Kiszka
Older kernels do not have this tag but do not touch them as well, so
perform a type cast when assigning them to proc_dir_entry.
Signed-off-by: Jan Kiszka
---
include/asm-generic/hal.h |2 +-
ksrc/arch/generic/hal.c |4 ++--
2 files changed, 3 insertions(+), 3 deletio
From: Wolfgang Mauerer
On a system with many CPUs, the size of the data can exceed
a single page.
Signed-off-by: Wolfgang Mauerer
Signed-off-by: Jan Kiszka
---
ksrc/nucleus/intr.c | 149 +++
1 files changed, 90 insertions(+), 59 deletions(-)
d
From: Wolfgang Mauerer
We augment struct xnpnode with a new element for representing file_operations
that
allow for using more generic file system methods than read_proc. However, we
have to retain read_proc and write_proc for now since not all proc entries are
immediately converted. However, we
From: Jan Kiszka
This fixes buffer overflows when large number of heaps are registered.
Signed-off-by: Jan Kiszka
---
ksrc/nucleus/heap.c | 121 +--
1 files changed, 98 insertions(+), 23 deletions(-)
diff --git a/ksrc/nucleus/heap.c b/ksrc/nucl
From: Jan Kiszka
As read_proc is deprecated and will die soon, we have to convert to
single-seq. Start with RTDM's fildes proc entry.
Signed-off-by: Jan Kiszka
---
ksrc/skins/rtdm/proc.c | 31 ---
1 files changed, 20 insertions(+), 11 deletions(-)
diff --git a/ks
From: Jan Kiszka
Device names can be up to 31 characters long.
Signed-off-by: Jan Kiszka
---
ksrc/skins/rtdm/proc.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ksrc/skins/rtdm/proc.c b/ksrc/skins/rtdm/proc.c
index e83c0c4..20c9ad8 100644
--- a/ksrc/skins/rtdm/pr
From: Jan Kiszka
This avoids overflows in case the number of open file descriptors gets
too high.
Signed-off-by: Jan Kiszka
---
ksrc/skins/rtdm/proc.c | 119
1 files changed, 80 insertions(+), 39 deletions(-)
diff --git a/ksrc/skins/rtdm/proc.
From: Jan Kiszka
As the device references passed to proc_read_dev_info may become invalid
while we dereference it, we need to acquire nrt_dev_lock and check the
pointer against our list of registered devices.
Signed-off-by: Jan Kiszka
---
ksrc/skins/rtdm/proc.c | 29 +
From: Wolfgang Mauerer
Signed-off-by: Wolfgang Mauerer
Signed-off-by: Jan Kiszka
---
ksrc/skins/native/event.c | 40 +---
1 files changed, 21 insertions(+), 19 deletions(-)
diff --git a/ksrc/skins/native/event.c b/ksrc/skins/native/event.c
index 5b2a8b5..
From: Wolfgang Mauerer
Same procedure as last year, Miss Sophie?
Same procedure as every year, James.
Signed-off-by: Wolfgang Mauerer
Signed-off-by: Jan Kiszka
---
ksrc/arch/generic/hal.c | 99 ++-
1 files changed, 72 insertions(+), 27 deletions(-
From: Jan Kiszka
Signed-off-by: Jan Kiszka
---
ksrc/skins/rtdm/proc.c | 77
1 files changed, 45 insertions(+), 32 deletions(-)
diff --git a/ksrc/skins/rtdm/proc.c b/ksrc/skins/rtdm/proc.c
index ff264b6..9b5d349 100644
--- a/ksrc/skins/rtdm/pro
From: Wolfgang Mauerer
Signed-off-by: Wolfgang Mauerer
Signed-off-by: Jan Kiszka
---
ksrc/skins/native/heap.c | 50 +++--
1 files changed, 26 insertions(+), 24 deletions(-)
diff --git a/ksrc/skins/native/heap.c b/ksrc/skins/native/heap.c
index 2a5de8c
From: Wolfgang Mauerer
Signed-off-by: Wolfgang Mauerer
Signed-off-by: Jan Kiszka
---
ksrc/skins/native/cond.c | 36 +++-
1 files changed, 19 insertions(+), 17 deletions(-)
diff --git a/ksrc/skins/native/cond.c b/ksrc/skins/native/cond.c
index 86f83ff..081c2af
From: Wolfgang Mauerer
Signed-off-by: Wolfgang Mauerer
Signed-off-by: Jan Kiszka
---
ksrc/skins/native/queue.c | 44 +++-
1 files changed, 23 insertions(+), 21 deletions(-)
diff --git a/ksrc/skins/native/queue.c b/ksrc/skins/native/queue.c
index 6a711
From: Wolfgang Mauerer
Signed-off-by: Wolfgang Mauerer
Signed-off-by: Jan Kiszka
---
ksrc/skins/native/mutex.c | 42 ++
1 files changed, 22 insertions(+), 20 deletions(-)
diff --git a/ksrc/skins/native/mutex.c b/ksrc/skins/native/mutex.c
index 6cf7eb1
From: Wolfgang Mauerer
Signed-off-by: Wolfgang Mauerer
Signed-off-by: Jan Kiszka
---
ksrc/skins/native/sem.c | 38 --
1 files changed, 20 insertions(+), 18 deletions(-)
diff --git a/ksrc/skins/native/sem.c b/ksrc/skins/native/sem.c
index 0afea09..f962966
From: Wolfgang Mauerer
Admittedly, the proc page cannot overflow right now, but since the number
of time bases is at least in theory unlimited, let's convert the file
while we are at it. Also properly take the nklock when accessing the
nktimebase list.
Signed-off-by: Wolfgang Mauerer
Signed-off
Jan Kiszka wrote:
> From: 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
Jan Kiszka wrote:
> From: 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
Gilles Chanteperdrix wrote:
> Jan Kiszka wrote:
>> From: 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
>>
Gilles Chanteperdrix wrote:
> Jan Kiszka wrote:
>> From: 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 pa
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 that can be used by drivers
58 matches
Mail list logo