Re: [PATCH RSB v3] Remove automake/autoconf from rtems 6 tools

2021-09-17 Thread Gedare Bloom
this looks right, just test it before pushing :) On Thu, Sep 16, 2021 at 1:26 PM Joel Sherrill wrote: > > These are unneeded with the waf build system. > > Closes #4081. > --- > rtems/config/6/rtems-autotools-base.bset | 9 - > rtems/config/6/rtems-autotools-internal.bset | 11

Re: [PATCH v4] improve the format of error reporting on i386

2021-09-17 Thread zack leung
Where am i missing it? Zack On Fri, 17 Sept 2021 at 23:15, Gedare Bloom wrote: > Hi Zack, > > I think you have also missed Joel's request to add an 8-character > width specifier. > > On Thu, Sep 16, 2021 at 6:19 PM zack leung > wrote: > > > > Thread id is now a Hex value. formatting improved

Re: [PATCH RSB v3] Remove automake/autoconf from rtems 6 tools

2021-09-17 Thread Joel Sherrill
Thanks. I will. Lots of family distractions the past few days. Sorry for screwing it up so much. On Fri, Sep 17, 2021, 5:38 PM Gedare Bloom wrote: > this looks right, just test it before pushing :) > > On Thu, Sep 16, 2021 at 1:26 PM Joel Sherrill wrote: > > > > These are unneeded with the

Re: [PATCH v4] improve the format of error reporting on i386

2021-09-17 Thread Gedare Bloom
Hi Zack, I think you have also missed Joel's request to add an 8-character width specifier. On Thu, Sep 16, 2021 at 6:19 PM zack leung wrote: > > Thread id is now a Hex value. formatting improved for hex values > Updates #4203 > --- > cpukit/score/cpu/i386/cpu.c | 6 +++--- > 1 file changed, 3

[PATCH] powerpc/motorola_powerpc: Map LibBSD bus space to the PCI base address

2021-09-17 Thread chrisj
From: Chris Johns --- bsps/powerpc/motorola_powerpc/include/bsp.h | 32 +++-- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/bsps/powerpc/motorola_powerpc/include/bsp.h b/bsps/powerpc/motorola_powerpc/include/bsp.h index af0e71471e..7d362bf406 100644 ---

[PATCH] libcsupport/mount: Return the error correctly

2021-09-17 Thread chrisj
From: Chris Johns Closes #4507 --- cpukit/libcsupport/src/mount.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/libcsupport/src/mount.c b/cpukit/libcsupport/src/mount.c index a4f6423c03..2caa8099c1 100644 --- a/cpukit/libcsupport/src/mount.c +++ b/cpukit/libcsupport/src/mount.c

[PATCH] libtest: Improve T_now_tick()

2021-09-17 Thread Sebastian Huber
The T_now_tick() is a fall back time measurement using the CPU counter in case no Clock Driver is configured. Some CPU counter may overflow during the test execution. Accumulate the elapsed time to reduce the chance of CPU counter overflows. --- cpukit/libtest/t-test-time.c | 45

[PATCH 1/5] score: SCHEDULER_OPERATION_DEFAULT_ASK_FOR_HELP

2021-09-17 Thread Sebastian Huber
Rename SCHEDULER_OPERATION_DEFAULT_ASK_FOR_HELP in SCHEDULER_DEFAULT_SMP_OPERATIONS. Add a Doxygen comment. --- cpukit/include/rtems/score/scheduler.h | 15 +-- cpukit/include/rtems/score/schedulercbs.h | 2 +- cpukit/include/rtems/score/scheduleredf.h | 2 +-

[PATCH 4/5] score: Ensure only one CPU if required

2021-09-17 Thread Sebastian Huber
Issue the new fatal SMP error SMP_FATAL_SCHEDULER_REQUIRES_EXACTLY_ONE_PROCESSOR if the system starts with not exactly one processor and an uniprocessor scheduler is configured. --- cpukit/include/rtems/score/smpimpl.h | 3 ++- cpukit/include/rtems/sysinit.h| 1 +

[PATCH 2/5] score: SCHEDULER_OPERATION_DEFAULT_GET_SET_AFFINITY

2021-09-17 Thread Sebastian Huber
Rename SCHEDULER_OPERATION_DEFAULT_GET_SET_AFFINITY in SCHEDULER_DEFAULT_SET_AFFINITY_OPERATION. Add Doxygen comment. --- cpukit/include/rtems/score/scheduler.h | 16 ++-- cpukit/include/rtems/score/schedulercbs.h| 2 +- cpukit/include/rtems/score/scheduleredf.h

[PATCH 3/5] score: Provide two thread pin/unpin defaults

2021-09-17 Thread Sebastian Huber
The uniprocessor schedulers do not support systems with more than more processors. So they rivially support thread pinning and thus the SMP_FATAL_SCHEDULER_PIN_OR_UNPIN_NOT_SUPPORTED cannot happen. Add a second default implementation for SMP schedulers which do not support thread pinning.

[PATCH 5/5] score: Remove unused default scheduler ops

2021-09-17 Thread Sebastian Huber
If SMP support is enabled and the system has exactly one processor, then it may use an uniprocessor scheduler. The ask for help, reconsider help request, and withdraw node operations can be NULL in this case, since they are only used if a thread has at least one helping scheduler node. At least

[PATCH 0/5] SMP related scheduler clean up

2021-09-17 Thread Sebastian Huber
This patch set adds a bit of Doxygen and removes dead code. Sebastian Huber (5): score: SCHEDULER_OPERATION_DEFAULT_ASK_FOR_HELP score: SCHEDULER_OPERATION_DEFAULT_GET_SET_AFFINITY score: Provide two thread pin/unpin defaults score: Ensure only one CPU if required score: Remove unused

Re: [PATCH] cpukit/smp: Prevent premature thread dispatch

2021-09-17 Thread Kinsey Moore
On 9/17/2021 00:39, Sebastian Huber wrote: On 16/09/2021 22:50, Kinsey Moore wrote: There is currently a narrow window between the CPU state being set to UP and the dispatch disable flag being set. It is possible to perform a cross-processor thread dispatch in this window which catches the CPU