Fix bogus lock stealing case
The following changes since commit fbc3b858ee728c1a6b03996e3285198caa7053c6:
Gilles Chanteperdrix (1):
debug: fix CONFIG_XENO_OPT_DEBUG_* issues
are available in the git repository at:
git://git.xenomai.org/xenomai-jki.git for-upstream
I'm starting to believe that once our customer stops reporting weird Xenomai behavior, we have reached the ultimate level of zero bugs. For now this is just another "bugs--".
Jan Kiszka (2):
mutex-torture: Add test for disallowed lock stealing
nucleus: Fix bogus lock stealing case
ksrc/nucleus/synch.c | 6 ++-- src/testsuite/unit/mutex-torture.c | 62 ++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 3 deletions(-)
Quoted 11 lines · Jan Kiszka
The following changes since commit
fbc3b858ee728c1a6b03996e3285198caa7053c6:
Gilles Chanteperdrix (1):
debug: fix CONFIG_XENO_OPT_DEBUG_* issuesare available in the git repository at:
git://git.xenomai.org/xenomai-jki.gitfor-upstreamI'm starting to believe that once our customer stops reporting weird Xenomai behavior, we have reached the ultimate level of zero bugs. For now this is just another "bugs--".
There is no such thing as a "zero bugs" level. Having a look now.
Signature · 1 line
Gilles.
Quoted 11 lines · Jan Kiszka
The following changes since commit
fbc3b858ee728c1a6b03996e3285198caa7053c6:
Gilles Chanteperdrix (1):
debug: fix CONFIG_XENO_OPT_DEBUG_* issuesare available in the git repository at:
git://git.xenomai.org/xenomai-jki.gitfor-upstreamI'm starting to believe that once our customer stops reporting weird Xenomai behavior, we have reached the ultimate level of zero bugs. For now this is just another "bugs--".
Are you feeling better now?
Quoted 9 lines
Jan Kiszka (2):
mutex-torture: Add test for disallowed lock stealing
nucleus: Fix bogus lock stealing caseksrc/nucleus/synch.c | 6 ++-- src/testsuite/unit/mutex-torture.c | 62 ++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 3 deletions(-)
Signature · 1 line
Philippe.
Quoted 7 lines · Philippe Gerum
Quoted 6 lines · Jan Kiszka
The following changes since commit
fbc3b858ee728c1a6b03996e3285198caa7053c6:
Gilles Chanteperdrix (1):
debug: fix CONFIG_XENO_OPT_DEBUG_* issuesare available in the git repository at:
Quoted 7 lines
Quoted 5 lines
git://git.xenomai.org/xenomai-jki.gitfor-upstreamI'm starting to believe that once our customer stops reporting weird Xenomai behavior, we have reached the ultimate level of zero bugs. For now this is just another "bugs--".
Are you feeling better now?
Yeah. :) (Specifically as reproducing it was not that simple even after I was sure to have found it in the code.)
Quoted 11 lines
Quoted 9 lines
Jan Kiszka (2):
mutex-torture: Add test for disallowed lock stealing
nucleus: Fix bogus lock stealing caseksrc/nucleus/synch.c | 6 ++-- src/testsuite/unit/mutex-torture.c | 62 ++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 3 deletions(-)
Jan
Quoted 7 lines · Jan Kiszka
The following changes since commit
fbc3b858ee728c1a6b03996e3285198caa7053c6:
Gilles Chanteperdrix (1):
debug: fix CONFIG_XENO_OPT_DEBUG_* issuesare available in the git repository at:
git://git.xenomai.org/xenomai-jki.gitfor-upstream
Something wrong here, the logs on your branch appear as:
13ee2a1 nucleus: Fix bogus lock stealing case
d0d95bf mutex-torture: Add test for disallowed lock stealing 9ef976e RTDM: Restrict use of rtdm_rt_capable
6b75977 uitron: Fix skin debug option
bc3fefd Move schedule_delayed_work into wrapping header 41b1eca RTDM: Drop __exit from rtdm_dev_cleanup
4f3d3f2 bootstrap
78acd8c Merge commit 'jan'
700a9fd arm: add a generic-vfp architecture, which enables vfp and compiles for armv5
8337fc5 RTDM: Use non-atomic bitops for used_fildes
Seems you forgot to rebase?
Signature · 1 line
Gilles.
Quoted 23 lines · Gilles Chanteperdrix
Quoted 7 lines · Jan Kiszka
The following changes since commit
fbc3b858ee728c1a6b03996e3285198caa7053c6:
Gilles Chanteperdrix (1):
debug: fix CONFIG_XENO_OPT_DEBUG_* issuesare available in the git repository at:
git://git.xenomai.org/xenomai-jki.gitfor-upstreamSomething wrong here, the logs on your branch appear as:
13ee2a1 nucleus: Fix bogus lock stealing case
d0d95bf mutex-torture: Add test for disallowed lock stealing 9ef976e RTDM: Restrict use ofrtdm_rt_capable
6b75977 uitron: Fix skin debug option
bc3fefd Moveschedule_delayed_workinto wrapping header 41b1eca RTDM: Drop__exitfromrtdm_dev_cleanup
4f3d3f2 bootstrap
78acd8c Merge commit 'jan'
700a9fd arm: add a generic-vfp architecture, which enables vfp and compiles for armv5
8337fc5 RTDM: Use non-atomic bitops forused_fildes
Quoted 2 lines
Seems you forgot to rebase?
Oops, incomplete rebase. Fixed.
Jan
Quoted 24 lines · Jan Kiszka
Quoted 23 lines · Gilles Chanteperdrix
Quoted 7 lines · Jan Kiszka
The following changes since commit
fbc3b858ee728c1a6b03996e3285198caa7053c6:
Gilles Chanteperdrix (1):
debug: fix CONFIG_XENO_OPT_DEBUG_* issuesare available in the git repository at:
git://git.xenomai.org/xenomai-jki.gitfor-upstreamSomething wrong here, the logs on your branch appear as:
13ee2a1 nucleus: Fix bogus lock stealing case
d0d95bf mutex-torture: Add test for disallowed lock stealing 9ef976e RTDM: Restrict use ofrtdm_rt_capable
6b75977 uitron: Fix skin debug option
bc3fefd Moveschedule_delayed_workinto wrapping header 41b1eca RTDM: Drop__exitfromrtdm_dev_cleanup
4f3d3f2 bootstrap
78acd8c Merge commit 'jan'
700a9fd arm: add a generic-vfp architecture, which enables vfp and compiles for armv5
8337fc5 RTDM: Use non-atomic bitops forused_fildes
Quoted 5 lines
Quoted 2 lines
Seems you forgot to rebase?
Oops, incomplete rebase. Fixed.
I was worried about any implication regarding v2.4.x, so I checked. It turned out that such bug has been introduced by the FASTSYNCH code, with the advent of xnsynch_acquire(). This code has added a fastpath that did not exist initially for returning to the caller, which overlooked the WAKEN/ROBBED semantics.
The basic assumptions were:
- XNWAKEN+XNROBBED bits are inconditionally cleared by xnpod_suspend_thread().
- wwake makes sense only in a XNWAKEN context (therefore, you don't have to clear it until you actually exit from xnsynch_sleep_on, and you may only test it whenever XNWAKEN is raised).
- the only way to exit from xnsynch_sleep_on() used to be via the unlock_and_exit path, which did clear the relevant bits, along with wwake.
The first two assumptions are still valid, fortunately.
So, the good news is that v2.4.x is fine. And good news are a nice way to relax, which is another good news.
Signature · 1 line
Philippe.