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