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