[dpdk-dev] [PATCH v2 06/16] eal/arm: prefetch operations for ARM

2015-10-26 Thread Jan Viktorin
From: Vlastimil Kosar This patch adds architecture specific prefetch operations for ARM architecture. It utilizes the pld instruction that starts filling the appropriate cache line without blocking. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- .../common/include/arch/arm

[dpdk-dev] [PATCH v2 07/16] eal/arm: spinlock operations for ARM (without HTM)

2015-10-26 Thread Jan Viktorin
From: Vlastimil Kosar This patch adds spinlock operations for ARM architecture. We do not support HTM in spinlocks on ARM. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- .../common/include/arch/arm/rte_spinlock.h | 114 + 1 file changed, 114

[dpdk-dev] [PATCH v2 08/16] eal/arm: vector memcpy for ARM

2015-10-26 Thread Jan Viktorin
: Vlastimil Kosar Signed-off-by: Jan Viktorin --- .../common/include/arch/arm/rte_memcpy.h | 270 + 1 file changed, 270 insertions(+) create mode 100644 lib/librte_eal/common/include/arch/arm/rte_memcpy.h diff --git a/lib/librte_eal/common/include/arch/arm

[dpdk-dev] [PATCH v2 09/16] eal/arm: use vector memcpy only when NEON is enabled

2015-10-26 Thread Jan Viktorin
The GCC can be configured to avoid using NEON extensions. For that purpose, we provide just the memcpy implementation of the rte_memcpy. Based on the patch by David Hunt and Armuta Zende: lib: added support for armv7 architecture Signed-off-by: Jan Viktorin Signed-off-by: Amruta Zende

[dpdk-dev] [PATCH v2 10/16] eal/arm: cpu flag checks for ARM

2015-10-26 Thread Jan Viktorin
From: Vlastimil Kosar This implementation is based on IBM POWER version of rte_cpuflags. We use software emulation of HW capability registers, because those are usually not directly accessible from userspace on ARM. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- v1 ->

[dpdk-dev] [PATCH v2 11/16] eal/arm: detect arm architecture in cpu flags

2015-10-26 Thread Jan Viktorin
Based on the patch by David Hunt and Armuta Zende: lib: added support for armv7 architecture Signed-off-by: Jan Viktorin Signed-off-by: Amruta Zende Signed-off-by: David Hunt --- lib/librte_eal/common/include/arch/arm/rte_cpuflags.h | 15 +++ 1 file changed, 15 insertions

[dpdk-dev] [PATCH v2 12/16] eal/arm: rwlock support for ARM

2015-10-26 Thread Jan Viktorin
Just a copy from PPC. Signed-off-by: Jan Viktorin --- .../common/include/arch/arm/rte_rwlock.h | 40 ++ 1 file changed, 40 insertions(+) create mode 100644 lib/librte_eal/common/include/arch/arm/rte_rwlock.h diff --git a/lib/librte_eal/common/include/arch/arm

[dpdk-dev] [PATCH v2 13/16] gcc/arm: avoid alignment errors to break build

2015-10-26 Thread Jan Viktorin
There several issues with alignment when compiling for ARMv7. They are not considered to be fatal (ARMv7 supports unaligned access of 32b words), so we just leave them as warnings. They should be solved later, however. Signed-off-by: Jan Viktorin Signed-off-by: Vlastimil Kosar --- mk/toolchain

[dpdk-dev] [PATCH v2 14/16] maintainers: claim responsibility for ARMv7

2015-10-26 Thread Jan Viktorin
Signed-off-by: Jan Viktorin --- MAINTAINERS | 4 1 file changed, 4 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 080a8e8..a8933eb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -124,6 +124,10 @@ IBM POWER M: Chao Zhu F: lib/librte_eal/common/include/arch/ppc_64/ +ARM v7 +M

[dpdk-dev] [PATCH v2 15/16] lpm/arm: implement rte_lpm_lookupx4 using rte_lpm_lookup_bulk on for-x86

2015-10-26 Thread Jan Viktorin
intrinsic functions _mm_set_epi32(), _mm_loadu_si128() and _mm_load_si128() for easy portability of existing applications. LPM builds now when on ARM. FIXME: to be reworked Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- config/defconfig_arm-armv7-a-linuxapp-gcc | 1 - lib

[dpdk-dev] [PATCH v2 16/16] acl: check for SSE 4.1 support

2015-10-26 Thread Jan Viktorin
The main goal of this check is to avoid passing the -msse4.1 option to the GCC that does not support it (like arm toolchains). Anyway, the ACL library does not compile on ARM. Signed-off-by: Jan Viktorin --- lib/librte_acl/Makefile | 4 1 file changed, 4 insertions(+) diff --git a/lib

[dpdk-dev] [PATCH v2 15/16] lpm/arm: implement rte_lpm_lookupx4 using rte_lpm_lookup_bulk on for-x86

2015-10-27 Thread Jan Viktorin
Hi Konstantin, On Tue, 27 Oct 2015 15:31:44 + "Ananyev, Konstantin" wrote: > Hi Jan, > > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jan Viktorin > > Sent: Monday, October 26, 2015 4:38 PM > > To: Thoma

[dpdk-dev] [PATCH v2 16/16] acl: check for SSE 4.1 support

2015-10-27 Thread Jan Viktorin
Jan On Tue, 27 Oct 2015 15:55:48 + "Ananyev, Konstantin" wrote: > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jan Viktorin > > Sent: Monday, October 26, 2015 4:38 PM > > To: Thomas Monjalon; Hunt, David; dev

[dpdk-dev] [PATCH 10/11] mk: add makefile and config changes for armv8 architecture

2015-10-27 Thread Jan Viktorin
On Mon, 26 Oct 2015 17:22:01 +0100 Jan Viktorin wrote: > On Fri, 23 Oct 2015 15:17:12 +0100 > David Hunt wrote: > > > > > +# ARMv8 CPU flags > > +ifneq ($(filter $(AUTO_CPUFLAGS),__aarch64__),) I do not believe that this works. The function filter accepts argu

[dpdk-dev] [PATCH v3 00/17] Support ARMv7 architecture

2015-10-27 Thread Jan Viktorin
d84581e3681de076819d202b1f09f2751d28d5be: acl: handle when SSE 4.1 is unsupported (2015-10-27 20:03:24 +0100) --- Jan Viktorin (8): eal/arm: implement rdtsc by PMU or clock_gettime eal/arm: use vector memcpy only when NEON is enabled eal/arm: detect arm architecture in cpu flags eal/arm: rwlock support for ARM gcc

[dpdk-dev] [PATCH v3 01/17] mk: Introduce ARMv7 architecture

2015-10-27 Thread Jan Viktorin
From: Vlastimil Kosar Make DPDK run on ARMv7-A architecture. This patch assumes ARM Cortex-A9. However, it is known to be working on Cortex-A7 and Cortex-A15. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- v1 -> v2: * the -mtune parameter of GCC is configurable now * the -m

[dpdk-dev] [PATCH v3 02/17] eal/arm: atomic operations for ARM

2015-10-27 Thread Jan Viktorin
From: Vlastimil Kosar This patch adds architecture specific atomic operation file for ARM architecture. It utilizes compiler intrinsics only. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- v1 -> v2: * improve rte_wmb() * use __atomic_* or __sync_*? (may affect the required

[dpdk-dev] [PATCH v3 03/17] eal/arm: byte order operations for ARM

2015-10-27 Thread Jan Viktorin
From: Vlastimil Kosar This patch adds architecture specific byte order operations for ARM. The architecture supports both big and little endian. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- .../common/include/arch/arm/rte_byteorder.h| 148 + 1

[dpdk-dev] [PATCH v3 05/17] eal/arm: implement rdtsc by PMU or clock_gettime

2015-10-27 Thread Jan Viktorin
Enable to choose a preferred way to read timer based on the configuration entry CONFIG_RTE_ARM_EAL_RDTSC_USE_PMU. It requires a kernel module that is not included to work. Based on the patch by David Hunt and Armuta Zende: lib: added support for armv7 architecture Signed-off-by: Jan Viktorin

[dpdk-dev] [PATCH v3 04/17] eal/arm: cpu cycle operations for ARM

2015-10-27 Thread Jan Viktorin
From: Vlastimil Kosar ARM architecture doesn't have a suitable source of CPU cycles. This patch uses clock_gettime instead. The implementation should be improved in the future. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- .../common/include/arch/arm/rte_cyc

[dpdk-dev] [PATCH v3 06/17] eal/arm: prefetch operations for ARM

2015-10-27 Thread Jan Viktorin
From: Vlastimil Kosar This patch adds architecture specific prefetch operations for ARM architecture. It utilizes the pld instruction that starts filling the appropriate cache line without blocking. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- .../common/include/arch/arm

[dpdk-dev] [PATCH v3 07/17] eal/arm: spinlock operations for ARM (without HTM)

2015-10-27 Thread Jan Viktorin
From: Vlastimil Kosar This patch adds spinlock operations for ARM architecture. We do not support HTM in spinlocks on ARM. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- .../common/include/arch/arm/rte_spinlock.h | 114 + 1 file changed, 114

[dpdk-dev] [PATCH v3 08/17] eal/arm: vector memcpy for ARM

2015-10-27 Thread Jan Viktorin
: Vlastimil Kosar Signed-off-by: Jan Viktorin --- .../common/include/arch/arm/rte_memcpy.h | 270 + 1 file changed, 270 insertions(+) create mode 100644 lib/librte_eal/common/include/arch/arm/rte_memcpy.h diff --git a/lib/librte_eal/common/include/arch/arm

[dpdk-dev] [PATCH v3 09/17] eal/arm: use vector memcpy only when NEON is enabled

2015-10-27 Thread Jan Viktorin
The GCC can be configured to avoid using NEON extensions. For that purpose, we provide just the memcpy implementation of the rte_memcpy. Based on the patch by David Hunt and Armuta Zende: lib: added support for armv7 architecture Signed-off-by: Jan Viktorin Signed-off-by: Amruta Zende

[dpdk-dev] [PATCH v3 10/17] eal/arm: cpu flag checks for ARM

2015-10-27 Thread Jan Viktorin
From: Vlastimil Kosar This implementation is based on IBM POWER version of rte_cpuflags. We use software emulation of HW capability registers, because those are usually not directly accessible from userspace on ARM. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- app/test

[dpdk-dev] [PATCH v3 11/17] eal/arm: detect arm architecture in cpu flags

2015-10-27 Thread Jan Viktorin
Based on the patch by David Hunt and Armuta Zende: lib: added support for armv7 architecture Signed-off-by: Jan Viktorin Signed-off-by: Amruta Zende Signed-off-by: David Hunt --- v2 -> v3: fixed forgotten include of string.h --- lib/librte_eal/common/include/arch/arm/rte_cpuflags.h |

[dpdk-dev] [PATCH v3 12/17] eal/arm: rwlock support for ARM

2015-10-27 Thread Jan Viktorin
Just a copy from PPC. Signed-off-by: Jan Viktorin --- .../common/include/arch/arm/rte_rwlock.h | 40 ++ 1 file changed, 40 insertions(+) create mode 100644 lib/librte_eal/common/include/arch/arm/rte_rwlock.h diff --git a/lib/librte_eal/common/include/arch/arm

[dpdk-dev] [PATCH v3 13/17] gcc/arm: avoid alignment errors to break build

2015-10-27 Thread Jan Viktorin
There several issues with alignment when compiling for ARMv7. They are not considered to be fatal (ARMv7 supports unaligned access of 32b words), so we just leave them as warnings. They should be solved later, however. Signed-off-by: Jan Viktorin Signed-off-by: Vlastimil Kosar --- mk/toolchain

[dpdk-dev] [PATCH v3 14/17] maintainers: claim responsibility for ARMv7

2015-10-27 Thread Jan Viktorin
Signed-off-by: Jan Viktorin --- MAINTAINERS | 4 1 file changed, 4 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 080a8e8..a8933eb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -124,6 +124,10 @@ IBM POWER M: Chao Zhu F: lib/librte_eal/common/include/arch/ppc_64/ +ARM v7 +M

[dpdk-dev] [PATCH v3 16/17] lpm/arm: implement rte_lpm_lookupx4 using rte_lpm_lookup_bulk for non-x86

2015-10-27 Thread Jan Viktorin
From: Vlastimil Kosar LPM function rte_lpm_lookupx4() uses i686/x86_64 SIMD intrinsics. Therefore, the function is reimplemented using non-vector operations for non-x86 architectures. LPM now builds for ARM. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- v2 -> v3: as S

[dpdk-dev] [PATCH v3 15/17] eal/arm: add very incomplete rte_vect

2015-10-27 Thread Jan Viktorin
This patch does not map x86 SIMD operations to the ARM ones. It just fills the necessary gap between the platforms to enable compilation of libraries LPM (includes rte_vect.h, lpm_test needs those SIMD functions) and ACL (includes rte_vect.h). Signed-off-by: Jan Viktorin --- lib/librte_eal

[dpdk-dev] [PATCH v3 17/17] acl: handle when SSE 4.1 is unsupported

2015-10-27 Thread Jan Viktorin
The main goal of this check is to avoid passing the -msse4.1 option to the GCC that does not support it (like arm toolchains). The ACL now builds for ARM. Signed-off-by: Jan Viktorin --- v2 -> v3: handle missing SSE as suggested by K. Ananyev --- lib/librte_acl/Makefile | 7 ++-

[dpdk-dev] [PATCH v3 01/17] mk: Introduce ARMv7 architecture

2015-10-28 Thread Jan Viktorin
On Wed, 28 Oct 2015 11:09:21 +0100 David Marchand wrote: > Hello Jan, > > On Tue, Oct 27, 2015 at 8:13 PM, Jan Viktorin > wrote: > > > > > diff --git a/config/defconfig_arm-armv7-a-linuxapp-gcc > > b/config/defconfig_arm-armv7-a-linuxapp-gcc > > new file

[dpdk-dev] Fw: |ERROR| pw 8090-8106 acl: handle when SSE 4.1 is unsupported

2015-10-28 Thread Jan Viktorin
-Status: ERROR Patchwork: http://www.dpdk.org/dev/patchwork/patch/8106/ DPDK git baseline: affc455438f4cbd3b14e2d9a24fbc154e22d68d3 Patchwork ID: 8090-8106 http://www.dpdk.org/dev/patchwork/patch/8106/ Submitter: Jan Viktorin Date: Tue, 27 Oct 2015 20:13:49 +0100 Compilation: OS: fedora Nic

[dpdk-dev] |ERROR| pw 8090-8106 acl: handle when SSE 4.1 is unsupported

2015-10-28 Thread Jan Viktorin
On Wed, 28 Oct 2015 11:17:37 + "Ananyev, Konstantin" wrote: > Hi Jan, > > > -Original Message- > > From: Jan Viktorin [mailto:viktorin at rehivetech.com] > > Sent: Wednesday, October 28, 2015 11:00 AM > > To: Ananyev, Konstantin > > C

[dpdk-dev] [PATCH v2 01/16] mk: Introduce ARMv7 architecture

2015-10-28 Thread Jan Viktorin
On Wed, 28 Oct 2015 14:34:40 +0100 David Marchand wrote: > On Mon, Oct 26, 2015 at 5:37 PM, Jan Viktorin > wrote: > > > From: Vlastimil Kosar > > > > Make DPDK run on ARMv7-A architecture. This patch assumes > > ARM Cortex-A9. However, it is known to be workin

[dpdk-dev] [PATCH v2 01/16] mk: Introduce ARMv7 architecture

2015-10-28 Thread Jan Viktorin
On Wed, 28 Oct 2015 14:39:27 +0100 David Marchand wrote: > On Mon, Oct 26, 2015 at 5:37 PM, Jan Viktorin > wrote: > > > > > diff --git a/config/defconfig_arm-armv7-a-linuxapp-gcc > > b/config/defconfig_arm-armv7-a-linuxapp-gcc > > new file mode 100644 > &

[dpdk-dev] [PATCH v3 13/17] gcc/arm: avoid alignment errors to break build

2015-10-28 Thread Jan Viktorin
On Wed, 28 Oct 2015 13:16:24 +0100 David Marchand wrote: > On Tue, Oct 27, 2015 at 8:13 PM, Jan Viktorin > wrote: > > > There several issues with alignment when compiling for ARMv7. > > They are not considered to be fatal (ARMv7 supports unaligned > > access of 3

[dpdk-dev] [PATCH v3 00/17] Support ARMv7 architecture

2015-10-28 Thread Jan Viktorin
On Wed, 28 Oct 2015 15:54:47 +0100 David Marchand wrote: > Hello Jan, > > On Tue, Oct 27, 2015 at 8:13 PM, Jan Viktorin > wrote: > > > Hello DPDK community, > > > > this is the third attempt to post support for ARMv7 into the DPDK. > > There are chang

[dpdk-dev] [PATCH v4 01/15] eal/arm: atomic operations for ARM

2015-10-29 Thread Jan Viktorin
From: Vlastimil Kosar This patch adds architecture specific atomic operation file for ARM architecture. It utilizes compiler intrinsics only. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- v1 -> v2: * improve rte_wmb() * use __atomic_* or __sync_*? (may affect the required

[dpdk-dev] [PATCH v4 00/15] Support ARMv7 architecture

2015-10-29 Thread Jan Viktorin
m/RehiveTech/dpdk.git arm-support-v4 since commit 82fb702077f67585d64a07de0080e5cb6a924a72: ixgbe: support new flow director modes for X550 (2015-10-29 00:06:01 +0100) up to 437c85fd6d9c5f3bdd2411fb9ddf703dc4cba5a5: maintainers: claim responsibility for ARMv7 (2015-10-29 13:33:49 +0100) --- J

[dpdk-dev] [PATCH v4 02/15] eal/arm: byte order operations for ARM

2015-10-29 Thread Jan Viktorin
From: Vlastimil Kosar This patch adds architecture specific byte order operations for ARM. The architecture supports both big and little endian. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- v4: fix passing params to asm volatile for checkpatch --- .../common/include/arch

[dpdk-dev] [PATCH v4 03/15] eal/arm: cpu cycle operations for ARM

2015-10-29 Thread Jan Viktorin
From: Vlastimil Kosar ARM architecture doesn't have a suitable source of CPU cycles. This patch uses clock_gettime instead. The implementation should be improved in the future. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- .../common/include/arch/arm/rte_cyc

[dpdk-dev] [PATCH v4 04/15] eal/arm: implement rdtsc by PMU or clock_gettime

2015-10-29 Thread Jan Viktorin
Enable to choose a preferred way to read timer based on the configuration entry CONFIG_RTE_ARM_EAL_RDTSC_USE_PMU. It requires a kernel module that is not included to work. Based on the patch by David Hunt and Armuta Zende: lib: added support for armv7 architecture Signed-off-by: Jan Viktorin

[dpdk-dev] [PATCH v4 05/15] eal/arm: prefetch operations for ARM

2015-10-29 Thread Jan Viktorin
From: Vlastimil Kosar This patch adds architecture specific prefetch operations for ARM architecture. It utilizes the pld instruction that starts filling the appropriate cache line without blocking. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- v4: * checkpatch does not like

[dpdk-dev] [PATCH v4 08/15] eal/arm: use vector memcpy only when NEON is enabled

2015-10-29 Thread Jan Viktorin
The GCC can be configured to avoid using NEON extensions. For that purpose, we provide just the memcpy implementation of the rte_memcpy. Based on the patch by David Hunt and Armuta Zende: lib: added support for armv7 architecture Signed-off-by: Jan Viktorin Signed-off-by: Amruta Zende

[dpdk-dev] [PATCH v4 06/15] eal/arm: spinlock operations for ARM (without HTM)

2015-10-29 Thread Jan Viktorin
From: Vlastimil Kosar This patch adds spinlock operations for ARM architecture. We do not support HTM in spinlocks on ARM. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- .../common/include/arch/arm/rte_spinlock.h | 114 + 1 file changed, 114

[dpdk-dev] [PATCH v4 07/15] eal/arm: vector memcpy for ARM

2015-10-29 Thread Jan Viktorin
: Vlastimil Kosar Signed-off-by: Jan Viktorin --- v4: * fix whitespace issues reported by checkpatch * fix passing params to asm volatile for checkpatch --- .../common/include/arch/arm/rte_memcpy.h | 279 + 1 file changed, 279 insertions(+) create mode 100644 lib

[dpdk-dev] [PATCH v4 09/15] eal/arm: cpu flag checks for ARM

2015-10-29 Thread Jan Viktorin
From: Vlastimil Kosar This implementation is based on IBM POWER version of rte_cpuflags. We use software emulation of HW capability registers, because those are usually not directly accessible from userspace on ARM. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- app/test

[dpdk-dev] [PATCH v4 10/15] eal/arm: detect arm architecture in cpu flags

2015-10-29 Thread Jan Viktorin
Based on the patch by David Hunt and Armuta Zende: lib: added support for armv7 architecture Signed-off-by: Jan Viktorin Signed-off-by: Amruta Zende Signed-off-by: David Hunt --- v2 -> v3: fixed forgotten include of string.h v4: checkpatch reports few characters over 80 for checking aarc

[dpdk-dev] [PATCH v4 11/15] eal/arm: rwlock support for ARM

2015-10-29 Thread Jan Viktorin
Just a copy from PPC. Signed-off-by: Jan Viktorin --- .../common/include/arch/arm/rte_rwlock.h | 40 ++ 1 file changed, 40 insertions(+) create mode 100644 lib/librte_eal/common/include/arch/arm/rte_rwlock.h diff --git a/lib/librte_eal/common/include/arch/arm

[dpdk-dev] [PATCH v4 12/15] eal/arm: add very incomplete rte_vect

2015-10-29 Thread Jan Viktorin
This patch does not map x86 SIMD operations to the ARM ones. It just fills the necessary gap between the platforms to enable compilation of libraries LPM (includes rte_vect.h, lpm_test needs those SIMD functions) and ACL (includes rte_vect.h). Signed-off-by: Jan Viktorin --- v4: checkpatch

[dpdk-dev] [PATCH v4 13/15] gcc/arm: avoid alignment errors to break build

2015-10-29 Thread Jan Viktorin
There several issues with alignment when compiling for ARMv7. They are not considered to be fatal (ARMv7 supports unaligned access of 32b words), so we just leave them as warnings. They should be solved later, however. Signed-off-by: Jan Viktorin Signed-off-by: Vlastimil Kosar --- v4: restrict

[dpdk-dev] [PATCH v4 14/15] mk: Introduce ARMv7 architecture

2015-10-29 Thread Jan Viktorin
From: Vlastimil Kosar Make DPDK run on ARMv7-A architecture. This patch assumes ARM Cortex-A9. However, it is known to be working on Cortex-A7 and Cortex-A15. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- v2: * the -mtune parameter of GCC is configurable now * the -mfpu=neon

[dpdk-dev] [PATCH v4 15/15] maintainers: claim responsibility for ARMv7

2015-10-29 Thread Jan Viktorin
Signed-off-by: Jan Viktorin --- MAINTAINERS | 4 1 file changed, 4 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 080a8e8..a8933eb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -124,6 +124,10 @@ IBM POWER M: Chao Zhu F: lib/librte_eal/common/include/arch/ppc_64/ +ARM v7 +M

[dpdk-dev] [PATCH v3 00/17] Support ARMv7 architecture

2015-10-29 Thread Jan Viktorin
On Thu, 29 Oct 2015 15:02:03 +0100 Thomas Monjalon wrote: > 2015-10-28 18:58, David Marchand: > > > > - since you introduce a new architecture, do you intend to run daily > > > > build checks and send reports to the test-report mailing list ? > > > > > > I think, this is possible, if I automate

[dpdk-dev] [PATCH 3/5] eal: fix compilation for armv8 64-bit

2015-10-29 Thread Jan Viktorin
pedef Elf32_auxv_t Elf_auxv_t; #endif while leaving the above code almost untouched (just Elf32_auxv_t -> Elf_auxv_t). This is like spagetti... :) Regards Jan -- Jan Viktorin E-mail: Viktorin at RehiveTech.com System Architect Web:www.RehiveTech.com RehiveTech Brno, Czech Republic

[dpdk-dev] [PATCH 4/5] mk: add support for armv8 on top of armv7

2015-10-29 Thread Jan Viktorin
s. > + * ARMv7 can be tested with virtual PMD drivers. > + * ARMv8 can be tested with virtual and physicla PMD drivers. Typo "physical" > > > Resolved Issues > diff --git a/mk/arch/arm64/rte.vars.mk b/mk/arch/arm64/rte.vars.mk > new file mode 100644 -- Jan

[dpdk-dev] [PATCH 4/5] mk: add support for armv8 on top of armv7

2015-10-29 Thread Jan Viktorin
otes/release_2_2.rst > +++ b/doc/guides/rel_notes/release_2_2.rst > @@ -23,10 +23,11 @@ New Features > > * **Added vhost-user multiple queue support.** > > -* **Introduce ARMv7 architecture** -- Jan Viktorin E-mail: Viktorin at RehiveTech.com System Archit

[dpdk-dev] [PATCH 0/5] ARMv8 additions to ARMv7 support

2015-10-30 Thread Jan Viktorin
e_memcpy_64.h > create mode 100644 lib/librte_eal/common/include/arch/arm/rte_prefetch_32.h > create mode 100644 lib/librte_eal/common/include/arch/arm/rte_prefetch_64.h > create mode 100644 mk/arch/arm64/rte.vars.mk > create mode 100644 mk/machine/armv8a/rte.vars.mk > -- Jan ViktorinE-mail: Viktorin at RehiveTech.com System ArchitectWeb:www.RehiveTech.com RehiveTech Brno, Czech Republic

[dpdk-dev] [PATCH v5 00/15] Support ARMv7 architecture

2015-10-30 Thread Jan Viktorin
eTech/dpdk.git arm-support-v5 since commit 82fb702077f67585d64a07de0080e5cb6a924a72: ixgbe: support new flow director modes for X550 (2015-10-29 00:06:01 +0100) up to 285d29f6226d53c8af8035ebaf4c9edf635e2c56: maintainers: claim responsibility for ARMv7 (2015-10-30 01:13:26 +0100) --- Jan Viktor

[dpdk-dev] [PATCH v5 01/15] eal/arm: atomic operations for ARM

2015-10-30 Thread Jan Viktorin
From: Vlastimil Kosar This patch adds architecture specific atomic operation file for ARM architecture. It utilizes compiler intrinsics only. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- v1 -> v2: * improve rte_wmb() * use __atomic_* or __sync_*? (may affect the required

[dpdk-dev] [PATCH v5 02/15] eal/arm: byte order operations for ARM

2015-10-30 Thread Jan Viktorin
From: Vlastimil Kosar This patch adds architecture specific byte order operations for ARM. The architecture supports both big and little endian. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- v4: fix passing params to asm volatile for checkpatch --- .../common/include/arch

[dpdk-dev] [PATCH v5 06/15] eal/arm: spinlock operations for ARM (without HTM)

2015-10-30 Thread Jan Viktorin
From: Vlastimil Kosar This patch adds spinlock operations for ARM architecture. We do not support HTM in spinlocks on ARM. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- .../common/include/arch/arm/rte_spinlock.h | 114 + 1 file changed, 114

[dpdk-dev] [PATCH v5 08/15] eal/arm: use vector memcpy only when NEON is enabled

2015-10-30 Thread Jan Viktorin
The GCC can be configured to avoid using NEON extensions. For that purpose, we provide just the memcpy implementation of the rte_memcpy. Based on the patch by David Hunt and Armuta Zende: lib: added support for armv7 architecture Signed-off-by: Jan Viktorin Signed-off-by: Amruta Zende

[dpdk-dev] [PATCH v5 07/15] eal/arm: vector memcpy for ARM

2015-10-30 Thread Jan Viktorin
: Vlastimil Kosar Signed-off-by: Jan Viktorin --- v4: * fix whitespace issues reported by checkpatch * fix passing params to asm volatile for checkpatch v5: prepare for applying ARMv8 --- .../common/include/arch/arm/rte_memcpy.h | 38 +++ .../common/include/arch/arm/rte_memcpy_32.h

[dpdk-dev] [PATCH v5 09/15] eal/arm: cpu flag checks for ARM

2015-10-30 Thread Jan Viktorin
From: Vlastimil Kosar This implementation is based on IBM POWER version of rte_cpuflags. We use software emulation of HW capability registers, because those are usually not directly accessible from userspace on ARM. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- app/test

[dpdk-dev] [PATCH v5 10/15] eal/arm: detect arm architecture in cpu flags

2015-10-30 Thread Jan Viktorin
Based on the patch by David Hunt and Armuta Zende: lib: added support for armv7 architecture Signed-off-by: Jan Viktorin Signed-off-by: Amruta Zende Signed-off-by: David Hunt --- v2 -> v3: fixed forgotten include of string.h v4: checkpatch reports few characters over 80 for checking aarc

[dpdk-dev] [PATCH v5 11/15] eal/arm: rwlock support for ARM

2015-10-30 Thread Jan Viktorin
Just a copy from PPC. Signed-off-by: Jan Viktorin --- .../common/include/arch/arm/rte_rwlock.h | 40 ++ 1 file changed, 40 insertions(+) create mode 100644 lib/librte_eal/common/include/arch/arm/rte_rwlock.h diff --git a/lib/librte_eal/common/include/arch/arm

[dpdk-dev] [PATCH v5 12/15] eal/arm: add very incomplete rte_vect

2015-10-30 Thread Jan Viktorin
This patch does not map x86 SIMD operations to the ARM ones. It just fills the necessary gap between the platforms to enable compilation of libraries LPM (includes rte_vect.h, lpm_test needs those SIMD functions) and ACL (includes rte_vect.h). Signed-off-by: Jan Viktorin --- v4: checkpatch

[dpdk-dev] [PATCH v5 13/15] gcc/arm: avoid alignment errors to break build

2015-10-30 Thread Jan Viktorin
There several issues with alignment when compiling for ARMv7. They are not considered to be fatal (ARMv7 supports unaligned access of 32b words), so we just leave them as warnings. They should be solved later, however. Signed-off-by: Jan Viktorin Signed-off-by: Vlastimil Kosar --- v4: restrict

[dpdk-dev] [PATCH v5 14/15] mk: Introduce ARMv7 architecture

2015-10-30 Thread Jan Viktorin
From: Vlastimil Kosar Make DPDK run on ARMv7-A architecture. This patch assumes ARM Cortex-A9. However, it is known to be working on Cortex-A7 and Cortex-A15. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- v2: * the -mtune parameter of GCC is configurable now * the -mfpu=neon

[dpdk-dev] [PATCH v5 15/15] maintainers: claim responsibility for ARMv7

2015-10-30 Thread Jan Viktorin
Signed-off-by: Jan Viktorin --- MAINTAINERS | 4 1 file changed, 4 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 080a8e8..a8933eb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -124,6 +124,10 @@ IBM POWER M: Chao Zhu F: lib/librte_eal/common/include/arch/ppc_64/ +ARM v7 +M

[dpdk-dev] [PATCH v5 03/15] eal/arm: cpu cycle operations for ARM

2015-10-30 Thread Jan Viktorin
From: Vlastimil Kosar ARM architecture doesn't have a suitable source of CPU cycles. This patch uses clock_gettime instead. The implementation should be improved in the future. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- v5: prepare for applying ARMv8 --- .../c

[dpdk-dev] [PATCH v5 04/15] eal/arm: implement rdtsc by PMU or clock_gettime

2015-10-30 Thread Jan Viktorin
Enable to choose a preferred way to read timer based on the configuration entry CONFIG_RTE_ARM_EAL_RDTSC_USE_PMU. It requires a kernel module that is not included to work. Based on the patch by David Hunt and Armuta Zende: lib: added support for armv7 architecture Signed-off-by: Jan Viktorin

[dpdk-dev] [PATCH v5 05/15] eal/arm: prefetch operations for ARM

2015-10-30 Thread Jan Viktorin
From: Vlastimil Kosar This patch adds architecture specific prefetch operations for ARM architecture. It utilizes the pld instruction that starts filling the appropriate cache line without blocking. Signed-off-by: Vlastimil Kosar Signed-off-by: Jan Viktorin --- v4: * checkpatch does not like

[dpdk-dev] [PATCH 0/5] ARMv8 additions to ARMv7 support

2015-10-30 Thread Jan Viktorin
Thanks for that hint. I am able to run it in qemu. I tried several tests from the test suite and it works. Jan On Fri, 30 Oct 2015 08:52:49 + "Hunt, David" wrote: > On 30/10/2015 00:17, Jan Viktorin wrote: > > I've failed to compile kni/igb for ARMv8. An

[dpdk-dev] [PATCH v2 3/6] eal/arm: add 64-bit armv8 version of rte_cycles.h

2015-10-30 Thread Jan Viktorin
IMER_MULTIPLIER; > +#else I think, this should be CONFIG_RTE_TIMER_MULTIPLIER. Jan > + return tsc; > +#endif > + > +} > + -- Jan Viktorin E-mail: Viktorin at RehiveTech.com System Architect Web:www.RehiveTech.com RehiveTech Brno, Czech Republic

[dpdk-dev] [PATCH v2 4/6] eal/arm: fix 64-bit armv8 compilation of rte_cpuflags.h

2015-10-30 Thread Jan Viktorin
Much better then the previous... Reviewed-by: Jan Viktorin On Fri, 30 Oct 2015 11:51:24 + David Hunt wrote: > Signed-off-by: David Hunt > --- > lib/librte_eal/common/include/arch/arm/rte_cpuflags.h | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > >

[dpdk-dev] [PATCH v2 5/6] mk: add support for armv8 on top of armv7

2015-10-30 Thread Jan Viktorin
I'd put here (in the commit message) the note that the armv8 includes are in the arm directory. Otherwise: Reviewed-by: Jan Viktorin On Fri, 30 Oct 2015 11:51:25 + David Hunt wrote: > Signed-off-by: David Hunt > --- > MAINTAINERS|

[dpdk-dev] [PATCH v3 6/6] test: add checks for cpu flags on armv8

2015-10-30 Thread Jan Viktorin
not CC'd there... Jan?Viktorin RehiveTech Sent?from?a?mobile?device ? P?vodn? zpr?va ? Od: Hunt, David Odesl?no: p?tek, 30. ??jna 2015 15:07 Komu: Jan Viktorin P?edm?t: Fwd: [PATCH v3 6/6] test: add checks for cpu flags on armv8 Jan, I had gone to the trouble of adding a "Reviewed-by" li

[dpdk-dev] Fw: |ERROR| pw 8279-8293 maintainers: claim responsibility for ARMv7

2015-10-31 Thread Jan Viktorin
>confused...? Jan?Viktorin RehiveTech Sent?from?a?mobile?device ? P?vodn? zpr?va ? Od: sys_stv at intel.com Odesl?no: sobota, 31. ??jna 2015 6:53 Komu: test-report at dpdk.org; viktorin at rehivetech.com P?edm?t: |ERROR| pw 8279-8293 maintainers: claim responsibility for ARMv7 Test-Label: In

[dpdk-dev] [dpdk-announce] DPDK support in Buildroot

2015-10-30 Thread Jan Viktorin
/usr/bin/test [--no-huge] [--no-pci] Regards Jan Viktorin [1] http://lists.busybox.net/pipermail/buildroot/2015-October/143413.html [2] http://buildroot.uclibc.org/ -- Jan Viktorin E-mail: Viktorin at RehiveTech.com System Architect Web:www.RehiveTech.

[dpdk-dev] [RFC 0/7] Support non-PCI devices

2016-01-01 Thread Jan Viktorin
access to the device memory specified in the device-tree's reg property, must give a way how to perform DMA transfers, should be able to deliver interrupts, etc. See the commits for more details... Happy New Year! Regards Jan Viktorin Jan Viktorin (7): eal/common: define rte_soc_* relat

[dpdk-dev] [PATCH v2 01/16] vfio: fix include of eal_private.h to be local

2016-07-04 Thread Jan Viktorin
On Mon, 4 Jul 2016 10:22:08 + "Burakov, Anatoly" wrote: > > -Original Message----- > > From: Jan Viktorin [mailto:viktorin at rehivetech.com] > > Sent: Monday, June 13, 2016 2:02 PM > > To: dev at dpdk.org > > Cc: Jan Viktorin ; Burakov, Anatoly

[dpdk-dev] [PATCH v1 28/28] ether: support SoC device/driver

2016-07-04 Thread Jan Viktorin
On Wed, 29 Jun 2016 15:12:07 +0530 Shreyansh jain wrote: > Hi Jan, > > On Friday 06 May 2016 07:18 PM, Jan Viktorin wrote: > > Signed-off-by: Jan Viktorin > > --- > > lib/librte_ether/rte_ethdev.c | 127 > > +- > &g

[dpdk-dev] [PATCH v1 02/28] eal: extract function eal_parse_sysfs_valuef

2016-07-04 Thread Jan Viktorin
Hello Shreyansh, On Thu, 16 Jun 2016 11:47:29 + Shreyansh Jain wrote: > Sorry, didn't notice this email earlier... > Comments inline > > > -Original Message- > > From: Jan Viktorin [mailto:viktorin at rehivetech.com] > > Sent: Wednesday, June 15, 201

[dpdk-dev] [PATCH v1 28/28] ether: support SoC device/driver

2016-07-04 Thread Jan Viktorin
On Mon, 4 Jul 2016 19:57:18 +0530 Shreyansh jain wrote: [...] > >>> @@ -1431,7 +1524,7 @@ rte_eth_dev_info_get(uint8_t port_id, struct > >>> rte_eth_dev_info *dev_info) > >>> > >>> RTE_FUNC_PTR_OR_RET(*dev->dev_ops->dev_infos_get); > >>> (*dev->dev_ops->dev_infos_get)(dev, dev_info); > >>

[dpdk-dev] [PATCH v2 01/16] vfio: fix include of eal_private.h to be local

2016-07-04 Thread Jan Viktorin
On Mon, 4 Jul 2016 10:22:08 + "Burakov, Anatoly" wrote: [...] > There's no patch cover letter so I'll reply to the first patch. I've done > some cursory testing with a NIC, nothing seems to be broken and the code > looks OK to me. So, once this patchset is rebased on latest master (patche

[dpdk-dev] [PATCH v3 00/16] Make VFIO support less dependent on PCI

2016-07-04 Thread Jan Viktorin
Hello, I've rebased the v2 of this patch set on top of the current master. It builds well for my setup (both VFIO enabled and disabled). Regards Jan v3: * 0012: Acked-by: John McNamara Jan Viktorin (16): vfio: fix include of eal_private.h to be local vfio: move VFIO-specific stu

[dpdk-dev] [PATCH v3 01/16] vfio: fix include of eal_private.h to be local

2016-07-04 Thread Jan Viktorin
Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c b/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c index f91b924..8b7d53f 100644 --- a/lib/librte_eal/linuxapp/eal

[dpdk-dev] [PATCH v3 02/16] vfio: move VFIO-specific stuff to eal_vfio.h

2016-07-04 Thread Jan Viktorin
The common VFIO definitions should be separated from the PCI-specific parts. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_pci_init.h | 28 lib/librte_eal/linuxapp/eal/eal_vfio.h | 28 2 files changed, 28 insertions

[dpdk-dev] [PATCH v3 03/16] vfio: move common vfio constants to eal_vfio.h

2016-07-04 Thread Jan Viktorin
Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 7 --- lib/librte_eal/linuxapp/eal/eal_vfio.h | 7 +++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c b/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c

[dpdk-dev] [PATCH v3 04/16] vfio: move vfio_iommu_type and dma_map functions to eal_vfio

2016-07-04 Thread Jan Viktorin
We make the iommu_types public temporarily here until the depending stuff is refactored. The iommu_types and dma_map functions will be changed to be private inside the eal_vfio module later. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/Makefile | 1 + lib/librte_eal

[dpdk-dev] [PATCH v3 05/16] vfio: generalize pci_vfio_set_iommu_type

2016-07-04 Thread Jan Viktorin
The pci_vfio_set_iommu_type is not PCI-specific and it is a private function of the eal_pci_vfio.c. We just rename the function and make it available even for non-PCI devices. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 25 + lib

[dpdk-dev] [PATCH v3 06/16] vfio: generalize pci_vfio_has_supported_extensions

2016-07-04 Thread Jan Viktorin
The pci_vfio_has_supported_extensions is not PCI-specific and it is a private function of the eal_pci_vfio.c. We just rename the function and make it available even for non-PCI devices. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 36

[dpdk-dev] [PATCH v3 07/16] vfio: move vfio-specific SOCKET_* constants

2016-07-04 Thread Jan Viktorin
The constants are not PCI-specific. Move them into the eal_vfio.h. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_pci_init.h | 7 --- lib/librte_eal/linuxapp/eal/eal_vfio.h | 6 ++ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/librte_eal

[dpdk-dev] [PATCH v3 08/16] vfio: generalize pci_vfio_get_container_fd

2016-07-04 Thread Jan Viktorin
The pci_vfio_get_container_fd is not PCI-specific. Move the implementation to the eal_vfio.c as vfio_get_container_fd. No other code seems to call this function. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_pci_init.h | 1 - lib/librte_eal/linuxapp/eal/eal_pci_vfio.c

[dpdk-dev] [PATCH v3 09/16] vfio: generalize pci_vfio_get_group_no

2016-07-04 Thread Jan Viktorin
. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 38 +- lib/librte_eal/linuxapp/eal/eal_vfio.c | 43 ++ lib/librte_eal/linuxapp/eal/eal_vfio.h | 7 + 3 files changed, 51 insertions(+), 37 deletions(-) diff

[dpdk-dev] [PATCH v3 10/16] vfio: extract setup logic out of pci_vfio_map_resource

2016-07-04 Thread Jan Viktorin
The setup logic access the global vfio_cfg variable that will be moved in the following commits. We need to separate all accesses to this variable to a general code. Signed-off-by: Jan Viktorin --- lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 85 +- 1 file changed

<    1   2   3   4   5   6   7   >