Skip to contentSkip to conversation

config/arm: add PHYTIUM ft2000plus

PATCH Superseded luzhipeng 4 participants 11 messages Jun 21, 2022 – Jul 8, 2022 Arm/Amlogic Meson SoC support

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

luzhipeng

author
#0 lore raw

PATCH v2 1/1 config/arm: add PHYTIUM ft2000plus

Here adds configs for PHYTIUM server.

---
 config/arm/arm64_ft2000plus_linux_gcc | 16 ++++++++++++++++
 config/arm/meson.build                | 26 +++++++++++++++++++++++++-
 2 files changed, 41 insertions(+), 1 deletion(-)
 create mode 100644 config/arm/arm64_ft2000plus_linux_gcc

v2: add ccache support

config/arm/arm64_ft2000plus_linux_gcc new file +16 -0
new file mode 100644
index 0000000000..f02b492ba2
@@ -0,0 +1,16 @@
+[binaries]
+c = [ 'ccache', 'aarch64-linux-gnu-gcc']
+cpp = [ 'ccache', 'aarch64-linux-gnu-cpp']
+ar = 'aarch64-linux-gnu-gcc-ar'
+strip = 'aarch64-linux-gnu-strip'
+pkgconfig = 'aarch64-linux-gnu-pkg-config'
+pcap-config = ''
+
+[host_machine]
+system = 'linux'
+cpu_family = 'aarch64'
+cpu = 'armv8-a'
+endian = 'little'
+
+[properties]
+platform = 'ft2000plus'
config/arm/meson.build +25 -1
index aa12eb76f4..48e5f6af5b 100644
@@ -218,6 +218,20 @@ implementer_qualcomm = {
     }
 }
 
+implementer_phytium = {
+    'description': 'PHYTIUM',
+    'flags': [
+        ['RTE_MACHINE', '"armv8a"'],
+        ['RTE_USE_C11_MEM_MODEL', true],
+        ['RTE_CACHE_LINE_SIZE', 64],
+        ['RTE_MAX_LCORE', 64],
+        ['RTE_MAX_NUMA_NODES', 8]
+    ],
+    'part_number_config': {
+        '0x662': {'machine_args':  ['-march=armv8-a+crc']}
+    }
+}
+
 ## Arm implementers (ID from MIDR in Arm Architecture Reference Manual)
 implementers = {
     'generic': implementer_generic,
@@ -225,7 +239,8 @@ implementers = {
     '0x43': implementer_cavium,
     '0x48': implementer_hisilicon,
     '0x50': implementer_ampere,
-    '0x51': implementer_qualcomm
+    '0x51': implementer_qualcomm,
+    '0x70': implementer_phytium
 }
 
 # SoC specific armv8 flags have the highest priority
@@ -378,6 +393,13 @@ soc_thunderxt83 = {
     'part_number': '0xa3'
 }
 
+soc_ft2000plus = {
+    'description': 'PHYTIUM ft2000plus',
+    'implementer': '0x70',
+    'part_number': '0x662',
+    'numa': true
+}
+
 '''
 Start of SoCs list
 generic:         Generic un-optimized build for armv8 aarch64 execution mode.
@@ -398,6 +420,7 @@ stingray:        Broadcom Stingray
 thunderx2:       Marvell ThunderX2 T99
 thunderxt88:     Marvell ThunderX T88
 thunderxt83:     Marvell ThunderX T83
+ft2000plus:  PHYTIUM ft2000plus
 End of SoCs list
 '''
 # The string above is included in the documentation, keep it in sync with the
@@ -421,6 +444,7 @@ socs = {
     'thunderx2': soc_thunderx2,
     'thunderxt88': soc_thunderxt88,
     'thunderxt83': soc_thunderxt83,
+    'ft2000plus': soc_ft2000plus,
 }
 
 dpdk_conf.set('RTE_ARCH_ARM', 1)
Signature · 1 line
2.27.0
#1 lore raw

PATCH v3 1/1 config/arm: add Phytium FT-2000+

From: luzhipeng <[email protected]>

Here adds configs for Phytium server.

---
I did some changes in this v3:
- PHYTIUM -> Phytium (as on the website)
- ft2000plus -> FT-2000+ (as found online)
- alphabetical ordering
- extra commas for future extensions
- g++ as cpp Meson command

Please tell how to write your name with spaces and capitals in the order [first name] [family name], thanks.

---
 config/arm/arm64_ft2000plus_linux_gcc | 16 +++++++++++++++
 config/arm/meson.build                | 28 +++++++++++++++++++++++++--
 2 files changed, 42 insertions(+), 2 deletions(-)
 create mode 100644 config/arm/arm64_ft2000plus_linux_gcc
config/arm/arm64_ft2000plus_linux_gcc new file +16 -0
new file mode 100644
index 0000000000..ae9f779056
@@ -0,0 +1,16 @@
+[binaries]
+c = ['ccache', 'aarch64-linux-gnu-gcc']
+cpp = ['ccache', 'aarch64-linux-gnu-g++']
+ar = 'aarch64-linux-gnu-gcc-ar'
+strip = 'aarch64-linux-gnu-strip'
+pkgconfig = 'aarch64-linux-gnu-pkg-config'
+pcap-config = ''
+
+[host_machine]
+system = 'linux'
+cpu_family = 'aarch64'
+cpu = 'armv8-a'
+endian = 'little'
+
+[properties]
+platform = 'ft2000plus'
config/arm/meson.build +26 -2
index aa12eb76f4..5291c036d6 100644
@@ -197,6 +197,20 @@ implementer_hisilicon = {
     }
 }
 
+implementer_phytium = {
+    'description': 'Phytium',
+    'flags': [
+        ['RTE_MACHINE', '"armv8a"'],
+        ['RTE_USE_C11_MEM_MODEL', true],
+        ['RTE_CACHE_LINE_SIZE', 64],
+        ['RTE_MAX_LCORE', 64],
+        ['RTE_MAX_NUMA_NODES', 8]
+    ],
+    'part_number_config': {
+        '0x662': {'machine_args':  ['-march=armv8-a+crc']}
+    }
+}
+
 implementer_qualcomm = {
     'description': 'Qualcomm',
     'flags': [
@@ -214,7 +228,7 @@ implementer_qualcomm = {
         '0xc00': {
             'march': 'armv8-a',
             'march_features': ['crc']
-        }
+        },
     }
 }
 
@@ -225,7 +239,8 @@ implementers = {
     '0x43': implementer_cavium,
     '0x48': implementer_hisilicon,
     '0x50': implementer_ampere,
-    '0x51': implementer_qualcomm
+    '0x51': implementer_qualcomm,
+    '0x70': implementer_phytium,
 }
 
 # SoC specific armv8 flags have the highest priority
@@ -304,6 +319,13 @@ soc_emag = {
     'part_number': '0x0'
 }
 
+soc_ft2000plus = {
+    'description': 'Phytium FT-2000+',
+    'implementer': '0x70',
+    'part_number': '0x662',
+    'numa': true
+}
+
 soc_graviton2 = {
     'description': 'AWS Graviton2',
     'implementer': '0x41',
@@ -389,6 +411,7 @@ cn9k:            Marvell OCTEON 9
 cn10k:           Marvell OCTEON 10
 dpaa:            NXP DPAA
 emag:            Ampere eMAG
+ft2000plus:      Phytium FT-2000+
 graviton2:       AWS Graviton2
 kunpeng920:      HiSilicon Kunpeng 920
 kunpeng930:      HiSilicon Kunpeng 930
@@ -412,6 +435,7 @@ socs = {
     'cn10k' : soc_cn10k,
     'dpaa': soc_dpaa,
     'emag': soc_emag,
+    'ft2000plus': soc_ft2000plus,
     'graviton2': soc_graviton2,
     'kunpeng920': soc_kunpeng920,
     'kunpeng930': soc_kunpeng930,
Signature · 1 line
2.36.1
Acked-by on v3 1/1
#2 lore raw

RE: [PATCH v3] config/arm: add Phytium FT-2000+

Quoted 26 lines

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Tuesday, July 5, 2022 9:31 PM
To: [email protected]
Cc: luzhipeng <[email protected]>; Ruifeng Wang <[email protected]>; Jan Viktorin <[email protected]>; Bruce Richardson <[email protected]>
Subject: [PATCH v3] config/arm: add Phytium FT-2000+

From: luzhipeng <[email protected]>

Here adds configs for Phytium server.

---
I did some changes in this v3:
- PHYTIUM -> Phytium (as on the website)
- ft2000plus -> FT-2000+ (as found online)
- alphabetical ordering
- extra commas for future extensions
- g++ as cpp Meson command

Please tell how to write your name with spaces and capitals in the order [first name] [family name], thanks.
---

<snip>

config/arm/meson.build implementer_qualcomm = { · line 231

Quoted 9 lines
 implementer_qualcomm = {
     'description': 'Qualcomm',
     'flags': [
config/arm/meson.build +1 -1
@@ -214,7 +228,7 @@ implementer_qualcomm = {
         '0xc00': {
             'march': 'armv8-a',
             'march_features': ['crc']
-        }
+        },

Unintentional change?
The change is valid, but not related to this patch.

Otherwise looks good to me.

Quoted 45 lines
config/arm/meson.build +2 -1
     }
 }
 
@@ -225,7 +239,8 @@ implementers = {
     '0x43': implementer_cavium,
     '0x48': implementer_hisilicon,
     '0x50': implementer_ampere,
-    '0x51': implementer_qualcomm
+    '0x51': implementer_qualcomm,
+    '0x70': implementer_phytium,
 }
 
 # SoC specific armv8 flags have the highest priority @@ -304,6 +319,13 @@
soc_emag = {
     'part_number': '0x0'

}

config/arm/meson.build +9 -1
+soc_ft2000plus = {
+    'description': 'Phytium FT-2000+',
+    'implementer': '0x70',
+    'part_number': '0x662',
+    'numa': true
+}
+
 soc_graviton2 = {
     'description': 'AWS Graviton2',
     'implementer': '0x41',
@@ -389,6 +411,7 @@ cn9k:            Marvell OCTEON 9
 cn10k:           Marvell OCTEON 10
 dpaa:            NXP DPAA
 emag:            Ampere eMAG
+ft2000plus:      Phytium FT-2000+
 graviton2:       AWS Graviton2
 kunpeng920:      HiSilicon Kunpeng 920
 kunpeng930:      HiSilicon Kunpeng 930
@@ -412,6 +435,7 @@ socs = {
     'cn10k' : soc_cn10k,
     'dpaa': soc_dpaa,
     'emag': soc_emag,
+    'ft2000plus': soc_ft2000plus,
     'graviton2': soc_graviton2,
     'kunpeng920': soc_kunpeng920,
     'kunpeng930': soc_kunpeng930,
--

2.36.1

#3 lore raw

Re: [PATCH v3] config/arm: add Phytium FT-2000+

05/07/2022 15:50, Ruifeng Wang:

Quoted 10 lines

From: Thomas Monjalon <[email protected]>

config/arm/meson.build implementer_qualcomm = { · line 231

Quoted 6 lines
config/arm/meson.build +1 -1
@@ -214,7 +228,7 @@ implementer_qualcomm = {
         '0xc00': {
             'march': 'armv8-a',
             'march_features': ['crc']
-        }
+        },

Unintentional change?
The change is valid, but not related to this patch.

Yes you're right, it is unintentional.

#4 lore raw

Re: [PATCH v3] config/arm: add Phytium FT-2000+

In reply to Ruifeng Wang

05/07/2022 15:50, Ruifeng Wang:

Quoted 33 lines
Quoted 17 lines

From: luzhipeng <[email protected]>

Here adds configs for Phytium server.

---
I did some changes in this v3:
- PHYTIUM -> Phytium (as on the website)
- ft2000plus -> FT-2000+ (as found online)
- alphabetical ordering
- extra commas for future extensions
- g++ as cpp Meson command

Please tell how to write your name with spaces and capitals in the order [first name] [family name], thanks.
---

<snip>

config/arm/meson.build implementer_qualcomm = { · line 231

Quoted 9 lines
 implementer_qualcomm = {
     'description': 'Qualcomm',
     'flags': [
config/arm/meson.build +1 -1
@@ -214,7 +228,7 @@ implementer_qualcomm = {
         '0xc00': {
             'march': 'armv8-a',
             'march_features': ['crc']
-        }
+        },

Unintentional change?
The change is valid, but not related to this patch.

Quoted 2 lines

Otherwise looks good to me.

Applied (without above unintentional change), thanks.

#5 lore raw

RE: [PATCH v3] config/arm: add Phytium FT-2000+

In reply to Thomas Monjalon
Quoted 17 lines

From: Thomas Monjalon [mailto:[email protected]]
Sent: Tuesday, 5 July 2022 15.31

From: luzhipeng <[email protected]>

Here adds configs for Phytium server.

---
I did some changes in this v3:
- PHYTIUM -> Phytium (as on the website)
- ft2000plus -> FT-2000+ (as found online)
- alphabetical ordering
- extra commas for future extensions
- g++ as cpp Meson command

Quoted 2 lines

Please tell how to write your name with spaces and capitals in the order [first name] [family name], thanks.

Thomas means: [given name] [family name].

E.g. my parents chose to give me the name "Morten", and they gave my brother the name "Søren". And we inherited the family name "Brørup".

Med venlig hilsen / Kind regards,
-Morten Brørup

#6 lore raw

RE: [PATCH v3] config/arm: add Phytium FT-2000+

In reply to Thomas Monjalon
Quoted 23 lines

From: Morten Brørup
Sent: Tuesday, 5 July 2022 16.25

Quoted 17 lines

From: Thomas Monjalon [mailto:[email protected]]
Sent: Tuesday, 5 July 2022 15.31

From: luzhipeng <[email protected]>

Here adds configs for Phytium server.

---
I did some changes in this v3:
- PHYTIUM -> Phytium (as on the website)
- ft2000plus -> FT-2000+ (as found online)
- alphabetical ordering
- extra commas for future extensions
- g++ as cpp Meson command

Quoted 2 lines

Please tell how to write your name with spaces and capitals in the order [first name] [family name], thanks.

Quoted 7 lines

Thomas means: [given name] [family name].

E.g. my parents chose to give me the name "Morten", and they gave my brother the name "Søren". And we inherited the family name "Brørup".

Med venlig hilsen / Kind regards,
-Morten Brørup

Come to think of it... I hope this explanation is not politically incorrect in regions where you choose your own name. :-/

And I guess the "given name" would be "chosen name" in such regions.

I'm certainly not a master of political correctness, so just slap me with a wet baguette if I managed to step on your toes! :-)

author
#7 lore raw

Re: [PATCH v3] config/arm: add Phytium FT-2000+

My name: zhipeng Lu

Thanks.

Quoted 39 lines · Morten Brørup
Quoted 23 lines

From: Morten Brørup
Sent: Tuesday, 5 July 2022 16.25

Quoted 17 lines

From: Thomas Monjalon [mailto:[email protected]]
Sent: Tuesday, 5 July 2022 15.31

From: luzhipeng <[email protected]>

Here adds configs for Phytium server.

---
I did some changes in this v3:
- PHYTIUM -> Phytium (as on the website)
- ft2000plus -> FT-2000+ (as found online)
- alphabetical ordering
- extra commas for future extensions
- g++ as cpp Meson command

Quoted 2 lines

Please tell how to write your name with spaces and capitals in the order [first name] [family name], thanks.

Quoted 7 lines

Thomas means: [given name] [family name].

E.g. my parents chose to give me the name "Morten", and they gave my brother the name "Søren". And we inherited the family name "Brørup".

Med venlig hilsen / Kind regards,
-Morten Brørup

Come to think of it... I hope this explanation is not politically incorrect in regions where you choose your own name. :-/

And I guess the "given name" would be "chosen name" in such regions.

I'm certainly not a master of political correctness, so just slap me with a wet baguette if I managed to step on your toes! :-)

#8 lore raw

Re: [PATCH v3] config/arm: add Phytium FT-2000+

06/07/2022 03:28, luzhipeng:

Quoted 1 line

My name: zhipeng Lu

OK I will change it to Zhipeng Lu (with capital letters). Are you OK with this v3?

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

From: Thomas Monjalon [mailto:[email protected]] I did some changes in this v3:
- PHYTIUM -> Phytium (as on the website)
- ft2000plus -> FT-2000+ (as found online)
- alphabetical ordering
- extra commas for future extensions
- g++ as cpp Meson command

Please tell how to write your name with spaces and capitals in the order [first name] [family name], thanks.

author
#9 lore raw

Re: [PATCH v3] config/arm: add Phytium FT-2000+

Quoted 6 lines · Thomas Monjalon

06/07/2022 03:28, luzhipeng:

Quoted 1 line

My name: zhipeng Lu

OK I will change it to Zhipeng Lu (with capital letters). Are you OK with this v3?

OK

Quoted 15 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

From: Thomas Monjalon [mailto:[email protected]] I did some changes in this v3:
- PHYTIUM -> Phytium (as on the website)
- ft2000plus -> FT-2000+ (as found online)
- alphabetical ordering
- extra commas for future extensions
- g++ as cpp Meson command

Please tell how to write your name with spaces and capitals in the order [first name] [family name], thanks.

author
#10 lore raw

Re: [PATCH v3] config/arm: add Phytium FT-2000+

In reply to Morten Brørup

my name: zhipeng Lu
thanks.

Quoted 39 lines · Morten Brørup
Quoted 23 lines

From: Morten Brørup
Sent: Tuesday, 5 July 2022 16.25

Quoted 17 lines

From: Thomas Monjalon [mailto:[email protected]]
Sent: Tuesday, 5 July 2022 15.31

From: luzhipeng <[email protected]>

Here adds configs for Phytium server.

---
I did some changes in this v3:
- PHYTIUM -> Phytium (as on the website)
- ft2000plus -> FT-2000+ (as found online)
- alphabetical ordering
- extra commas for future extensions
- g++ as cpp Meson command

Quoted 2 lines

Please tell how to write your name with spaces and capitals in the order [first name] [family name], thanks.

Quoted 7 lines

Thomas means: [given name] [family name].

E.g. my parents chose to give me the name "Morten", and they gave my brother the name "Søren". And we inherited the family name "Brørup".

Med venlig hilsen / Kind regards,
-Morten Brørup

Come to think of it... I hope this explanation is not politically incorrect in regions where you choose your own name. :-/

And I guess the "given name" would be "chosen name" in such regions.

I'm certainly not a master of political correctness, so just slap me with a wet baguette if I managed to step on your toes! :-)