Re: [lng-odp] [PATCHv2] linux-gen: _ishm: fix normal page fallback

2017-01-23 Thread Christophe Milard
Hi Maxim. I cannot reproduce that, and your trace seems to indicate the fallback to normal pages does work. I do see the test failure in you log, though, but cannot relate it to ishm (or to anything else). Can you provide me with more log/ help me debug? Christophe My run seem to work:

Re: [lng-odp] [PATCH v2 1/8] abi: event: added the first ABI spec file

2017-01-23 Thread Brian Brooks
On 01/20 16:11:56, Petri Savolainen wrote: > Used event API as the first example of an ABI spec file. Used > the same default architecture file initially for all > architectures. Default ABI files avoid multiple copies > of the same definition. Please consider an alternative approach to achieving

Re: [lng-odp] schedule_multi returning tasks from multiple queues

2017-01-23 Thread Honnappa Nagarahalli
On 23 January 2017 at 13:45, Bill Fischofer wrote: > Moving this discussion on the ODP mailing list rather than the > Internal list as that way it will be archived. > > The existing ODP controls over scheduling include schedule groups as > well as queue priorities. The

Re: [lng-odp] [PATCH] linux-gen: _ishmphy: fix possible race with malloc

2017-01-23 Thread Bill Fischofer
On Mon, Jan 23, 2017 at 9:38 AM, Christophe Milard wrote: > _ishm prereserves address space for _ODP_ISHM_SINGLE_VA allocated memory > by reserving unreachable "memory", using PROT_NONE, hence really allocating > virtual space (as the memory cannot be hit). > The

Re: [lng-odp] [PATCH v2 1/8] abi: event: added the first ABI spec file

2017-01-23 Thread Bill Fischofer
OK. For the v2 series: Reviewed-and-tested-by: Bill Fischofer On Mon, Jan 23, 2017 at 5:09 AM, Savolainen, Petri (Nokia - FI/Espoo) wrote: >> > +#ifndef ODP_ABI_EVENT_H_ >> > +#define ODP_ABI_EVENT_H_ >> > + >> > +#ifdef

Re: [lng-odp] [PATCH 0/4] introduce odph_api.h and clean up public helper API

2017-01-23 Thread Brian Brooks
Reviewed-and-tested-by: Brian Brooks On 01/23 14:46:04, Mike Holmes wrote: > Greatly reduce the proliferation of helper includes that every app needs > Make the public helper API very obvious > Fix recent inclusion of table APIs that were not in the helper include dir

[lng-odp] [PATCH 2/4] helper: use odph_api.h for test include for unexported files

2017-01-23 Thread Mike Holmes
Adding the previously missing table functions to the public helper api allows the tests to use just odph_api.h Signed-off-by: Mike Holmes --- helper/Makefile.am | 10 +- helper/cuckootable.c | 2

[lng-odp] [PATCH 4/4] examples: use odph_api.h

2017-01-23 Thread Mike Holmes
clean up all the examples and just use odph_api.h Signed-off-by: Mike Holmes --- example/classifier/odp_classifier.c | 4 +--- example/generator/odp_generator.c | 6 +- example/ipsec/odp_ipsec.c | 6 +- example/ipsec/odp_ipsec_fwd_db.h

[lng-odp] [PATCH 1/4] helper: add odph_api.h for existing exported headers

2017-01-23 Thread Mike Holmes
Rather than have all applications include a variable number of helper api files, consolidate them into one include odph_api.h Signed-off-by: Mike Holmes --- helper/Makefile.am | 1 + helper/include/odp/helper/odph_api.h | 35

[lng-odp] [PATCH 0/4] introduce odph_api.h and clean up public helper API

2017-01-23 Thread Mike Holmes
Greatly reduce the proliferation of helper includes that every app needs Make the public helper API very obvious Fix recent inclusion of table APIs that were not in the helper include dir and were not exported during install. Mike Holmes (4): helper: add odph_api.h for existing exported headers

Re: [lng-odp] [PATCH v2 1/2] linux-gen: align: round up power of two as macro

2017-01-23 Thread Maxim Uvarov
Merged, Maxim. On 01/20/17 18:31, Bill Fischofer wrote: > For the v2 series: > > Reviewed-and-tested-by: Bill Fischofer > > On Fri, Jan 20, 2017 at 3:14 AM, Petri Savolainen > wrote: >> Implement round up to power of two as a macro. Macro

Re: [lng-odp] schedule_multi returning tasks from multiple queues

2017-01-23 Thread Bill Fischofer
Moving this discussion on the ODP mailing list rather than the Internal list as that way it will be archived. The existing ODP controls over scheduling include schedule groups as well as queue priorities. The former is a strict requirement (threads can only receive events from queues that belong

Re: [lng-odp] [PATCHv2] linux-gen: _ishm: fix normal page fallback

2017-01-23 Thread Maxim Uvarov
On 01/23/17 11:47, Christophe Milard wrote: > Fixing failure due to lack of huge pages. > Fixes: https://bugs.linaro.org/show_bug.cgi?id=2842 > > Signed-off-by: Christophe Milard > --- > platform/linux-generic/_ishm.c | 4 ++-- > 1 file changed, 2 insertions(+), 2

Re: [lng-odp] [PATCH v2] test: perf: add new packet function microbenchmark application

2017-01-23 Thread Maxim Uvarov
Merged, Maxim. On 01/23/17 17:35, Matias Elo wrote: > The application calls each packet function TEST_REPEAT_COUNT times and > calculates the average cycle count per call. > > Main options: > -b: Burst size for *_multi operations > -i: Benchmark index to run indefinitely > > The application

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

2017-01-23 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: Mike Holmes [mailto:mike.hol...@linaro.org] > Sent: Monday, January 23, 2017 3:01 PM > To: Savolainen, Petri (Nokia - FI/Espoo) labs.com> > Cc: lng-odp@lists.linaro.org > Subject: Re: [lng-odp] [PATCH v4 3/4] helper: move

[lng-odp] [PATCH v2] test: perf: add new packet function microbenchmark application

2017-01-23 Thread Matias Elo
The application calls each packet function TEST_REPEAT_COUNT times and calculates the average cycle count per call. Main options: -b: Burst size for *_multi operations -i: Benchmark index to run indefinitely The application prints benchmark results as a table, which can be copied as is to a

[lng-odp] [PATCH] linux-gen: _ishmphy: fix possible race with malloc

2017-01-23 Thread Christophe Milard
_ishm prereserves address space for _ODP_ISHM_SINGLE_VA allocated memory by reserving unreachable "memory", using PROT_NONE, hence really allocating virtual space (as the memory cannot be hit). The problem came when trying to use some of this preallocated space: strangely, if a new mapping on the

Re: [lng-odp] [PATCH] test: perf: add new packet function microbenchmark application

2017-01-23 Thread Elo, Matias (Nokia - FI/Espoo)
> On 19 Jan 2017, at 17:39, Maxim Uvarov wrote: > > On 01/14/17 19:20, Bill Fischofer wrote: >> --- a/test/common_plat/performance/Makefile.am >>> +++ b/test/common_plat/performance/Makefile.am >>> @@ -2,9 +2,12 @@ include $(top_srcdir)/test/Makefile.inc >>> >>>

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

2017-01-23 Thread Mike Holmes
On 23 January 2017 at 04:06, Savolainen, Petri (Nokia - FI/Espoo) wrote: > > > >> --- /dev/null >> +++ b/helper/include/odp/helper/platform/linux-generic/threads_extn.h > > > This file and these functions are not odp-linux specific. Those depend mainly > on

Re: [lng-odp] [PATCH v2 1/8] abi: event: added the first ABI spec file

2017-01-23 Thread Savolainen, Petri (Nokia - FI/Espoo)
> > +#ifndef ODP_ABI_EVENT_H_ > > +#define ODP_ABI_EVENT_H_ > > + > > +#ifdef __cplusplus > > +extern "C" { > > +#endif > > + > > +#include > > + > > +/** @internal Dummy type for strong typing */ > > +typedef struct { char dummy; /**< @internal Dummy */ } > _odp_abi_event_t; > > Why change from

Re: [lng-odp] 32-bit support in examples

2017-01-23 Thread Francois Ozog
The kernel has used a set of spinlocks to help dealing with atomics in certain conditions (architecture, length of bitfield...). A discussion on what atomi operations are needed may be of value to ODP too: https://lwn.net/Articles/695257/ On 23 January 2017 at 10:49, Joe Savage

Re: [lng-odp] 32-bit support in examples

2017-01-23 Thread Joe Savage
> Any atomics can be emulated in SW (using compiler built-ins or locks > directly). The point here is the missing HW support: > * E.g. MIPS, Power, ARMv7 do not have 128 bit CAS > * 128 bit fetch-and-add is not supported in any of the architectures > > We need to ensure on any operations added

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

2017-01-23 Thread Savolainen, Petri (Nokia - FI/Espoo)
> --- /dev/null > +++ b/helper/include/odp/helper/platform/linux-generic/threads_extn.h This file and these functions are not odp-linux specific. Those depend mainly on Linux and somewhat on ODP, but should not depend at all on the odp-linux implementation. Should it be moved to here:

Re: [lng-odp] [PATCHv2] linux-gen: _ishm: fix normal page fallback

2017-01-23 Thread Maxim Uvarov
Bug switched to resolved state with corresponding git hash id for commit or number of commits. I will run some tests in arm vm which should catch this. Maxim. On 23 January 2017 at 11:47, Christophe Milard wrote: > Fixing failure due to lack of huge pages. >

Re: [lng-odp] 32-bit support in examples

2017-01-23 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: Brian Brooks [mailto:brian.bro...@linaro.org] > Sent: Friday, January 20, 2017 7:47 PM > To: Francois Ozog > Cc: Bill Fischofer ; Joe Savage > ; Maxim Uvarov ;