Blame SOURCES/0002-dmidecode-Add-new-processor-characteristics-bits-from-SMBIOS-s.patch

bc2754
From b289de9deb325eeef7919a1f4e3ac1f93b099c16 Mon Sep 17 00:00:00 2001
bc2754
From: Prabhakar pujeri <prabhakar.pujeri@gmail.com>
bc2754
Date: Fri, 23 Oct 2020 17:45:16 +0200
bc2754
Subject: [PATCH] Add new processor characteristics bits from SMBIOS spec 3.4.0
bc2754
bc2754
* The bit to indicate 128-bit capable processor
bc2754
* The bit to indicate processor supports returning ARM64  SoC ID
bc2754
bc2754
Signed-off-by: Coiby Xu <coxu@redhat.com>
bc2754
---
bc2754
 dmidecode.c | 6 ++++--
bc2754
 1 file changed, 4 insertions(+), 2 deletions(-)
bc2754
bc2754
diff --git a/dmidecode.c b/dmidecode.c
bc2754
index 31a49e4..67f6048 100644
bc2754
--- a/dmidecode.c
bc2754
+++ b/dmidecode.c
bc2754
@@ -1388,7 +1388,9 @@ static void dmi_processor_characteristics(const char *attr, u16 code)
bc2754
 		"Hardware Thread",
bc2754
 		"Execute Protection",
bc2754
 		"Enhanced Virtualization",
bc2754
-		"Power/Performance Control" /* 7 */
bc2754
+		"Power/Performance Control",
bc2754
+		"128-bit Capable"
bc2754
+		"Arm64 SoC ID" /* 9 */
bc2754
 	};
bc2754
 
bc2754
 	if ((code & 0x00FC) == 0)
bc2754
@@ -1398,7 +1400,7 @@ static void dmi_processor_characteristics(const char *attr, u16 code)
bc2754
 		int i;
bc2754
 
bc2754
 		pr_list_start(attr, NULL);
bc2754
-		for (i = 2; i <= 7; i++)
bc2754
+		for (i = 2; i <= 9; i++)
bc2754
 			if (code & (1 << i))
bc2754
 				pr_list_item("%s", characteristics[i - 2]);
bc2754
 		pr_list_end();
bc2754
-- 
bc2754
2.31.1
bc2754