You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
840 B
34 lines
840 B
From 7e25483a392e292c58cea67ba4d052856c2f35d0 Mon Sep 17 00:00:00 2001 |
|
From: Prabhakar pujeri <prabhakar.pujeri@gmail.com> |
|
Date: Mon, 19 Oct 2020 14:38:04 +0200 |
|
Subject: [PATCH] Add new memory device types from SMBIOS spec 3.4.0 |
|
|
|
Added 2 more new values (0x22 and 0x23). |
|
|
|
Signed-off-by: Coiby Xu <coxu@redhat.com> |
|
--- |
|
dmidecode.c | 6 ++++-- |
|
1 file changed, 4 insertions(+), 2 deletions(-) |
|
|
|
diff --git a/dmidecode.c b/dmidecode.c |
|
index 8b6f5af..97ba941 100644 |
|
--- a/dmidecode.c |
|
+++ b/dmidecode.c |
|
@@ -2639,10 +2639,12 @@ static const char *dmi_memory_device_type(u8 code) |
|
"LPDDR4", |
|
"Logical non-volatile device", |
|
"HBM", |
|
- "HBM2" /* 0x21 */ |
|
+ "HBM2", |
|
+ "DDR5", |
|
+ "LPDDR5" /* 0x23 */ |
|
}; |
|
|
|
- if (code >= 0x01 && code <= 0x21) |
|
+ if (code >= 0x01 && code <= 0x23) |
|
return type[code - 0x01]; |
|
return out_of_spec; |
|
} |
|
-- |
|
2.31.1 |
|
|
|
|