Blame SOURCES/0006-dmidecode-Add-new-memory-device-types-from-SMBIOS-spec-3.4.0.patch

1543e4
From 7e25483a392e292c58cea67ba4d052856c2f35d0 Mon Sep 17 00:00:00 2001
1543e4
From: Prabhakar pujeri <prabhakar.pujeri@gmail.com>
1543e4
Date: Mon, 19 Oct 2020 14:38:04 +0200
1543e4
Subject: [PATCH] Add new memory device types from SMBIOS spec 3.4.0
1543e4
1543e4
Added 2 more new values (0x22 and 0x23).
1543e4
1543e4
Signed-off-by: Coiby Xu <coxu@redhat.com>
1543e4
---
1543e4
 dmidecode.c | 6 ++++--
1543e4
 1 file changed, 4 insertions(+), 2 deletions(-)
1543e4
1543e4
diff --git a/dmidecode.c b/dmidecode.c
1543e4
index 8b6f5af..97ba941 100644
1543e4
--- a/dmidecode.c
1543e4
+++ b/dmidecode.c
1543e4
@@ -2639,10 +2639,12 @@ static const char *dmi_memory_device_type(u8 code)
1543e4
 		"LPDDR4",
1543e4
 		"Logical non-volatile device",
1543e4
 		"HBM",
1543e4
-		"HBM2" /* 0x21 */
1543e4
+		"HBM2",
1543e4
+		"DDR5",
1543e4
+		"LPDDR5" /* 0x23 */
1543e4
 	};
1543e4
 
1543e4
-	if (code >= 0x01 && code <= 0x21)
1543e4
+	if (code >= 0x01 && code <= 0x23)
1543e4
 		return type[code - 0x01];
1543e4
 	return out_of_spec;
1543e4
 }
1543e4
-- 
1543e4
2.31.1
1543e4