[lng-odp] [PATCH v5 API-NEXT 06/12] linux-generic: sysinfo: move ARM system info codes to default arch file

2016-01-18 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This patch moves the ARM system info codes into the general arch file, ARM sysinfo isn't implemented now and there is no need to create specific arch file for it, but this can serve as the default implementaton instead. Signed-off-by: Hongbo

[lng-odp] [PATCH v5 API-NEXT 05/12] linux-generic: sysinfo: move MIPS system info codes to its plarform file

2016-01-18 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This patch moves the MIPS system info codes into the newly added MIPS specific platform file. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- platform/linux-generic/Makefile.am | 1 + .../linux-generic

[lng-odp] [PATCH v5 API-NEXT 04/12] linux-generic: sysinfo: move x86 system info codes to its plarform file

2016-01-18 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This patch moves the x86 system info codes into the newly added x86 specific platform file. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- platform/linux-generic/Makefile.am | 6 +- .../linux-gene

[lng-odp] [PATCH v5 API-NEXT 02/12] linux-generic: sysinfo: use uniform call odp_sysinfo_parser

2016-01-18 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> It is common way that the general top layer calls a uniform interface to initialize data structrure for different plarform, this patch introduces odp_sysinfo_parser() instead of using different interfaces for each platform, and also removes

[lng-odp] [PATCH v5 API-NEXT 07/12] linux-generic: sysinfo: move PowerPC system info codes to its plarform file

2016-01-18 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This patch moves the PowerPC system info codes into the newly added PowerPC specific platform file. This patch also creates syslink to arch/linux/odp_cpu_cycles.c for PowerPC. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> ---

[lng-odp] [PATCH v5 API-NEXT 00/12] Separate CPU info codes into their platform files

2016-01-18 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> v4->v5 changes: - rebase to latest api-next branch v3->v4 changes: - update patch 9 of platform naming - add new patch 12 to rename cpu_hz to cpu_hz_max v2->v3 changes: use "api: cpu:" tag in patch 8/11 title instead o

[lng-odp] [PATCH v5 API-NEXT 09/12] linux-generic: sysinfo: set values for cpu_arch_str

2016-01-18 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> The values of cpu_arch_str were deleted due to codes reorganization, this patch adds values to them again. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- platform/linux-generic/arch/mips64/odp_sysinfo_parse.c | 1 + platform/l

[lng-odp] [PATCH v5 API-NEXT 08/12] api: cpu: make frequency API return 0 on failure

2016-01-18 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> All the CPU frequency API return value type is uint64_t, this patch makes them return 0 on failure instead of -1. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- include/odp/api/cpu.h | 4 ++

[lng-odp] [PATCH v5 API-NEXT 10/12] linux-generic: sysinfo: apply per-CPU implementation to MIPS

2016-01-18 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> When per-CPU framework was introduced, it was only implemented on x86, for other platforms, only the model_str[0] and cpu_hz[0] are set to pass compile, this patch set all values for model_str[] and cpu_hz[] on the MIPS platform. Signed-off-by:

Re: [lng-odp] [PATCH v3 API-NEXT 09/11] linux-generic: sysinfo: set values for cpu_arch_str

2016-01-06 Thread Hongbo Zhang
On 6 January 2016 at 17:22, Hongbo Zhang <hongbo.zh...@linaro.org> wrote: > On 29 December 2015 at 21:03, Maxim Uvarov <maxim.uva...@linaro.org> wrote: >> On 12/29/2015 13:31, hongbo.zh...@linaro.org wrote: >>> >>> From: Hongbo Zhang <hongbo.zh...@lina

Re: [lng-odp] [PATCH v3 API-NEXT 09/11] linux-generic: sysinfo: set values for cpu_arch_str

2016-01-06 Thread Hongbo Zhang
On 29 December 2015 at 21:03, Maxim Uvarov <maxim.uva...@linaro.org> wrote: > On 12/29/2015 13:31, hongbo.zh...@linaro.org wrote: >> >> From: Hongbo Zhang <hongbo.zh...@linaro.org> >> >> The values of cpu_arch_str were deleted due to codes reorganization,

Re: [lng-odp] [PATCH v2 API-NEXT 00/11] Separate CPU info codes into their platform files

2016-01-06 Thread Hongbo Zhang
odp_cpu_hz_max() returns the cached max freq and odp_cpu_hz(), as noted, returns the current freq which may change, and this implementation does parse each time so there should be no problem of this part. On 1 January 2016 at 10:26, Hongbo Zhang <hongbo.zh...@linaro.org> wrote: > yes,

[lng-odp] [PATCH v4 API-NEXT 07/12] linux-generic: sysinfo: move PowerPC system info codes to its plarform file

2016-01-06 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This patch moves the PowerPC system info codes into the newly added PowerPC specific platform file. This patch also creates syslink to arch/linux/odp_cpu_cycles.c for PowerPC. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> ---

[lng-odp] [PATCH v4 API-NEXT 11/12] linux-generic: sysinfo: apply per-CPU implementation to PowerPC

2016-01-06 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> When per-CPU framework was introduced, it was only implemented on x86, for other platforms, only the model_str[0] and cpu_hz[0] are set to pass compile, this patch set all values for model_str[] and cpu_hz[] on the PowerPC platform. Sign

[lng-odp] [PATCH v4 API-NEXT 06/12] linux-generic: sysinfo: move ARM system info codes to default arch file

2016-01-06 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This patch moves the ARM system info codes into the general arch file, ARM sysinfo isn't implemented now and there is no need to create specific arch file for it, but this can serve as the default implementaton instead. Signed-off-by: Hongbo

[lng-odp] [PATCH v4 API-NEXT 08/12] api: cpu: make frequency API return 0 on failure

2016-01-06 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> All the CPU frequency API return value type is uint64_t, this patch makes them return 0 on failure instead of -1. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- include/odp/api/cpu.h | 4 ++

[lng-odp] [PATCH v4 API-NEXT 02/12] linux-generic: sysinfo: use uniform call odp_sysinfo_parser

2016-01-06 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> It is common way that the general top layer calls a uniform interface to initialize data structrure for different plarform, this patch introduces odp_sysinfo_parser() instead of using different interfaces for each platform, and also removes

[lng-odp] [PATCH v4 API-NEXT 03/12] linux-generic: sysinfo: rename odp_cpu_hz_current with odp_ prefix

2016-01-06 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This function will be moved to their own platform specific files too, it is better to be named with a odp_ prefix. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- platform/linux-generic/odp_system_info.c | 12 ++-- 1 fil

[lng-odp] [PATCH v4 API-NEXT 00/12] Separate CPU info codes into their platform files

2016-01-06 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> v3->v4 changes: - update patch 9 of platform naming - add new patch 12 to rename cpu_hz to cpu_hz_max v2->v3 changes: use "api: cpu:" tag in patch 8/11 title instead of "linux-generic: sysinfo" v1->v2 chang

[lng-odp] [PATCH v4 API-NEXT 01/12] linux-generic: sysinfo: move cpu_arch_str to odp_system_info_t

2016-01-06 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This is a pre-step for separating platform specific codes into their own arch files. Value of cpu_arch_str will be set later in separate arch parser code. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- platform/linux-gen

Re: [lng-odp] [PATCH v2 API-NEXT 00/11] Separate CPU info codes into their platform files

2015-12-31 Thread Hongbo Zhang
00 >>> cpu MHz: 1500.000 >>> >>> And each time there are different values. On busy loop it can go to top >>> 3Ghz speed and later >>> lower frequency due to overheating. >>> >>> As I understand from current patches is api call just parses c

[lng-odp] [PATCH v2 API-NEXT 00/11] Separate CPU info codes into their platform files

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> v1->v2 changes: - don't create arch/arm/ since there isn't implementation now, use arch/linux as default choice - create symlink to arch/linux/odp_cpu_cycles.c for powerpc, if absent this arch cannot be compiled - add some clean-ups pat

[lng-odp] [PATCH v2 API-NEXT 01/11] linux-generic: sysinfo: move cpu_arch_str to odp_system_info_t

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This is a pre-step for separating platform specific codes into their own arch files. Value of cpu_arch_str will be set later in separate arch parser code. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- platform/linux-gen

[lng-odp] [PATCH v2 API-NEXT 00/11] Separate CPU info codes into their platform files

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> v1->v2 changes: v1 notes: This patch set separates the CPU info codes into their own platform sepcific files. It is common sence that the top general layer call an uniform interface to initialize some plarform specific data s

[lng-odp] [PATCH v2 API-NEXT 03/11] linux-generic: sysinfo: rename odp_cpu_hz_current with odp_ prefix

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This function will be moved to their own platform specific files too, it is better to be named with a odp_ prefix. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- platform/linux-generic/odp_system_info.c | 12 ++-- 1 fil

[lng-odp] [PATCH v2 API-NEXT 02/11] linux-generic: sysinfo: use uniform call odp_sysinfo_parser

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> It is common way that the general top layer calls a uniform interface to initialize data structrure for different plarform, this patch introduces odp_sysinfo_parser() instead of using different interfaces for each platform, and also removes

[lng-odp] [PATCH v2 API-NEXT 04/11] linux-generic: sysinfo: move x86 system info codes to its plarform file

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This patch moves the x86 system info codes into the newly added x86 specific platform file. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- platform/linux-generic/Makefile.am | 6 +- .../linux-gene

[lng-odp] [PATCH v2 API-NEXT 07/11] linux-generic: sysinfo: move PowerPC system info codes to its plarform file

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This patch moves the PowerPC system info codes into the newly added PowerPC specific platform file. This patch also creates syslink to arch/linux/odp_cpu_cycles.c for PowerPC. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> ---

[lng-odp] [PATCH v2 API-NEXT 05/11] linux-generic: sysinfo: move MIPS system info codes to its plarform file

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This patch moves the MIPS system info codes into the newly added MIPS specific platform file. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- platform/linux-generic/Makefile.am | 1 + .../linux-generic

[lng-odp] [PATCH v2 API-NEXT 06/11] linux-generic: sysinfo: move ARM system info codes to default arch file

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This patch moves the ARM system info codes into the general arch file, ARM sysinfo isn't implemented now and there is no need to create specific arch file for it, but this can serve as the default implementaton instead. Signed-off-by: Hongbo

[lng-odp] [PATCH v2 API-NEXT 09/11] linux-generic: sysinfo: set values for cpu_arch_str

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> The values of cpu_arch_str were deleted due to codes reorganization, this patch adds values to them again. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- platform/linux-generic/arch/mips64/odp_sysinfo_parse.c | 1 + platform/l

[lng-odp] [PATCH v2 API-NEXT 08/11] linux-generic: sysinfo: make frequency API return 0 on failure

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> All the CPU frequency API return value type is uint64_t, this patch makes them return 0 on failure instead of -1. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- include/odp/api/cpu.h | 4 ++

[lng-odp] [PATCH v2 API-NEXT 10/11] linux-generic: sysinfo: apply per-CPU implementation to MIPS

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> When per-CPU framework was introduced, it was only implemented on x86, for other platforms, only the model_str[0] and cpu_hz[0] are set to pass compile, this patch set all values for model_str[] and cpu_hz[] on the MIPS platform. Signed-off-by:

[lng-odp] [PATCH v2 API-NEXT 11/11] linux-generic: sysinfo: apply per-CPU implementation to PowerPC

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> When per-CPU framework was introduced, it was only implemented on x86, for other platforms, only the model_str[0] and cpu_hz[0] are set to pass compile, this patch set all values for model_str[] and cpu_hz[] on the PowerPC platform. Sign

Re: [lng-odp] [PATCH v2 API-NEXT 08/11] linux-generic: sysinfo: make frequency API return 0 on failure

2015-12-29 Thread Hongbo Zhang
failure > > Sure, my carelessness. Thanks. > > The API change is OK. > > > -Petri > > >> -Original Message- >> From: EXT hongbo.zh...@linaro.org [mailto:hongbo.zh...@linaro.org] >> Sent: Tuesday, December 29, 2015 10:56 AM >> To: lng-odp@list

[lng-odp] [PATCH v3 API-NEXT 06/11] linux-generic: sysinfo: move ARM system info codes to default arch file

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This patch moves the ARM system info codes into the general arch file, ARM sysinfo isn't implemented now and there is no need to create specific arch file for it, but this can serve as the default implementaton instead. Signed-off-by: Hongbo

[lng-odp] [PATCH v3 API-NEXT 05/11] linux-generic: sysinfo: move MIPS system info codes to its plarform file

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This patch moves the MIPS system info codes into the newly added MIPS specific platform file. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- platform/linux-generic/Makefile.am | 1 + .../linux-generic

[lng-odp] [PATCH v3 API-NEXT 03/11] linux-generic: sysinfo: rename odp_cpu_hz_current with odp_ prefix

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This function will be moved to their own platform specific files too, it is better to be named with a odp_ prefix. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- platform/linux-generic/odp_system_info.c | 12 ++-- 1 fil

[lng-odp] [PATCH v3 API-NEXT 04/11] linux-generic: sysinfo: move x86 system info codes to its plarform file

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This patch moves the x86 system info codes into the newly added x86 specific platform file. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- platform/linux-generic/Makefile.am | 6 +- .../linux-gene

[lng-odp] [PATCH v3 API-NEXT 02/11] linux-generic: sysinfo: use uniform call odp_sysinfo_parser

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> It is common way that the general top layer calls a uniform interface to initialize data structrure for different plarform, this patch introduces odp_sysinfo_parser() instead of using different interfaces for each platform, and also removes

Re: [lng-odp] [PATCH v3 API-NEXT 08/11] api: cpu: make frequency API return 0 on failure

2015-12-29 Thread Hongbo Zhang
Send a quick v3 with only changing of patch 8/11 title since I'll be off and back on Jan 6. On 29 December 2015 at 18:31, <hongbo.zh...@linaro.org> wrote: > From: Hongbo Zhang <hongbo.zh...@linaro.org> > > All the CPU frequency API return value type is uint64_t, this patch

[lng-odp] [PATCH v3 API-NEXT 09/11] linux-generic: sysinfo: set values for cpu_arch_str

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> The values of cpu_arch_str were deleted due to codes reorganization, this patch adds values to them again. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- platform/linux-generic/arch/mips64/odp_sysinfo_parse.c | 1 + platform/l

[lng-odp] [PATCH v3 API-NEXT 11/11] linux-generic: sysinfo: apply per-CPU implementation to PowerPC

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> When per-CPU framework was introduced, it was only implemented on x86, for other platforms, only the model_str[0] and cpu_hz[0] are set to pass compile, this patch set all values for model_str[] and cpu_hz[] on the PowerPC platform. Sign

[lng-odp] [PATCH v3 API-NEXT 00/11] Separate CPU info codes into their platform files

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> v2->v3 changes: use "api: cpu:" tag in patch 8/11 title instead of "linux-generic: sysinfo" v1->v2 changes: - don't create arch/arm/ since there isn't implementation now, use arch/linux as default choice

[lng-odp] [PATCH v3 API-NEXT 01/11] linux-generic: sysinfo: move cpu_arch_str to odp_system_info_t

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This is a pre-step for separating platform specific codes into their own arch files. Value of cpu_arch_str will be set later in separate arch parser code. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- platform/linux-gen

[lng-odp] [PATCH v3 API-NEXT 08/11] api: cpu: make frequency API return 0 on failure

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> All the CPU frequency API return value type is uint64_t, this patch makes them return 0 on failure instead of -1. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- include/odp/api/cpu.h | 4 ++

[lng-odp] [PATCH v3 API-NEXT 07/11] linux-generic: sysinfo: move PowerPC system info codes to its plarform file

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This patch moves the PowerPC system info codes into the newly added PowerPC specific platform file. This patch also creates syslink to arch/linux/odp_cpu_cycles.c for PowerPC. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> ---

[lng-odp] [PATCH v3 API-NEXT 10/11] linux-generic: sysinfo: apply per-CPU implementation to MIPS

2015-12-29 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> When per-CPU framework was introduced, it was only implemented on x86, for other platforms, only the model_str[0] and cpu_hz[0] are set to pass compile, this patch set all values for model_str[] and cpu_hz[] on the MIPS platform. Signed-off-by:

[lng-odp] [PATCH API-NEXT 0/7] Separate CPU info codes into their platform files

2015-12-25 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This patch set separates the CPU info codes into their own platform sepcific files. It is common sence that the top general layer call an uniform interface to initialize some plarform specific data structures, and this uniform interface is imple

[lng-odp] [PATCH API-NEXT 3/7] linux-generic: sysinfo: rename odp_cpu_hz_current with odp_ prefix

2015-12-25 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This function will be moved to their own platform specific files too, it is better to be named with a odp_ prefix. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- platform/linux-generic/odp_system_info.c | 12 ++-- 1 fil

[lng-odp] [PATCH API-NEXT 2/7] linux-generic: sysinfo: use uniform call odp_sysinfo_parser

2015-12-25 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> It is common way that the general top layer calls a uniform interface to initialize data structrure for different plarform, this patch introduces odp_sysinfo_parser() instead of using different interfaces for each platform, and also removes

[lng-odp] [PATCH API-NEXT 1/7] linux-generic: sysinfo: move cpu_arch_str to odp_system_info_t

2015-12-25 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This is a pre-step for separating platform specific codes into their own arch files. Value of cpu_arch_str will be set later in separate arch parser code. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- platform/linux-gen

[lng-odp] [PATCH API-NEXT 4/7] linux-generic: sysinfo: move x86 system info codes to its plarform file

2015-12-25 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This patch moves the x86 system info codes into the newly added x86 specific platform file. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- platform/linux-generic/Makefile.am | 6 +- .../linux-gene

[lng-odp] [PATCH API-NEXT 7/7] linux-generic: sysinfo: move powerpc system info codes to its plarform file

2015-12-25 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This patch moves the powerpc system info codes into the newly added powerpc specific platform file. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- configure.ac | 1 + platform/l

Re: [lng-odp] [PATCH API-NEXT 0/7] Separate CPU info codes into their platform files

2015-12-25 Thread Hongbo Zhang
This version isn't fully ready to be merged yet, there is one issue to be discussed, see massage I leave in patch 6/7. On 25 December 2015 at 16:29, <hongbo.zh...@linaro.org> wrote: > From: Hongbo Zhang <hongbo.zh...@linaro.org> > > This patch set separates the CPU info

[lng-odp] [PATCH API-NEXT 5/7] linux-generic: sysinfo: move mips system info codes to its plarform file

2015-12-25 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This patch moves the mips system info codes into the newly added mips specific platform file. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- platform/linux-generic/Makefile.am | 1 + .../linux-generic

[lng-odp] [PATCH API-NEXT 6/7] linux-generic: sysinfo: move arm system info codes to its plarform file

2015-12-25 Thread hongbo . zhang
From: Hongbo Zhang <hongbo.zh...@linaro.org> This patch moves the arm system info codes into the newly added arm specific platform file. Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> --- configure.ac| 1 + platform/linux-generic

Re: [lng-odp] [PATCH API-NEXT 6/7] linux-generic: sysinfo: move arm system info codes to its plarform file

2015-12-25 Thread Hongbo Zhang
On 25 December 2015 at 17:09, Maxim Uvarov <maxim.uva...@linaro.org> wrote: > On 12/25/2015 11:50, Hongbo Zhang wrote: >> >> On 25 December 2015 at 16:30, <hongbo.zh...@linaro.org> wrote: >>> >>> From: Hongbo Zhang <hongbo.zh...@linaro.org>

Re: [lng-odp] [PATCH API-NEXT 00/10] move CPU frequency APIs for linux-generic

2015-12-17 Thread Hongbo Zhang
lng-odp@lists.linaro.org >> Cc: ivan.khoronz...@linaro.org; petri.savolai...@linaro.org; Hongbo Zhang >> Subject: [PATCH API-NEXT 00/10] move CPU frequency APIs for linux-generic >> >> From: Hongbo Zhang <hongbo.zh...@linaro.org> >> >> This patch series move the pu

Re: [lng-odp] ODP power management requirement?

2015-11-23 Thread Hongbo Zhang
r somewhere to show the system load. But not familiar with the code so not sure about this idea. > The advantage of this approach is that ODP itself becomes independent of > whether it is running in a real or virtual machine environment, which is > important as NFV becomes more of the n

Re: [lng-odp] ODP power management requirement?

2015-11-23 Thread Hongbo Zhang
>> this thread/core is idle and thus eligible for power management. There's >> always a tradeoff here between energy savings and responsiveness to wakeups >> on new events arriving. Such tradeoffs are again the domain of the >> control/management plane. >> >> The

[lng-odp] ODP power management requirement?

2015-11-20 Thread Hongbo Zhang
Hi guys, https://projects.linaro.org/browse/ODP-242 I'd like to discuss with you about this issue, hope you can make it clear about the real requirement, give suggestions and make a coincident conclusion before we go further on a wrong way. First question is what is the original requirement?

Re: [lng-odp] [API-NEXT PATCH] linux-generic: sysinfo: update dummy function to pass validation

2015-11-06 Thread Hongbo Zhang
that it's not defined in the device-tree >>> /proc/device-tree, >>> and it's frequently situation. >>> >>> >>> It also can be retrieved in /sys/kernel/debug/clk/clk_dump >>> or /sys/kernel/debug/clk/clk_summary. But I'm not sure if it's >>> alway

Re: [lng-odp] [API-NEXT PATCH] linux-generic: sysinfo: update dummy function to pass validation

2015-11-06 Thread Hongbo Zhang
Done. On 6 November 2015 at 18:06, Maxim Uvarov <maxim.uva...@linaro.org> wrote: > On 11/06/2015 12:49, Hongbo Zhang wrote: >> >> On 5 November 2015 at 18:29, Maxim Uvarov <maxim.uva...@linaro.org> wrote: >>> >>> Hello Hongbo, >>> >>>

Re: [lng-odp] [API-NEXT PATCH v2] linux-generic: sysinfo: update dummy function to pass validation

2015-11-06 Thread Hongbo Zhang
On 6 November 2015 at 18:54, Maxim Uvarov <maxim.uva...@linaro.org> wrote: > On 11/06/2015 13:44, hongbo.zh...@freescale.com wrote: >> >> From: Hongbo Zhang <hongbo.zh...@linaro.org> >> >> In the default dummy function systemcpu(), only cpu_hz[0] and

Re: [lng-odp] [API-NEXT PATCH v2] linux-generic: sysinfo: update dummy function to pass validation

2015-11-06 Thread Hongbo Zhang
On 6 November 2015 at 18:54, Ivan Khoronzhuk <ivan.khoronz...@linaro.org> wrote: > > > On 06.11.15 12:44, hongbo.zh...@freescale.com wrote: >> >> From: Hongbo Zhang <hongbo.zh...@linaro.org> >> >> In the default dummy function systemcpu(), only cpu_hz[0

Re: [lng-odp] [API-NEXT PATCH] linux-generic: sysinfo: update dummy function to pass validation

2015-11-02 Thread Hongbo Zhang
gt; Hi Hongbo, I talked with Stuart, he has some ideas how to implement max hz > on arm. > Might be on your LAVA box cpus freq is not turned on in kernel so that you > do not see > sysfs files. I will wait for his feedback. > > Maxim. > > >> >> On 30 October 2015 at 2

Re: [lng-odp] [API-NEXT PATCH] linux-generic: sysinfo: update dummy function to pass validation

2015-11-02 Thread Hongbo Zhang
/cpuinfo may be harder, there are many variants of ARM, not sure if one patch can cover them, not sure if the maintainer likes such patch. On 2 November 2015 at 16:44, Hongbo Zhang <hongbo.zh...@linaro.org> wrote: > I should clarify in my previous mails, I used sys fs instead of proc >

Re: [lng-odp] [API-NEXT PATCH] linux-generic: sysinfo: update dummy function to pass validation

2015-10-30 Thread Hongbo Zhang
On 29 October 2015 at 21:25, Maxim Uvarov <maxim.uva...@linaro.org> wrote: > On 10/29/2015 13:51, Hongbo Zhang wrote: >> >> This patch is for https://bugs.linaro.org/show_bug.cgi?id=1870, and >> has been tested on Juno. >> >> On 29 October 2015 at 18:

Re: [lng-odp] [API-NEXT PATCH] linux-generic: sysinfo: update dummy function to pass validation

2015-10-30 Thread Hongbo Zhang
On 30 October 2015 at 15:17, Maxim Uvarov <maxim.uva...@linaro.org> wrote: > On 10/30/2015 09:24, Hongbo Zhang wrote: >> >> On 29 October 2015 at 21:25, Maxim Uvarov <maxim.uva...@linaro.org> wrote: >>> >>> On 10/29/2015 13:51, Hongbo Z

Re: [lng-odp] [API-NEXT PATCH] linux-generic: sysinfo: update dummy function to pass validation

2015-10-30 Thread Hongbo Zhang
platforms. In fact there are much things to clean up in odp_sysinfo.c, such as separating each platform specific functions into there own platform files. On 30 October 2015 at 17:31, Maxim Uvarov <maxim.uva...@linaro.org> wrote: > On 10/30/2015 11:47, Hongbo Zhang wrote: >> >>

Re: [lng-odp] [API-NEXT PATCH] linux-generic: sysinfo: update dummy function to pass validation

2015-10-30 Thread Hongbo Zhang
On 30 October 2015 at 18:18, Maxim Uvarov <maxim.uva...@linaro.org> wrote: > On 10/30/2015 13:10, Hongbo Zhang wrote: >> >> My "0 does not work" meas: if 0 returns, the odp may crrupt. >> for example, odp_cpu_cycles() calls odp_cpu_hz_max() >> >

Re: [lng-odp] [API-NEXT PATCH] linux-generic: sysinfo: update dummy function to pass validation

2015-10-29 Thread Hongbo Zhang
This patch is for https://bugs.linaro.org/show_bug.cgi?id=1870, and has been tested on Juno. On 29 October 2015 at 18:45, <hongbo.zh...@freescale.com> wrote: > From: Hongbo Zhang <hongbo.zh...@linaro.org> > > In the default dummy function systemcpu(), only cpu_hz[0] and m

Re: [lng-odp] [API-NEXT PATCH] linux-generic: sysinfo: update dummy function to pass validation

2015-10-29 Thread Hongbo Zhang
Please _DO_NOT_ merge this one; I have sent out an updated version today: https://patches.linaro.org/55776/ On 20 October 2015 at 20:38, <hongbo.zh...@freescale.com> wrote: > From: Hongbo Zhang <hongbo.zh...@linaro.org> > > In the default dummy function systemcpu(), only cp

Re: [lng-odp] [API NEXT PATCH v6 00/14] api: sysinfo: CPU frequency API clean up

2015-09-25 Thread Hongbo Zhang
. > > } > > > -Petri > > >> -Original Message- >> From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of >> EXT Hongbo Zhang >> Sent: Friday, September 25, 2015 2:40 AM >> To: Maxim Uvarov >> Cc: LNG ODP Mailman List >> Su

Re: [lng-odp] [API NEXT PATCH v6 00/14] api: sysinfo: CPU frequency API clean up

2015-09-24 Thread Hongbo Zhang
m] >>> Sent: Thursday, September 17, 2015 4:10 PM >>> To: lng-odp@lists.linaro.org >>> Cc: mike.hol...@linaro.org; stuart.has...@arm.com; Savolainen, Petri >>> (Nokia - FI/Espoo); petri.savolai...@linaro.org; >>> ivan.khoronz...@linaro.org; Hongbo Zhang

Re: [lng-odp] [API NEXT PATCH v6 04/14] api: sysinfo: move CPU Hz API to cpu.h

2015-09-17 Thread Hongbo Zhang
wrote: > On 2015-09-17 21:10, hongbo.zh...@freescale.com wrote: >> From: Hongbo Zhang <hongbo.zh...@linaro.org> >> >> The legacy odp_sys_cpu_hz() is moved to cpu.h then accordingly renamed >> to odp_cpu_hz(), and all the calling functions are also updated. >&

Re: [lng-odp] [API NEXT PATCH v5 03/17] api: sysinfo: move CPU model API to cpu.h

2015-09-16 Thread Hongbo Zhang
of patch review. On 16 September 2015 at 17:48, Hongbo Zhang <hongbo.zh...@linaro.org> wrote: > Ivan, > Which kind of built error? > In fact, when validation codes are enabled, there was already an build > error exist in the test/validation/crypto code, this error isn't > int

Re: [lng-odp] [API NEXT PATCH v5 03/17] api: sysinfo: move CPU model API to cpu.h

2015-09-16 Thread Hongbo Zhang
uld be build-able - if the check-odp apply-and-build script > does not pass it cannot be committed. > >> >> >> >> On 15.09.15 16:55, hongbo.zh...@freescale.com wrote: >>> >>> From: Hongbo Zhang <hongbo.zh...@linaro.org> >>> >>> T

Re: [lng-odp] [API NEXT PATCH v5 00/17] api: sysinfo: CPU frequency API clean up

2015-09-16 Thread Hongbo Zhang
To: lng-odp@lists.linaro.org >> Cc: mike.hol...@linaro.org; stuart.has...@arm.com; Savolainen, Petri >> (Nokia - FI/Espoo); petri.savolai...@linaro.org; >> ivan.khoronz...@linaro.org; Hongbo Zhang >> Subject: [API NEXT PATCH v5 00/17] api: sysinfo: CPU frequency API >&

Re: [lng-odp] [API NEXT PATCH v5 08/17] api: sysinfo: revise odp_cpu_hz() to return current frequency

2015-09-16 Thread Hongbo Zhang
om; Savolainen, Petri >> (Nokia - FI/Espoo); petri.savolai...@linaro.org; >> ivan.khoronz...@linaro.org; Hongbo Zhang >> Subject: [API NEXT PATCH v5 08/17] api: sysinfo: revise odp_cpu_hz() to >> return current frequency >> >> From: Hongbo Zhang <hongbo.zh

Re: [lng-odp] [API-NEXT PATCH v4 09/10] linux-generic: cpumask: add API odp_cpumask_available()

2015-09-10 Thread Hongbo Zhang
On 9 September 2015 at 20:20, Savolainen, Petri (Nokia - FI/Espoo) <petri.savolai...@nokia.com> wrote: > > >> -Original Message- >> From: ext Hongbo Zhang [mailto:hongbo.zh...@linaro.org] >> Sent: Tuesday, September 08, 2015 2:21 PM >> To: Savolainen,

Re: [lng-odp] [API-NEXT PATCH v4 09/10] linux-generic: cpumask: add API odp_cpumask_available()

2015-09-08 Thread Hongbo Zhang
gt; Sent: Tuesday, August 11, 2015 10:34 AM >> To: lng-odp@lists.linaro.org >> Cc: mike.hol...@linaro.org; stuart.has...@arm.com; Savolainen, Petri >> (Nokia - FI/Espoo); petri.savolai...@linaro.org; Hongbo Zhang >> Subject: [API-NEXT PATCH v4 09/10] linux-generic: cpumask

Re: [lng-odp] [API-NEXT PATCH v4 05/10] linux-generic: sysinfo: clarify the API for max CPU frequency

2015-09-07 Thread Hongbo Zhang
On 3 September 2015 at 22:47, Ivan Khoronzhuk <ivan.khoronz...@linaro.org> wrote: > Hi, Hongbo > > On 11.08.15 10:33, hongbo.zh...@freescale.com wrote: >> >> From: Hongbo Zhang <hongbo.zh...@linaro.org> >> >> Currently the API to get CPU frequency is v

Re: [lng-odp] [API-NEXT PATCH v2 5/5] validation: add test for new per_CPU system APIs

2015-07-06 Thread Hongbo Zhang
On 3 July 2015 at 14:49, Hongbo Zhang hongbo.zh...@linaro.org wrote: On 3 July 2015 at 03:08, Mike Holmes mike.hol...@linaro.org wrote: On 2 July 2015 at 06:45, hongbo.zh...@freescale.com wrote: From: Hongbo Zhang hongbo.zh...@linaro.org This patch adds test for the newly introduced per

Re: [lng-odp] [API-NEXT PATCH v2 5/5] validation: add test for new per_CPU system APIs

2015-07-03 Thread Hongbo Zhang
On 3 July 2015 at 03:08, Mike Holmes mike.hol...@linaro.org wrote: On 2 July 2015 at 06:45, hongbo.zh...@freescale.com wrote: From: Hongbo Zhang hongbo.zh...@linaro.org This patch adds test for the newly introduced per-CPU system APIs: odp_sys_cpu_model_str_amp() odp_sys_cpu_hz_amp

Re: [lng-odp] [PATCH 1/3] linux-generic: sysinfo: make cpu_hz and model_str per-CPU data

2015-07-01 Thread Hongbo Zhang
...@freescale.com wrote: From: Hongbo Zhang hongbo.zh...@linaro.org For AMP system such as ARM big.LITTLE, cores are heterogeneous, so cpu_hz and model_str should be different too, so this patch changes variable cpu_hz and model_str to data array to contain data for each different core, while

Re: [lng-odp] [PATCH 3/3] linux-generic: sysinfo: add API to get current CPU frequency

2015-07-01 Thread Hongbo Zhang
On 30 June 2015 at 04:40, Mike Holmes mike.hol...@linaro.org wrote: This touches include/odp/api so the subject must include API-NEXT On 25 June 2015 at 05:05, hongbo.zh...@freescale.com wrote: From: Hongbo Zhang hongbo.zh...@linaro.org This patch add API to return the current frequency

[lng-odp] [PATCH 1/3] linux-generic: sysinfo: make cpu_hz and model_str per-CPU data

2015-06-25 Thread hongbo . zhang
From: Hongbo Zhang hongbo.zh...@linaro.org For AMP system such as ARM big.LITTLE, cores are heterogeneous, so cpu_hz and model_str should be different too, so this patch changes variable cpu_hz and model_str to data array to contain data for each different core, while for the common SMP system

[lng-odp] CPU Frequency API Disscution

2015-06-16 Thread Hongbo Zhang
Hi all, I am taking this card which is about CPU frequency API: https://pmo-portal.linaro.org/jira/browse/ODP-73 Since this should new API to replace the old pseudo codes, I'd like to discuss what the APSs should be like. Problems and solutions what I can imagine may be: 1# Different CPUs may

Re: [lng-odp] Setting up odp test in vm guest in Lava lab

2015-05-07 Thread Hongbo Zhang
of these images, are they used for vm guest? I'm using a NFS mounted rootfs, for which I need a ramdisk that Steve built to fix some problems with LAVA which cannot run a generic rootfs over NFS, maybe he can give us more details. Hope this helps, /Ciprian On Tue, May 5, 2015 at 1:17 PM, Hongbo Zhang

[lng-odp] Setting up odp test in vm guest in Lava lab

2015-05-05 Thread Hongbo Zhang
Hi all, I am going to set up odp test in vm in the Lava lab, but there are some conditions still not so clear to me, so I'd like to start this discussion, hope anyone involved in or familiar with related areas can give some comments or suggestions. 1. For the vm guest, which kernel and rootfs

Re: [lng-odp] Test odp_l2fwd in vm guest

2015-05-05 Thread Hongbo Zhang
On 5 May 2015 at 00:39, Santosh Shukla santosh.shu...@linaro.org wrote: On 4 May 2015 at 02:15, Hongbo Zhang hongbo.zh...@linaro.org wrote: On 1 May 2015 at 00:41, Santosh Shukla santosh.shu...@linaro.org wrote: On 30 April 2015 at 09:18, Mike Holmes mike.hol...@linaro.org wrote

Re: [lng-odp] Test odp_l2fwd in vm guest

2015-05-04 Thread Hongbo Zhang
favorable nic) doing l2fwd at guest. And that setup shows result in pps, vcpu-utilization and if possible -rtt (i guess: its not there, we'll have to write em). HTH! On 30 April 2015 at 08:42, Hongbo Zhang hongbo.zh...@linaro.org wrote: Hi, I set up a test to run odp in vm guest to get

Re: [lng-odp] Test odp_l2fwd in vm guest

2015-05-04 Thread Hongbo Zhang
in Lava, there are somethings needs to be discussed/confirmed before I take further actions. HTH! On 30 April 2015 at 08:42, Hongbo Zhang hongbo.zh...@linaro.org wrote: Hi, I set up a test to run odp in vm guest to get the odp throughput in it, idea is: in the host run odp_generator

Re: [lng-odp] Test odp_l2fwd in vm guest

2015-05-04 Thread Hongbo Zhang
On 4 May 2015 at 17:09, Hongbo Zhang hongbo.zh...@linaro.org wrote: Mike and Maxim, Yes, it is very slow, there are some reasons: The host: For easily adding NICs to be used, I run Ubuntu on virtualbox, that is to say, even my HOST is actually a virtual machine too. It is low efficient

[lng-odp] Test odp_l2fwd in vm guest

2015-04-30 Thread Hongbo Zhang
Hi, I set up a test to run odp in vm guest to get the odp throughput in it, idea is: in the host run odp_generator to send pkt from host br0 to guest eth0, and in the guest, run odp_l2fwd to forward packets from its eth0 to eth1, and then in host, run odp_generator to get these packets form br1.

Re: [lng-odp] [PATCH v2] add tests for queue

2014-11-03 Thread Hongbo Zhang
Yan, for discussing patches, it is better to set your mail client to plain text only mode. On 3 November 2014 17:15, yan.songm...@linaro.org yan.songm...@linaro.org wrote: Hi Maxim, Thanks for you advice. 2. If you have any changes from previouse patch. Just open generated patch and add

Re: [lng-odp] [PATCH v2] add tests for queue

2014-11-03 Thread Hongbo Zhang
Yan, Search this patch in you mail for example: [PATCH] Scheduler atomic and ordered definitions On 3 November 2014 17:15, yan.songm...@linaro.org yan.songm...@linaro.org wrote: Hi Maxim, Thanks for you advice. 2. If you have any changes from previouse patch. Just open generated patch and

Re: [lng-odp] [PATCH v2] add tests for queue

2014-11-02 Thread Hongbo Zhang
On 1 November 2014 09:33, yan.songming yan.songm...@linaro.org wrote: From: yan.songming yan.songm...@linaro.org Fix spelling problem. Add term_local and term_global. Move cunit queue test to test_odp_queue_base for none syn queue. As Maxim said, what should be here is description for this

<    1   2   3   >