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