Blame SOURCES/0050-lscpu-update-ARM-identifiers-tables.patch

0e1b67
From 6700a458ef1bcd8fe2c066411bc415bc43ccdb8a Mon Sep 17 00:00:00 2001
0e1b67
From: Karel Zak <kzak@redhat.com>
0e1b67
Date: Tue, 15 Dec 2020 11:17:42 +0100
0e1b67
Subject: [PATCH 50/55] lscpu: update ARM identifiers tables
0e1b67
0e1b67
Use the latest upstream identifiers to add FUJITSU and HiSilicon
0e1b67
implementers and many new ARM CPUs.
0e1b67
0e1b67
Upstream: http://github.com/karelzak/util-linux/commit/dd9b4cb32042def5b7767e26ebd294f7f52cd07f
0e1b67
Upstream: http://github.com/karelzak/util-linux/commit/a625b32e2c716723a28a49702a02c78274dd3bb6
0e1b67
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1883056
0e1b67
Signed-off-by: Karel Zak <kzak@redhat.com>
0e1b67
---
0e1b67
 sys-utils/lscpu-arm.c | 27 ++++++++++++++++++++++++---
0e1b67
 1 file changed, 24 insertions(+), 3 deletions(-)
0e1b67
0e1b67
diff --git a/sys-utils/lscpu-arm.c b/sys-utils/lscpu-arm.c
0e1b67
index f3a746a62..2b178a72e 100644
0e1b67
--- a/sys-utils/lscpu-arm.c
0e1b67
+++ b/sys-utils/lscpu-arm.c
0e1b67
@@ -49,7 +49,7 @@ static const struct id_part arm_part[] = {
0e1b67
     { 0xc07, "Cortex-A7" },
0e1b67
     { 0xc08, "Cortex-A8" },
0e1b67
     { 0xc09, "Cortex-A9" },
0e1b67
-    { 0xc0d, "Cortex-A12" },
0e1b67
+    { 0xc0d, "Cortex-A17" },	/* Originally A12 */
0e1b67
     { 0xc0f, "Cortex-A15" },
0e1b67
     { 0xc0e, "Cortex-A17" },
0e1b67
     { 0xc14, "Cortex-R4" },
0e1b67
@@ -60,19 +60,28 @@ static const struct id_part arm_part[] = {
0e1b67
     { 0xc21, "Cortex-M1" },
0e1b67
     { 0xc23, "Cortex-M3" },
0e1b67
     { 0xc24, "Cortex-M4" },
0e1b67
-    { 0xc20, "Cortex-M7" },
0e1b67
+    { 0xc27, "Cortex-M7" },
0e1b67
     { 0xc60, "Cortex-M0+" },
0e1b67
     { 0xd01, "Cortex-A32" },
0e1b67
     { 0xd03, "Cortex-A53" },
0e1b67
     { 0xd04, "Cortex-A35" },
0e1b67
     { 0xd05, "Cortex-A55" },
0e1b67
+    { 0xd06, "Cortex-A65" },
0e1b67
     { 0xd07, "Cortex-A57" },
0e1b67
     { 0xd08, "Cortex-A72" },
0e1b67
     { 0xd09, "Cortex-A73" },
0e1b67
     { 0xd0a, "Cortex-A75" },
0e1b67
+    { 0xd0b, "Cortex-A76" },
0e1b67
+    { 0xd0c, "Neoverse-N1" },
0e1b67
+    { 0xd0d, "Cortex-A77" },
0e1b67
+    { 0xd0e, "Cortex-A76AE" },
0e1b67
     { 0xd13, "Cortex-R52" },
0e1b67
     { 0xd20, "Cortex-M23" },
0e1b67
     { 0xd21, "Cortex-M33" },
0e1b67
+    { 0xd41, "Cortex-A78" },
0e1b67
+    { 0xd42, "Cortex-A78AE" },
0e1b67
+    { 0xd4a, "Neoverse-E1" },
0e1b67
+    { 0xd4b, "Cortex-A78C" },
0e1b67
     { -1, "unknown" },
0e1b67
 };
0e1b67
 
0e1b67
@@ -126,6 +135,7 @@ static const struct id_part samsung_part[] = {
0e1b67
 static const struct id_part nvidia_part[] = {
0e1b67
     { 0x000, "Denver" },
0e1b67
     { 0x003, "Denver 2" },
0e1b67
+    { 0x004, "Carmel" },
0e1b67
     { -1, "unknown" },
0e1b67
 };
0e1b67
 
0e1b67
@@ -167,6 +177,16 @@ static const struct id_part intel_part[] = {
0e1b67
     { -1, "unknown" },
0e1b67
 };
0e1b67
 
0e1b67
+static const struct id_part fujitsu_part[] = {
0e1b67
+    { 0x001, "A64FX" },
0e1b67
+    { -1, "unknown" },
0e1b67
+};
0e1b67
+
0e1b67
+static const struct id_part hisi_part[] = {
0e1b67
+    { 0xd01, "Kunpeng-920" },	/* aka tsv110 */
0e1b67
+    { -1, "unknown" },
0e1b67
+};
0e1b67
+
0e1b67
 static const struct id_part unknown_part[] = {
0e1b67
     { -1, "unknown" },
0e1b67
 };
0e1b67
@@ -182,6 +202,8 @@ static const struct hw_impl hw_implementer[] = {
0e1b67
     { 0x42, brcm_part,    "Broadcom" },
0e1b67
     { 0x43, cavium_part,  "Cavium" },
0e1b67
     { 0x44, dec_part,     "DEC" },
0e1b67
+    { 0x46, fujitsu_part, "FUJITSU" },
0e1b67
+    { 0x48, hisi_part,    "HiSilicon" },
0e1b67
     { 0x4e, nvidia_part,  "Nvidia" },
0e1b67
     { 0x50, apm_part,     "APM" },
0e1b67
     { 0x51, qcom_part,    "Qualcomm" },
0e1b67
@@ -191,7 +213,6 @@ static const struct hw_impl hw_implementer[] = {
0e1b67
     { 0x69, intel_part,   "Intel" },
0e1b67
     { -1,   unknown_part, "unknown" },
0e1b67
 };
0e1b67
-
0e1b67
 void arm_cpu_decode(struct lscpu_desc *desc)
0e1b67
 {
0e1b67
 	int j, impl, part;
0e1b67
-- 
0e1b67
2.29.2
0e1b67