Re: [PATCH 11 minor addeum] arm/raspberrypi: GPIO - using RTEMS interrupt lock during BSP

2016-09-06 Thread Pavel Pisa
Hello Sebastian, On Wednesday 07 of September 2016 07:33:36 Sebastian Huber wrote: > Hello Pavel, > > On 06/09/16 21:48, Pavel Pisa wrote: > > Hello Sebastian, > > > > On Tuesday 06 of September 2016 20:33:08 Sebastian Huber wrote: > >> The interrupt locks are simple interrupt disable/enable or sp

Re: [PATCH 11 minor addeum] arm/raspberrypi: GPIO - using RTEMS interrupt lock during BSP

2016-09-06 Thread Sebastian Huber
Hello Pavel, On 06/09/16 21:48, Pavel Pisa wrote: Hello Sebastian, On Tuesday 06 of September 2016 20:33:08 Sebastian Huber wrote: The interrupt locks are simple interrupt disable/enable or spin locks. So, they always work. Allmost, on UP they are simple local IRQ disable. But on SMP they are

Re: Rework thread priority management

2016-09-06 Thread Sebastian Huber
The new thread priority data structures are: /** * @brief The priority node to build up a priority aggregation. */ typedef struct { /** * @brief Node component for a chain or red-black tree. */ union { Chain_Node Chain; RBTree_Node RBTree; } Node; /** * @brief The prio

[PATCH 2/2] testsuite: Add libdl/dl05 reloc test.

2016-09-06 Thread Chris Johns
--- testsuites/libtests/Makefile.am |2 +- testsuites/libtests/configure.ac |1 + testsuites/libtests/dl05/Makefile.am | 50 ++ testsuites/libtests/dl05/dl-cpp.cpp | 14 + testsuites/libtests/dl05/dl-load.c | 47 ++ testsuites/libtests/dl05/dl-load.h | 25 + testsuite

[PATCH 1/2] libdl: Add ARM C++ relocation record support.

2016-09-06 Thread Chris Johns
Closes #2767 --- cpukit/libdl/include/arch/arm/machine/elf_machdep.h | 3 ++- cpukit/libdl/rtl-mdreloc-arm.c | 17 - 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/cpukit/libdl/include/arch/arm/machine/elf_machdep.h b/cpukit/libdl/include/arc

Re: Rework thread priority management

2016-09-06 Thread Gedare Bloom
I will try to read this code, but probably not until Friday. One question from the high-level description, can you clarify what "aggregation" means? Maybe this comes clear in one of the patches. Gedare On Tue, Sep 6, 2016 at 8:40 AM, Sebastian Huber wrote: > This patch set reworks the thread pr

Re: [PATCH 11 minor addeum] arm/raspberrypi: GPIO - using RTEMS interrupt lock during BSP

2016-09-06 Thread Pavel Pisa
Hello Sebastian, On Tuesday 06 of September 2016 20:33:08 Sebastian Huber wrote: > The interrupt locks are simple interrupt disable/enable or spin locks. So, > they always work. Allmost, on UP they are simple local IRQ disable. But on SMP they are spinlock combined with IRQ disable. But spinlock

Re: [PATCH 11 minor addeum] arm/raspberrypi: GPIO - using RTEMS interrupt lock during BSP

2016-09-06 Thread Sebastian Huber
The interrupt locks are simple interrupt disable/enable or spin locks. So, they always work. - Pavel Pisa schrieb: > > Locking can be used only when RTEMS reaches multitasking state > _System_state_Is_up( _System_state_Get() ) > --- > c/src/lib/libbsp/arm/raspberrypi/gpio/rpi-gpio.c | 14

[PATCH 11 minor addeum] arm/raspberrypi: GPIO - using RTEMS interrupt lock during BSP

2016-09-06 Thread Pavel Pisa
Locking can be used only when RTEMS reaches multitasking state _System_state_Is_up( _System_state_Get() ) --- c/src/lib/libbsp/arm/raspberrypi/gpio/rpi-gpio.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/c/src/lib/libbsp/arm/raspberrypi/gpio/rpi-gpio.c b/

[PATCH 7/8] score: Introduce _Thread_Get_priority()

2016-09-06 Thread Sebastian Huber
Avoid direct access to thread internal data fields. --- cpukit/libmisc/capture/capture.h | 2 +- cpukit/libmisc/cpuuse/cpuusagetop.c| 8 ++-- cpukit/libmisc/monitor/mon-task.c | 2 +- cpukit/posix/src/killinfo.c

[PATCH 3/8] score: Optimize thread queue enqueue

2016-09-06 Thread Sebastian Huber
Optimize the enqueue to empty thread queue case. --- cpukit/score/src/threadqops.c | 47 +++ 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/cpukit/score/src/threadqops.c b/cpukit/score/src/threadqops.c index 41506bf..1545f29 100644 --- a/cpu

[PATCH 6/8] score: Add scheduler node implementation header

2016-09-06 Thread Sebastian Huber
Update #2556. --- cpukit/score/Makefile.am | 1 + cpukit/score/include/rtems/score/schedulerimpl.h | 100 --- cpukit/score/include/rtems/score/schedulernode.h | 6 - .../score/include/rtems/score/schedulernodeimpl.h | 134 + cpukit

[PATCH 5/8] score: Move thread wait node to scheduler node

2016-09-06 Thread Sebastian Huber
Update #2556. --- cpukit/posix/src/killinfo.c | 5 +- cpukit/score/include/rtems/score/schedulerimpl.h | 17 +- cpukit/score/include/rtems/score/schedulernode.h | 40 - cpukit/score/include/rtems/score/thread.h| 217 +++ cpukit/score/include

[PATCH 4/8] score: Move scheduler node to own header file

2016-09-06 Thread Sebastian Huber
This makes it possible to add scheduler nodes to structures defined in . Update #2556. --- cpukit/score/Makefile.am | 1 + cpukit/score/include/rtems/score/scheduler.h | 159 --- cpukit/score/include/rtems/score/schedulernode.h | 188 +

Rework thread priority management

2016-09-06 Thread Sebastian Huber
This patch set reworks the thread priority management. The main goals are 1. an enhanced implementation of the priority inheritance protocol, and 2. support for the OMIP locking protocol. Instead of the current and real priority values in combination with the resource count use thread priority

[PATCH 1/8] score: Simplify thread queue acquire/release

2016-09-06 Thread Sebastian Huber
--- cpukit/posix/include/rtems/posix/condimpl.h| 7 ++-- cpukit/posix/include/rtems/posix/psignalimpl.h | 10 ++ cpukit/rtems/src/semdelete.c | 4 +-- cpukit/rtems/src/semflush.c| 4 +-- cpukit/rtems/src/semsetpriority.c

[PATCH 2/8] score: Introduce Thread_queue_Lock_context

2016-09-06 Thread Sebastian Huber
Introduce Thread_queue_Lock_context to contain the context necessary for thread queue lock and thread wait lock acquire/release operations to reduce the Thread_Control size. --- cpukit/libnetworking/rtems/rtems_glue.c | 4 +- cpukit/posix/include/rtems/posix/barrierimpl.h | 2 +- cp

Re: [PATCH v3 1/7] Imported files for driver: bcm283x_dwcotg

2016-09-06 Thread Sebastian Huber
Hello Deval, please rebase your patches to the latest libbsd version which uses: == FreeBSD version of imported files and directories . sys/dev/dwc/*, trunk, 2015-03-26, cfc3df2b8f708ce8494d9d556e3472a5c8c21b8a . sys/dev/mmc/*, trunk, 2016-08-23, 9fe7c416e6abb28b1398fd3e5687099846800cfd . sys/d

Re: RPi SD card Driver

2016-09-06 Thread Sebastian Huber
Hello Mudit, your patch set looks quite good in general. Could you please remove the superfluous white space additions and guard all changes with the __rtems__ markers. Please add the import versions of your new files to the "FreeBSD version of imported files and directories" libbsd.txt sectio

[PATCH 1/2] bsp/atsam: Move ram init values to structure.

2016-09-06 Thread Christian Mauderer
From: Christian Mauderer --- c/src/lib/libbsp/arm/atsam/Makefile.am | 1 + .../libraries/libboard/include/board_memories.h| 10 +++ .../libraries/libboard/source/board_memories.c | 13 + c/src/lib/libbsp/arm/atsam/startup/ram-config.c| 34

[PATCH 2/2] bsp/atsam: Add SDRAM IS42S16320F-7BL.

2016-09-06 Thread Christian Mauderer
From: Christian Mauderer --- c/src/lib/libbsp/arm/atsam/configure.ac | 12 +++- c/src/lib/libbsp/arm/atsam/startup/ram-config.c | 41 + 2 files changed, 52 insertions(+), 1 deletion(-) diff --git a/c/src/lib/libbsp/arm/atsam/configure.ac b/c/src/lib/libbsp/a

atsam-bsp: Allow to use different SDRAM

2016-09-06 Thread Christian Mauderer
Hello, this patch set allows to use a different SDRAM in the atsam BSP. Similar to the CPU, the SDRAM-type can be selected using a --enable-sdram=xxx configure option. Kind regards Christian Mauderer ___ devel mailing list devel@rtems.org http://lists