Skip to contentSkip to conversation

change max core number to 256 for Arm64 platform

PATCH Superseded Joyce Kong 4 participants 15 messages Nov 21, 2018 – Nov 23, 2018 Arm/Amlogic Meson SoC support

lore
Share & tools
lore

Joyce Kong

author
#0 lore raw

cover change max core number to 256 for Arm64 platform

v1: change the max core setting to 256 for arm64 platform

Joyce Kong (2):
config: enable more than 128 cores for Arm platform
config: enable more than 128 cores for meson build

 config/arm/meson.build                     | 2 +-
 config/defconfig_arm64-armv8a-linuxapp-gcc | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH 1/2 config: enable more than 128 cores for Arm platform

When running dpdk applications on cores whose ids are bigger than original max_core setting, eal error as below:
EAL: Detected 104 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: invalid core list
-l CORELIST core indexes between 0 and 128

The fix is to increase max_core to 256 on Arm platform.

Fixes b3ce00e5 ("mk: introduce ARMv8 architecture")
---
 config/defconfig_arm64-armv8a-linuxapp-gcc | 1 +
 1 file changed, 1 insertion(+)
config/defconfig_arm64-armv8a-linuxapp-gcc +1 -0
index 1842744..a6ed90c 100644
@@ -6,3 +6,4 @@
 
 CONFIG_RTE_TOOLCHAIN="gcc"
 CONFIG_RTE_TOOLCHAIN_GCC=y
+CONFIG_RTE_MAX_LCORE=256
Signature · 1 line
2.7.4
author
#2 lore raw

PATCH 2/2 config: enable more than 128 cores for meson build

In reply to Joyce Kong

When running dpdk applications on cores whose ids are bigger than original max_core setting, eal error as below:
EAL: Detected 104 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: invalid core list
-l CORELIST core indexes between 0 and 128

The fix is to increase max_core to 256 on thundex platform for meson build.

Fixes 200b88cb ("build: detect micro-arch on ARM")
---
 config/arm/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
config/arm/meson.build +1 -1
index b755138..020df09 100644
@@ -51,7 +51,7 @@ flags_cavium = [
 	['RTE_MACHINE', '"thunderx"'],
 	['RTE_CACHE_LINE_SIZE', 128],
 	['RTE_MAX_NUMA_NODES', 2],
-	['RTE_MAX_LCORE', 96],
+	['RTE_MAX_LCORE', 256],
 	['RTE_MAX_VFIO_GROUPS', 128],
 	['RTE_USE_C11_MEM_MODEL', false]]
 flags_dpaa = [
Signature · 1 line
2.7.4
#3 lore raw
In reply to Joyce Kong

Hi,

21/11/2018 12:10, Joyce Kong:

Quoted 5 lines

v1: change the max core setting to 256 for arm64 platform

Joyce Kong (2):
config: enable more than 128 cores for Arm platform
config: enable more than 128 cores for meson build

2 comments:

- It doesn't need to be split in 2 commits.
- Are you sure you want this change in 18.11? No risk?

#4 lore raw
Quoted 15 lines

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Wednesday, November 21, 2018 7:14 PM
To: Joyce Kong (Arm Technology China) <[email protected]>
Cc: [email protected]; [email protected]; Honnappa Nagarahalli <[email protected]>; Gavin Hu (Arm Technology China) <[email protected]>; [email protected]
Subject: Re: [PATCH v1 0/2] change max core number to 256 for Arm64 platform

Hi,

21/11/2018 12:10, Joyce Kong:

Quoted 2 lines

v1: change the max core setting to 256 for arm64 platform

Quoted 7 lines
Quoted 3 lines

Joyce Kong (2):
config: enable more than 128 cores for Arm platform
config: enable more than 128 cores for meson build

2 comments:

- It doesn't need to be split in 2 commits.

Combined into 1 commit in v2.

Quoted 1 line

- Are you sure you want this change in 18.11? No risk?

Yes, no risk.
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.

#5 lore raw
Quoted 1 line · On Wed, 21 Nov 2018 11:41:36 +0000 "Joyce Kong (Arm Technology China)"…

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.

Please fix your mail system. Because technically sending mail to a mailing list with this footer means everyone on the list should delete the mail.

author
#6 lore raw

PATCH v2 1/1 config: enable more than 128 cores for Arm64 platform

In reply to Joyce Kong

When running dpdk applications on cores whose ids are bigger than original max_core setting, eal error as below:
EAL: Detected 104 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: invalid core list
-l CORELIST core indexes between 0 and 128

The fix is to increase max_core to 256 on Arm64 platform.

Fixes b3ce00e5 ("mk: introduce ARMv8 architecture")
---
 config/arm/meson.build                     | 2 +-
 config/defconfig_arm64-armv8a-linuxapp-gcc | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
config/arm/meson.build +1 -1
index b755138..020df09 100644
@@ -51,7 +51,7 @@ flags_cavium = [
 	['RTE_MACHINE', '"thunderx"'],
 	['RTE_CACHE_LINE_SIZE', 128],
 	['RTE_MAX_NUMA_NODES', 2],
-	['RTE_MAX_LCORE', 96],
+	['RTE_MAX_LCORE', 256],
 	['RTE_MAX_VFIO_GROUPS', 128],
 	['RTE_USE_C11_MEM_MODEL', false]]
 flags_dpaa = [
config/defconfig_arm64-armv8a-linuxapp-gcc +1 -0
index 1842744..a6ed90c 100644
@@ -6,3 +6,4 @@
 
 CONFIG_RTE_TOOLCHAIN="gcc"
 CONFIG_RTE_TOOLCHAIN_GCC=y
+CONFIG_RTE_MAX_LCORE=256
Signature · 1 line
2.7.4
#7 lore raw

Re: [PATCH v2] config: enable more than 128 cores for Arm64 platform

-----Original Message-----

Quoted 33 lines

Date: Wed, 21 Nov 2018 19:27:12 +0800
From: Joyce Kong <[email protected]>
To: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected], [email protected]
Subject: [PATCH v2] config: enable more than 128 cores for Arm64 platform
X-Mailer: git-send-email 2.7.4

When running dpdk applications on cores whose ids are bigger than original max_core setting, eal error as below:
EAL: Detected 104 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: invalid core list
-l CORELIST core indexes between 0 and 128

The fix is to increase max_core to 256 on Arm64 platform.

Fixes b3ce00e5 ("mk: introduce ARMv8 architecture")
---
 config/arm/meson.build                     | 2 +-
 config/defconfig_arm64-armv8a-linuxapp-gcc | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
config/arm/meson.build +0 -0
index b755138..020df09 100644

config/arm/meson.build flags_cavium = [ · line 54

Quoted 5 lines
config/arm/meson.build +1 -1
@@ -51,7 +51,7 @@ flags_cavium = [
        ['RTE_MACHINE', '"thunderx"'],
        ['RTE_CACHE_LINE_SIZE', 128],
        ['RTE_MAX_NUMA_NODES', 2],
-       ['RTE_MAX_LCORE', 96],
+       ['RTE_MAX_LCORE', 256],

This change makes thunderx config to 256 cores not armv8. For generic config, it needs to be under "flags_generic" not under "flags_cavium". Just like you did for updating defconfig_arm64-armv8a-linuxapp-gcc config instead of defconfig_arm64-thunderx-linuxapp-gcc

Quoted 15 lines
config/arm/meson.build +0 -0
        ['RTE_MAX_VFIO_GROUPS', 128],
        ['RTE_USE_C11_MEM_MODEL', false]]
 flags_dpaa = [
config/defconfig_arm64-armv8a-linuxapp-gcc +1 -1
index 1842744..a6ed90c 100644
@@ -6,3 +6,4 @@
 
 CONFIG_RTE_TOOLCHAIN="gcc"
 CONFIG_RTE_TOOLCHAIN_GCC=y
+CONFIG_RTE_MAX_LCORE=256
--

2.7.4

#8 lore raw

Re: [PATCH v2] config: enable more than 128 cores for Arm64 platform

Quoted 40 lines

-----Original Message-----
From: Jerin Jacob <[email protected]>
Sent: Wednesday, November 21, 2018 7:35 PM
To: Joyce Kong (Arm Technology China) <[email protected]>
Cc: [email protected]; [email protected]; Honnappa Nagarahalli <[email protected]>; Gavin Hu (Arm Technology China) <[email protected]>; [email protected]
Subject: Re: [PATCH v2] config: enable more than 128 cores for Arm64 platform

-----Original Message-----

Quoted 29 lines

Date: Wed, 21 Nov 2018 19:27:12 +0800
From: Joyce Kong <[email protected]>
To: [email protected]
CC: [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: [PATCH v2] config: enable more than 128 cores for Arm64 platform
X-Mailer: git-send-email 2.7.4

When running dpdk applications on cores whose ids are bigger than original max_core setting, eal error as below:
EAL: Detected 104 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: invalid core list
-l CORELIST core indexes between 0 and 128

The fix is to increase max_core to 256 on Arm64 platform.

Fixes b3ce00e5 ("mk: introduce ARMv8 architecture")
---
 config/arm/meson.build                     | 2 +-
 config/defconfig_arm64-armv8a-linuxapp-gcc | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
Quoted 17 lines

config/arm/meson.build flags_cavium = [ · line 54

Quoted 10 lines
config/arm/meson.build index renamed from config/arm/meson.build +0 -0

b755138..020df09 100644

config/arm/meson.build +1 -1
@@ -51,7 +51,7 @@ flags_cavium = [
        ['RTE_MACHINE', '"thunderx"'],
        ['RTE_CACHE_LINE_SIZE', 128],
        ['RTE_MAX_NUMA_NODES', 2],
-       ['RTE_MAX_LCORE', 96],
+       ['RTE_MAX_LCORE', 256],

This change makes thunderx config to 256 cores not armv8.
For generic config, it needs to be under "flags_generic"
not under "flags_cavium". Just like you did for updating defconfig_arm64- armv8a-linuxapp-gcc config instead of defconfig_arm64-thunderx-linuxapp- gcc

Config to 256 cores for both flags_generic and flags_cavium in V3.
For thunderx, it will do meson build according to flasg_cavium instead of flags_generic. And there is no inheritance relationship between the two flags.

Quoted 9 lines
Quoted 9 lines
config/arm/meson.build +0 -0
        ['RTE_MAX_VFIO_GROUPS', 128],
        ['RTE_USE_C11_MEM_MODEL', false]]  flags_dpaa = [ diff --git

a/config/defconfig_arm64-armv8a-linuxapp-gcc
b/config/defconfig_arm64-armv8a-linuxapp-gcc
index 1842744..a6ed90c 100644

config/defconfig_arm64-armv8a-linuxapp-gcc +0 -0
@@ -6,3 +6,4 @@
 
Quoted 6 lines
Quoted 6 lines
config/defconfig_arm64-armv8a-linuxapp-gcc +1 -1
 CONFIG_RTE_TOOLCHAIN="gcc"
 CONFIG_RTE_TOOLCHAIN_GCC=y
+CONFIG_RTE_MAX_LCORE=256
--

2.7.4

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.

author
#9 lore raw

PATCH v3 1/1 config: enable more than 128 cores for Arm64 platform

In reply to Joyce Kong

When running dpdk applications on cores whose ids are bigger than original max_core setting, eal error as below:
EAL: Detected 104 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: invalid core list
-l CORELIST core indexes between 0 and 128

The fix is to increase max_core to 256 on Arm64 platform.

Fixes b3ce00e5 ("mk: introduce ARMv8 architecture")
---
 config/arm/meson.build                     | 5 +++--
 config/defconfig_arm64-armv8a-linuxapp-gcc | 1 +
 2 files changed, 4 insertions(+), 2 deletions(-)
config/arm/meson.build +3 -2
index b755138..9b5f09c 100644
@@ -46,13 +46,14 @@ flags_common_default = [
 
 flags_generic = [
 	['RTE_MACHINE', '"armv8a"'],
+    ['RTE_MAX_LCORE', 256],
 	['RTE_CACHE_LINE_SIZE', 128]]
 flags_cavium = [
 	['RTE_MACHINE', '"thunderx"'],
 	['RTE_CACHE_LINE_SIZE', 128],
 	['RTE_MAX_NUMA_NODES', 2],
-	['RTE_MAX_LCORE', 96],
-	['RTE_MAX_VFIO_GROUPS', 128],
+    ['RTE_MAX_LCORE', 256],
+    ['RTE_MAX_VFIO_GROUPS', 128],
 	['RTE_USE_C11_MEM_MODEL', false]]
 flags_dpaa = [
 	['RTE_MACHINE', '"dpaa"'],
config/defconfig_arm64-armv8a-linuxapp-gcc +1 -0
index 1842744..a6ed90c 100644
@@ -6,3 +6,4 @@
 
 CONFIG_RTE_TOOLCHAIN="gcc"
 CONFIG_RTE_TOOLCHAIN_GCC=y
+CONFIG_RTE_MAX_LCORE=256
Signature · 1 line
2.7.4
#10 lore raw

Re: [PATCH v3] config: enable more than 128 cores for Arm64 platform

-----Original Message-----

Quoted 35 lines

Date: Thu, 22 Nov 2018 15:01:14 +0800
From: Joyce Kong <[email protected]>
To: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected], [email protected]
Subject: [PATCH v3] config: enable more than 128 cores for Arm64 platform
X-Mailer: git-send-email 2.7.4

When running dpdk applications on cores whose ids are bigger than original max_core setting, eal error as below:
EAL: Detected 104 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: invalid core list
-l CORELIST core indexes between 0 and 128

The fix is to increase max_core to 256 on Arm64 platform.

Fixes b3ce00e5 ("mk: introduce ARMv8 architecture")
---
 config/arm/meson.build                     | 5 +++--
 config/defconfig_arm64-armv8a-linuxapp-gcc | 1 +
 2 files changed, 4 insertions(+), 2 deletions(-)
config/arm/meson.build +0 -0
index b755138..9b5f09c 100644
@@ -46,13 +46,14 @@ flags_common_default = [
 
 flags_generic = [

config/arm/meson.build flags_common_default = [ · line 55

Quoted 10 lines
config/arm/meson.build +2 -2
        ['RTE_MACHINE', '"armv8a"'],
+    ['RTE_MAX_LCORE', 256],
        ['RTE_CACHE_LINE_SIZE', 128]]
 flags_cavium = [
        ['RTE_MACHINE', '"thunderx"'],
        ['RTE_CACHE_LINE_SIZE', 128],
        ['RTE_MAX_NUMA_NODES', 2],
-       ['RTE_MAX_LCORE', 96],
-       ['RTE_MAX_VFIO_GROUPS', 128],
+    ['RTE_MAX_LCORE', 256],

thunderx has only 96 cores. It the "thunderx2" which has more cores. There no speerate config "thunderx2", it is using generic armv8 config. So this specific line of change is not needed.

Quoted 16 lines
config/arm/meson.build +1 -0
+    ['RTE_MAX_VFIO_GROUPS', 128],
        ['RTE_USE_C11_MEM_MODEL', false]]
 flags_dpaa = [
        ['RTE_MACHINE', '"dpaa"'],
config/defconfig_arm64-armv8a-linuxapp-gcc +1 -1
index 1842744..a6ed90c 100644
@@ -6,3 +6,4 @@
 
 CONFIG_RTE_TOOLCHAIN="gcc"
 CONFIG_RTE_TOOLCHAIN_GCC=y
+CONFIG_RTE_MAX_LCORE=256
--

2.7.4

#11 lore raw

Re: [PATCH v3] config: enable more than 128 cores for Arm64 platform

Quoted 46 lines

-----Original Message-----
From: Jerin Jacob <[email protected]>
Sent: Thursday, November 22, 2018 3:09 PM
To: Joyce Kong (Arm Technology China) <[email protected]>
Cc: [email protected]; [email protected]; Honnappa Nagarahalli <[email protected]>; Gavin Hu (Arm Technology China) <[email protected]>; [email protected]
Subject: Re: [PATCH v3] config: enable more than 128 cores for Arm64 platform

-----Original Message-----

Quoted 35 lines

Date: Thu, 22 Nov 2018 15:01:14 +0800
From: Joyce Kong <[email protected]>
To: [email protected]
CC: [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: [PATCH v3] config: enable more than 128 cores for Arm64 platform
X-Mailer: git-send-email 2.7.4

When running dpdk applications on cores whose ids are bigger than original max_core setting, eal error as below:
EAL: Detected 104 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: invalid core list
-l CORELIST core indexes between 0 and 128

The fix is to increase max_core to 256 on Arm64 platform.

Fixes b3ce00e5 ("mk: introduce ARMv8 architecture")
---
 config/arm/meson.build                     | 5 +++--
 config/defconfig_arm64-armv8a-linuxapp-gcc | 1 +
 2 files changed, 4 insertions(+), 2 deletions(-)
config/arm/meson.build index renamed from config/arm/meson.build +0 -0

b755138..9b5f09c 100644

config/arm/meson.build +0 -0
@@ -46,13 +46,14 @@ flags_common_default = [
 
Quoted 16 lines

config/arm/meson.build flags_common_default = [ · line 55

Quoted 11 lines
config/arm/meson.build +2 -2
 flags_generic = [
        ['RTE_MACHINE', '"armv8a"'],
+    ['RTE_MAX_LCORE', 256],
        ['RTE_CACHE_LINE_SIZE', 128]]
 flags_cavium = [
        ['RTE_MACHINE', '"thunderx"'],
        ['RTE_CACHE_LINE_SIZE', 128],
        ['RTE_MAX_NUMA_NODES', 2],
-       ['RTE_MAX_LCORE', 96],
-       ['RTE_MAX_VFIO_GROUPS', 128],
+    ['RTE_MAX_LCORE', 256],

thunderx has only 96 cores. It the "thunderx2" which has more cores. There no speerate config "thunderx2", it is using generic armv8 config. So this specific line of change is not needed.

Remove this specific line of change in V4.

Quoted 10 lines
Quoted 10 lines
config/arm/meson.build +1 -0
+    ['RTE_MAX_VFIO_GROUPS', 128],
        ['RTE_USE_C11_MEM_MODEL', false]]  flags_dpaa = [
        ['RTE_MACHINE', '"dpaa"'],
config/defconfig_arm64-armv8a-linuxapp-gcc +0 -0
index 1842744..a6ed90c 100644
@@ -6,3 +6,4 @@
 
Quoted 6 lines
Quoted 6 lines
config/defconfig_arm64-armv8a-linuxapp-gcc +1 -1
 CONFIG_RTE_TOOLCHAIN="gcc"
 CONFIG_RTE_TOOLCHAIN_GCC=y
+CONFIG_RTE_MAX_LCORE=256
--

2.7.4

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.

author
#12 lore raw

PATCH v4 1/1 config: enable more than 128 cores for Arm64 platform

In reply to Joyce Kong

When running dpdk applications on cores whose ids are bigger than original max_core setting, eal error as below:
EAL: Detected 104 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: invalid core list
-l CORELIST core indexes between 0 and 128

The fix is to increase max_core to 256 on Arm64 platform.

Fixes b3ce00e5 ("mk: introduce ARMv8 architecture")
---
 config/arm/meson.build                     | 1 +
 config/defconfig_arm64-armv8a-linuxapp-gcc | 1 +
 2 files changed, 2 insertions(+)
config/arm/meson.build +1 -0
index b755138..3f91725 100644
@@ -46,6 +46,7 @@ flags_common_default = [
 
 flags_generic = [
 	['RTE_MACHINE', '"armv8a"'],
+	['RTE_MAX_LCORE', 256],
 	['RTE_CACHE_LINE_SIZE', 128]]
 flags_cavium = [
 	['RTE_MACHINE', '"thunderx"'],
config/defconfig_arm64-armv8a-linuxapp-gcc +1 -0
index 1842744..a6ed90c 100644
@@ -6,3 +6,4 @@
 
 CONFIG_RTE_TOOLCHAIN="gcc"
 CONFIG_RTE_TOOLCHAIN_GCC=y
+CONFIG_RTE_MAX_LCORE=256
Signature · 1 line
2.7.4
Acked-by on v4 1/1
#13 lore raw

Re: [PATCH v4] config: enable more than 128 cores for Arm64 platform

-----Original Message-----

Quoted 17 lines

Date: Thu, 22 Nov 2018 15:37:07 +0800
From: Joyce Kong <[email protected]>
To: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected], [email protected], [email protected]
Subject: [PATCH v4] config: enable more than 128 cores for Arm64 platform
X-Mailer: git-send-email 2.7.4

When running dpdk applications on cores whose ids are bigger than original max_core setting, eal error as below:
EAL: Detected 104 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: invalid core list
-l CORELIST core indexes between 0 and 128

Quoted 7 lines

The fix is to increase max_core to 256 on Arm64 platform.

Fixes b3ce00e5 ("mk: introduce ARMv8 architecture")
Quoted 29 lines
---
 config/arm/meson.build                     | 1 +
 config/defconfig_arm64-armv8a-linuxapp-gcc | 1 +
 2 files changed, 2 insertions(+)
config/arm/meson.build +1 -0
index b755138..3f91725 100644
@@ -46,6 +46,7 @@ flags_common_default = [
 
 flags_generic = [
        ['RTE_MACHINE', '"armv8a"'],
+       ['RTE_MAX_LCORE', 256],
        ['RTE_CACHE_LINE_SIZE', 128]]
 flags_cavium = [
        ['RTE_MACHINE', '"thunderx"'],
config/defconfig_arm64-armv8a-linuxapp-gcc +1 -1
index 1842744..a6ed90c 100644
@@ -6,3 +6,4 @@
 
 CONFIG_RTE_TOOLCHAIN="gcc"
 CONFIG_RTE_TOOLCHAIN_GCC=y
+CONFIG_RTE_MAX_LCORE=256
--

2.7.4

#14 lore raw

Re: [PATCH v4] config: enable more than 128 cores for Arm64 platform

22/11/2018 12:04, Jerin Jacob:

Quoted 11 lines

From: Joyce Kong <[email protected]>

Quoted 10 lines

When running dpdk applications on cores whose ids are bigger than original max_core setting, eal error as below:
EAL: Detected 104 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: invalid core list
-l CORELIST core indexes between 0 and 128

The fix is to increase max_core to 256 on Arm64 platform.

Quoted 8 lines
Quoted 5 lines
Fixes b3ce00e5 ("mk: introduce ARMv8 architecture")

Applied, thanks

Note: Arm64 replace by arm64 to comply with Honnappa's naming recommendation.