Skip to contentSkip to conversation

meson: Update flags and values for ppc_64

PATCH In review David Wilder 3 participants 6 messages May 24, 2019 – Jun 4, 2019 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meson: Update flags and values for ppc_64

Setting RTE_MAX_LCORE to reflect the largest available configuration. Adding defines for missing RTE_MACHINE_CPUFLAGs.

---
 config/ppc_64/meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
config/ppc_64/meson.build +3 -1
index 7ceae1d..0e65f9d 100644
@@ -8,6 +8,8 @@ dpdk_conf.set('RTE_ARCH', 'ppc_64')
 dpdk_conf.set('RTE_ARCH_PPC_64', 1)
 
 # overrides specific to ppc64
-dpdk_conf.set('RTE_MAX_LCORE', 256)
+dpdk_conf.set('RTE_MAX_LCORE', 1536)
 dpdk_conf.set('RTE_MAX_NUMA_NODES', 32)
 dpdk_conf.set('RTE_CACHE_LINE_SIZE', 128)
+dpdk_conf.set('RTE_MACHINE_CPUFLAG_ALTIVEC', 1)
+dpdk_conf.set('RTE_MACHINE_CPUFLAG_VSX', 1)
Signature · 1 line
1.8.3.1
Acked-by on v1 1/1
#1 lore raw
Quoted 14 lines · David Wilder

Setting RTE_MAX_LCORE to reflect the largest available configuration. Adding defines for missing RTE_MACHINE_CPUFLAGs.

---
 config/ppc_64/meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
config/ppc_64/meson.build +0 -0
index 7ceae1d..0e65f9d 100644

config/ppc_64/meson.build dpdk_conf.set('RTE_ARCH', 'ppc_64') · line 15

Quoted 9 lines
config/ppc_64/meson.build +3 -1
@@ -8,6 +8,8 @@ dpdk_conf.set('RTE_ARCH', 'ppc_64')
 dpdk_conf.set('RTE_ARCH_PPC_64', 1)
 
 # overrides specific to ppc64
-dpdk_conf.set('RTE_MAX_LCORE', 256)
+dpdk_conf.set('RTE_MAX_LCORE', 1536)
 dpdk_conf.set('RTE_MAX_NUMA_NODES', 32)
 dpdk_conf.set('RTE_CACHE_LINE_SIZE', 128)
+dpdk_conf.set('RTE_MACHINE_CPUFLAG_ALTIVEC', 1)
+dpdk_conf.set('RTE_MACHINE_CPUFLAG_VSX', 1)
#2 lore raw

27/05/2019 11:41, Bruce Richardson:

Quoted 17 lines · David Wilder
Quoted 7 lines

Setting RTE_MAX_LCORE to reflect the largest available configuration. Adding defines for missing RTE_MACHINE_CPUFLAGs.

---

config/ppc_64/meson.build dpdk_conf.set('RTE_ARCH', 'ppc_64') · line 15

Quoted 7 lines
config/ppc_64/meson.build +3 -1
 # overrides specific to ppc64
-dpdk_conf.set('RTE_MAX_LCORE', 256)
+dpdk_conf.set('RTE_MAX_LCORE', 1536)
 dpdk_conf.set('RTE_MAX_NUMA_NODES', 32)
 dpdk_conf.set('RTE_CACHE_LINE_SIZE', 128)
+dpdk_conf.set('RTE_MACHINE_CPUFLAG_ALTIVEC', 1)
+dpdk_conf.set('RTE_MACHINE_CPUFLAG_VSX', 1)

Suggested title:
config: update for ppc build with meson

Why config/defconfig_ppc_64-power8-linuxapp-gcc is not updated as well for RTE_MAX_LCORE?

author
#3 lore raw
Quoted 20 lines · Thomas Monjalon

27/05/2019 11:41, Bruce Richardson:

Quoted 17 lines · David Wilder
Quoted 7 lines

Setting RTE_MAX_LCORE to reflect the largest available configuration. Adding defines for missing RTE_MACHINE_CPUFLAGs.

---

config/ppc_64/meson.build dpdk_conf.set('RTE_ARCH', 'ppc_64') · line 15

Quoted 7 lines
config/ppc_64/meson.build +3 -1
 # overrides specific to ppc64
-dpdk_conf.set('RTE_MAX_LCORE', 256)
+dpdk_conf.set('RTE_MAX_LCORE', 1536)
 dpdk_conf.set('RTE_MAX_NUMA_NODES', 32)
 dpdk_conf.set('RTE_CACHE_LINE_SIZE', 128)
+dpdk_conf.set('RTE_MACHINE_CPUFLAG_ALTIVEC', 1)
+dpdk_conf.set('RTE_MACHINE_CPUFLAG_VSX', 1)
Quoted 5 lines

Suggested title:
config: update for ppc build with meson

Why config/defconfig_ppc_64-power8-linuxapp-gcc is not updated as well for RTE_MAX_LCORE?

Hi Thomas
I am taking the opportunity to update RTE_MAX_LCORE for future releases of dpdk. As we are switching to meson builds soon so this is an appropriate opportunity to update the value and keep in step with the hardware. Older stable release can continue to use the smaller value found in deconfig..

#4 lore raw

04/06/2019 22:25, dwilder:

Quoted 27 lines · Thomas Monjalon
Quoted 20 lines

27/05/2019 11:41, Bruce Richardson:

Quoted 17 lines · David Wilder
Quoted 7 lines

Setting RTE_MAX_LCORE to reflect the largest available configuration. Adding defines for missing RTE_MACHINE_CPUFLAGs.

---

config/ppc_64/meson.build dpdk_conf.set('RTE_ARCH', 'ppc_64') · line 15

Quoted 7 lines
config/ppc_64/meson.build +3 -1
 # overrides specific to ppc64
-dpdk_conf.set('RTE_MAX_LCORE', 256)
+dpdk_conf.set('RTE_MAX_LCORE', 1536)
 dpdk_conf.set('RTE_MAX_NUMA_NODES', 32)
 dpdk_conf.set('RTE_CACHE_LINE_SIZE', 128)
+dpdk_conf.set('RTE_MACHINE_CPUFLAG_ALTIVEC', 1)
+dpdk_conf.set('RTE_MACHINE_CPUFLAG_VSX', 1)
Quoted 5 lines

Suggested title:
config: update for ppc build with meson

Why config/defconfig_ppc_64-power8-linuxapp-gcc is not updated as well for RTE_MAX_LCORE?

Quoted 6 lines

Hi Thomas
I am taking the opportunity to update RTE_MAX_LCORE for future releases of dpdk. As we are switching to meson builds soon so this is an appropriate opportunity to update the value and keep in step with the hardware. Older stable release can continue to use the smaller value found in deconfig..

I don't understand the logic.
You are updating only the new release.
Some users may use make and others meson. There is no reason they don't have the same config.

author
#5 lore raw
Quoted 35 lines · Thomas Monjalon

04/06/2019 22:25, dwilder:

Quoted 27 lines · Thomas Monjalon
Quoted 20 lines

27/05/2019 11:41, Bruce Richardson:

Quoted 17 lines · David Wilder
Quoted 7 lines

Setting RTE_MAX_LCORE to reflect the largest available configuration. Adding defines for missing RTE_MACHINE_CPUFLAGs.

---

config/ppc_64/meson.build dpdk_conf.set('RTE_ARCH', 'ppc_64') · line 15

Quoted 7 lines
config/ppc_64/meson.build +3 -1
 # overrides specific to ppc64
-dpdk_conf.set('RTE_MAX_LCORE', 256)
+dpdk_conf.set('RTE_MAX_LCORE', 1536)
 dpdk_conf.set('RTE_MAX_NUMA_NODES', 32)
 dpdk_conf.set('RTE_CACHE_LINE_SIZE', 128)
+dpdk_conf.set('RTE_MACHINE_CPUFLAG_ALTIVEC', 1)
+dpdk_conf.set('RTE_MACHINE_CPUFLAG_VSX', 1)
Quoted 5 lines

Suggested title:
config: update for ppc build with meson

Why config/defconfig_ppc_64-power8-linuxapp-gcc is not updated as well for RTE_MAX_LCORE?

Quoted 6 lines

Hi Thomas
I am taking the opportunity to update RTE_MAX_LCORE for future releases of dpdk. As we are switching to meson builds soon so this is an appropriate opportunity to update the value and keep in step with the hardware. Older stable release can continue to use the smaller value found in deconfig..

Quoted 4 lines

I don't understand the logic.
You are updating only the new release.
Some users may use make and others meson. There is no reason they don't have the same config.

Fair enough, if make will continue to be supported then both methods need updating. I will resubmit with you suggestions.