[lng-odp] memory allocation issues

2017-01-19 Thread Christophe Milard
Hi Steve, Maybe you remember me as we have had contact before. Christophe. from the LNG ODP team (mikes Holmes team). I have written the ODP memory allocator and I am having an issue with it: It has a requirement that linux processes (we call them ODP threads) have to be able to share memory

Re: [lng-odp] [PATCH] travis: better comments to generate token in the travis file

2017-01-18 Thread Christophe Milard
On 18 January 2017 at 13:26, Maxim Uvarov <maxim.uva...@linaro.org> wrote: > On 01/18/17 16:14, Christophe Milard wrote: >> Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> >> --- >> .travis.yml | 18 ++ >> 1 file cha

[lng-odp] [PATCH] travis: better comments to generate token in the travis file

2017-01-18 Thread Christophe Milard
Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .travis.yml | 18 ++ 1 file changed, 18 insertions(+) diff --git a/.travis.yml b/.travis.yml index 03e61b1..909f0a3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,11 +6,29 @@ # pushing to github/

[lng-odp] [API-NEXT PATCHv8 6/6] test: drv: shm: adding buddy allocation stress tests

2017-01-17 Thread Christophe Milard
Stress tests for the random size allocator (buddy allocator in linux-generic) are added here. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 177 + .../common_plat/validation/drv/drvshmem/drvs

[lng-odp] [API-NEXT PATCHv8 5/6] test: drv: shm: adding basic fixed size allocation tests

2017-01-17 Thread Christophe Milard
Basic tests for odpdrv_shm_pool are added here, creating a fixed size pool and performing basic alloc/free on it Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 86 ++ .../common_plat/validati

[lng-odp] [API-NEXT PATCHv8 4/6] test: drv: shm: adding basic buddy allocation tests

2017-01-17 Thread Christophe Milard
Basic tests for odpdrv_shm_pool are added here, creating a buddy pool and performing basic alloc/free on it Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 92 ++ .../common_plat/validation/drv/dr

[lng-odp] [API-NEXT PATCHv8 2/6] drv: adding odpdrv_shm_pool functions

2017-01-17 Thread Christophe Milard
is sharable between ODP threads. (using malloc would not work when ODP threads are linux processes). Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> Reviewed-by: Petri Savolainen <petri.savolai...@nokia.com> --- include/odp/drv/spec/shm.h

[lng-odp] [API-NEXT PATCHv8 3/6] linux-gen: drv: shm: adding pool allocator

2017-01-17 Thread Christophe Milard
Adding functions to create memory pools and allocate / free memory from the created pools. These functions calls their _ishm conterpart, of course. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- platform/linux-generic/drv_shm.

[lng-odp] [API-NEXT PATCHv8 0/6] small memory amount allocator for drv shm

2017-01-17 Thread Christophe Milard
on the north (API) interface when we start looking into having things working "in process mode") Christophe Milard (6): linux-gen: _ishm: adding buddy and slab allocation drv: adding odpdrv_shm_pool functions linux-gen: drv: shm: adding pool allocator test: drv: shm: adding b

[lng-odp] [API-NEXT PATCHv8 1/6] linux-gen: _ishm: adding buddy and slab allocation

2017-01-17 Thread Christophe Milard
_ishm now provides functions to create/destroy pools for buddy/slab memory allocation, as well as functions to allocated/release memory from the created pools. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- platform/linux-generic/Makefile.am | 2 + pl

Re: [lng-odp] [API-NEXT PATCH] test: random: adding thread based test for random

2017-01-13 Thread Christophe Milard
On 13 January 2017 at 14:12, Maxim Uvarov <maxim.uva...@linaro.org> wrote: > On 01/13/17 14:47, Christophe Milard wrote: >> checking the thread safety of odp_random. >> >> Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> >> --- >> te

Re: [lng-odp] [API-NEXT PATCH] test: random: adding thread based test for random

2017-01-13 Thread Christophe Milard
problems. your pick. On 13 January 2017 at 13:51, Bill Fischofer <bill.fischo...@linaro.org> wrote: > On Fri, Jan 13, 2017 at 5:47 AM, Christophe Milard > <christophe.mil...@linaro.org> wrote: >> checking the thread safety of odp_random. >> >> Signed-off-b

Re: [lng-odp] [API-NEXT PATCHv3] linux-generic: crypto: add openssl locking support for thread safety

2017-01-13 Thread Christophe Milard
random > number generation. > > Signed-off-by: Bill Fischofer <bill.fischo...@linaro.org> Reviewed-by: Christophe Milard <christophe.mil...@linaro.org> > --- Note that this has not proven to be working as the error root is very unsure and hard to reproduce. But I believe it is bett

[lng-odp] [API-NEXT PATCH] test: random: adding thread based test for random

2017-01-13 Thread Christophe Milard
checking the thread safety of odp_random. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/common_plat/validation/api/random/random.c | 46 + test/common_plat/validation/api/random/random.h | 1 + 2 files changed, 47 insertions(+) diff

Re: [lng-odp] [API-NEXT PATCHv6 1/6] linux-gen: _ishm: adding buddy and slab allocation

2017-01-12 Thread Christophe Milard
the explanation > > Every ODP thread can individually creates ishmpools for small memory > allocation, that's convenient. > I'll read into platform/linux-generic/_ishm.c. as you suggested to > understand the impl. > > Thanks and best regards, Yi > > On 12 January 2017 at 18:50,

[lng-odp] [API-NEXT PATCHv7 1/6] linux-gen: _ishm: adding buddy and slab allocation

2017-01-12 Thread Christophe Milard
_ishm now provides functions to create/destroy pools for buddy/slab memory allocation, as well as functions to allocated/release memory from the created pools. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- platform/linux-generic/Makefile.am | 2 + pl

[lng-odp] [API-NEXT PATCHv7 6/6] test: drv: shm: adding buddy allocation stress tests

2017-01-12 Thread Christophe Milard
Stress tests for the random size allocator (buddy allocator in linux-generic) are added here. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 177 + .../common_plat/validation/drv/drvshmem/drvs

[lng-odp] [API-NEXT PATCHv7 5/6] test: drv: shm: adding basic fixed size allocation tests

2017-01-12 Thread Christophe Milard
Basic tests for odpdrv_shm_pool are added here, creating a fixed size pool and performing basic alloc/free on it Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 86 ++ .../common_plat/validati

[lng-odp] [API-NEXT PATCHv7 4/6] test: drv: shm: adding basic buddy allocation tests

2017-01-12 Thread Christophe Milard
Basic tests for odpdrv_shm_pool are added here, creating a buddy pool and performing basic alloc/free on it Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 92 ++ .../common_plat/validation/drv/dr

[lng-odp] [API-NEXT PATCHv7 3/6] linux-gen: drv: shm: adding pool allocator

2017-01-12 Thread Christophe Milard
Adding functions to create memory pools and allocate / free memory from the created pools. These functions calls their _ishm conterpart, of course. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- platform/linux-generic/drv_shm.

[lng-odp] [API-NEXT PATCHv7 2/6] drv: adding odpdrv_shm_pool functions

2017-01-12 Thread Christophe Milard
is sharable between ODP threads. (using malloc would not work when ODP threads are linux processes). Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> Reviewed-by: Petri Savolainen <petri.savolai...@nokia.com> --- include/odp/drv/spec/shm.h

[lng-odp] [API-NEXT PATCHv7 0/6] small memory amount allocator for drv shm

2017-01-12 Thread Christophe Milard
looking into having things working "in process mode") Christophe Milard (6): linux-gen: _ishm: adding buddy and slab allocation drv: adding odpdrv_shm_pool functions linux-gen: drv: shm: adding pool allocator test: drv: shm: adding basic buddy allocation tests test: drv: shm: ad

Re: [lng-odp] [API-NEXT PATCH] linux-generic: packet: remove erroneous assert

2017-01-12 Thread Christophe Milard
. This resolves > Bug https://bugs.linaro.org/show_bug.cgi?id=2814 > > Signed-off-by: Bill Fischofer <bill.fischo...@linaro.org> Reviewed-by: Christophe Milard <christophe.mil...@linaro.org> > --- > platform/linux-generic/include/odp_packet_internal.h | 2 -- >

Re: [lng-odp] API next SIGABRT on classification test?

2017-01-12 Thread Christophe Milard
OK. thanks for taking it from there :-) On 12 January 2017 at 13:15, Bill Fischofer <bill.fischo...@linaro.org> wrote: > I just opened Bug https://bugs.linaro.org/show_bug.cgi?id=2814 for > this and posted a patch to fix it. Thanks. > > On Thu, Jan 12, 2017 at 6:13 AM,

Re: [lng-odp] API next SIGABRT on classification test?

2017-01-12 Thread Christophe Milard
22b3986 - Bill Fischofer : linux-generic: packet: implement reference apis That is the one. No need to open a bug? On 12 January 2017 at 13:08, Bill Fischofer <bill.fischo...@linaro.org> wrote: > On Thu, Jan 12, 2017 at 3:20 AM, Christophe Milard > <christophe.mil...@li

Re: [lng-odp] API next SIGABRT on classification test?

2017-01-12 Thread Christophe Milard
Seems to be related to the usage of the "--enable-debug" option. Anyone building with it? e.g: ./bootstrap && ./configure --enable-debug --enable-test-vald && make -j 8 && make check Christophe. On 12 January 2017 at 10:20, Christophe Milard <christ

[lng-odp] [API-NEXT PATCHv6 6/6] test: drv: shm: adding buddy allocation stress tests

2017-01-12 Thread Christophe Milard
Stress tests for the random size allocator (buddy allocator in linux-generic) are added here. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 177 + .../common_plat/validation/drv/drvshmem/drvs

[lng-odp] [API-NEXT PATCHv6 5/6] test: drv: shm: adding basic fixed size allocation tests

2017-01-12 Thread Christophe Milard
Basic tests for odpdrv_shm_pool are added here, creating a fixed size pool and performing basic alloc/free on it Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 86 ++ .../common_plat/validati

[lng-odp] [API-NEXT PATCHv6 4/6] test: drv: shm: adding basic buddy allocation tests

2017-01-12 Thread Christophe Milard
Basic tests for odpdrv_shm_pool are added here, creating a buddy pool and performing basic alloc/free on it Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 92 ++ .../common_plat/validation/drv/dr

[lng-odp] [API-NEXT PATCHv6 1/6] linux-gen: _ishm: adding buddy and slab allocation

2017-01-12 Thread Christophe Milard
_ishm now provides functions to create/destroy pools for buddy/slab memory allocation, as well as functions to allocated/release memory from the created pools. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- platform/linux-generic/Makefile.am | 2 + pl

[lng-odp] [API-NEXT PATCHv6 3/6] linux-gen: drv: shm: adding pool allocator

2017-01-12 Thread Christophe Milard
Adding functions to create memory pools and allocate / free memory from the created pools. These functions calls their _ishm conterpart, of course. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- platform/linux-generic/drv_shm.

[lng-odp] [API-NEXT PATCHv6 2/6] drv: adding odpdrv_shm_pool functions

2017-01-12 Thread Christophe Milard
is sharable between ODP threads. (using malloc would not work when ODP threads are linux processes). Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> Reviewed-by: Petri Savolainen <petri.savolai...@nokia.com> --- include/odp/drv/spec/shm.h

[lng-odp] [API-NEXT PATCHv6 0/6] small memory amount allocator for drv shm

2017-01-12 Thread Christophe Milard
things working "in process mode") Christophe Milard (6): linux-gen: _ishm: adding buddy and slab allocation drv: adding odpdrv_shm_pool functions linux-gen: drv: shm: adding pool allocator test: drv: shm: adding basic buddy allocation tests test: drv: shm: adding basic fixed size

[lng-odp] API next SIGABRT on classification test?

2017-01-12 Thread Christophe Milard
Am I alone seeing that? PASS: validation/api/pktio/pktio_run.sh SKIP: validation/api/pktio/pktio_run_tap.sh PASS: validation/api/shmem/shmem_linux PASS: ../../test/common_plat/validation/api/atomic/atomic_main PASS: ../../test/common_plat/validation/api/barrier/barrier_main PASS:

Re: [lng-odp] [API-NEXTv5 1/6] linux-gen: _ishm: adding buddy and slab allocation

2017-01-12 Thread Christophe Milard
so driver can create fully sharable pools. At any time. I will fix the rebase and a "PATCH" in the title and send a v6. Thanks for you review, Christophe. > > On 3 January 2017 at 23:10, Christophe Milard <christophe.mil...@linaro.org> > wrote: >> >> _ish

Re: [lng-odp] [API-NEXT PATCHv3] linux-generic: crypto: add openssl locking support for thread safety

2017-01-11 Thread Christophe Milard
Hi Bill, On 11 January 2017 at 13:25, Bill Fischofer <bill.fischo...@linaro.org> wrote: > On Wed, Jan 11, 2017 at 3:35 AM, Christophe Milard > <christophe.mil...@linaro.org> wrote: >> On 2017-01-09 09:24, Bill Fischofer wrote: >>> Resolve Bug https://bugs.linaro.o

Re: [lng-odp] [API-NEXT PATCHv3] linux-generic: crypto: add openssl locking support for thread safety

2017-01-11 Thread Christophe Milard
On 2017-01-09 09:24, Bill Fischofer wrote: > Resolve Bug https://bugs.linaro.org/show_bug.cgi?id=2798 by adding > OpenSSL callbacks for locking that use ticketlocks to provide > thread-safety for OpenSSL calls made by ODP components such as random > number generation. > > Signed-off-by: Bill

Re: [lng-odp] [API-NEXT PATCHv9 1/5] drv: adding driver registration interface (stub)

2017-01-09 Thread Christophe Milard
.git/include/odp/drv/spec/driver.h:194: warning: Member > api_version (variable) of class odpdrv_devio_t is not documented. > /opt/Linaro/odp3.git/include/odp/drv/spec/driver.h:200: warning: Member > enumr_api_version (variable) of class odpdrv_devio_t is not documented. > /opt/Linaro/o

Re: [lng-odp] [API-NEXT PATCHv9 0/5] driver initialisation framework

2017-01-09 Thread Christophe Milard
of this when the buddy is merged so I can keep consistency between the 2 interfaces. Christophe On 2 January 2017 at 17:09, Christophe Milard <christophe.mil...@linaro.org> wrote: > Since V8: > -fixed corrupt V8 > -copyright updates: 2017 (BTW: Happy new year) > > Since V7: >

Re: [lng-odp] [API-NEXT PATCH] linux-generic: init: add openssl locking support for thread safety

2017-01-09 Thread Christophe Milard
On 6 January 2017 at 00:57, Bill Fischofer wrote: > Resolve Bug https://bugs.linaro.org/show_bug.cgi?id=2798 by adding > OpenSSL callbacks for locking that use ticketlocks to provide > thread-safety for OpenSSL calls made by ODP components such as random > number

Re: [lng-odp] register_notifier

2017-01-05 Thread Christophe Milard
ok for me On 5 January 2017 at 13:19, Francois Ozog <francois.o...@linaro.org> wrote: > Monday is my busiest day (last call ends 10pm) but we can do a morning > call: 11amCET? > > On 5 January 2017 at 12:28, Christophe Milard < > christophe.mil...@linaro.org> wrote:

Re: [lng-odp] [API-NEXT PATCHv2] linux-gen: _ishm: fixing typos

2017-01-05 Thread Christophe Milard
Ping. Should be easy to review :-) On 21 December 2016 at 13:55, Christophe Milard <christophe.mil...@linaro.org> wrote: > Fixing a set of iritating typos. just in comments. > > Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> > --- > > Since V1

Re: [lng-odp] register_notifier

2017-01-05 Thread Christophe Milard
sertion/removal of a specific port > - Error condition (an internal watchdog may detect packet stall or I don't > know) > > FF > > On 5 January 2017 at 09:13, Christophe Milard < > christophe.mil...@linaro.org> wrote: > >> Hi Francois, >> >>

[lng-odp] register_notifier

2017-01-05 Thread Christophe Milard
Hi Francois, Following your suggestion, the driver API contains: /** Register event notifier function for hotplug events: */ int (*register_notifier)(void (*event_handler) (void)); But I an now wondering: Why this double callback? Wouldn't it be simpler to have the

Re: [lng-odp] [PATCH v3 2/2] test: pktio_ordered: add test script

2017-01-03 Thread Christophe Milard
The problem seems to be the name of the shm memory block: "pktio-pcap:in=./udp64.pcap" The name of the block is used for creating the filename used to get the file descriptor. Filenames containing "/" and other strange characters will be problems. I guess I can create other "random" filenames, but

[lng-odp] [API-NEXTv5 0/6] small memory amount allocator for drv shm

2017-01-03 Thread Christophe Milard
the list of enumerated devices. ODP will also need it for building list of things such as enumerators, devio, drivers... (PS:I guess this concept will be needed as well on the north (API) interface when we start looking into having things working "in process mode") Christophe Milard (6):

[lng-odp] [API-NEXTv5 6/6] test: drv: shm: adding buddy allocation stress tests

2017-01-03 Thread Christophe Milard
Stress tests for the random size allocator (buddy allocator in linux-generic) are added here. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 177 + .../common_plat/validation/drv/drvshmem/drvs

[lng-odp] [API-NEXTv5 5/6] test: drv: shm: adding basic fixed size allocation tests

2017-01-03 Thread Christophe Milard
Basic tests for odpdrv_shm_pool are added here, creating a fixed size pool and performing basic alloc/free on it Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 86 ++ .../common_plat/validati

[lng-odp] [API-NEXTv5 1/6] linux-gen: _ishm: adding buddy and slab allocation

2017-01-03 Thread Christophe Milard
_ishm now provides functions to create/destroy pools for buddy/slab memory allocation, as well as functions to allocated/release memory from the created pools. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- platform/linux-generic/Makefile.am | 2 + pl

[lng-odp] [API-NEXTv5 4/6] test: drv: shm: adding basic buddy allocation tests

2017-01-03 Thread Christophe Milard
Basic tests for odpdrv_shm_pool are added here, creating a buddy pool and performing basic alloc/free on it Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 92 ++ .../common_plat/validation/drv/dr

[lng-odp] [API-NEXTv5 3/6] linux-gen: drv: shm: adding pool allocator

2017-01-03 Thread Christophe Milard
Adding functions to create memory pools and allocate / free memory from the created pools. These functions calls their _ishm conterpart, of course. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- platform/linux-generic/drv_shm.

[lng-odp] [API-NEXTv5 2/6] drv: adding odpdrv_shm_pool functions

2017-01-03 Thread Christophe Milard
is sharable between ODP threads. (using malloc would not work when ODP threads are linux processes). Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> Reviewed-by: Petri Savolainen <petri.savolai...@nokia.com> --- include/odp/drv/spec/shm.h

Re: [lng-odp] Is odp_random odpthread safe?

2017-01-02 Thread Christophe Milard
Bug 2798 Christophe On 2 January 2017 at 22:02, Bill Fischofer <bill.fischo...@linaro.org> wrote: > On Mon, Jan 2, 2017 at 11:17 AM, Christophe Milard > <christophe.mil...@linaro.org> wrote: >> Hi >> >> I have noticed that (rarely enough to be a pain to ca

[lng-odp] Is odp_random odpthread safe?

2017-01-02 Thread Christophe Milard
Hi I have noticed that (rarely enough to be a pain to catch) odp_shm and odpdrv_shm sress test sigfaults. I saw it once last week, but that was enough to worry me as the common part between the two tests is really the new memory allocator, _ishm. So I ran a test over new year trying to catch the

Re: [lng-odp] api for small buffer allocations

2017-01-02 Thread Christophe Milard
To start with: happy new year :-) Are you saying, Francois, that you want this to have support for Numa directely? In my opinion, having this as it is now enables building lists of things, which, in turn, enable proceeding on the driver work (enumerators...). do you think we should delay this to

[lng-odp] [API-NEXT PATCHv4 1/6] linux-gen: _ishm: adding buddy and slab allocation

2017-01-02 Thread Christophe Milard
_ishm now provides functions to create/destroy pools for buddy/slab memory allocation, as well as functions to allocated/release memory from the created pools. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- platform/linux-generic/Makefile.am | 2 + pl

[lng-odp] [API-NEXT PATCHv4 5/6] test: drv: shm: adding basic fixed size allocation tests

2017-01-02 Thread Christophe Milard
Basic tests for odpdrv_shm_pool are added here, creating a fixed size pool and performing basic alloc/free on it Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 86 ++ .../common_plat/validati

[lng-odp] [API-NEXT PATCHv4 4/6] test: drv: shm: adding basic buddy allocation tests

2017-01-02 Thread Christophe Milard
Basic tests for odpdrv_shm_pool are added here, creating a buddy pool and performing basic alloc/free on it Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 92 ++ .../common_plat/validation/drv/dr

[lng-odp] [API-NEXT PATCHv4 2/6] drv: adding odpdrv_shm_pool functions

2017-01-02 Thread Christophe Milard
is sharable between ODP threads. (using malloc would not work when ODP threads are linux processes). Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> Reviewed-by: Petri Savolainen <petri.savolai...@nokia.com> --- include/odp/drv/spec/shm.h

[lng-odp] [API-NEXT PATCHv4 0/6] small memory amount allocator for drv shm

2017-01-02 Thread Christophe Milard
. ODP will also need it for building list of things such as enumerators, devio, drivers... (PS:I guess this concept will be needed as well on the north (API) interface when we start looking into having things working "in process mode") Christophe Milard (6): linux-gen: _ishm: ad

[lng-odp] [API-NEXT PATCHv4 3/6] linux-gen: drv: shm: adding pool allocator

2017-01-02 Thread Christophe Milard
Adding functions to create memory pools and allocate / free memory from the created pools. These functions calls their _ishm conterpart, of course. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- platform/linux-generic/drv_shm.

[lng-odp] [API-NEXT PATCHv9 5/5] linux-gen: modules: adding initial file to load modules

2017-01-02 Thread Christophe Milard
The shared objects listed in the ODP configuration files are loaded at init time. The odp configuration file lists the shared objects to be loaded as shown in the following example: module = { modules = ["enumerator1.so", "driver1.so"]; }; Signed-off-by: Christophe Mi

[lng-odp] [API-NEXT PATCHv9 3/5] linux-gen: init: adding configuration file parsing

2017-01-02 Thread Christophe Milard
prefix/etc directory. This requires libconfig (sudo apt-get install libconfig-dev) Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .travis.yml | 2 +- DEPENDENCIES | 8 +-- platform/linux-gen

[lng-odp] [API-NEXT PATCHv9 4/5] test: preventing odp.conf loading for tests

2017-01-02 Thread Christophe Milard
(not using make check) may be affected by configuration files. Setting ODP_SYSCONFIG_FILE to an appropriate value (possibly "none") may be required. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/Makefile.inc | 4 +++- 1 file changed, 3 insertions(+), 1 dele

[lng-odp] [API-NEXT PATCHv9 2/5] linux-gen: adding enum, devio and driver registration interface (stub)

2017-01-02 Thread Christophe Milard
The linux implementation for the enumerator class registration function, enumerator instance registration function, devio and driver registration functions (stub) Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- include/odp_drv.h | 1 + pl

[lng-odp] [API-NEXT PATCHv9 1/5] drv: adding driver registration interface (stub)

2017-01-02 Thread Christophe Milard
The enumerator class, enumerator instance, devio and driver registration functions prototypes (and a draft of their parameters) are defined, the goal being to define the registration framework only. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- include/odp/drv/spec/dr

[lng-odp] [API-NEXT PATCHv9 0/5] driver initialisation framework

2017-01-02 Thread Christophe Milard
r_register() is of course part of the driver interface (south). Christophe Milard (5): drv: adding driver registration interface (stub) linux-gen: adding enum, devio and driver registration interface (stub) linux-gen: init: adding configuration file parsing test: preventing odp.conf loading

Re: [lng-odp] [API-NEXT PATCHv8 0/5] driver initialisation framework

2017-01-02 Thread Christophe Milard
Something when obviously wrong when I generated this. Seems corrupt. Will inverstigate and send a v9. With year update to 2017 as well Christophe On 30 December 2016 at 16:19, Christophe Milard <christophe.mil...@linaro.org> wrote: > Since V7: > -changed include order in drv_driv

Re: [lng-odp] [PATCH 3/4] helper: move thread implementation under platform

2017-01-02 Thread Christophe Milard
On 2016-12-23 14:15, Mike Holmes wrote: > Only the portable api is built by default, use --enable-helper-extn > to enable non portable APIs for a helper platform > > Signed-off-by: Mike Holmes > --- I am probably missing something, but, seen from the original file, I

Re: [lng-odp] [PATCH 3/4] helper: move thread implementation under platform

2017-01-02 Thread Christophe Milard
On 2016-12-23 14:15, Mike Holmes wrote: > Only the portable api is built by default, use --enable-helper-extn > to enable non portable APIs for a helper platform > > Signed-off-by: Mike Holmes > --- Got the following warning when applying this patch: Applying: helper:

Re: [lng-odp] [PATCH 2/4] helper: cleanup Linux rename to thread

2017-01-02 Thread Christophe Milard
On 2016-12-23 14:15, Mike Holmes wrote: > Remove the OS specific Linux filename and use the name of the generic > apis it contains which is for odp_threads > > Signed-off-by: Mike Holmes > --- > example/classifier/odp_classifier.c | 2 +- >

[lng-odp] [API-NEXT] linux-gen: init: avoiding segfault if cleaning files

2017-01-02 Thread Christophe Milard
() function is hence placed after ODP_DBG and ODP_ERR function initialization to avoid this situation. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- platform/linux-generic/odp_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/linux-g

[lng-odp] [API-NEXT PATCHv8 5/5] linux-gen: modules: adding initial file to load modules

2016-12-30 Thread Christophe Milard
The shared objects listed in the ODP configuration files are loaded at init time. The odp configuration file lists the shared objects to be loaded as shown in the following example: module = { modules = ["enumerator1.so", "driver1.so"]; }; Signed-off-by: Christophe Mi

[lng-odp] [API-NEXT PATCHv8 3/5] linux-gen: init: adding configuration file parsing

2016-12-30 Thread Christophe Milard
prefix/etc directory. This requires libconfig (sudo apt-get install libconfig-dev) Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .travis.yml | 2 +- DEPENDENCIES | 8 +-- platform/linux-gen

[lng-odp] [API-NEXT PATCHv8 4/5] test: preventing odp.conf loading for tests

2016-12-30 Thread Christophe Milard
(not using make check) may be affected by configuration files. Setting ODP_SYSCONFIG_FILE to an appropriate value (possibly "none") may be required. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/Makefile.inc | 4 +++- 1 file changed, 3 insertions(+), 1 dele

[lng-odp] [API-NEXT PATCHv8 2/5] linux-gen: adding enum, devio and driver registration interface (stub)

2016-12-30 Thread Christophe Milard
The linux implementation for the enumerator class registration function, enumerator instance registration function, devio and driver registration functions (stub) Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- include/odp_drv.h | 1 + pl

[lng-odp] [API-NEXT PATCHv8 1/5] drv: adding driver registration interface (stub)

2016-12-30 Thread Christophe Milard
The enumerator class, enumerator instance, devio and driver registration functions prototypes (and a draft of their parameters) are defined, the goal being to define the registration framework only. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- include/odp/drv/spec/dr

[lng-odp] [API-NEXT PATCHv8 0/5] driver initialisation framework

2016-12-30 Thread Christophe Milard
f file added here. Once loaded, the drivers init function (declared as __constructor__) calls the ODP odp_driver_register() intialialisation function which, at this stage does nothing (just print an error message). odp_driver_register() is of course part of the driver interface (south). Christophe Mi

[lng-odp] [API-NEXT PATCHv3 5/6] test: drv: shm: adding basic fixed size allocation tests

2016-12-30 Thread Christophe Milard
Basic tests for odpdrv_shm_pool are added here, creating a fixed size pool and performing basic alloc/free on it Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 86 ++ .../common_plat/validati

[lng-odp] [API-NEXT PATCHv3 6/6] test: drv: shm: adding buddy allocation stress tests

2016-12-30 Thread Christophe Milard
Stress tests for the random size allocator (buddy allocator in linux-generic) are added here. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 177 + .../common_plat/validation/drv/drvshmem/drvs

[lng-odp] [API-NEXT PATCHv3 4/6] test: drv: shm: adding basic buddy allocation tests

2016-12-30 Thread Christophe Milard
Basic tests for odpdrv_shm_pool are added here, creating a buddy pool and performing basic alloc/free on it Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .../common_plat/validation/drv/drvshmem/drvshmem.c | 92 ++ .../common_plat/validation/drv/dr

[lng-odp] [API-NEXT PATCHv3 3/6] linux-gen: drv: shm: adding pool allocator

2016-12-30 Thread Christophe Milard
Adding functions to create memory pools and allocate / free memory from the created pools. These functions calls their _ishm conterpart, of course. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- platform/linux-generic/drv_shm.

[lng-odp] [API-NEXT PATCHv3 1/6] linux-gen: _ishm: adding buddy and slab allocation

2016-12-30 Thread Christophe Milard
_ishm now provides functions to create/destroy pools for buddy/slab memory allocation, as well as functions to allocated/release memory from the created pools. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- platform/linux-generic/Makefile.am | 2 + pl

[lng-odp] [API-NEXT PATCHv3 2/6] drv: adding odpdrv_shm_pool functions

2016-12-30 Thread Christophe Milard
is sharable between ODP threads. (using malloc would not work when ODP threads are linux processes). Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- include/odp/drv/spec/shm.h | 94 ++ .../linux-generic/include/odp/drv/plat/shm_types.

[lng-odp] [API-NEXT PATCHv3 0/6] small memory amount allocator for drv shm

2016-12-30 Thread Christophe Milard
list of things such as enumerators, devio, drivers... (PS:I guess this concept will be needed as well on the north (API) interface when we start looking into having things working "in process mode") Christophe Milard (6): linux-gen: _ishm: adding buddy and slab allocation d

Re: [lng-odp] [API-NEXT PATCHv2 2/6] drv: adding odpdrv_shm_pool functions

2016-12-30 Thread Christophe Milard
On 29 December 2016 at 10:19, Savolainen, Petri (Nokia - FI/Espoo) <petri.savolai...@nokia-bell-labs.com> wrote: > > >> -Original Message- >> From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of >> Christophe Milard >> Sent:

Re: [lng-odp] [API-NEXT PATCHv5 3/5] linux-gen: init: adding configuration file parsing

2016-12-30 Thread Christophe Milard
Hopefully, I understood what you meant :-) Sent a v7 with this updtade as well... /Christophe. On 29 December 2016 at 14:39, Maxim Uvarov <maxim.uva...@linaro.org> wrote: > On 12/29/16 16:12, Christophe Milard wrote: >> I have now updated the travis file (second c

[lng-odp] [API-NEXT PATCHv7 5/5] linux-gen: drv_drivers: loading modules from config file

2016-12-30 Thread Christophe Milard
The shared objects listed in the ODP configuration files are loaded at init time. The odp configuration file list the shared objects to be loaded as shown in the following example: module = { modules = ["enumerator1.so", "driver1.so"]; }; Signed-off-by: Christophe Mi

[lng-odp] [API-NEXT PATCHv7 4/5] test: preventing odp.conf loading for tests

2016-12-30 Thread Christophe Milard
(not using make check) may be affected by configuration files. Setting ODP_SYSCONFIG_FILE to an appropriate value (possibly "none") may be required. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/Makefile.inc | 4 +++- 1 file changed, 3 insertions(+),

[lng-odp] [API-NEXT PATCHv7 3/5] linux-gen: init: adding configuration file parsing

2016-12-30 Thread Christophe Milard
The parsing of the odp.conf configuration file is added. The file is searched first in the local directory (.) and then is the $prefix/etc directory. This requires libconfig (sudo apt-get install libconfig-dev) Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .trav

[lng-odp] [API-NEXT PATCHv7 2/5] linux-gen: adding enum, devio and driver registration interface (stub)

2016-12-30 Thread Christophe Milard
The linux implementation for the enumerator class registration function, enumerator instance registration function, devio and driver registration functions (stub) Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- include/odp_drv.h | 1 + pl

[lng-odp] [API-NEXT PATCHv7 0/5] driver initialisation framework

2016-12-30 Thread Christophe Milard
() is of course part of the driver interface (south). Christophe Milard (5): drv: adding driver registration interface (stub) linux-gen: adding enum, devio and driver registration interface (stub) linux-gen: init: adding configuration file parsing test: preventing odp.conf loading for tests li

[lng-odp] [API-NEXT PATCHv7 1/5] drv: adding driver registration interface (stub)

2016-12-30 Thread Christophe Milard
The enumerator class, enumerator instance, devio and driver registration functions prototypes (and a draft of their parameters) are defined, the goal being to define the registration framework only. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- include/odp/drv/spec/dr

[lng-odp] [API-NEXTv6 5/5] linux-gen: drv_drivers: loading modules from config file

2016-12-29 Thread Christophe Milard
The shared objects listed in the ODP configuration files are loaded at init time. The odp configuration file list the shared objects to be loaded as shown in the following example: module = { modules = ["enumerator1.so", "driver1.so"]; }; Signed-off-by: Christophe Mi

[lng-odp] [API-NEXTv6 4/5] test: preventing odp.conf loading for tests

2016-12-29 Thread Christophe Milard
(not using make check) may be affected by configuration files. Setting ODP_SYSCONFIG_FILE to an appropriate value (possibly "none") may be required. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/Makefile.inc | 4 +++- 1 file changed, 3 insertions(+),

[lng-odp] [API-NEXTv6 3/5] linux-gen: init: adding configuration file parsing

2016-12-29 Thread Christophe Milard
The parsing of the odp.conf configuration file is added. The file is searched first in the local directory (.) and then is the $prefix/etc directory. This requires libconfig (sudo apt-get install libconfig-dev) Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- .trav

[lng-odp] [API-NEXTv6 2/5] linux-gen: adding enum, devio and driver registration interface (stub)

2016-12-29 Thread Christophe Milard
The linux implementation for the enumerator class registration function, enumerator instance registration function, devio and driver registration functions (stub) Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- include/odp_drv.h | 1 + pl

[lng-odp] [API-NEXTv6 1/5] drv: adding driver registration interface (stub)

2016-12-29 Thread Christophe Milard
The enumerator class, enumerator instance, devio and driver registration functions prototypes (and a draft of their parameters) are defined, the goal being to define the registration framework only. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- include/odp/drv/spec/dr

[lng-odp] [API-NEXTv6 0/5] driver initialisation framework

2016-12-29 Thread Christophe Milard
rivers init function (declared as __constructor__) calls the ODP odp_driver_register() intialialisation function which, at this stage does nothing (just print an error message). odp_driver_register() is of course part of the driver interface (south). Christophe Milard (5): drv: adding driver registra

Re: [lng-odp] [API-NEXT PATCHv5 3/5] linux-gen: init: adding configuration file parsing

2016-12-29 Thread Christophe Milard
On 22 December 2016 at 21:12, Maxim Uvarov <maxim.uva...@linaro.org> wrote: > On 12/19/16 13:50, Christophe Milard wrote: >> The parsing of the odp.conf configuration file is added. >> The file is searched first in the local directory (.) and >> then is the $prefix/etc

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