SHA256
1
0
forked from pool/dmidecode
dmidecode/dmidecode-1.182-decode-ddr4-memory-type.patch

27 lines
626 B
Diff
Raw Normal View History

Subject: Add support for DDR4 memory type
Upstream: yes, 1.182
References: savannah#43370
Patch from Tomohiro Kimura. The value was taken from preliminary SMBIOS
specification version 3.0.0d. This closes bug #43370.
---
dmidecode.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- a/dmidecode.c
+++ b/dmidecode.c
@@ -2311,10 +2311,11 @@ static const char *dmi_memory_device_typ
"Reserved",
"Reserved",
"DDR3",
- "FBD2", /* 0x19 */
+ "FBD2",
+ "DDR4" /* 0x1A */
};
- if (code >= 0x01 && code <= 0x19)
+ if (code >= 0x01 && code <= 0x1A)
return type[code - 0x01];
return out_of_spec;
}