From: Liron Himi Date: Sat, 18 May 2019 21:10:54 +0000 (+0300) Subject: config: add Marvell ARMADA based on armv8-a X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=dd1cd845c1029ae9c6fcb965d36624896cee0b4b;p=dpdk.git config: add Marvell ARMADA based on armv8-a This patch introduces armada target to address difference in number of cores, no numa support Signed-off-by: Liron Himi Reviewed-by: Alan Winkowski Reviewed-by: Jerin Jacob Acked-by: Ruifeng Wang Acked-by: Gavin Hu --- diff --git a/config/arm/arm64_armada_linux_gcc b/config/arm/arm64_armada_linux_gcc new file mode 100644 index 0000000000..6e6d56f6fd --- /dev/null +++ b/config/arm/arm64_armada_linux_gcc @@ -0,0 +1,16 @@ +[binaries] +c = 'aarch64-linux-gnu-gcc' +cpp = 'aarch64-linux-gnu-cpp' +ar = 'aarch64-linux-gnu-ar' +as = 'aarch64-linux-gnu-as' +strip = 'aarch64-linux-gnu-strip' +pcap-config = '' + +[host_machine] +system = 'linux' +cpu_family = 'aarch64' +cpu = 'armv8-a' +endian = 'little' + +[properties] +implementor_id = '0x56' diff --git a/config/arm/meson.build b/config/arm/meson.build index abc8cf346c..6fa06a1684 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -56,6 +56,12 @@ flags_dpaa2 = [ ['RTE_MAX_NUMA_NODES', 1], ['RTE_MAX_LCORE', 16], ['RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', false]] +flags_armada = [ + ['RTE_MACHINE', '"armv8a"'], + ['RTE_CACHE_LINE_SIZE', 64], + ['RTE_MAX_NUMA_NODES', 1], + ['RTE_MAX_LCORE', 16]] + flags_default_extra = [] flags_thunderx_extra = [ ['RTE_MACHINE', '"thunderx"'], @@ -104,7 +110,7 @@ impl_0x4e = ['NVIDIA', flags_generic, machine_args_generic] impl_0x50 = ['AppliedMicro', flags_generic, machine_args_generic] impl_0x51 = ['Qualcomm', flags_generic, machine_args_generic] impl_0x53 = ['Samsung', flags_generic, machine_args_generic] -impl_0x56 = ['Marvell', flags_generic, machine_args_generic] +impl_0x56 = ['Marvell ARMADA', flags_armada, machine_args_generic] impl_0x69 = ['Intel', flags_generic, machine_args_generic] impl_dpaa = ['NXP DPAA', flags_dpaa, machine_args_generic] impl_dpaa2 = ['NXP DPAA2', flags_dpaa2, machine_args_generic] diff --git a/config/defconfig_arm64-armada-linux-gcc b/config/defconfig_arm64-armada-linux-gcc new file mode 120000 index 0000000000..64ce2a5687 --- /dev/null +++ b/config/defconfig_arm64-armada-linux-gcc @@ -0,0 +1 @@ +defconfig_arm64-armada-linuxapp-gcc \ No newline at end of file diff --git a/config/defconfig_arm64-armada-linuxapp-gcc b/config/defconfig_arm64-armada-linuxapp-gcc new file mode 100644 index 0000000000..0591802846 --- /dev/null +++ b/config/defconfig_arm64-armada-linuxapp-gcc @@ -0,0 +1,25 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2018 Marvell International Ltd +# + +#include "defconfig_arm64-armv8a-linux-gcc" + +# +# Compile Environment Abstraction Layer +# +CONFIG_RTE_MAX_LCORE=16 +CONFIG_RTE_MAX_NUMA_NODES=1 +CONFIG_RTE_CACHE_LINE_SIZE=64 + +# Enable PMDs +CONFIG_RTE_LIBRTE_MVEP_COMMON=y +CONFIG_RTE_LIBRTE_MVPP2_PMD=y +CONFIG_RTE_LIBRTE_MVNETA_PMD=y +CONFIG_RTE_LIBRTE_PMD_MVSAM_CRYPTO=y + +# Disable NXP as it is conflict with MUSDK +CONFIG_RTE_LIBRTE_DPAA_BUS=n + +# Doesn't support NUMA +CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=n +CONFIG_RTE_LIBRTE_VHOST_NUMA=n