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

Message ID 20220705133057.3821347-1-thomas@monjalon.net (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers
Series [v3] config/arm: add Phytium FT-2000+ |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/github-robot: build success github build: passed
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-aarch64-unit-testing success Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-aarch64-compile-testing success Testing PASS
ci/iol-x86_64-compile-testing success Testing PASS
ci/iol-x86_64-unit-testing success Testing PASS
ci/iol-abi-testing success Testing PASS
ci/intel-Testing success Testing PASS

Commit Message

Thomas Monjalon July 5, 2022, 1:30 p.m. UTC
  From: luzhipeng <luzhipeng@cestc.cn>

Here adds configs for Phytium server.

Signed-off-by: luzhipeng <luzhipeng@cestc.cn>
Reviewed-by: Thomas Monjalon <thomas@monjalon.net>
---
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
  

Comments

Ruifeng Wang July 5, 2022, 1:50 p.m. UTC | #1
> -----Original Message-----
> From: Thomas Monjalon <thomas@monjalon.net>
> Sent: Tuesday, July 5, 2022 9:31 PM
> To: dev@dpdk.org
> Cc: luzhipeng <luzhipeng@cestc.cn>; Ruifeng Wang
> <Ruifeng.Wang@arm.com>; Jan Viktorin <viktorin@rehivetech.com>; Bruce
> Richardson <bruce.richardson@intel.com>
> Subject: [PATCH v3] config/arm: add Phytium FT-2000+
> 
> From: luzhipeng <luzhipeng@cestc.cn>
> 
> Here adds configs for Phytium server.
> 
> Signed-off-by: luzhipeng <luzhipeng@cestc.cn>
> Reviewed-by: Thomas Monjalon <thomas@monjalon.net>
> ---
> 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>

>  implementer_qualcomm = {
>      'description': 'Qualcomm',
>      'flags': [
> @@ -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.
Acked-by: Ruifeng Wang <ruifeng.wang@arm.com>

>      }
>  }
> 
> @@ -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,
> --
> 2.36.1
  
Thomas Monjalon July 5, 2022, 1:57 p.m. UTC | #2
05/07/2022 15:50, Ruifeng Wang:
> From: Thomas Monjalon <thomas@monjalon.net>
> > @@ -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.
  
Morten Brørup July 5, 2022, 2:25 p.m. UTC | #3
> From: Thomas Monjalon [mailto:thomas@monjalon.net]
> Sent: Tuesday, 5 July 2022 15.31
> 
> From: luzhipeng <luzhipeng@cestc.cn>
> 
> Here adds configs for Phytium server.
> 
> Signed-off-by: luzhipeng <luzhipeng@cestc.cn>
> Reviewed-by: Thomas Monjalon <thomas@monjalon.net>
> ---
> 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.

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
  
Morten Brørup July 5, 2022, 2:31 p.m. UTC | #4
> From: Morten Brørup
> Sent: Tuesday, 5 July 2022 16.25
> 
> > From: Thomas Monjalon [mailto:thomas@monjalon.net]
> > Sent: Tuesday, 5 July 2022 15.31
> >
> > From: luzhipeng <luzhipeng@cestc.cn>
> >
> > Here adds configs for Phytium server.
> >
> > Signed-off-by: luzhipeng <luzhipeng@cestc.cn>
> > Reviewed-by: Thomas Monjalon <thomas@monjalon.net>
> > ---
> > 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.
> 
> 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! :-)
  
luzhipeng July 6, 2022, 1:02 a.m. UTC | #5
my name: zhipeng Lu
thanks.

在 2022/7/5 22:31, Morten Brørup 写道:
>> From: Morten Brørup
>> Sent: Tuesday, 5 July 2022 16.25
>>
>>> From: Thomas Monjalon [mailto:thomas@monjalon.net]
>>> Sent: Tuesday, 5 July 2022 15.31
>>>
>>> From: luzhipeng <luzhipeng@cestc.cn>
>>>
>>> Here adds configs for Phytium server.
>>>
>>> Signed-off-by: luzhipeng <luzhipeng@cestc.cn>
>>> Reviewed-by: Thomas Monjalon <thomas@monjalon.net>
>>> ---
>>> 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.
>>
>> 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! :-)
> 
> 
>
  
luzhipeng July 6, 2022, 1:28 a.m. UTC | #6
My name: zhipeng Lu

Thanks.

在 2022/7/5 22:31, Morten Brørup 写道:
>> From: Morten Brørup
>> Sent: Tuesday, 5 July 2022 16.25
>>
>>> From: Thomas Monjalon [mailto:thomas@monjalon.net]
>>> Sent: Tuesday, 5 July 2022 15.31
>>>
>>> From: luzhipeng <luzhipeng@cestc.cn>
>>>
>>> Here adds configs for Phytium server.
>>>
>>> Signed-off-by: luzhipeng <luzhipeng@cestc.cn>
>>> Reviewed-by: Thomas Monjalon <thomas@monjalon.net>
>>> ---
>>> 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.
>>
>> 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! :-)
> 
> 
>
  
Thomas Monjalon July 6, 2022, 6:59 a.m. UTC | #7
06/07/2022 03:28, luzhipeng:
> My name: zhipeng Lu

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

> >>> From: Thomas Monjalon [mailto:thomas@monjalon.net]
> >>> 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.
  
luzhipeng July 6, 2022, 7 a.m. UTC | #8
在 2022/7/6 14:59, Thomas Monjalon 写道:
> 06/07/2022 03:28, luzhipeng:
>> My name: zhipeng Lu
> 
> OK I will change it to Zhipeng Lu (with capital letters).
> Are you OK with this v3?
> 
OK

>>>>> From: Thomas Monjalon [mailto:thomas@monjalon.net]
>>>>> 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.
> 
> 
> 
> 
>
  
Thomas Monjalon July 8, 2022, 12:44 p.m. UTC | #9
05/07/2022 15:50, Ruifeng Wang:
> > From: luzhipeng <luzhipeng@cestc.cn>
> > 
> > Here adds configs for Phytium server.
> > 
> > Signed-off-by: luzhipeng <luzhipeng@cestc.cn>
> > Reviewed-by: Thomas Monjalon <thomas@monjalon.net>
> > ---
> > 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>
> 
> >  implementer_qualcomm = {
> >      'description': 'Qualcomm',
> >      'flags': [
> > @@ -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.
> Acked-by: Ruifeng Wang <ruifeng.wang@arm.com>

Applied (without above unintentional change), thanks.
  

Patch

diff --git a/config/arm/arm64_ft2000plus_linux_gcc b/config/arm/arm64_ft2000plus_linux_gcc
new file mode 100644
index 0000000000..ae9f779056
--- /dev/null
+++ b/config/arm/arm64_ft2000plus_linux_gcc
@@ -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'
diff --git a/config/arm/meson.build b/config/arm/meson.build
index aa12eb76f4..5291c036d6 100644
--- a/config/arm/meson.build
+++ b/config/arm/meson.build
@@ -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,