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

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