Re: [lng-odp] [PATCH v2 2/2] add travis.yml for gitub automation

2016-10-28 Thread Maxim Uvarov
On 10/28/16 19:24, Mike Holmes wrote: On 28 October 2016 at 10:16, Maxim Uvarov > wrote: Mike, all crypto tests failed for me. On laptop I have "Version: 1.0.1f-1ubuntu2.19" which is about the same as Travis uses. Do you see the same errors?

Re: [lng-odp] [PATCH v2 2/2] add travis.yml for gitub automation

2016-10-28 Thread Mike Holmes
On 28 October 2016 at 10:16, Maxim Uvarov wrote: > Mike, > > all crypto tests failed for me. On laptop I have "Version: > 1.0.1f-1ubuntu2.19" which is about the same as Travis uses. > Do you see the same errors? > Yes, the travis is working perfectly and has found an issue already :) My run jus

Re: [lng-odp] driver test autotools issue

2016-10-28 Thread Maxim Uvarov
On 10/28/16 16:58, Christophe Milard wrote: Hi, The ODP driver development is does not progress due to an autotool problem to which I didn't find any nice solution: INTRODUCTION: ODP will be given the possibility to "include" user space NIC drivers. By "include", I mean either staticaly linked

[lng-odp] [API-NEXT PATCHv5 05/13] api: shm: add flags to shm_reserve and function to find external mem

2016-10-28 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) The flag ODP_SHM_EXPORT is added: when passed at odp_s

[lng-odp] [API-NEXT PATCHv5 13/13] doc: updating docs for the shm interface extension

2016-10-28 Thread Christophe Milard
Signed-off-by: Christophe Milard --- doc/users-guide/users-guide.adoc | 68 ++-- 1 file changed, 66 insertions(+), 2 deletions(-) diff --git a/doc/users-guide/users-guide.adoc b/doc/users-guide/users-guide.adoc index 62f5833..a9dc64f 100755 --- a/doc/users-gui

[lng-odp] [API-NEXT PATCHv5 11/13] linux-gen: _ishm: cleaning remaining block at odp_term_global

2016-10-28 Thread Christophe Milard
Remaining (forgotten, not freed) blocks are gathered and related files cleaned when odp_term_global() is called. An error message is also issued so the application writters get to know about these blocks Signed-off-by: Christophe Milard --- platform/linux-generic/_ishm.c | 13 + 1 fi

[lng-odp] [API-NEXT PATCHv5 10/13] test: linux-gen: api: shmem: test sharing memory between ODP instances

2016-10-28 Thread Christophe Milard
The platform tests odp/test/linux-generic/validation/api/shmem are updated to both test ODP<->linux process memory sharing, but also test ODP to ODP (different instances) memory sharing. shmem_linux is the main test process, and shmem_linux.c contains (at file top) a chart flow of the test procedur

[lng-odp] [API-NEXT PATCHv5 12/13] linux_gen: _ishm: decreasing the number of error messages when no huge pages

2016-10-28 Thread Christophe Milard
Signed-off-by: Christophe Milard --- platform/linux-generic/_ishm.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/platform/linux-generic/_ishm.c b/platform/linux-generic/_ishm.c index 0586a96..782c32f 100644 --- a/platform/linux-generic/_ishm.c +++ b/

[lng-odp] [API-NEXT PATCHv5 09/13] linux-gen: shm: add flag and function to share memory between ODP instances

2016-10-28 Thread Christophe Milard
Implemented by calling the related functions from _ishm. Signed-off-by: Christophe Milard --- platform/linux-generic/odp_shared_memory.c | 31 +++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/platform/linux-generic/odp_shared_memory.c b/platform/linu

[lng-odp] [API-NEXT PATCHv5 07/13] test: api: shmem: new proper tests for shm API

2016-10-28 Thread Christophe Milard
The shmem "sunnydays" tests for the north interface API are replaced with proper tests, testing memory allocation at different time (before and after ODP thread creation, i.e. the tests make sure shmem behaves the same regardless of fork time). The tests also include stress testing trying to provoq

[lng-odp] [API-NEXT PATCHv5 08/13] linux-gen: _ishm: adding function to map memory from other ODP

2016-10-28 Thread Christophe Milard
functionality to export and map memory between ODP instance is added: This includes: - a bit of simplification in _odp_ishm_reserve() for externaly provided file descriptors. - a new function, _odp_ishm_find_exported() to map memory from other ODP instances (On same OS) Signed-off-by: Christop

[lng-odp] [API-NEXT PATCHv5 00/13] using _ishm as north API mem allocator

2016-10-28 Thread Christophe Milard
since v4: - All points of v3 according to Petri's request i.e.: -All API patches merges as one single patch. -lock flag removed: memory is now always locked. -alignement and flag inherited from remote ODP instance when sharing memory. -function name changed

[lng-odp] [API-NEXT PATCHv5 06/13] linux-gen: shm: new ODP_SHM_SINGLE_VA flag implementation

2016-10-28 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 --git

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

2016-10-28 Thread Christophe Milard
The odp shared_memory API is changed to use the ODP internal memory allocator: _ishm. _ishm supports memory sharing between processes, regardless of fork time. The test testing the ODP_SHM_PROC flag is also changed to cope with the new OS sharing interface used by _ishm (link in /tmp). Signed-off-

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

2016-10-28 Thread Christophe Milard
_ishm.c assumed that both _ishm_init_global() and _ishm_init_local() had been run to work properly. This assumption turns out the be a problem if _ishm is to be used as main memory allocator, as many modules init_global functions assume the availability of the odp_reserve() function before any init

[lng-odp] [API-NEXT PATCHv5 04/13] linux-gen: Push internal flag definition

2016-10-28 Thread Christophe Milard
File platform/linux-generic/include/odp_shm_internal.h exposes shm internals used by IPC. The bits used by the internal flags are moved to make room for more "official" values. The platform/linux-generic/include/odp_shm_internal.h file should really be removed when _ishm is used, but as long as we

[lng-odp] [API-NEXT PATCHv5 01/13] linux-gen: _ishm: create description file for external memory sharing

2016-10-28 Thread Christophe Milard
A new flag called _ODP_ISHM_EXPORT is added to _ishm. When this flag is specified at reserve() time, an extra file ("/tmp/odp--shm-", where is the process ID of the main ODP instatiation process and is the block name given at reserve time) is created, describing to the underlying block attributes

Re: [lng-odp] [PATCH v2 2/2] add travis.yml for gitub automation

2016-10-28 Thread Maxim Uvarov
Mike, all crypto tests failed for me. On laptop I have "Version: 1.0.1f-1ubuntu2.19" which is about the same as Travis uses. Do you see the same errors? Get:2 http://us-central1.gce.archive.ubuntu.com/ubuntu/ precise-updates/main libssl-dev amd64 1.0.1-4ubuntu5.38 [1,581 kB] Get:3 http://us

[lng-odp] driver test autotools issue

2016-10-28 Thread Christophe Milard
Hi, The ODP driver development is does not progress due to an autotool problem to which I didn't find any nice solution: INTRODUCTION: ODP will be given the possibility to "include" user space NIC drivers. By "include", I mean either staticaly linked or dlopen()'d. I wish Both methods to be supp

Re: [lng-odp] [PATCH] example: l3fwd: prevent possible use of uninitialised variables

2016-10-28 Thread Maxim Uvarov
Merged, Maxim. On 10/27/16 17:04, Bill Fischofer wrote: On Thu, Oct 27, 2016 at 8:42 AM, Matias Elo wrote: Fixes bug https://bugs.linaro.org/show_bug.cgi?id=2564 Signed-off-by: Matias Elo Reviewed-by: Bill Fischofer --- example/l3fwd/odp_l3fwd.c | 4 +++- 1 file changed, 3 insertio

[lng-odp] [Bug 2494] Extend odp_pktio_capability_t to include minimal pool size required by pktio implementation.

2016-10-28 Thread bugzilla-daemon
https://bugs.linaro.org/show_bug.cgi?id=2494 Bill Fischofer changed: What|Removed |Added CC||bill.fischo...@linaro.org --- Comment #3 from