build: add emag(arm64) platform and default config
cover build: add emag(arm64) platform and default config
*** BLURB HERE ***
Jerry Hao OS (1):
build: add emag(arm64) platform and default config
config/arm/arm64_emag_linux_gcc | 15 ++++++++++++ config/arm/meson.build | 11 ++++++++- config/defconfig_arm64-emag-linux-gcc | 1 + config/defconfig_arm64-emag-linuxapp-gcc | 11 +++++++++ mk/machine/emag/rte.vars.mk | 31 ++++++++++++++++++++++++ 5 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 config/arm/arm64_emag_linux_gcc create mode 120000 config/defconfig_arm64-emag-linux-gcc create mode 100644 config/defconfig_arm64-emag-linuxapp-gcc create mode 100644 mk/machine/emag/rte.vars.mk
Signature · 1 line
2.17.1
PATCH 1/1 build: add emag(arm64) platform and default config
This patch is to add the emag default CACHE_LINE_SIZE settings and ARCH variable definitions;
Added the meson build config.
--- config/arm/arm64_emag_linux_gcc | 15 ++++++++++++ config/arm/meson.build | 11 ++++++++- config/defconfig_arm64-emag-linux-gcc | 1 + config/defconfig_arm64-emag-linuxapp-gcc | 11 +++++++++ mk/machine/emag/rte.vars.mk | 31 ++++++++++++++++++++++++ 5 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 config/arm/arm64_emag_linux_gcc create mode 120000 config/defconfig_arm64-emag-linux-gcc create mode 100644 config/defconfig_arm64-emag-linuxapp-gcc create mode 100644 mk/machine/emag/rte.vars.mk
config/arm/arm64_emag_linux_gcc new file +15 -0
@@ -0,0 +1,15 @@ +[binaries] +c = 'aarch64-linux-gnu-gcc' +cpp = 'aarch64-linux-gnu-cpp' +ar = 'aarch64-linux-gnu-gcc-ar' +strip = 'aarch64-linux-gnu-strip' +pcap-config = '' + +[host_machine] +system = 'linux' +cpu_family = 'aarch64' +cpu = 'armv8-a' +endian = 'little' + +[properties] +implementor_id = '0x50'
config/arm/meson.build +10 -1
@@ -61,6 +61,11 @@ flags_armada = [ ['RTE_CACHE_LINE_SIZE', 64], ['RTE_MAX_NUMA_NODES', 1], ['RTE_MAX_LCORE', 16]] +flags_emag = [ + ['RTE_MACHINE', '"emag"'], + ['RTE_CACHE_LINE_SIZE', 64], + ['RTE_MAX_NUMA_NODES', 1], + ['RTE_MAX_LCORE', 32]] flags_default_extra = [] flags_thunderx_extra = [
@@ -98,6 +103,10 @@ machine_args_cavium = [ ['0xaf', ['-march=armv8.1-a+crc+crypto','-mcpu=thunderx2t99'], flags_thunderx2_extra], ['0xb2', ['-mcpu=octeontx2'], flags_octeontx2_extra]] +machine_args_emag = [ + ['default', ['-march=armv8-a+crc+crypto']], + ['native', ['-march=native']]] + ## Arm implementer ID (ARM DDI 0487C.a, Section G7.2.106, Page G7-5321) impl_generic = ['Generic armv8', flags_generic, machine_args_generic] impl_0x41 = ['Arm', flags_arm, machine_args_generic]
@@ -107,7 +116,7 @@ impl_0x44 = ['DEC', flags_generic, machine_args_generic] impl_0x49 = ['Infineon', flags_generic, machine_args_generic] impl_0x4d = ['Motorola', flags_generic, machine_args_generic] impl_0x4e = ['NVIDIA', flags_generic, machine_args_generic] -impl_0x50 = ['AppliedMicro', flags_generic, machine_args_generic] +impl_0x50 = ['Ampere Computing', flags_emag, machine_args_emag] impl_0x51 = ['Qualcomm', flags_generic, machine_args_generic] impl_0x53 = ['Samsung', flags_generic, machine_args_generic] impl_0x56 = ['Marvell ARMADA', flags_armada, machine_args_generic]
config/defconfig_arm64-emag-linux-gcc new file +1 -0
@@ -0,0 +1 @@ +defconfig_arm64-emag-linuxapp-gcc
config/defconfig_arm64-emag-linuxapp-gcc new file +11 -0
@@ -0,0 +1,11 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2019 Ampere Computing +# + +#include "defconfig_arm64-armv8a-linux-gcc" + +CONFIG_RTE_MACHINE="emag" + +CONFIG_RTE_CACHE_LINE_SIZE=64 +CONFIG_RTE_MAX_NUMA_NODES=1 +CONFIG_RTE_MAX_LCORE=32
mk/machine/emag/rte.vars.mk new file +31 -0
@@ -0,0 +1,31 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2019 Ampere Computing +# + +# +# machine: +# +# - can define ARCH variable (overridden by cmdline value) +# - can define CROSS variable (overridden by cmdline value) +# - define MACHINE_CFLAGS variable (overridden by cmdline value) +# - define MACHINE_LDFLAGS variable (overridden by cmdline value) +# - define MACHINE_ASFLAGS variable (overridden by cmdline value) +# - can define CPU_CFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - can define CPU_LDFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - can define CPU_ASFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - may override any previously defined variable +# + +# ARCH = +# CROSS = +# MACHINE_CFLAGS = +# MACHINE_LDFLAGS = +# MACHINE_ASFLAGS = +# CPU_CFLAGS = +# CPU_LDFLAGS = +# CPU_ASFLAGS = + +MACHINE_CFLAGS += -march=armv8-a+crc+crypto
Signature · 1 line
2.17.1
Hi Jerry,
Please use --in-reply-to and -v options to chain your different versions of patches and make the old ones "Superseded".
/Gavin
Quoted 139 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Jerry Hao OS
Sent: Thursday, September 12, 2019 4:53 PM
To: [email protected]
Cc: [email protected]; Jerry Hao OS <[email protected]>
Subject: [dpdk-dev] [PATCH 1/1] build: add emag(arm64) platform and default configThis patch is to add the emag default
CACHE_LINE_SIZEsettings and ARCH variable definitions;
Added the meson build config.Signed-off-by Jerry Hao OS <[email protected]>--- config/arm/arm64_emag_linux_gcc | 15 ++++++++++++ config/arm/meson.build | 11 ++++++++- config/defconfig_arm64-emag-linux-gcc | 1 + config/defconfig_arm64-emag-linuxapp-gcc | 11 +++++++++ mk/machine/emag/rte.vars.mk | 31 ++++++++++++++++++++++++ 5 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 config/arm/arm64_emag_linux_gcc create mode 120000 config/defconfig_arm64-emag-linux-gcc create mode 100644 config/defconfig_arm64-emag-linuxapp-gcc create mode 100644 mk/machine/emag/rte.vars.mkconfig/arm/arm64_emag_linux_gcc new file +15
-0@@ -0,0 +1,15 @@ +[binaries] +c = 'aarch64-linux-gnu-gcc' +cpp = 'aarch64-linux-gnu-cpp' +ar = 'aarch64-linux-gnu-gcc-ar' +strip = 'aarch64-linux-gnu-strip' +pcap-config = '' + +[host_machine] +system = 'linux' +cpu_family = 'aarch64' +cpu = 'armv8-a' +endian = 'little' + +[properties] +implementor_id = '0x50'config/arm/meson.build +9
-0@@ -61,6 +61,11 @@ flags_armada = [ ['RTE_CACHE_LINE_SIZE', 64], ['RTE_MAX_NUMA_NODES', 1], ['RTE_MAX_LCORE', 16]] +flags_emag = [ + ['RTE_MACHINE', '"emag"'], + ['RTE_CACHE_LINE_SIZE', 64], + ['RTE_MAX_NUMA_NODES', 1], + ['RTE_MAX_LCORE', 32]] flags_default_extra = [] flags_thunderx_extra = [@@ -98,6 +103,10 @@ machine_args_cavium = [ ['0xaf', ['-march=armv8.1-a+crc+crypto','-mcpu=thunderx2t99'], flags_thunderx2_extra], ['0xb2', ['-mcpu=octeontx2'], flags_octeontx2_extra]] +machine_args_emag = [ + ['default', ['-march=armv8-a+crc+crypto']], + ['native', ['-march=native']]] + ## Arm implementer ID (ARM DDI 0487C.a, Section G7.2.106, Page G7-5321) impl_generic = ['Generic armv8', flags_generic, machine_args_generic]
impl_0x41= ['Arm',flags_arm,machine_args_generic]config/arm/meson.build +0
-0@@ -107,7 +116,7 @@ impl_0x44 = ['DEC', flags_generic,
machine_args_generic]
impl_0x49= ['Infineon',flags_generic,machine_args_generic]impl_0x4d= ['Motorola',flags_generic,machine_args_generic]impl_0x4e= ['NVIDIA',flags_generic,machine_args_generic]config/arm/meson.build +1
-1-impl_0x50 = ['AppliedMicro', flags_generic, machine_args_generic] +impl_0x50 = ['Ampere Computing', flags_emag, machine_args_emag] impl_0x51 = ['Qualcomm', flags_generic, machine_args_generic] impl_0x53 = ['Samsung', flags_generic, machine_args_generic] impl_0x56 = ['Marvell ARMADA', flags_armada, machine_args_generic]config/defconfig_arm64- renamed from config/defconfig_arm64-emag-linux-gcc +0
-0emag-linux-gcc
new file mode 120000
index 000000000..21894a31aconfig/defconfig_arm64-emag-linux-gcc new file +1
-0@@ -0,0 +1 @@ +defconfig_arm64-emag-linuxapp-gccconfig/defconfig_arm64-emag-linuxapp-gcc new file +11
-0@@ -0,0 +1,11 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2019 Ampere Computing +# + +#include "defconfig_arm64-armv8a-linux-gcc" + +CONFIG_RTE_MACHINE="emag" + +CONFIG_RTE_CACHE_LINE_SIZE=64 +CONFIG_RTE_MAX_NUMA_NODES=1 +CONFIG_RTE_MAX_LCORE=32mk/machine/emag/rte.vars.mk new file +21
-0@@ -0,0 +1,31 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2019 Ampere Computing +# + +# +# machine: +# +# - can define ARCH variable (overridden by cmdline value) +# - can define CROSS variable (overridden by cmdline value) +# - define MACHINE_CFLAGS variable (overridden by cmdline value) +# - define MACHINE_LDFLAGS variable (overridden by cmdline value) +# - define MACHINE_ASFLAGS variable (overridden by cmdline value) +# - can define CPU_CFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - can define CPU_LDFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - can define CPU_ASFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - may override any previously defined variable +# +
mk/machine/emag/rte.vars.mk line 31
Quoted 10 lines
mk/machine/emag/rte.vars.mk new file +10
-0+# ARCH = +# CROSS = +# MACHINE_CFLAGS = +# MACHINE_LDFLAGS = +# MACHINE_ASFLAGS = +# CPU_CFLAGS = +# CPU_LDFLAGS = +# CPU_ASFLAGS = + +MACHINE_CFLAGS += -march=armv8-a+crc+crypto
Quoted 2 lines
--
2.17.1
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Jerin Jacob
Acked-byQuoted 18 lines · Gavin Hu (Arm Technology China)
Hi Jerry,
Please use --in-reply-to and -v options to chain your different versions of patches and make the old ones "Superseded".
/Gavin
Quoted 11 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Jerry Hao OS
Sent: Thursday, September 12, 2019 4:53 PM
To: [email protected]
Cc: [email protected]; Jerry Hao OS <[email protected]>
Subject: [dpdk-dev] [PATCH 1/1] build: add emag(arm64) platform and default configThis patch is to add the emag default
CACHE_LINE_SIZEsettings and ARCH variable definitions;
Added the meson build config.
Please change the git comment to a more reasonable description.
See the example below for a similar config for N1 platform.
config: add arm neoverse N1 SDP configuration
Arm N1 SDP is an infrastructure segment development platform based on armv8.2-a Neoverse N1 CPU. For more information, refer to:
https://community.arm.com/developer/tools-software/oss-platforms/w/docs/440/neoverse-n1-sdp
Quoted 1 line
Quoted 1 line
Signed-off-by Jerry Hao OS <[email protected]>
With the above change:
Quoted 143 lines
Quoted 126 lines
--- config/arm/arm64_emag_linux_gcc | 15 ++++++++++++ config/arm/meson.build | 11 ++++++++- config/defconfig_arm64-emag-linux-gcc | 1 + config/defconfig_arm64-emag-linuxapp-gcc | 11 +++++++++ mk/machine/emag/rte.vars.mk | 31 ++++++++++++++++++++++++ 5 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 config/arm/arm64_emag_linux_gcc create mode 120000 config/defconfig_arm64-emag-linux-gcc create mode 100644 config/defconfig_arm64-emag-linuxapp-gcc create mode 100644 mk/machine/emag/rte.vars.mkconfig/arm/arm64_emag_linux_gcc new file +15
-0@@ -0,0 +1,15 @@ +[binaries] +c = 'aarch64-linux-gnu-gcc' +cpp = 'aarch64-linux-gnu-cpp' +ar = 'aarch64-linux-gnu-gcc-ar' +strip = 'aarch64-linux-gnu-strip' +pcap-config = '' + +[host_machine] +system = 'linux' +cpu_family = 'aarch64' +cpu = 'armv8-a' +endian = 'little' + +[properties] +implementor_id = '0x50'config/arm/meson.build +9
-0@@ -61,6 +61,11 @@ flags_armada = [ ['RTE_CACHE_LINE_SIZE', 64], ['RTE_MAX_NUMA_NODES', 1], ['RTE_MAX_LCORE', 16]] +flags_emag = [ + ['RTE_MACHINE', '"emag"'], + ['RTE_CACHE_LINE_SIZE', 64], + ['RTE_MAX_NUMA_NODES', 1], + ['RTE_MAX_LCORE', 32]] flags_default_extra = [] flags_thunderx_extra = [@@ -98,6 +103,10 @@ machine_args_cavium = [ ['0xaf', ['-march=armv8.1-a+crc+crypto','-mcpu=thunderx2t99'], flags_thunderx2_extra], ['0xb2', ['-mcpu=octeontx2'], flags_octeontx2_extra]] +machine_args_emag = [ + ['default', ['-march=armv8-a+crc+crypto']], + ['native', ['-march=native']]] + ## Arm implementer ID (ARM DDI 0487C.a, Section G7.2.106, Page G7-5321) impl_generic = ['Generic armv8', flags_generic, machine_args_generic]
impl_0x41= ['Arm',flags_arm,machine_args_generic]config/arm/meson.build +0
-0@@ -107,7 +116,7 @@ impl_0x44 = ['DEC', flags_generic,
machine_args_generic]
impl_0x49= ['Infineon',flags_generic,machine_args_generic]impl_0x4d= ['Motorola',flags_generic,machine_args_generic]impl_0x4e= ['NVIDIA',flags_generic,machine_args_generic]config/arm/meson.build +1
-1-impl_0x50 = ['AppliedMicro', flags_generic, machine_args_generic] +impl_0x50 = ['Ampere Computing', flags_emag, machine_args_emag] impl_0x51 = ['Qualcomm', flags_generic, machine_args_generic] impl_0x53 = ['Samsung', flags_generic, machine_args_generic] impl_0x56 = ['Marvell ARMADA', flags_armada, machine_args_generic]config/defconfig_arm64- renamed from config/defconfig_arm64-emag-linux-gcc +0
-0emag-linux-gcc
new file mode 120000
index 000000000..21894a31aconfig/defconfig_arm64-emag-linux-gcc new file +1
-0@@ -0,0 +1 @@ +defconfig_arm64-emag-linuxapp-gccconfig/defconfig_arm64-emag-linuxapp-gcc new file +11
-0@@ -0,0 +1,11 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2019 Ampere Computing +# + +#include "defconfig_arm64-armv8a-linux-gcc" + +CONFIG_RTE_MACHINE="emag" + +CONFIG_RTE_CACHE_LINE_SIZE=64 +CONFIG_RTE_MAX_NUMA_NODES=1 +CONFIG_RTE_MAX_LCORE=32mk/machine/emag/rte.vars.mk new file +21
-0@@ -0,0 +1,31 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2019 Ampere Computing +# + +# +# machine: +# +# - can define ARCH variable (overridden by cmdline value) +# - can define CROSS variable (overridden by cmdline value) +# - define MACHINE_CFLAGS variable (overridden by cmdline value) +# - define MACHINE_LDFLAGS variable (overridden by cmdline value) +# - define MACHINE_ASFLAGS variable (overridden by cmdline value) +# - can define CPU_CFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - can define CPU_LDFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - can define CPU_ASFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - may override any previously defined variable +# +mk/machine/emag/rte.vars.mk line 31
Quoted 10 lines
mk/machine/emag/rte.vars.mk new file +10
-0+# ARCH = +# CROSS = +# MACHINE_CFLAGS = +# MACHINE_LDFLAGS = +# MACHINE_ASFLAGS = +# CPU_CFLAGS = +# CPU_LDFLAGS = +# CPU_ASFLAGS = + +MACHINE_CFLAGS += -march=armv8-a+crc+cryptoReviewed-by Gavin Hu <[email protected]>Quoted 2 lines
--
2.17.1IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
PATCH v2 1/1 build: add emag(arm64) platform and default config
In reply to Jerry Hao OSconfig: add emag configuration
mk/machine: add emag machine configurations
eMAG is Ampere Computing 64-bit ARM processor
with 32 Arm v8 64-bit CPU cores.
For more information, refer to:
https://amperecomputing.com/product/
--- config/arm/arm64_emag_linux_gcc | 15 ++++++++++++ config/arm/meson.build | 11 ++++++++- config/defconfig_arm64-emag-linux-gcc | 1 + config/defconfig_arm64-emag-linuxapp-gcc | 11 +++++++++ mk/machine/emag/rte.vars.mk | 31 ++++++++++++++++++++++++ 5 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 config/arm/arm64_emag_linux_gcc create mode 120000 config/defconfig_arm64-emag-linux-gcc create mode 100644 config/defconfig_arm64-emag-linuxapp-gcc create mode 100644 mk/machine/emag/rte.vars.mk
config/arm/arm64_emag_linux_gcc new file +15 -0
@@ -0,0 +1,15 @@ +[binaries] +c = 'aarch64-linux-gnu-gcc' +cpp = 'aarch64-linux-gnu-cpp' +ar = 'aarch64-linux-gnu-gcc-ar' +strip = 'aarch64-linux-gnu-strip' +pcap-config = '' + +[host_machine] +system = 'linux' +cpu_family = 'aarch64' +cpu = 'armv8-a' +endian = 'little' + +[properties] +implementor_id = '0x50'
config/arm/meson.build +10 -1
@@ -61,6 +61,11 @@ flags_armada = [ ['RTE_CACHE_LINE_SIZE', 64], ['RTE_MAX_NUMA_NODES', 1], ['RTE_MAX_LCORE', 16]] +flags_emag = [ + ['RTE_MACHINE', '"emag"'], + ['RTE_CACHE_LINE_SIZE', 64], + ['RTE_MAX_NUMA_NODES', 1], + ['RTE_MAX_LCORE', 32]] flags_default_extra = [] flags_thunderx_extra = [
@@ -98,6 +103,10 @@ machine_args_cavium = [ ['0xaf', ['-march=armv8.1-a+crc+crypto','-mcpu=thunderx2t99'], flags_thunderx2_extra], ['0xb2', ['-mcpu=octeontx2'], flags_octeontx2_extra]] +machine_args_emag = [ + ['default', ['-march=armv8-a+crc+crypto']], + ['native', ['-march=native']]] + ## Arm implementer ID (ARM DDI 0487C.a, Section G7.2.106, Page G7-5321) impl_generic = ['Generic armv8', flags_generic, machine_args_generic] impl_0x41 = ['Arm', flags_arm, machine_args_generic]
@@ -107,7 +116,7 @@ impl_0x44 = ['DEC', flags_generic, machine_args_generic] impl_0x49 = ['Infineon', flags_generic, machine_args_generic] impl_0x4d = ['Motorola', flags_generic, machine_args_generic] impl_0x4e = ['NVIDIA', flags_generic, machine_args_generic] -impl_0x50 = ['AppliedMicro', flags_generic, machine_args_generic] +impl_0x50 = ['Ampere Computing', flags_emag, machine_args_emag] impl_0x51 = ['Qualcomm', flags_generic, machine_args_generic] impl_0x53 = ['Samsung', flags_generic, machine_args_generic] impl_0x56 = ['Marvell ARMADA', flags_armada, machine_args_generic]
config/defconfig_arm64-emag-linux-gcc new file +1 -0
@@ -0,0 +1 @@ +defconfig_arm64-emag-linuxapp-gcc
config/defconfig_arm64-emag-linuxapp-gcc new file +11 -0
@@ -0,0 +1,11 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2019 Ampere Computing +# + +#include "defconfig_arm64-armv8a-linux-gcc" + +CONFIG_RTE_MACHINE="emag" + +CONFIG_RTE_CACHE_LINE_SIZE=64 +CONFIG_RTE_MAX_NUMA_NODES=1 +CONFIG_RTE_MAX_LCORE=32
mk/machine/emag/rte.vars.mk new file +31 -0
@@ -0,0 +1,31 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2019 Ampere Computing +# + +# +# machine: +# +# - can define ARCH variable (overridden by cmdline value) +# - can define CROSS variable (overridden by cmdline value) +# - define MACHINE_CFLAGS variable (overridden by cmdline value) +# - define MACHINE_LDFLAGS variable (overridden by cmdline value) +# - define MACHINE_ASFLAGS variable (overridden by cmdline value) +# - can define CPU_CFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - can define CPU_LDFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - can define CPU_ASFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - may override any previously defined variable +# + +# ARCH = +# CROSS = +# MACHINE_CFLAGS = +# MACHINE_LDFLAGS = +# MACHINE_ASFLAGS = +# CPU_CFLAGS = +# CPU_LDFLAGS = +# CPU_ASFLAGS = + +MACHINE_CFLAGS += -march=armv8-a+crc+crypto
Signature · 1 line
2.17.1
PATCH v3 1/1 build: add emag(arm64) platform and default config
From: Jerry Hao OS <[email protected]>
config: add emag configuration
mk/machine: add emag machine configurations
eMAG is Ampere Computing 64-bit ARM processor
with 32 Arm v8 64-bit CPU cores.
For more information, refer to:
https://amperecomputing.com/product/
---
V3:
- add "mtune=emag" to generate optimized code for emag V2:
- add meson build support
config/arm/arm64_emag_linux_gcc | 15 +++++++++++++++ config/arm/meson.build | 11 ++++++++++- config/defconfig_arm64-emag-linux-gcc | 1 + config/defconfig_arm64-emag-linuxapp-gcc | 11 +++++++++++ mk/machine/emag/rte.vars.mk | 32 ++++++++++++++++++++++++++++++++ 5 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 config/arm/arm64_emag_linux_gcc create mode 120000 config/defconfig_arm64-emag-linux-gcc create mode 100644 config/defconfig_arm64-emag-linuxapp-gcc create mode 100644 mk/machine/emag/rte.vars.mk
config/arm/arm64_emag_linux_gcc new file +15 -0
@@ -0,0 +1,15 @@ +[binaries] +c = 'aarch64-linux-gnu-gcc' +cpp = 'aarch64-linux-gnu-cpp' +ar = 'aarch64-linux-gnu-gcc-ar' +strip = 'aarch64-linux-gnu-strip' +pcap-config = '' + +[host_machine] +system = 'linux' +cpu_family = 'aarch64' +cpu = 'armv8-a' +endian = 'little' + +[properties] +implementor_id = '0x50'
config/arm/meson.build +10 -1
@@ -61,6 +61,11 @@ flags_armada = [ ['RTE_CACHE_LINE_SIZE', 64], ['RTE_MAX_NUMA_NODES', 1], ['RTE_MAX_LCORE', 16]] +flags_emag = [ + ['RTE_MACHINE', '"emag"'], + ['RTE_CACHE_LINE_SIZE', 64], + ['RTE_MAX_NUMA_NODES', 1], + ['RTE_MAX_LCORE', 32]] flags_default_extra = [] flags_thunderx_extra = [
@@ -98,6 +103,10 @@ machine_args_cavium = [ ['0xaf', ['-march=armv8.1-a+crc+crypto','-mcpu=thunderx2t99'], flags_thunderx2_extra], ['0xb2', ['-mcpu=octeontx2'], flags_octeontx2_extra]] +machine_args_emag = [ + ['default', ['-march=armv8-a+crc+crypto', '-mtune=emag']], + ['native', ['-march=native']]] + ## Arm implementer ID (ARM DDI 0487C.a, Section G7.2.106, Page G7-5321) impl_generic = ['Generic armv8', flags_generic, machine_args_generic] impl_0x41 = ['Arm', flags_arm, machine_args_generic]
@@ -107,7 +116,7 @@ impl_0x44 = ['DEC', flags_generic, machine_args_generic] impl_0x49 = ['Infineon', flags_generic, machine_args_generic] impl_0x4d = ['Motorola', flags_generic, machine_args_generic] impl_0x4e = ['NVIDIA', flags_generic, machine_args_generic] -impl_0x50 = ['AppliedMicro', flags_generic, machine_args_generic] +impl_0x50 = ['Ampere Computing', flags_emag, machine_args_emag] impl_0x51 = ['Qualcomm', flags_generic, machine_args_generic] impl_0x53 = ['Samsung', flags_generic, machine_args_generic] impl_0x56 = ['Marvell ARMADA', flags_armada, machine_args_generic]
config/defconfig_arm64-emag-linux-gcc new file +1 -0
@@ -0,0 +1 @@ +defconfig_arm64-emag-linuxapp-gcc
config/defconfig_arm64-emag-linuxapp-gcc new file +11 -0
@@ -0,0 +1,11 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2019 Ampere Computing +# + +#include "defconfig_arm64-armv8a-linux-gcc" + +CONFIG_RTE_MACHINE="emag" + +CONFIG_RTE_CACHE_LINE_SIZE=64 +CONFIG_RTE_MAX_NUMA_NODES=1 +CONFIG_RTE_MAX_LCORE=32
mk/machine/emag/rte.vars.mk new file +32 -0
@@ -0,0 +1,32 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2019 Ampere Computing +# + +# +# machine: +# +# - can define ARCH variable (overridden by cmdline value) +# - can define CROSS variable (overridden by cmdline value) +# - define MACHINE_CFLAGS variable (overridden by cmdline value) +# - define MACHINE_LDFLAGS variable (overridden by cmdline value) +# - define MACHINE_ASFLAGS variable (overridden by cmdline value) +# - can define CPU_CFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - can define CPU_LDFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - can define CPU_ASFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - may override any previously defined variable +# + +# ARCH = +# CROSS = +# MACHINE_CFLAGS = +# MACHINE_LDFLAGS = +# MACHINE_ASFLAGS = +# CPU_CFLAGS = +# CPU_LDFLAGS = +# CPU_ASFLAGS = + +MACHINE_CFLAGS += -march=armv8-a+crc+crypto +MACHINE_CFLAGS += $(call rte_cc_has_argument, -mtune=emag)
Signature · 1 line
2.7.4
Quoted 3 lines · Gavin Hu
From: Jerry Hao OS <[email protected]>
I think the subject can be changed to
"build: add emag target "
Quoted 2 lines
config: add emag configuration
mk/machine: add emag machine configurations
The above lines are not a sentence. Please make it as a sentence in the git commit.
Quoted 8 lines
eMAG is Ampere Computing 64-bit ARM processor
with 32 Arm v8 64-bit CPU cores.
For more information, refer to:
https://amperecomputing.com/product/Signed-off-by Jerry Hao OS <[email protected]>Signed-off-by Gavin Hu <[email protected]>
With the above changes:
Quoted 140 lines
---
V3:
- add "mtune=emag" to generate optimized code for emag V2:
- add meson build supportconfig/arm/arm64_emag_linux_gcc | 15 +++++++++++++++ config/arm/meson.build | 11 ++++++++++- config/defconfig_arm64-emag-linux-gcc | 1 + config/defconfig_arm64-emag-linuxapp-gcc | 11 +++++++++++ mk/machine/emag/rte.vars.mk | 32 ++++++++++++++++++++++++++++++++ 5 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 config/arm/arm64_emag_linux_gcc create mode 120000 config/defconfig_arm64-emag-linux-gcc create mode 100644 config/defconfig_arm64-emag-linuxapp-gcc create mode 100644 mk/machine/emag/rte.vars.mkconfig/arm/arm64_emag_linux_gcc new file +15
-0@@ -0,0 +1,15 @@ +[binaries] +c = 'aarch64-linux-gnu-gcc' +cpp = 'aarch64-linux-gnu-cpp' +ar = 'aarch64-linux-gnu-gcc-ar' +strip = 'aarch64-linux-gnu-strip' +pcap-config = '' + +[host_machine] +system = 'linux' +cpu_family = 'aarch64' +cpu = 'armv8-a' +endian = 'little' + +[properties] +implementor_id = '0x50'config/arm/meson.build +10
-1@@ -61,6 +61,11 @@ flags_armada = [ ['RTE_CACHE_LINE_SIZE', 64], ['RTE_MAX_NUMA_NODES', 1], ['RTE_MAX_LCORE', 16]] +flags_emag = [ + ['RTE_MACHINE', '"emag"'], + ['RTE_CACHE_LINE_SIZE', 64], + ['RTE_MAX_NUMA_NODES', 1], + ['RTE_MAX_LCORE', 32]] flags_default_extra = [] flags_thunderx_extra = [@@ -98,6 +103,10 @@ machine_args_cavium = [ ['0xaf', ['-march=armv8.1-a+crc+crypto','-mcpu=thunderx2t99'], flags_thunderx2_extra], ['0xb2', ['-mcpu=octeontx2'], flags_octeontx2_extra]] +machine_args_emag = [ + ['default', ['-march=armv8-a+crc+crypto', '-mtune=emag']], + ['native', ['-march=native']]] + ## Arm implementer ID (ARM DDI 0487C.a, Section G7.2.106, Page G7-5321) impl_generic = ['Generic armv8', flags_generic, machine_args_generic] impl_0x41 = ['Arm', flags_arm, machine_args_generic]@@ -107,7 +116,7 @@ impl_0x44 = ['DEC', flags_generic, machine_args_generic] impl_0x49 = ['Infineon', flags_generic, machine_args_generic] impl_0x4d = ['Motorola', flags_generic, machine_args_generic] impl_0x4e = ['NVIDIA', flags_generic, machine_args_generic] -impl_0x50 = ['AppliedMicro', flags_generic, machine_args_generic] +impl_0x50 = ['Ampere Computing', flags_emag, machine_args_emag] impl_0x51 = ['Qualcomm', flags_generic, machine_args_generic] impl_0x53 = ['Samsung', flags_generic, machine_args_generic] impl_0x56 = ['Marvell ARMADA', flags_armada, machine_args_generic]config/defconfig_arm64-emag-linux-gcc new file +1
-0@@ -0,0 +1 @@ +defconfig_arm64-emag-linuxapp-gccconfig/defconfig_arm64-emag-linuxapp-gcc new file +11
-0@@ -0,0 +1,11 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2019 Ampere Computing +# + +#include "defconfig_arm64-armv8a-linux-gcc" + +CONFIG_RTE_MACHINE="emag" + +CONFIG_RTE_CACHE_LINE_SIZE=64 +CONFIG_RTE_MAX_NUMA_NODES=1 +CONFIG_RTE_MAX_LCORE=32mk/machine/emag/rte.vars.mk new file +32
-1@@ -0,0 +1,32 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2019 Ampere Computing +# + +# +# machine: +# +# - can define ARCH variable (overridden by cmdline value) +# - can define CROSS variable (overridden by cmdline value) +# - define MACHINE_CFLAGS variable (overridden by cmdline value) +# - define MACHINE_LDFLAGS variable (overridden by cmdline value) +# - define MACHINE_ASFLAGS variable (overridden by cmdline value) +# - can define CPU_CFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - can define CPU_LDFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - can define CPU_ASFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - may override any previously defined variable +# + +# ARCH = +# CROSS = +# MACHINE_CFLAGS = +# MACHINE_LDFLAGS = +# MACHINE_ASFLAGS = +# CPU_CFLAGS = +# CPU_LDFLAGS = +# CPU_ASFLAGS = + +MACHINE_CFLAGS += -march=armv8-a+crc+crypto +MACHINE_CFLAGS += $(call rte_cc_has_argument, -mtune=emag) --2.7.4
PATCH v4 1/1 build: add emag target
In reply to Gavin HuFrom: Jerry Hao OS <[email protected]>
Add the make and meson based build infrastructure for the eMAG platform from Ampere Computing corp., which is a 64-bit ARM processor with 32 Armv8 64-bit CPU cores. For more information, refer to:
https://amperecomputing.com/product/
---
V4:
- reword the commit log to be more clear
V3:
- add "mtune=emag" to generate optimized code for emag V2:
- add meson build support
config/arm/arm64_emag_linux_gcc | 15 +++++++++++++++ config/arm/meson.build | 11 ++++++++++- config/defconfig_arm64-emag-linux-gcc | 1 + config/defconfig_arm64-emag-linuxapp-gcc | 12 ++++++++++++ mk/machine/emag/rte.vars.mk | 32 ++++++++++++++++++++++++++++++++ 5 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 config/arm/arm64_emag_linux_gcc create mode 120000 config/defconfig_arm64-emag-linux-gcc create mode 100644 config/defconfig_arm64-emag-linuxapp-gcc create mode 100644 mk/machine/emag/rte.vars.mk
config/arm/arm64_emag_linux_gcc new file +15 -0
@@ -0,0 +1,15 @@ +[binaries] +c = 'aarch64-linux-gnu-gcc' +cpp = 'aarch64-linux-gnu-cpp' +ar = 'aarch64-linux-gnu-gcc-ar' +strip = 'aarch64-linux-gnu-strip' +pcap-config = '' + +[host_machine] +system = 'linux' +cpu_family = 'aarch64' +cpu = 'armv8-a' +endian = 'little' + +[properties] +implementor_id = '0x50'
config/arm/meson.build +10 -1
@@ -61,6 +61,11 @@ flags_armada = [ ['RTE_CACHE_LINE_SIZE', 64], ['RTE_MAX_NUMA_NODES', 1], ['RTE_MAX_LCORE', 16]] +flags_emag = [ + ['RTE_MACHINE', '"emag"'], + ['RTE_CACHE_LINE_SIZE', 64], + ['RTE_MAX_NUMA_NODES', 1], + ['RTE_MAX_LCORE', 32]] flags_default_extra = [] flags_thunderx_extra = [
@@ -98,6 +103,10 @@ machine_args_cavium = [ ['0xaf', ['-march=armv8.1-a+crc+crypto','-mcpu=thunderx2t99'], flags_thunderx2_extra], ['0xb2', ['-mcpu=octeontx2'], flags_octeontx2_extra]] +machine_args_emag = [ + ['default', ['-march=armv8-a+crc+crypto', '-mtune=emag']], + ['native', ['-march=native']]] + ## Arm implementer ID (ARM DDI 0487C.a, Section G7.2.106, Page G7-5321) impl_generic = ['Generic armv8', flags_generic, machine_args_generic] impl_0x41 = ['Arm', flags_arm, machine_args_generic]
@@ -107,7 +116,7 @@ impl_0x44 = ['DEC', flags_generic, machine_args_generic] impl_0x49 = ['Infineon', flags_generic, machine_args_generic] impl_0x4d = ['Motorola', flags_generic, machine_args_generic] impl_0x4e = ['NVIDIA', flags_generic, machine_args_generic] -impl_0x50 = ['AppliedMicro', flags_generic, machine_args_generic] +impl_0x50 = ['Ampere Computing', flags_emag, machine_args_emag] impl_0x51 = ['Qualcomm', flags_generic, machine_args_generic] impl_0x53 = ['Samsung', flags_generic, machine_args_generic] impl_0x56 = ['Marvell ARMADA', flags_armada, machine_args_generic]
config/defconfig_arm64-emag-linux-gcc new file +1 -0
@@ -0,0 +1 @@ +defconfig_arm64-emag-linuxapp-gcc
config/defconfig_arm64-emag-linuxapp-gcc new file +12 -0
@@ -0,0 +1,12 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2019 Ampere Computing +# + +#include "defconfig_arm64-armv8a-linux-gcc" + +CONFIG_RTE_MACHINE="emag" + +CONFIG_RTE_CACHE_LINE_SIZE=64 +CONFIG_RTE_MAX_NUMA_NODES=1 +CONFIG_RTE_MAX_LCORE=32 +
mk/machine/emag/rte.vars.mk new file +32 -0
@@ -0,0 +1,32 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2019 Ampere Computing +# + +# +# machine: +# +# - can define ARCH variable (overridden by cmdline value) +# - can define CROSS variable (overridden by cmdline value) +# - define MACHINE_CFLAGS variable (overridden by cmdline value) +# - define MACHINE_LDFLAGS variable (overridden by cmdline value) +# - define MACHINE_ASFLAGS variable (overridden by cmdline value) +# - can define CPU_CFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - can define CPU_LDFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - can define CPU_ASFLAGS variable (overridden by cmdline value) that +# overrides the one defined in arch. +# - may override any previously defined variable +# + +# ARCH = +# CROSS = +# MACHINE_CFLAGS = +# MACHINE_LDFLAGS = +# MACHINE_ASFLAGS = +# CPU_CFLAGS = +# CPU_LDFLAGS = +# CPU_ASFLAGS = + +MACHINE_CFLAGS += -march=armv8-a+crc+crypto +MACHINE_CFLAGS += $(call rte_cc_has_argument, -mtune=emag)
Signature · 1 line
2.7.4
Thomas Monjalon
AppliedRe: [dpdk-dev] [PATCH v4] build: add emag target
14/10/2019 11:34, Gavin Hu:
Quoted 7 lines
From: Jerry Hao OS <[email protected]>
Add the make and meson based build infrastructure for the eMAG platform from Ampere Computing corp., which is a 64-bit ARM processor with 32 Armv8 64-bit CPU cores. For more information, refer to:
https://amperecomputing.com/product/
Quoted 5 lines
Signed-off-by Jerry Hao OS <[email protected]>Signed-off-by Gavin Hu <[email protected]>Reviewed-by Ruifeng Wang <[email protected]>Reviewed-by Phil Yang <[email protected]>Acked-by Jerin Jacob <[email protected]>
Applied, thanks