Skip to content

add armv8 architecture support

David Hunt dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11lib: add armv8 rte_atomic.hlib/librte_eal/common/include/arch/arm64/rte_atomic.h+269 -00 replies
2/11lib: add armv8 rte_byteorder.hlib/librte_eal/common/include/arch/arm64/rte_byteorder.h+157 -00 replies
3/11lib: add armv8 rte_cpuflags.hlib/librte_eal/common/include/arch/arm64/rte_cpuflags.h+137 -01 reply
4/11lib: add armv8 rte_cycles.hlib/librte_eal/common/include/arch/arm64/rte_cycles.h+77 -00 replies
5/11lib: add armv8 rte_memcpy.hlib/librte_eal/common/include/arch/arm64/rte_memcpy.h+266 -01 reply
6/11lib: add armv8 rte_prefetch.hlib/librte_eal/common/include/arch/arm64/rte_prefetch.h+61 -00 replies
7/11lib: add armv8 rte_rwlock.hlib/librte_eal/common/include/arch/arm64/rte_rwlock.h+70 -00 replies
8/11lib: add armv8 rte_spinlock.hlib/librte_eal/common/include/arch/arm64/rte_spinlock.h+114 -00 replies
9/11lib: add armv8 rte_vect.hlib/librte_eal/common/include/arch/arm64/rte_vect.h+102 -01 reply
10/11mk: add makefile and config changes for armv8 architectureMAINTAINERS config/defconfig_arm64-native-linuxapp-gcc mk/arch/arm64/rte.vars.mk +2 more+185 -03 replies
11/11app: add armv8 cpuflags check to test_cpuflags applicationapp/test/test_cpuflags.c+17 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/11] add armv8 architecture support

This patch provides support for the ARMv8 architecture. We hope that this will encourage the ARM community to contribute PMDs for their SoCs to DPDK.

For now, we've added Intel engineers to the MAINTAINERS file. We would like to encourage the ARM community to take over maintenance of this area in future, and to further improve it.

ACL and LPM libraries have been disabled in the config due to their reliance on SSE.

This patch was tested on an Applied Micro X-Gene Mustang board (pcap only)

This patch was also tested with an Intel 82599 NIC on a Gigabyte MP30-AR0 passing traffic between the two NIC ports using testpmd.

Notes on DPDK configuration:

Did not use igb_uio or kni so the following optionse were disabled in config/common_linuxapp

CONFIG_RTE_EAL_IGB_UIO=n
CONFIG_RTE_LIBRTE_KNI=n
CONFIG_RTE_KNI_KMOD=n

make config T=arm64-native-linuxapp-gcc
make install T=arm64-native-linuxapp-gcc

Notes on arm64 kernel configuration:

Using Ubuntu 14.04 LTS with a 4.3.0-rc6 kernel (with modified PCI drivers), and uio_pci_generic.
ARM64 kernels do not seem to have functional resource mapping of PCI memory (PCI_MMAP), so the pci driver needs to be patched to enable this. The symptom of this is when /sys/bus/pci/devices/0000:0X:00.Y directory is missing the resource0...N files for mmapping the device memory. Earlier kernels (3.13.x) had these files present, but mmap'ping resulted in a "Bus Error" when the NIC memory was accessed.
However, during limited testing with a modified 4.3.0-rc6 kernel, we were able to mmap the NIC memory, and pass traffic between the two ports on a 82599 NIC connected via fibre cable.
We have no plans to upstream a kernel patch for this and hope that someone more familiar with the arm architecture can create a proper patch and enable this functionality.

Benjamin Boren (11):
lib: add armv8 rte_atomic.h
lib: add armv8 rte_byteorder.h
lib: add armv8 rte_cpuflags.h
lib: add armv8 rte_cycles.h
lib: add armv8 rte_memcpy.h
lib: add armv8 rte_prefetch.h
lib: add armv8 rte_rwlock.h
lib: add armv8 rte_spinlock.h
lib: add armv8 rte_vect.h
mk: add makefile and config changes for armv8 architecture
app: add armv8 cpuflags check to test_cpuflags application

 MAINTAINERS                                        |   6 +
 app/test/test_cpuflags.c                           |  17 ++
 config/defconfig_arm64-native-linuxapp-gcc         |  55 +++++
 .../common/include/arch/arm64/rte_atomic.h         | 269 +++++++++++++++++++++
 .../common/include/arch/arm64/rte_byteorder.h      | 157 ++++++++++++
 .../common/include/arch/arm64/rte_cpuflags.h       | 137 +++++++++++
 .../common/include/arch/arm64/rte_cycles.h         |  77 ++++++
 .../common/include/arch/arm64/rte_memcpy.h         | 266 ++++++++++++++++++++
 .../common/include/arch/arm64/rte_prefetch.h       |  61 +++++
 .../common/include/arch/arm64/rte_rwlock.h         |  70 ++++++
 .../common/include/arch/arm64/rte_spinlock.h       | 114 +++++++++
 .../common/include/arch/arm64/rte_vect.h           | 102 ++++++++
 mk/arch/arm64/rte.vars.mk                          |  58 +++++
 mk/machine/armv8-a/rte.vars.mk                     |  57 +++++
 mk/rte.cpuflags.mk                                 |   9 +
 15 files changed, 1455 insertions(+)
 create mode 100644 config/defconfig_arm64-native-linuxapp-gcc
 create mode 100644 lib/librte_eal/common/include/arch/arm64/rte_atomic.h
 create mode 100644 lib/librte_eal/common/include/arch/arm64/rte_byteorder.h
 create mode 100644 lib/librte_eal/common/include/arch/arm64/rte_cpuflags.h
 create mode 100644 lib/librte_eal/common/include/arch/arm64/rte_cycles.h
 create mode 100644 lib/librte_eal/common/include/arch/arm64/rte_memcpy.h
 create mode 100644 lib/librte_eal/common/include/arch/arm64/rte_prefetch.h
 create mode 100644 lib/librte_eal/common/include/arch/arm64/rte_rwlock.h
 create mode 100644 lib/librte_eal/common/include/arch/arm64/rte_spinlock.h
 create mode 100644 lib/librte_eal/common/include/arch/arm64/rte_vect.h
 create mode 100644 mk/arch/arm64/rte.vars.mk
 create mode 100644 mk/machine/armv8-a/rte.vars.mk
Signature · 1 line
2.1.4