[PATCH] add phytium FT-2000+ and Tengyun-S2500 support on arm architecture.

yangshaojun19@163.com posted 1 patch 1 week, 4 days ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/1605745575-1501-2-git-send-email-yangshaojun19@163.com
src/cpu_map/arm_FT-2000plus.xml   | 6 ++++++
src/cpu_map/arm_Tengyun-S2500.xml | 6 ++++++
src/cpu_map/arm_vendors.xml       | 1 +
src/cpu_map/index.xml             | 4 ++++
src/cpu_map/meson.build           | 2 ++
5 files changed, 19 insertions(+)
create mode 100644 src/cpu_map/arm_FT-2000plus.xml
create mode 100644 src/cpu_map/arm_Tengyun-S2500.xml

[PATCH] add phytium FT-2000+ and Tengyun-S2500 support on arm architecture.

Posted by yangshaojun19@163.com 1 week, 4 days ago
From: Shaojun Yang <yangshaojun@phytium.com.cn>

Signed-off-by: Shaojun Yang <yangshaojun@phytium.com.cn>
---
 src/cpu_map/arm_FT-2000plus.xml   | 6 ++++++
 src/cpu_map/arm_Tengyun-S2500.xml | 6 ++++++
 src/cpu_map/arm_vendors.xml       | 1 +
 src/cpu_map/index.xml             | 4 ++++
 src/cpu_map/meson.build           | 2 ++
 5 files changed, 19 insertions(+)
 create mode 100644 src/cpu_map/arm_FT-2000plus.xml
 create mode 100644 src/cpu_map/arm_Tengyun-S2500.xml

diff --git a/src/cpu_map/arm_FT-2000plus.xml b/src/cpu_map/arm_FT-2000plus.xml
new file mode 100644
index 0000000..b532f65
--- /dev/null
+++ b/src/cpu_map/arm_FT-2000plus.xml
@@ -0,0 +1,6 @@
+<cpus>
+  <model name='FT-2000+'>
+    <vendor name='Phytium'/>
+    <pvr value='0x662'/>
+  </model>
+</cpus>
diff --git a/src/cpu_map/arm_Tengyun-S2500.xml b/src/cpu_map/arm_Tengyun-S2500.xml
new file mode 100644
index 0000000..22b865e
--- /dev/null
+++ b/src/cpu_map/arm_Tengyun-S2500.xml
@@ -0,0 +1,6 @@
+<cpus>
+  <model name='Tengyun-S2500'>
+    <vendor name='Phytium'/>
+    <pvr value='0x663'/>
+  </model>
+</cpus>
diff --git a/src/cpu_map/arm_vendors.xml b/src/cpu_map/arm_vendors.xml
index ff799ef..4465463 100644
--- a/src/cpu_map/arm_vendors.xml
+++ b/src/cpu_map/arm_vendors.xml
@@ -11,4 +11,5 @@
   <vendor name='Qualcomm' value='0x51'/>
   <vendor name='Marvell' value='0x56'/>
   <vendor name='Intel' value='0x69'/>
+  <vendor name='Phytium' value='0x70'/>
 </cpus>
diff --git a/src/cpu_map/index.xml b/src/cpu_map/index.xml
index 08f052e..065d9ae 100644
--- a/src/cpu_map/index.xml
+++ b/src/cpu_map/index.xml
@@ -103,5 +103,9 @@
 
     <!-- Hisilicon-based CPU models -->
     <include filename='arm_Kunpeng-920.xml'/>
+
+    <!-- Phytium-based CPU models -->
+    <include filename='arm_FT-2000plus.xml'/>
+    <include filename='arm_Tengyun-S2500.xml'/>
   </arch>
 </cpus>
diff --git a/src/cpu_map/meson.build b/src/cpu_map/meson.build
index b86612b..7eeec6d 100644
--- a/src/cpu_map/meson.build
+++ b/src/cpu_map/meson.build
@@ -5,6 +5,8 @@ cpumap_data = [
   'arm_Falkor.xml',
   'arm_features.xml',
   'arm_Kunpeng-920.xml',
+  'arm_FT-2000plus.xml',
+  'arm_Tengyun-S2500.xml',
   'arm_ThunderX299xx.xml',
   'arm_vendors.xml',
   'index.xml',
-- 
2.7.4


Re: [PATCH] add phytium FT-2000+ and Tengyun-S2500 support on arm architecture.

Posted by Andrea Bolognani 1 week, 4 days ago
On Thu, 2020-11-19 at 08:26 +0800, yangshaojun19@163.com wrote:
> +++ b/src/cpu_map/meson.build
> @@ -5,6 +5,8 @@ cpumap_data = [
>    'arm_Falkor.xml',
>    'arm_features.xml',
>    'arm_Kunpeng-920.xml',
> +  'arm_FT-2000plus.xml',
> +  'arm_Tengyun-S2500.xml',
>    'arm_ThunderX299xx.xml',
>    'arm_vendors.xml',
>    'index.xml',

This list is supposed to be kept alphabetically sorted. I've fixed
that before pushing.

  Reviewed-by: Andrea Bolognani <abologna@redhat.com>

Congratulations on your first libvirt contribution!

-- 
Andrea Bolognani / Red Hat / Virtualization