Re: [PATCH] c-user: Add self-contained objects chapter

2017-12-21 Thread Sebastian Huber
On 21/12/17 22:19, Chris Johns wrote: Finally, the ticket referenced in some of the patches (2843) has a milestone of 6.1. Are the self-contained objects going in 5.1? It exists now. My understanding is the only thing missing is thread support but Sebastian can provide more detail here. The

Re: [PATCH] c-user: Add self-contained objects chapter

2017-12-21 Thread Sebastian Huber
On 21/12/17 16:48, Cudmore, Alan P. (GSFC-5820) wrote: I like the idea of higher performance locking and the reduced need for error checking. We have had internal debates on how much error checking needs to be done when locking and unlocking a mutex for a shared data structure. The main goal

Re: [PATCH] 4.10: fix version number

2017-12-21 Thread Chris Johns
On 22/12/2017 08:21, Joel Sherrill wrote: > Gedare posted a patch about GNU inlines as I recall. It was needed with newer > GCC version compiling the old cross version. Just wanted to make sure it got > reviewed and pushed also Is this https://devel.rtems.org/ticket/2724 or https://devel.rtems.or

Re: RFC: PowerPC bsp_specs Clean Up Question

2017-12-21 Thread Chris Johns
On 22/12/2017 08:30, Joel Sherrill wrote: > On Dec 21, 2017 3:03 PM, "Chris Johns" > wrote: > On 22/12/2017 02:01, Joel Sherrill wrote: > > I'm not opposed to this but it requires even more delicate editing that > I > can't > > easily test. > > If som

Re: RFC: PowerPC bsp_specs Clean Up Question

2017-12-21 Thread Joel Sherrill
On Dec 21, 2017 3:03 PM, "Chris Johns" wrote: On 22/12/2017 02:01, Joel Sherrill wrote: > I'm not opposed to this but it requires even more delicate editing that I can't > easily test. If something breaks and it is reported we can look at fixing it. If something breaks and it is not reported is

Re: [PATCH] 4.10: fix version number

2017-12-21 Thread Joel Sherrill
Gedare posted a patch about GNU inlines as I recall. It was needed with newer GCC version compiling the old cross version. Just wanted to make sure it got reviewed and pushed also On Dec 21, 2017 2:48 PM, "Chris Johns" wrote: > On 22/12/2017 07:03, Joel Sherrill wrote: > > What about the one you

Re: [PATCH] c-user: Add self-contained objects chapter

2017-12-21 Thread Chris Johns
On 22/12/2017 02:48, Cudmore, Alan P. (GSFC-5820) wrote: > I like the idea of higher performance locking and the reduced need for error > checking. We have had internal debates on how much error checking needs to be > done when locking and unlocking a mutex for a shared data structure. Agreed,

Re: RFC: PowerPC bsp_specs Clean Up Question

2017-12-21 Thread Chris Johns
On 22/12/2017 02:01, Joel Sherrill wrote: > I'm not opposed to this but it requires even more delicate editing that I > can't > easily test. If something breaks and it is reported we can look at fixing it. If something breaks and it is not reported is it broken? ;) > We can get rid of bsp_specs

Re: [PATCH] sptests/spsem04: new test case for PIP starvation

2017-12-21 Thread Chris Johns
On 22/12/2017 03:01, Gedare Bloom wrote: > Understood. There is a tradeoff made though, by lumping more tests in > a single test application the test complexity increases, and test > failures become slightly harder to investigate. The reset, boot and load time is the dominate factor when testing o

Re: [PATCH] 4.10: fix version number

2017-12-21 Thread Chris Johns
On 22/12/2017 07:03, Joel Sherrill wrote: > What about the one you posted for GCC on the 4.10 branch? Did it make it in? Is this to me? I am sorry do you have any more detail? Chris ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/l

Re: [PATCH] 4.10: fix version number

2017-12-21 Thread Joel Sherrill
What about the one you posted for GCC on the 4.10 branch? Did it make it in? On Dec 21, 2017 1:36 PM, "Chris Johns" wrote: > On 22/12/2017 04:28, Gedare Bloom wrote: > > This is for the 4.10 branch of the rtems-tools.git repo. There are a > > few version numbers in the branch that are wrong, whi

Re: [PATCH] 4.10: fix version number

2017-12-21 Thread Chris Johns
On 22/12/2017 04:28, Gedare Bloom wrote: > This is for the 4.10 branch of the rtems-tools.git repo. There are a > few version numbers in the branch that are wrong, which makes at least > tester unusable. Thanks, this looks good to me. Chris ___ devel ma

Re: [PATCH] 4.10: fix version number

2017-12-21 Thread Gedare Bloom
This is for the 4.10 branch of the rtems-tools.git repo. There are a few version numbers in the branch that are wrong, which makes at least tester unusable. On Thu, Dec 21, 2017 at 12:19 PM, Gedare Bloom wrote: > --- > rtemstoolkit/version.py | 2 +- > tester/rtems/version.cfg | 2 +- > 2 files

[PATCH] 4.10: fix version number

2017-12-21 Thread Gedare Bloom
--- rtemstoolkit/version.py | 2 +- tester/rtems/version.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rtemstoolkit/version.py b/rtemstoolkit/version.py index b90b3ea..a763bbc 100644 --- a/rtemstoolkit/version.py +++ b/rtemstoolkit/version.py @@ -53,7 +53,7 @@ except

Re: [PATCH 01/12] Add RTEMS thread API

2017-12-21 Thread Gedare Bloom
On Thu, Dec 21, 2017 at 11:27 AM, Sebastian Huber wrote: > > > - Am 21. Dez 2017 um 16:49 schrieb Gedare Bloom ged...@rtems.org: > >> I don't quite understand why this is called 'thread', when everything >> appears to be synchronization related. > > In the documentation chapter is an outline f

Re: [PATCH 01/12] Add RTEMS thread API

2017-12-21 Thread Sebastian Huber
- Am 21. Dez 2017 um 16:49 schrieb Gedare Bloom ged...@rtems.org: > I don't quite understand why this is called 'thread', when everything > appears to be synchronization related. In the documentation chapter is an outline for self-contained threads. The header file is analogous to C11 an

Re: [PATCH] sptests/spsem04: new test case for PIP starvation

2017-12-21 Thread Gedare Bloom
On Thu, Dec 21, 2017 at 3:52 AM, Sebastian Huber wrote: > On 20/12/17 17:02, Gedare Bloom wrote: >> >> On Wed, Dec 20, 2017 at 10:58 AM, Gedare Bloom wrote: >>> >>> On Wed, Dec 20, 2017 at 1:02 AM, Sebastian Huber >>> wrote: I think this is already covered by test_inherit_nested_vertic

Re: [PATCH 01/12] Add RTEMS thread API

2017-12-21 Thread Gedare Bloom
I don't quite understand why this is called 'thread', when everything appears to be synchronization related. On Thu, Dec 21, 2017 at 9:09 AM, Sebastian Huber wrote: > Update #2843. > --- > cpukit/Makefile.am | 1 + > cpukit/include/rtems/thread.h| 280

Re: [PATCH] c-user: Add self-contained objects chapter

2017-12-21 Thread Cudmore, Alan P. (GSFC-5820)
I like the idea of higher performance locking and the reduced need for error checking. We have had internal debates on how much error checking needs to be done when locking and unlocking a mutex for a shared data structure. Are these new APIs in addition to the classic RTEMS APIs for similar ob

Re: RFC: PowerPC bsp_specs Clean Up Question

2017-12-21 Thread Joel Sherrill
On Dec 21, 2017 1:16 AM, "Chris Johns" wrote: On 21/12/17 6:13 pm, Sebastian Huber wrote: > On 12/12/17 02:54, Joel Sherrill wrote: >> Many of the PowerPC BSPs uses a shared linker script. That's good. >> Unfortunately, there is variation in the start symbol and the use of a "-u" >> (e.g. undefin

[PATCH 02/12] libblock: Use self-contained mutex for disk lock

2017-12-21 Thread Sebastian Huber
Update #2843. --- cpukit/libblock/src/diskdevs.c | 101 - cpukit/sapi/include/confdefs.h | 9 +--- 2 files changed, 32 insertions(+), 78 deletions(-) diff --git a/cpukit/libblock/src/diskdevs.c b/cpukit/libblock/src/diskdevs.c index cb1f15707f..836cc4973e

[PATCH] c-user: Add self-contained objects chapter

2017-12-21 Thread Sebastian Huber
Update #2843. --- c-user/index.rst |1 + c-user/self_contained_objects.rst | 1070 + 2 files changed, 1071 insertions(+) create mode 100644 c-user/self_contained_objects.rst diff --git a/c-user/index.rst b/c-user/index.rst index 5ee50c9..d

[PATCH 04/12] termios: Use self-contained objects

2017-12-21 Thread Sebastian Huber
Update #2840. --- cpukit/libcsupport/include/rtems/libio.h| 5 +- cpukit/libcsupport/include/rtems/termiostypes.h | 13 +- cpukit/libcsupport/src/termios.c| 226 cpukit/libcsupport/src/termiosinitialize.c | 32 +--- cpukit/sapi/include/conf

[PATCH 12/12] NFS: Use self-contained recursive mutex

2017-12-21 Thread Sebastian Huber
Update #2843. --- cpukit/libfs/src/nfsclient/src/nfs.c | 89 +- cpukit/libfs/src/nfsclient/src/rpcio.c | 76 +++-- cpukit/sapi/include/confdefs.h | 29 ++- 3 files changed, 44 insertions(+), 150 deletions(-) diff --git a/cp

[PATCH 09/12] dosfs: Use self-contained recursive mutex

2017-12-21 Thread Sebastian Huber
Update #2843. --- cpukit/libfs/src/dosfs/msdos.h | 21 --- cpukit/libfs/src/dosfs/msdos_dir.c | 26 +++--- cpukit/libfs/src/dosfs/msdos_file.c | 46 +--- cpukit/libfs/src/dosfs/msdos_fsunmount.c | 2 +- cpukit/libfs/src/dosf

[PATCH 05/12] i2c: Use self-contained mutex

2017-12-21 Thread Sebastian Huber
Update #2843. --- cpukit/dev/i2c/i2c-bus.c | 36 +--- cpukit/dev/include/dev/i2c/i2c.h | 5 +++-- 2 files changed, 8 insertions(+), 33 deletions(-) diff --git a/cpukit/dev/i2c/i2c-bus.c b/cpukit/dev/i2c/i2c-bus.c index 1297b1ef4c..23311ae8e5 100644 --- a/c

[PATCH 10/12] RFS: Use self-contained recursive mutex

2017-12-21 Thread Sebastian Huber
Update #2843. --- cpukit/libfs/src/rfs/rtems-rfs-mutex.c | 31 ++- cpukit/libfs/src/rfs/rtems-rfs-mutex.h | 25 - cpukit/sapi/include/confdefs.h | 9 + 3 files changed, 7 insertions(+), 58 deletions(-) diff --git a/cpukit/libfs/

[PATCH 03/12] libblock: Use self-contained mutex and cond var

2017-12-21 Thread Sebastian Huber
Update #2843. --- cpukit/libblock/include/rtems/bdbuf.h | 9 - cpukit/libblock/src/bdbuf.c | 324 +- cpukit/sapi/include/confdefs.h| 17 +- 3 files changed, 43 insertions(+), 307 deletions(-) diff --git a/cpukit/libblock/include/rtems/bdbuf.h

[PATCH 07/12] network: Use self-contained recursive mutex

2017-12-21 Thread Sebastian Huber
Update #2843. --- cpukit/libnetworking/rtems/rtems_glue.c | 110 cpukit/sapi/include/confdefs.h | 12 +--- 2 files changed, 15 insertions(+), 107 deletions(-) diff --git a/cpukit/libnetworking/rtems/rtems_glue.c b/cpukit/libnetworking/rtems/rtems_glue.c

[PATCH 01/12] Add RTEMS thread API

2017-12-21 Thread Sebastian Huber
Update #2843. --- cpukit/Makefile.am | 1 + cpukit/include/rtems/thread.h| 280 +++ cpukit/preinstall.am | 4 + cpukit/score/src/semaphore.c | 99 +- testsuites/sptests/Makefile.a

[PATCH 06/12] spi: Use self-contained mutex

2017-12-21 Thread Sebastian Huber
Update #2843. --- cpukit/dev/include/dev/spi/spi.h | 5 +++-- cpukit/dev/spi/spi-bus.c | 36 ++-- 2 files changed, 9 insertions(+), 32 deletions(-) diff --git a/cpukit/dev/include/dev/spi/spi.h b/cpukit/dev/include/dev/spi/spi.h index 66bbac2427..f0f84f146

[PATCH 08/12] JFFS2: Use self-contained recursive mutex

2017-12-21 Thread Sebastian Huber
Update #2843. --- cpukit/libfs/src/jffs2/src/fs-rtems.c | 44 +++ cpukit/libfs/src/jffs2/src/os-rtems.h | 3 ++- cpukit/sapi/include/confdefs.h| 9 +-- 3 files changed, 16 insertions(+), 40 deletions(-) diff --git a/cpukit/libfs/src/jffs2/src/fs-rtems

[PATCH 11/12] pipe: Use self-contained mutex

2017-12-21 Thread Sebastian Huber
Update #2843. --- cpukit/libfs/src/pipe/fifo.c | 106 +++-- cpukit/libfs/src/pipe/pipe.h | 3 +- cpukit/sapi/include/confdefs.h | 15 +- testsuites/sptests/spfifo02/init.c | 50 - 4 files changed, 22 insertions(+), 152 deletio

[PATCH] score: Optimize watchdog tickle

2017-12-21 Thread Sebastian Huber
Avoid unnecessary lock acquire/release operations. Get realtime via timecounter only if necessary. Update #3264. --- cpukit/score/include/rtems/score/watchdogimpl.h | 32 --- cpukit/score/src/coretodset.c | 24 +++- cpukit/score/src/watchdogtick.c |

[PATCH] rtems: Fix rtems_task_mode()

2017-12-21 Thread Sebastian Huber
A rtems_configuration_is_smp_enabled() inside a !defined( RTEMS_SMP) block makes no sense. Remove !defined( RTEMS_SMP ) conditions. Test tm04 works now again. Update #3000. --- cpukit/rtems/src/taskmode.c | 8 1 file changed, 8 deletions(-) diff --git a/cpukit/rtems/src/taskmode.c b/c

Re: [PATCH] sptests/spsem04: new test case for PIP starvation

2017-12-21 Thread Sebastian Huber
On 20/12/17 17:02, Gedare Bloom wrote: On Wed, Dec 20, 2017 at 10:58 AM, Gedare Bloom wrote: On Wed, Dec 20, 2017 at 1:02 AM, Sebastian Huber wrote: I think this is already covered by test_inherit_nested_vertical() in spmutex01. Thanks for the pointer, you're correct. I need this kind of te