Re: [lng-odp] A topic related to bug 2622

2016-11-30 Thread Elo, Matias (Nokia - FI/Espoo)
On 1 Dec 2016, at 6:58, Yi He > wrote: Hi, thanks Matias The example is very helpful, one question follow it: Previously I understand atomic queue like multiple producer/single consumer behaviour, so producers (enqueue threads) can still run in

Re: [lng-odp] A topic related to bug 2622

2016-11-30 Thread Yi He
Hi, thanks Matias The example is very helpful, one question follow it: Previously I understand atomic queue like multiple producer/single consumer behaviour, so producers (enqueue threads) can still run in parallel? But in the example the two producer threads behaves like sequentially while

Re: [lng-odp] [API-NEXT PATCHv2] linux-generic: pool: reset origin_qe on buffer allocation

2016-11-30 Thread Yi He
yes, I agree this fix can help pass make check in recent development and future bisect maybe. Reviewed-and-tested-by: Yi He On 1 December 2016 at 07:08, Bill Fischofer wrote: > Resolve bug https://bugs.linaro.org/show_bug.cgi?id=2622 by >

Re: [lng-odp] [API-NEXT PATCH v2 4/5] linux-gen: sched: new ordered queue implementation

2016-11-30 Thread Bill Fischofer
On Wed, Nov 30, 2016 at 7:56 AM, Matias Elo wrote: > Add new implementation for ordered queues. Compared to the old > implementation this is much simpler and improves performance ~1-4x > depending on the test case. > > The implementation is based on an atomic ordered

[lng-odp] [Bug 2622] scheduler test fails in api-next

2016-11-30 Thread bugzilla-daemon
https://bugs.linaro.org/show_bug.cgi?id=2622 --- Comment #6 from Bill Fischofer --- v2 patch submitted: http://patches.opendataplane.org/patch/7492/ incorporating Maxim's review comments. -- You are receiving this mail because: You are on the CC list for the bug.

[lng-odp] [API-NEXT PATCHv2] linux-generic: pool: reset origin_qe on buffer allocation

2016-11-30 Thread Bill Fischofer
Resolve bug https://bugs.linaro.org/show_bug.cgi?id=2622 by re-initializing origin_qe to NULL when a buffer is allocated. This step was omitted in the switch to ring pool allocation introduced in commit ID c8cf1d87783d4b4c628f219803b78731b8d4ade4 Signed-off-by: Bill Fischofer

Re: [lng-odp] [PATCHv10 3/3] configure.ac update version numbers

2016-11-30 Thread Anders Roxell
On 30 November 2016 at 22:02, Mike Holmes wrote: > I just CC'ed you in Steve. > > My head is spinning but I think we have this straight now, perhaps you have > time to sync with Maxim and possibly Anders if he has time to check this > from ytour Debian background? > > I

Re: [lng-odp] [PATCHv10 3/3] configure.ac update version numbers

2016-11-30 Thread Mike Holmes
I just CC'ed you in Steve. My head is spinning but I think we have this straight now, perhaps you have time to sync with Maxim and possibly Anders if he has time to check this from ytour Debian background? I think if we can get the next couple of release out correctly the pattern will establish

[lng-odp] [PATCHv10 2/3] changelog: summary of changes for odp v1.12.0.0

2016-11-30 Thread Maxim Uvarov
From: Bill Fischofer Signed-off-by: Bill Fischofer Signed-off-by: Maxim Uvarov --- CHANGELOG | 177 ++ 1 file changed, 177 insertions(+) diff --git

[lng-odp] [PATCHv10 1/3] configure.ac: disable shared library for non abi compat mode

2016-11-30 Thread Maxim Uvarov
original configure.ac enables abi compat mode by default, even without --enable-abi-compat provided. And has broken logic to disable abi compat mode. Correct logic to build abi compat mode and option to disable it. Shared library is not needed for non abi compat mode, so turn it off.

Re: [lng-odp] [PATCHv9 0/3] changelog: summary of changes for odp v1.12.0.0

2016-11-30 Thread Mike Holmes
Ok, worked on this with Anders, the bug was there before your patch, we can look into it afterwards IMHO On 30 November 2016 at 14:12, Mike Holmes wrote: > I tried again after git clean -xdf and it failed, it also failed in a new > docker instance so its not my env as

Re: [lng-odp] [PATCHv9 0/3] changelog: summary of changes for odp v1.12.0.0

2016-11-30 Thread Mike Holmes
I tried again after git clean -xdf and it failed, it also failed in a new docker instance so its not my env as far as I can easily tell. Mike On 30 November 2016 at 13:50, Maxim Uvarov wrote: > On 11/30/16 19:24, Mike Holmes wrote: > >> I think there is an issue, can

Re: [lng-odp] [PATCHv9 0/3] changelog: summary of changes for odp v1.12.0.0

2016-11-30 Thread Maxim Uvarov
On 11/30/16 19:24, Mike Holmes wrote: I think there is an issue, can anyone confirm ./configure --enable-test-vald --enable-user-guides --disable-abi-compat make distcheck make[4]: Entering directory '/home/mike/git/odp/opendataplane-1.12.0.0/_build/sub/test/common_plat/performance' CC

Re: [lng-odp] [PATCHv9 0/3] changelog: summary of changes for odp v1.12.0.0

2016-11-30 Thread Mike Holmes
I think there is an issue, can anyone confirm ./configure --enable-test-vald --enable-user-guides --disable-abi-compat make distcheck make[4]: Entering directory '/home/mike/git/odp/opendataplane-1.12.0.0/_build/sub/test/common_plat/performance' CC odp_crypto-odp_crypto.o CCLD

Re: [lng-odp] [API-NEXT PATCH] linux-generic: pool: reset origin_qe on buffer allocation

2016-11-30 Thread Bill Fischofer
On Wed, Nov 30, 2016 at 8:09 AM, Maxim Uvarov wrote: > On 11/30/16 03:48, Bill Fischofer wrote: >> >> Resolve bug https://bugs.linaro.org/show_bug.cgi?id=2622 by >> re-initializing origin_qe to NULL when a buffer is allocated. This step >> was omitted in the switch to

[lng-odp] [PATCHv9 2/3] changelog: summary of changes for odp v1.12.0.0

2016-11-30 Thread Maxim Uvarov
From: Bill Fischofer Signed-off-by: Bill Fischofer Signed-off-by: Maxim Uvarov --- CHANGELOG | 177 ++ 1 file changed, 177 insertions(+) diff --git

[lng-odp] [PATCHv9 3/3] configure.ac update version numbers

2016-11-30 Thread Maxim Uvarov
Default is abi compat mode, all interface functions changed, so increase first number of .so Signed-off-by: Maxim Uvarov --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index b460a65..5da42eb 100644

[lng-odp] [PATCHv9 0/3] changelog: summary of changes for odp v1.12.0.0

2016-11-30 Thread Maxim Uvarov
v9: update helper so version to 111.1.2, hope we red autotools docs correctly (Mike) Bill Fischofer (1): changelog: summary of changes for odp v1.12.0.0 Maxim Uvarov (2): configure.ac: disable shared library for non abi compat mode configure.ac update version numbers CHANGELOG| 177

[lng-odp] [PATCHv9 1/3] configure.ac: disable shared library for non abi compat mode

2016-11-30 Thread Maxim Uvarov
original configure.ac enables abi compat mode by default, even without --enable-abi-compat provided. And has broken logic to disable abi compat mode. Correct logic to build abi compat mode and option to disable it. Shared library is not needed for non abi compat mode, so turn it off.

Re: [lng-odp] [API-NEXT PATCH] linux-generic: pool: reset origin_qe on buffer allocation

2016-11-30 Thread Maxim Uvarov
On 11/30/16 03:48, Bill Fischofer wrote: Resolve bug https://bugs.linaro.org/show_bug.cgi?id=2622 by re-initializing origin_qe to NULL when a buffer is allocated. This step was omitted in the switch to ring pool allocation introduced in commit ID c8cf1d87783d4b4c628f219803b78731b8d4ade4

Re: [lng-odp] [API-NEXT PATCH] linux-gen: _fdserver: request sigterm if parent dies

2016-11-30 Thread Maxim Uvarov
On 11/30/16 15:48, Mike Holmes wrote: Christophe Do you have a way I can create the problem and then prove to myself you fixed it by applying this? Can I CTRL C any of our apps ? Mike yes, Mike, I asked for that change. run something like make check and watch for background processes

[lng-odp] [API-NEXT PATCH v2 2/5] linux-gen: sched: remove old ordered queue implementation

2016-11-30 Thread Matias Elo
Remove old ordered queue code. Replaced temporarily by atomic handling. Signed-off-by: Matias Elo --- V2: - Refactored code to better obey the internal scheduler API - Don't cache ordered events in scheduler (Bill) platform/linux-generic/Makefile.am | 3

[lng-odp] [API-NEXT PATCH v2 4/5] linux-gen: sched: new ordered queue implementation

2016-11-30 Thread Matias Elo
Add new implementation for ordered queues. Compared to the old implementation this is much simpler and improves performance ~1-4x depending on the test case. The implementation is based on an atomic ordered context, which only a single thread may possess at a time. Only the thread owning the

[lng-odp] [API-NEXT PATCH v2 0/5] new ordered queue implementation

2016-11-30 Thread Matias Elo
V2: - Support for multiple ordered locks (Bill) - New ordered lock implementation Add new implementation for ordered queues. Compared to the old implementation this is much simpler and improves performance ~1-4x depending on the test case. Some performance numbers are provided below. The

[lng-odp] [API-NEXT PATCH v2 3/5] linux-gen: sched: add internal API for max number of ordered locks per queue

2016-11-30 Thread Matias Elo
The number of supported ordered locks may vary between the scheduler implementations. Add an internal scheduler API call for fetching the maximum value from currently active scheduler. Add an internal definition CONFIG_QUEUE_MAX_ORD_LOCKS for the scheduler independent maximum value.

[lng-odp] [API-NEXT PATCH v2 5/5] linux-gen: sched: new ordered lock implementation

2016-11-30 Thread Matias Elo
Implement ordered locks using per lock atomic counters. The counter values are compared to the queue’s atomic context to guarantee ordered locking. Compared to the previous implementation this enables parallel processing of ordered events outside of the lock context. Signed-off-by: Matias Elo

[lng-odp] [API-NEXT PATCH v2 1/5] linux-gen: sched: add internal APIs for locking/unlocking ordered processing

2016-11-30 Thread Matias Elo
The internal ordered processing locking functions can be more streamlined compared to the public API functions. Signed-off-by: Matias Elo --- platform/linux-generic/include/odp_schedule_if.h | 4 platform/linux-generic/odp_schedule.c| 12 +++-

Re: [lng-odp] [API-NEXT PATCH] test: drvshm: removing invalid test

2016-11-30 Thread Maxim Uvarov
Merged, Maxim. On 11/30/16 14:38, Christophe Milard wrote: Thanks for your feedback Petri. Sorry you had to be the first "victim". Christophe On 30 November 2016 at 12:02, Savolainen, Petri (Nokia - FI/Espoo) wrote: Seems to resolve my drvshm crash

Re: [lng-odp] [PATCH] test: linux-gen: fix termination in mmap_vlan_ins

2016-11-30 Thread Maxim Uvarov
merged, Maxim. On 11/30/16 02:16, Bill Fischofer wrote: On Fri, Nov 25, 2016 at 8:06 AM, Maxim Uvarov wrote: exit variable has to be volatile to be visible from thread. Without that background process is not killed with default optimization level. Signed-off-by:

[lng-odp] [API-NEXT PATCH v2] api: ipsec: added IPSEC API

2016-11-30 Thread Petri Savolainen
Added definitions for a look-a-side IPSEC offload API. In addition to IPSEC packet transformations, it also supports: * inbound SA look up * outbound IP fragmentation Signed-off-by: Petri Savolainen --- Changes in v2: * Specify that synchronous calls cannot process

Re: [lng-odp] [API-NEXT PATCH] linux-gen: _fdserver: request sigterm if parent dies

2016-11-30 Thread Mike Holmes
Christophe Do you have a way I can create the problem and then prove to myself you fixed it by applying this? Can I CTRL C any of our apps ? Mike On 30 November 2016 at 03:34, Christophe Milard < christophe.mil...@linaro.org> wrote: > ping > > This should be straightforward to review and

Re: [lng-odp] [API-NEXT PATCH] linux-generic: pool: reset origin_qe on buffer allocation

2016-11-30 Thread Mike Holmes
On 30 November 2016 at 04:07, Savolainen, Petri (Nokia - FI/Espoo) wrote: > > -Original Message- > > From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of > Bill > > Fischofer > > Sent: Wednesday, November 30, 2016 2:48 AM > > To: lng-odp@lists.linaro.org > > Subject:

Re: [lng-odp] [API-NEXT PATCH] test: drvshm: removing invalid test

2016-11-30 Thread Christophe Milard
Thanks for your feedback Petri. Sorry you had to be the first "victim". Christophe On 30 November 2016 at 12:02, Savolainen, Petri (Nokia - FI/Espoo) wrote: > Seems to resolve my drvshm crash issue. > > Reviewed-by: Petri Savolainen

Re: [lng-odp] [API-NEXT PATCH] test: drvshm: removing invalid test

2016-11-30 Thread Savolainen, Petri (Nokia - FI/Espoo)
Seems to resolve my drvshm crash issue. Reviewed-by: Petri Savolainen > -Original Message- > From: Christophe Milard [mailto:christophe.mil...@linaro.org] > Sent: Tuesday, November 29, 2016 4:46 PM > To: maxim.uva...@linaro.com; Savolainen, Petri (Nokia -

Re: [lng-odp] [API-NEXT PATCH] linux-generic: pool: reset origin_qe on buffer allocation

2016-11-30 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of Bill > Fischofer > Sent: Wednesday, November 30, 2016 2:48 AM > To: lng-odp@lists.linaro.org > Subject: [lng-odp] [API-NEXT PATCH] linux-generic: pool: reset origin_qe > on buffer allocation > >