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

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