[lng-odp] [API-NEXT PATCH 03/14] linux-gen: use ishm as north API mem allocator

2016-10-07 Thread Christophe Milard
-by: Christophe Milard --- platform/linux-generic/include/odp_internal.h | 5 - platform/linux-generic/odp_init.c | 19 - platform/linux-generic/odp_shared_memory.c | 405 ++--- .../validation/api/shmem/shmem_linux.c | 23 +- 4 files

[lng-odp] [API-NEXT PATCH 09/14] api: shmem: add flag and function to share memory between ODP instances

2016-10-07 Thread Christophe Milard
). Signed-off-by: Christophe Milard --- include/odp/api/spec/shared_memory.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/include/odp/api/spec/shared_memory.h b/include/odp/api/spec/shared_memory.h index fe683d4..1b4d068 100644 --- a/include/odp/api/spec/shared_memory.h

[lng-odp] [API-NEXT PATCH 06/14] api: shm: add flag to lock memory

2016-10-07 Thread Christophe Milard
The ODP_SHM_LOCK flag is created: when set (at odp_shm_reserve()), this flag locks the reserved memory (prevent swapping) Signed-off-by: Christophe Milard --- include/odp/api/spec/shared_memory.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/odp/api/spec/shared_memory.h b/include

[lng-odp] [API-NEXT PATCH 04/14] api: shm: add flag to guarantee address unicity on all ODP threads

2016-10-07 Thread Christophe Milard
The ODP_SHM_SINGLE_VA flag is created: when set (at odp_shm_reserve()), this flag guarantees that all ODP threads sharing this memory block will see the block at the same address (regadless of ODP thread type -pthread vs process- or fork time) Signed-off-by: Christophe Milard --- include/odp

[lng-odp] [API-NEXT PATCH 07/14] linux-gen: shm: new ODP_SHM_LOCK flag implementation

2016-10-07 Thread Christophe Milard
The flag locks the allocated memory (prevent swapping) The patch just exposes the _ODP_ISHM_LOCK flag of the internal memory allocator, ishm. Signed-off-by: Christophe Milard --- platform/linux-generic/odp_shared_memory.c | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/linux

[lng-odp] [API-NEXT PATCH 02/14] linux-gen: _ishm: allow memory alloc/free at global init/term

2016-10-07 Thread Christophe Milard
for the main process, hence making the ishm_reserve() and ishm_free() functions available at init_global/term_global time. Signed-off-by: Christophe Milard --- platform/linux-generic/_ishm.c | 189 + 1 file changed, 118 insertions(+), 71 deletions(-) diff

[lng-odp] [API-NEXT PATCH 05/14] linux-gen: shm: new ODP_SHM_SINGLE_VA flag implementation

2016-10-07 Thread Christophe Milard
This flag guarentess the unicity the the block address on all ODP threads. The patch just exposes the _ODP_ISHM_SINGLE_VA flag of the internal memory allocator, ishm. Signed-off-by: Christophe Milard --- platform/linux-generic/odp_shared_memory.c | 1 + 1 file changed, 1 insertion(+) diff

[lng-odp] [API-NEXT PATCH 01/14] linux-gen: _ishm: create link for external memory sharing

2016-10-07 Thread Christophe Milard
er in /tmp or in hugetlbfs). This link is meant to be used by processes external to ODP willing to share this memory. Signed-off-by: Christophe Milard --- platform/linux-generic/_ishm.c | 35 +++-- platform/linux-generic/include/_ishm_internal.h | 1 + 2 fil

[lng-odp] [API-NEXT PATCH 00/14] using _ishm as north API mem allocator

2016-10-07 Thread Christophe Milard
of more than 2 ODP anyway, as far as I can see...which makes it rather limited. I have included in this patch series a function to share memory between designated ODP instances. If we want to have IPC, it should use that, and that would allow chaining. Something to discuss at the next ARCH call, may

Re: [lng-odp] [PATCH] linux-gen: using ODP instantiation pid as odp instance

2016-10-04 Thread Christophe Milard
Ping. This has been reviewed and agreed at ARCH call. Any reason not to merge? Christophe On 20 September 2016 at 04:34, Bill Fischofer wrote: > > > On Mon, Sep 19, 2016 at 10:56 AM, Christophe Milard > wrote: >> >> Rather than using INSTANCE_ID (constant 0

Re: [lng-odp] RFC: packet interface to drivers

2016-09-22 Thread Christophe Milard
On 21 September 2016 at 17:55, Bill Fischofer wrote: > > > > On Tue, Sep 20, 2016 at 10:16 AM, Christophe Milard > wrote: >> >> >> >> On 20 September 2016 at 16:01, Bill Fischofer >> wrote: >>> >>> >>> >>

Re: [lng-odp] RFC: packet interface to drivers

2016-09-20 Thread Christophe Milard
On 20 September 2016 at 16:01, Bill Fischofer wrote: > > > On Tue, Sep 20, 2016 at 8:30 AM, Christophe Milard < > christophe.mil...@linaro.org> wrote: > >> Hi, >> >> I am here trying to make a summary of what is needed by the driver >> interface &g

[lng-odp] RFC: packet interface to drivers

2016-09-20 Thread Christophe Milard
Hi, I am here trying to make a summary of what is needed by the driver interface regarding odp packet handling. Will serve as the base for the discussions at connect. Please read and comment... possibly at connect... /Christophe >From the driver perspective, the situation is rather simple: what

[lng-odp] [PATCH] linux-gen: using ODP instantiation pid as odp instance

2016-09-19 Thread Christophe Milard
Rather than using INSTANCE_ID (constant 0xdeadbeef), the ODP main instantiation process ID is used as instance ID in the linux-generic implementation. This is a simple way to guarantee instance uniqueness on linux systems. Signed-off-by: Christophe Milard --- platform/linux-generic/include

Re: [lng-odp] [API-NEXT PATCHv2] linux-generic: _fdserver: allocating data table dynamicaly

2016-09-13 Thread Christophe Milard
hat can be considered > later if needed. > > On Tue, Sep 13, 2016 at 7:40 AM, Christophe Milard < > christophe.mil...@linaro.org> wrote: > >> The table containing the saved file-descriptors<->{context, key} couples >> is >> now dynamically malloc'd in t

[lng-odp] [API-NEXT PATCHv2] linux-generic: _fdserver: allocating data table dynamicaly

2016-09-13 Thread Christophe Milard
The table containing the saved file-descriptors<->{context, key} couples is now dynamically malloc'd in the fd server process, hence avoiding the memory waste which happened in other process when the table was staticaly reserved in all processes. Signed-off-by: Christophe Milard --

Re: [lng-odp] [API-NEXT PATCH] linux-generic: _fdserver: allocating data table dynamicaly

2016-09-13 Thread Christophe Milard
of course... :-)... It really should be freed at exit only, But I agree, that should be explicit. will send a v2! On 13 September 2016 at 13:25, Bill Fischofer wrote: > > > On Tue, Sep 13, 2016 at 4:47 AM, Christophe Milard < > christophe.mil...@linaro.org> wrote: > >&g

[lng-odp] [API-NEXT PATCH] linux-generic: _fdserver: fixing comment typo

2016-09-13 Thread Christophe Milard
Signed-off-by: Christophe Milard --- platform/linux-generic/_fdserver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/_fdserver.c b/platform/linux-generic/_fdserver.c index bf36eb2..97661d0 100644 --- a/platform/linux-generic/_fdserver.c +++ b

[lng-odp] [API-NEXT PATCH] linux-generic: _fdserver: allocating data table dynamicaly

2016-09-13 Thread Christophe Milard
The table containing the saved file-descriptors<->{context, key} couples is now dynamically malloc'd in the fd server process, hence avoiding the memory waste which happened in other process when the table was staticaly reserved in all processes. Signed-off-by: Christophe Milard --

[lng-odp] [API-NEXT PATCHv3 13/13] test: validation: drv: shmem: stress tests

2016-08-20 Thread Christophe Milard
Stress tests, randomly allocating memory are added: the test is based on a group of odp threads allocating, mapping and freeing each-other memory. Signed-off-by: Christophe Milard --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 222 + .../common_plat/validation/drv

[lng-odp] [API-NEXT PATCHv3 12/13] test: validation: drv: shmem: testing SINGLE_VA flag

2016-08-20 Thread Christophe Milard
Basic test for different drvshm_reserve() time in conjunction with the usage of SINGLE_VA flag is added. Signed-off-by: Christophe Milard --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 221 + .../common_plat/validation/drv/drvshmem/drvshmem.h | 1 + 2 files

[lng-odp] [API-NEXT PATCHv3 08/13] linux-gen: ishm: internal shared memory allocator (ishm) added

2016-08-20 Thread Christophe Milard
processes and regardless of fork time), when the required _ODP_ISHM_SINGLE_VA flag is used. Signed-off-by: Christophe Milard --- platform/linux-generic/Makefile.am |4 + platform/linux-generic/_ishm.c | 1335 platform/linux-generic

[lng-odp] [API-NEXT PATCHv3 11/13] test: validation: drv: shmem: basic tests

2016-08-20 Thread Christophe Milard
reservation occurs both before and after odpthread creation here). Signed-off-by: Christophe Milard --- test/common_plat/m4/configure.m4 | 3 +- test/common_plat/validation/drv/Makefile.am| 3 +- .../common_plat/validation/drv/drvshmem/.gitignore | 1

[lng-odp] [API-NEXT PATCHv3 10/13] linux-gen: drv: shm

2016-08-20 Thread Christophe Milard
The shared memory DRV interface is created, mostly as a wrapper around the internal memory allocator, ishm. Signed-off-by: Christophe Milard --- include/odp_drv.h | 1 + platform/linux-generic/Makefile.am | 3 + platform/linux-generic/_ishm.c

[lng-odp] [API-NEXT PATCHv3 09/13] linux-gen: ishm: adding debug function

2016-08-20 Thread Christophe Milard
A debug function, printing the internal mem alloc status is added. Signed-off-by: Christophe Milard --- platform/linux-generic/_ishm.c | 125 platform/linux-generic/include/_ishm_internal.h | 1 + 2 files changed, 126 insertions(+) diff --git a

[lng-odp] [API-NEXT PATCHv3 06/13] linux-gen: fdserver: new fdserver added

2016-08-20 Thread Christophe Milard
igned-off-by: Christophe Milard --- platform/linux-generic/Makefile.am | 2 + platform/linux-generic/_fdserver.c | 655 + .../linux-generic/include/_fdserver_internal.h | 38 ++ platform/linux-generic/include/odp_internal.h

[lng-odp] [API-NEXT PATCHv3 07/13] linux-generic: system_info: adding huge page dir

2016-08-20 Thread Christophe Milard
The Huge page information is separated and a function to get the huge page mount directory is added. This function is called at init so the information is available later on. Signed-off-by: Christophe Milard --- platform/linux-generic/include/odp_internal.h | 7 +- platform/linux-generic

[lng-odp] [API-NEXT PATCHv3 05/13] drv: adding shared memory

2016-08-20 Thread Christophe Milard
The public definition of the shared memory allocator for the driver interface is added. Signed-off-by: Christophe Milard --- include/odp/drv/spec/shm.h | 231 + platform/Makefile.inc | 1 + 2 files changed, 232 insertions(+) create mode 100644

[lng-odp] [API-NEXT PATCHv3 04/13] linux-generic: drv: strong typing

2016-08-20 Thread Christophe Milard
Mirrored from its couterpart on the api interface, the drv interface gets its strong typing file. Signed-off-by: Christophe Milard --- platform/linux-generic/Makefile.am | 3 +- .../include/odp/drv/plat/strong_types.h| 35 ++ 2 files changed, 37

[lng-odp] [API-NEXT PATCHv3 03/13] linux-gen: drv: adding barrier

2016-08-20 Thread Christophe Milard
Based on API interface files. Signed-off-by: Christophe Milard --- include/odp_drv.h | 1 + platform/linux-generic/Makefile.am | 3 ++ platform/linux-generic/drv_barrier.c | 50 ++ platform/linux-generic

[lng-odp] [API-NEXT PATCHv3 02/13] drv: adding barrier.h

2016-08-20 Thread Christophe Milard
Based on API interface file. Signed-off-by: Christophe Milard --- include/odp/drv/spec/barrier.h | 66 ++ platform/Makefile.inc | 1 + 2 files changed, 67 insertions(+) create mode 100644 include/odp/drv/spec/barrier.h diff --git a/include/odp

[lng-odp] [API-NEXT PATCHv3 01/13] linux-gen: cosmetic changes on barrier

2016-08-20 Thread Christophe Milard
To please check-patch before the copy to the drv interface. Signed-off-by: Christophe Milard --- include/odp/api/spec/barrier.h | 2 -- platform/linux-generic/include/odp/api/plat/barrier_types.h | 1 - platform/linux-generic/odp_barrier.c| 2

[lng-odp] [API-NEXT PATCHv3 00/13] drv shared memory allocator

2016-08-20 Thread Christophe Milard
r process mode (using the usual --odph_proc flag) Thanks for reading so far... and happy review! Christophe *** BLURB HERE *** Christophe Milard (13): linux-gen: cosmetic changes on barrier drv: adding barrier.h linux-gen: drv: adding barrier linux-generic: drv: strong typing drv:

Re: [lng-odp] [API-NEXT PATCH 00/13] drv shared memory allocated

2016-08-19 Thread Christophe Milard
.10.1.0.git151.ga52267b/_ > build/sub/test/linux-generic' > Makefile:736: recipe for target 'check-recursive' failed > make[3]: *** [check-recursive] Error 1 > make[3]: Leaving directory '/home/bill/linaro/check-odp/ > build/odp-apply/opendataplane-1.10.1.0.git151.ga5

[lng-odp] [API-NEXT PATCHv3] drv: byteorder: added bitfield order

2016-08-19 Thread Christophe Milard
mostly to keep the symmetry with the API side Signed-off-by: Christophe Milard --- include/odp/drv/spec/byteorder.h | 3 +++ platform/linux-generic/include/odp/drv/plat/byteorder_types.h | 10 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git

Re: [lng-odp] [API-NEXT PATCHv2] drv: byteorder: added bitfield order

2016-08-19 Thread Christophe Milard
God! I am just blind... sorry. sending a V3 On 19 August 2016 at 22:47, Bill Fischofer wrote: > > > On Fri, Aug 19, 2016 at 1:17 PM, Christophe Milard < > christophe.mil...@linaro.org> wrote: > >> mostly to keep the symmetry with the API side >> &g

Re: [lng-odp] [API-NEXT PATCH 00/13] drv shared memory allocated

2016-08-19 Thread Christophe Milard
shmem_main'. > Program terminated with signal SIGSEGV, Segmentation fault. > #0 0x0804c10b in run_test_stress (arg=0xbf8662b0) at drvshmem.c:683 > 683 CU_ASSERT(address[i] == (data & 0xFF)); > [Current thread is 1 (Thread 0x96959b40 (LWP 15773))] > (gdb) bt > #0

[lng-odp] [API-NEXT PATCHv2] drv: byteorder: added bitfield order

2016-08-19 Thread Christophe Milard
mostly to keep the symmetry with the API side Signed-off-by: Christophe Milard --- include/odp/drv/spec/byteorder.h | 3 +++ platform/linux-generic/include/odp/drv/plat/byteorder_types.h | 10 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git

[lng-odp] [API-NEXT PATCHv2 08/13] linux-gen: ishm: internal shared memory allocator (ishm) added

2016-08-19 Thread Christophe Milard
processes and regardless of fork time), when the required _ODP_ISHM_SINGLE_VA flag is used. Signed-off-by: Christophe Milard --- platform/linux-generic/Makefile.am |4 + platform/linux-generic/_ishm.c | 1336 platform/linux-generic

[lng-odp] [API-NEXT PATCHv2 13/13] test: validation: drv: shmem: stress tests

2016-08-19 Thread Christophe Milard
Stress tests, randomly allocating memory are added: the test is based on a group of odp threads allocating, mapping and freeing each-other memory. Signed-off-by: Christophe Milard --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 222 + .../common_plat/validation/drv

[lng-odp] [API-NEXT PATCHv2 11/13] test: validation: drv: shmem: basic tests

2016-08-19 Thread Christophe Milard
reservation occurs both before and after odpthread creation here). Signed-off-by: Christophe Milard --- test/common_plat/m4/configure.m4 | 3 +- test/common_plat/validation/drv/Makefile.am| 3 +- .../common_plat/validation/drv/drvshmem/.gitignore | 1

[lng-odp] [API-NEXT PATCHv2 12/13] test: validation: drv: shmem: testing SINGLE_VA flag

2016-08-19 Thread Christophe Milard
Basic test for different drvshm_reserve() time in conjunction with the usage of SINGLE_VA flag is added. Signed-off-by: Christophe Milard --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 221 + .../common_plat/validation/drv/drvshmem/drvshmem.h | 1 + 2 files

[lng-odp] [API-NEXT PATCHv2 10/13] linux-gen: drv: shm

2016-08-19 Thread Christophe Milard
The shared memory DRV interface is created, mostly as a wrapper around the internal memory allocator, ishm. Signed-off-by: Christophe Milard --- include/odp_drv.h | 1 + platform/linux-generic/Makefile.am | 3 + platform/linux-generic/_ishm.c

[lng-odp] [API-NEXT PATCHv2 06/13] linux-gen: fdserver: new fdserver added

2016-08-19 Thread Christophe Milard
igned-off-by: Christophe Milard --- platform/linux-generic/Makefile.am | 2 + platform/linux-generic/_fdserver.c | 655 + .../linux-generic/include/_fdserver_internal.h | 38 ++ platform/linux-generic/include/odp_internal.h

[lng-odp] [API-NEXT PATCHv2 07/13] linux-generic: system_info: adding huge page dir

2016-08-19 Thread Christophe Milard
The Huge page information is separated and a function to get the huge page mount directory is added. This function is called at init so the information is available later on. Signed-off-by: Christophe Milard --- platform/linux-generic/include/odp_internal.h | 7 +- platform/linux-generic

[lng-odp] [API-NEXT PATCHv2 09/13] linux-gen: ishm: adding debug function

2016-08-19 Thread Christophe Milard
A debug function, printing the internal mem alloc status is added. Signed-off-by: Christophe Milard --- platform/linux-generic/_ishm.c | 125 platform/linux-generic/include/_ishm_internal.h | 1 + 2 files changed, 126 insertions(+) diff --git a

[lng-odp] [API-NEXT PATCHv2 05/13] drv: adding shared memory

2016-08-19 Thread Christophe Milard
The public definition of the shared memory allocator for the driver interface is added. Signed-off-by: Christophe Milard --- include/odp/drv/spec/shm.h | 231 + platform/Makefile.inc | 1 + 2 files changed, 232 insertions(+) create mode 100644

[lng-odp] [API-NEXT PATCHv2 04/13] linux-generic: drv: strong typing

2016-08-19 Thread Christophe Milard
Mirrored from its couterpart on the api interface, the drv interface gets its strong typing file. Signed-off-by: Christophe Milard --- platform/linux-generic/Makefile.am | 3 +- .../include/odp/drv/plat/strong_types.h| 35 ++ 2 files changed, 37

[lng-odp] [API-NEXT PATCHv2 03/13] linux-gen: drv: adding barrier

2016-08-19 Thread Christophe Milard
Based on API interface files. Signed-off-by: Christophe Milard --- include/odp_drv.h | 1 + platform/linux-generic/Makefile.am | 3 ++ platform/linux-generic/drv_barrier.c | 50 ++ platform/linux-generic

[lng-odp] [API-NEXT PATCHv2 02/13] drv: adding barrier.h

2016-08-19 Thread Christophe Milard
Based on API interface file. Signed-off-by: Christophe Milard --- include/odp/drv/spec/barrier.h | 66 ++ platform/Makefile.inc | 1 + 2 files changed, 67 insertions(+) create mode 100644 include/odp/drv/spec/barrier.h diff --git a/include/odp

[lng-odp] [API-NEXT PATCHv2 01/13] linux-gen: cosmetic changes on barrier

2016-08-19 Thread Christophe Milard
To please check-patch before the copy to the drv interface. Signed-off-by: Christophe Milard --- include/odp/api/spec/barrier.h | 2 -- platform/linux-generic/include/odp/api/plat/barrier_types.h | 1 - platform/linux-generic/odp_barrier.c| 2

[lng-odp] [API-NEXT PATCHv2 00/13] drv shared memory allocator

2016-08-19 Thread Christophe Milard
comes the definition a a series of tests to test the driver interface shared memory. These tests are runnable in thread or process mode (using the usual --odph_proc flag) Thanks for reading so far... and happy review! Christophe Christophe Milard (13): linux-gen: cosmetic changes on barrier drv

[lng-odp] [API-NEXT PATCH 08/13] linux-gen: ishm: internal shared memory allocator (ishm) added

2016-08-19 Thread Christophe Milard
processes and regardless of fork time), when the required _ODP_ISHM_SINGLE_VA flag is used. Signed-off-by: Christophe Milard --- platform/linux-generic/Makefile.am |4 + platform/linux-generic/_ishm.c | 1336 platform/linux-generic

[lng-odp] [API-NEXT PATCH 10/13] linux-gen: drv: shm

2016-08-19 Thread Christophe Milard
The shared memory DRV interface is created, mostly as a wrapper around the internal memory allocator, ishm. Signed-off-by: Christophe Milard --- include/odp_drv.h | 1 + platform/linux-generic/Makefile.am | 3 + platform/linux-generic/_ishm.c

[lng-odp] [API-NEXT PATCH 04/13] linux-generic: drv: strong typing

2016-08-19 Thread Christophe Milard
Mirrored from its couterpart on the api interface, the drv interface gets its strong typing file. Signed-off-by: Christophe Milard --- platform/linux-generic/Makefile.am | 3 +- .../include/odp/drv/plat/strong_types.h| 35 ++ 2 files changed, 37

[lng-odp] [API-NEXT PATCH 03/13] linux-gen: drv: adding barrier

2016-08-19 Thread Christophe Milard
Based on API interface files. Signed-off-by: Christophe Milard --- include/odp_drv.h | 1 + platform/linux-generic/Makefile.am | 3 ++ platform/linux-generic/drv_barrier.c | 50 ++ platform/linux-generic

[lng-odp] [API-NEXT PATCH 02/13] drv: adding barrier.h

2016-08-19 Thread Christophe Milard
Based on API interface file. Signed-off-by: Christophe Milard --- include/odp/drv/spec/barrier.h | 66 ++ platform/Makefile.inc | 1 + 2 files changed, 67 insertions(+) create mode 100644 include/odp/drv/spec/barrier.h diff --git a/include/odp

[lng-odp] [API-NEXT PATCH 06/13] linux-gen: fdserver: new fdserver added

2016-08-19 Thread Christophe Milard
igned-off-by: Christophe Milard --- platform/linux-generic/Makefile.am | 2 + platform/linux-generic/_fdserver.c | 655 + .../linux-generic/include/_fdserver_internal.h | 38 ++ platform/linux-generic/include/odp_internal.h

[lng-odp] [API-NEXT PATCH 00/13] drv shared memory allocated

2016-08-19 Thread Christophe Milard
er interface shared memory. These tests are runnable in thread or process mode (using the usual --odph_proc flag) Thanks for reading so far... and happy review! Christophe Christophe Milard (13): linux-gen: cosmetic changes on barrier drv: adding barrier.h linux-gen: drv: adding barrie

[lng-odp] [API-NEXT PATCH 09/13] linux-gen: ishm: adding debug function

2016-08-19 Thread Christophe Milard
A debug function, printing the internal mem alloc status is added. Signed-off-by: Christophe Milard --- platform/linux-generic/_ishm.c | 125 platform/linux-generic/include/_ishm_internal.h | 1 + 2 files changed, 126 insertions(+) diff --git a

[lng-odp] [API-NEXT PATCH 07/13] linux-generic: system_info: adding huge page dir

2016-08-19 Thread Christophe Milard
The Huge page information is separated and a function to get the huge page mount directory is added. This function is called at init so the information is available later on. Signed-off-by: Christophe Milard --- platform/linux-generic/include/odp_internal.h | 7 +- platform/linux-generic

[lng-odp] [API-NEXT PATCH 05/13] drv: adding shared memory

2016-08-19 Thread Christophe Milard
The public definition of the shared memory allocator for the driver interface is added. Signed-off-by: Christophe Milard --- include/odp/drv/spec/shm.h | 231 + platform/Makefile.inc | 1 + 2 files changed, 232 insertions(+) create mode 100644

[lng-odp] [API-NEXT PATCH 01/13] linux-gen: cosmetic changes on barrier

2016-08-19 Thread Christophe Milard
To please check-patch before the copy to the drv interface. Signed-off-by: Christophe Milard --- include/odp/api/spec/barrier.h | 2 -- platform/linux-generic/include/odp/api/plat/barrier_types.h | 1 - platform/linux-generic/odp_barrier.c| 2

[lng-odp] [API-NEXT PATCH 08/13] linux-gen: ishm: internal shared memory allocator (ishm) added

2016-08-19 Thread Christophe Milard
processes and regardless of fork time), when the required _ODP_ISHM_SINGLE_VA flag is used. Signed-off-by: Christophe Milard --- platform/linux-generic/Makefile.am |4 + platform/linux-generic/_ishm.c | 1336 platform/linux-generic

[lng-odp] [API-NEXT PATCH 13/13] test: validation: drv: shmem: stress tests

2016-08-19 Thread Christophe Milard
Stress tests, randomly allocating memory are added: the test is based on a group of odp threads allocating, mapping and freeing each-other memory. Signed-off-by: Christophe Milard --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 222 + .../common_plat/validation/drv

[lng-odp] [API-NEXT PATCH 06/13] linux-gen: fdserver: new fdserver added

2016-08-19 Thread Christophe Milard
igned-off-by: Christophe Milard --- platform/linux-generic/Makefile.am | 2 + platform/linux-generic/_fdserver.c | 655 + .../linux-generic/include/_fdserver_internal.h | 38 ++ platform/linux-generic/include/odp_internal.h

[lng-odp] [API-NEXT PATCH 12/13] test: validation: drv: shmem: testing SINGLE_VA flag

2016-08-19 Thread Christophe Milard
Basic test for different drvshm_reserve() time in conjunction with the usage of SINGLE_VA flag is added. Signed-off-by: Christophe Milard --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 221 + .../common_plat/validation/drv/drvshmem/drvshmem.h | 1 + 2 files

[lng-odp] [API-NEXT PATCH 11/13] test: validation: drv: shmem: basic tests

2016-08-19 Thread Christophe Milard
reservation occurs both before and after odpthread creation here). Signed-off-by: Christophe Milard --- test/common_plat/m4/configure.m4 | 3 +- test/common_plat/validation/drv/Makefile.am| 3 +- .../common_plat/validation/drv/drvshmem/.gitignore | 1

[lng-odp] [API-NEXT PATCH 10/13] linux-gen: drv: shm

2016-08-19 Thread Christophe Milard
The shared memory DRV interface is created, mostly as a wrapper around the internal memory allocator, ishm. Signed-off-by: Christophe Milard --- include/odp_drv.h | 1 + platform/linux-generic/Makefile.am | 3 + platform/linux-generic/_ishm.c

[lng-odp] [API-NEXT PATCH 09/13] linux-gen: ishm: adding debug function

2016-08-19 Thread Christophe Milard
A debug function, printing the internal mem alloc status is added. Signed-off-by: Christophe Milard --- platform/linux-generic/_ishm.c | 125 platform/linux-generic/include/_ishm_internal.h | 1 + 2 files changed, 126 insertions(+) diff --git a

[lng-odp] [API-NEXT PATCH 07/13] linux-generic: system_info: adding huge page dir

2016-08-19 Thread Christophe Milard
The Huge page information is separated and a function to get the huge page mount directory is added. This function is called at init so the information is available later on. Signed-off-by: Christophe Milard --- platform/linux-generic/include/odp_internal.h | 7 +- platform/linux-generic

[lng-odp] [API-NEXT PATCH 05/13] drv: adding shared memory

2016-08-19 Thread Christophe Milard
The public definition of the shared memory allocator for the driver interface is added. Signed-off-by: Christophe Milard --- include/odp/drv/spec/shm.h | 231 + platform/Makefile.inc | 1 + 2 files changed, 232 insertions(+) create mode 100644

[lng-odp] [API-NEXT PATCH 04/13] linux-generic: drv: strong typing

2016-08-19 Thread Christophe Milard
Mirrored from its couterpart on the api interface, the drv interface gets its strong typing file. Signed-off-by: Christophe Milard --- platform/linux-generic/Makefile.am | 3 +- .../include/odp/drv/plat/strong_types.h| 35 ++ 2 files changed, 37

[lng-odp] [API-NEXT PATCH 03/13] linux-gen: drv: adding barrier

2016-08-19 Thread Christophe Milard
Based on API interface files. Signed-off-by: Christophe Milard --- include/odp_drv.h | 1 + platform/linux-generic/Makefile.am | 3 ++ platform/linux-generic/drv_barrier.c | 50 ++ platform/linux-generic

[lng-odp] [API-NEXT PATCH 02/13] drv: adding barrier.h

2016-08-19 Thread Christophe Milard
Based on API interface file. Signed-off-by: Christophe Milard --- include/odp/drv/spec/barrier.h | 66 ++ platform/Makefile.inc | 1 + 2 files changed, 67 insertions(+) create mode 100644 include/odp/drv/spec/barrier.h diff --git a/include/odp

[lng-odp] [API-NEXT PATCH 00/13] drv shared memory allocated

2016-08-19 Thread Christophe Milard
er interface shared memory. These tests are runnable in thread or process mode (using the usual --odph_proc flag) Thanks for reading so far... and happy review! Christophe Christophe Milard (13): linux-gen: cosmetic changes on barrier drv: adding barrier.h linux-gen: drv: adding barrie

[lng-odp] [API-NEXT PATCH 01/13] linux-gen: cosmetic changes on barrier

2016-08-19 Thread Christophe Milard
To please check-patch before the copy to the drv interface. Signed-off-by: Christophe Milard --- include/odp/api/spec/barrier.h | 2 -- platform/linux-generic/include/odp/api/plat/barrier_types.h | 1 - platform/linux-generic/odp_barrier.c| 2

Re: [lng-odp] [API-NEXT PATCH 13/13] test: validation: drv: shmem: stress tests

2016-08-19 Thread Christophe Milard
Fischofer wrote: > This test appears to require that it be run with sudo. Is that > intentional? If so that should be well documented. > > On Fri, Aug 19, 2016 at 10:48 AM, Christophe Milard < > christophe.mil...@linaro.org> wrote: > >> Stress tests, randomly allocating

Re: [lng-odp] [API-NEXT PATCH 08/13] linux-gen: ishm: internal shared memory allocator (ishm) added

2016-08-19 Thread Christophe Milard
ssues against this module (as well as > _fdserver.c). These should be addressed now rather than later: > > On Fri, Aug 19, 2016 at 10:48 AM, Christophe Milard < > christophe.mil...@linaro.org> wrote: > >> A new ODP internal memory allocator, called ishm (for internal shme

[lng-odp] [API-NEXT PATCH 08/13] linux-gen: ishm: internal shared memory allocator (ishm) added

2016-08-19 Thread Christophe Milard
processes and regardless of fork time), when the required _ODP_ISHM_SINGLE_VA flag is used. Signed-off-by: Christophe Milard --- platform/linux-generic/Makefile.am |4 + platform/linux-generic/_ishm.c | 1336 platform/linux-generic

[lng-odp] [API-NEXT PATCH 11/13] test: validation: drv: shmem: basic tests

2016-08-19 Thread Christophe Milard
reservation occurs both before and after odpthread creation here). Signed-off-by: Christophe Milard --- test/common_plat/m4/configure.m4 | 3 +- test/common_plat/validation/drv/Makefile.am| 3 +- .../common_plat/validation/drv/drvshmem/.gitignore | 1

[lng-odp] [API-NEXT PATCH 02/13] drv: adding barrier.h

2016-08-19 Thread Christophe Milard
Based on API interface file. Signed-off-by: Christophe Milard --- include/odp/drv/spec/barrier.h | 66 ++ platform/Makefile.inc | 1 + 2 files changed, 67 insertions(+) create mode 100644 include/odp/drv/spec/barrier.h diff --git a/include/odp

[lng-odp] [API-NEXT PATCH 12/13] test: validation: drv: shmem: testing SINGLE_VA flag

2016-08-19 Thread Christophe Milard
Basic test for different drvshm_reserve() time in conjunction with the usage of SINGLE_VA flag is added. Signed-off-by: Christophe Milard --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 221 + .../common_plat/validation/drv/drvshmem/drvshmem.h | 1 + 2 files

[lng-odp] [API-NEXT PATCH 13/13] test: validation: drv: shmem: stress tests

2016-08-19 Thread Christophe Milard
Stress tests, randomly allocating memory are added: the test is based on a group of odp threads allocating, mapping and freeing each-other memory. Signed-off-by: Christophe Milard --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 222 + .../common_plat/validation/drv

[lng-odp] [API-NEXT PATCH 10/13] linux-gen: drv: shm

2016-08-19 Thread Christophe Milard
The shared memory DRV interface is created, mostly as a wrapper around the internal memory allocator, ishm. Signed-off-by: Christophe Milard --- include/odp_drv.h | 1 + platform/linux-generic/Makefile.am | 3 + platform/linux-generic/_ishm.c

[lng-odp] [API-NEXT PATCH 01/13] linux-gen: cosmetic changes on barrier

2016-08-19 Thread Christophe Milard
To please check-patch before the copy to the drv interface. Signed-off-by: Christophe Milard --- include/odp/api/spec/barrier.h | 2 -- platform/linux-generic/include/odp/api/plat/barrier_types.h | 1 - platform/linux-generic/odp_barrier.c| 2

[lng-odp] [API-NEXT PATCH 06/13] linux-gen: fdserver: new fdserver added

2016-08-19 Thread Christophe Milard
igned-off-by: Christophe Milard --- platform/linux-generic/Makefile.am | 2 + platform/linux-generic/_fdserver.c | 655 + .../linux-generic/include/_fdserver_internal.h | 38 ++ platform/linux-generic/include/odp_internal.h

[lng-odp] [API-NEXT PATCH 09/13] linux-gen: ishm: adding debug function

2016-08-19 Thread Christophe Milard
A debug function, printing the internal mem alloc status is added. Signed-off-by: Christophe Milard --- platform/linux-generic/_ishm.c | 125 platform/linux-generic/include/_ishm_internal.h | 1 + 2 files changed, 126 insertions(+) diff --git a

[lng-odp] [API-NEXT PATCH 07/13] linux-generic: system_info: adding huge page dir

2016-08-19 Thread Christophe Milard
The Huge page information is separated and a function to get the huge page mount directory is added. This function is called at init so the information is available later on. Signed-off-by: Christophe Milard --- platform/linux-generic/include/odp_internal.h | 7 +- platform/linux-generic

[lng-odp] [API-NEXT PATCH 05/13] drv: adding shared memory

2016-08-19 Thread Christophe Milard
The public definition of the shared memory allocator for the driver interface is added. Signed-off-by: Christophe Milard --- include/odp/drv/spec/shm.h | 231 + platform/Makefile.inc | 1 + 2 files changed, 232 insertions(+) create mode 100644

[lng-odp] [API-NEXT PATCH 04/13] linux-generic: drv: strong typing

2016-08-19 Thread Christophe Milard
Mirrored from its couterpart on the api interface, the drv interface gets its strong typing file. Signed-off-by: Christophe Milard --- platform/linux-generic/Makefile.am | 3 +- .../include/odp/drv/plat/strong_types.h| 35 ++ 2 files changed, 37

[lng-odp] [API-NEXT PATCH 03/13] linux-gen: drv: adding barrier

2016-08-19 Thread Christophe Milard
Based on API interface files. Signed-off-by: Christophe Milard --- include/odp_drv.h | 1 + platform/linux-generic/Makefile.am | 3 ++ platform/linux-generic/drv_barrier.c | 50 ++ platform/linux-generic

[lng-odp] [API-NEXT PATCH 00/13] drv shared memory allocated

2016-08-19 Thread Christophe Milard
er interface shared memory. These tests are runnable in thread or process mode (using the usual --odph_proc flag) Thanks for reading so far... and happy review! Christophe Christophe Milard (13): linux-gen: cosmetic changes on barrier drv: adding barrier.h linux-gen: drv: adding barrie

[lng-odp] [API-NEXT PATCH] drv: byteorder: added bitfield order

2016-08-19 Thread Christophe Milard
mostly to keep the symmetry with the API side Signed-off-by: Christophe Milard --- include/odp/drv/spec/byteorder.h | 3 +++ platform/linux-generic/include/odp/drv/plat/byteorder_types.h | 6 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a

[lng-odp] [API-NEXT PATCH] doc: application-api-guide: excluding drv interface

2016-08-19 Thread Christophe Milard
The input files parsed to generate the ODP platform specific API doc included (wrongly) part of the drv interface specification. This led to warning on undefined symbols. Fixed by restricting imput files to API only. Signed-off-by: Christophe Milard --- doc/platform-api-guide/Doxyfile | 4

[lng-odp] [API-NEXT PATCH] doc: drv: fix doxyfile for drv doc generation

2016-08-19 Thread Christophe Milard
Restricting to the driver interface and defining general macros. Signed-off-by: Christophe Milard --- doc/driver-api-guide/Doxyfile | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/doc/driver-api-guide/Doxyfile b/doc/driver-api-guide/Doxyfile index 680d1d4

Re: [lng-odp] [PATCH v2 1/6] linux-generic: internal odp_cpu_pause()

2016-08-17 Thread Christophe Milard
Isn't this obsolete and replaced by : [PATCH v3 00/12] arch improvements ? Christophe On 16 August 2016 at 15:28, Maxim Uvarov wrote: > ping. Please do one more review. > > Maxim. > > On 08/04/16 22:30, Brian Brooks wrote: > >> Signed-off-by: Brian Brooks >> --- >> platform/linux-generic/arc

[lng-odp] [API-NEXT PATCHv2] test: drv: atomic renamed to drvatomic

2016-08-17 Thread Christophe Milard
odule from the drv interface is hence renamed drvatomic. Signed-off-by: Christophe Milard --- since v1: Fixed DRV prefix in macro (Maxim) test/common_plat/m4/configure.m4 | 2 +- test/common_plat/validation/drv/Makefile.am| 2 +- test/common_plat/validation/drv/atomic/

[lng-odp] [PATCHv3] linux-gen: doc: defining the ODP thread

2016-08-09 Thread Christophe Milard
Signed-off-by: Christophe Milard Signed-off-by: Mike Holmes --- doc/platform-api-guide/Doxyfile | 1 + doc/platform-api-guide/Makefile.am | 8 - platform/linux-generic/doc/platform_specific.dox | 46 3 files changed, 54 insertions

Re: [lng-odp] [PATCH] doc/implementers add internal prefix recommendation

2016-08-04 Thread Christophe Milard
On 4 August 2016 at 16:08, Mike Holmes wrote: > Promote coding style that reduces the chance of collisions with > applications. > > Signed-off-by: Mike Holmes > --- > doc/implementers-guide/implementers-guide.adoc | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/doc/implementers-g

<    1   2   3   4   5   6   7   8   9   10   >