Re: [Xenomai-core] RT_HEAP Problem

2008-09-02 Thread Gilles Chanteperdrix
Yasser Kashfi wrote: this program previously worked on another PC. but now when I execute it on the new PC, It cause the kernel panic ( Unable to handle null pointer reference ...). same kernel is run on two PC, and not seems any difference. but now I print memory status (/proc/meminfo). a

[Xenomai-core] skin RTDM in user mode

2008-09-02 Thread Alexis Berlemont
Hi, In ksrc/skins/rtdm/API.CHANGES text file, the TODO list indicates that someone may be working on the development of the user-side RTDM skin (for user-space drivers). Is anyone working on that ? I was wondering what was to be done: - Is it just the porting of the kernel RTDM API

Re: [Xenomai-core] skin RTDM in user mode

2008-09-02 Thread Jan Kiszka
Hi Alexis, Alexis Berlemont wrote: Hi, In ksrc/skins/rtdm/API.CHANGES text file, the TODO list indicates that someone may be working on the development of the user-side RTDM skin (for user-space drivers). Is anyone working on that ? Not that I know. I was wondering what was to

Re: [Xenomai-core] [PATCH 2/9] Switch to handle-based fast mutex owners

2008-09-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: To improve robustness of the fast mutex implementation in POSIX (and later on in native), it is better to track the mutex owner by handle instead of kernel object pointer.

[Xenomai-core] [PATCH] POSIX: Fix race when setting claimed bit

2008-09-02 Thread Jan Kiszka
Patch 2 of my fast lock series actually also contained an attempt to fix a race I spotted in the code that atomically sets the claimed bit. I forgot about this fact and even, worse, I only replace the original race with another one. So here comes a new attempt to fix the issue that the lock owner

Re: [Xenomai-core] [PATCH] POSIX: Fix race when setting claimed bit

2008-09-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Patch 2 of my fast lock series actually also contained an attempt to fix a race I spotted in the code that atomically sets the claimed bit. I forgot about this fact and even, worse, I only replace the original race with another one. So here comes a new attempt to fix the

Re: [Xenomai-core] [PATCH] POSIX: Fix race when setting claimed bit

2008-09-02 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: Patch 2 of my fast lock series actually also contained an attempt to fix a race I spotted in the code that atomically sets the claimed bit. I forgot about this fact and even, worse, I only replace the original race with another one. So here

Re: [Xenomai-core] [PATCH] POSIX: Fix race when setting claimed bit

2008-09-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Patch 2 of my fast lock series actually also contained an attempt to fix a race I spotted in the code that atomically sets the claimed bit. I forgot about this fact and even, worse, I only replace the original race with another one. So here comes a new attempt to fix the

Re: [Xenomai-core] [PATCH] POSIX: Fix race when setting claimed bit

2008-09-02 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: Patch 2 of my fast lock series actually also contained an attempt to fix a race I spotted in the code that atomically sets the claimed bit. I forgot about this fact and even, worse, I only replace the original race with another one. So here

Re: [Xenomai-core] [PATCH] POSIX: Fix race when setting claimed bit

2008-09-02 Thread Gilles Chanteperdrix
Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Patch 2 of my fast lock series actually also contained an attempt to fix a race I spotted in the code that atomically sets the claimed bit. I forgot about this fact and even, worse, I only replace the

Re: [Xenomai-core] [PATCH] POSIX: Fix race when setting claimed bit

2008-09-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Patch 2 of my fast lock series actually also contained an attempt to fix a race I spotted in the code that atomically sets the claimed bit. I forgot about this fact and even, worse, I only replace the original race with another

Re: [Xenomai-core] [PATCH] POSIX: Fix race when setting claimed bit

2008-09-02 Thread Jan Kiszka
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Patch 2 of my fast lock series actually also contained an attempt to fix a race I spotted in the code that atomically sets the claimed bit. I forgot about this fact and even, worse,

Re: [Xenomai-core] [PATCH] POSIX: Fix race when setting claimed bit

2008-09-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: OTOH, we can safe some text size which is precious as well. So I'm convinced to go your way (with a modification): My approach sucks: we get a silly atomic_cmpxchg if the mutex is already claimed, which is as least as much a common case as a currently unclaimed mutex. Need to

Re: [Xenomai-core] [PATCH] POSIX: Fix race when setting claimed bit

2008-09-02 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: OTOH, we can safe some text size which is precious as well. So I'm convinced to go your way (with a modification): My approach sucks: we get a silly atomic_cmpxchg if the mutex is already claimed, which is as least as much a common case as a

Re: [Xenomai-core] [PATCH] POSIX: Fix race when setting claimed bit

2008-09-02 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Patch 2 of my fast lock series actually also contained an attempt to fix a race I spotted in the code that atomically sets the claimed bit. I forgot about this fact and even, worse, I only replace the

Re: [Xenomai-core] [PATCH] POSIX: Fix race when setting claimed bit

2008-09-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: OTOH, we can safe some text size which is precious as well. So I'm convinced to go your way (with a modification): My approach sucks: we get a silly atomic_cmpxchg if the mutex is already claimed, which is as least as much a

Re: [Xenomai-core] [PATCH] POSIX: Fix race when setting claimed bit

2008-09-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: OTOH, we can safe some text size which is precious as well. So I'm convinced to go your way (with a modification): My approach sucks: we get a silly atomic_cmpxchg if the mutex is

Re: [Xenomai-core] [PATCH] POSIX: Fix race when setting claimed bit

2008-09-02 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: OTOH, we can safe some text size which is precious as well. So I'm convinced to go your way (with a modification): My approach sucks: we get a silly atomic_cmpxchg if the mutex is already claimed,

Re: [Xenomai-core] skin RTDM in user mode

2008-09-02 Thread Alexis Berlemont
Hi, - Or do you expect a more complete solution like fuse or fusd ? There are a few tricky parts when you want a seamless driver API, allowing to test or even use RTDM drivers in userspace: - IRQ handling (means: forwarding, acknowledging, sharing). You won't be able to achieve 100%