SHA256
1
0
forked from pool/dmidecode
dmidecode/dmidecode-1.182-decode-ddr4-memory-type.patch
Jean Delvare f9aebf59d7 - dmidecode-1.181-decode-CPUID-recent-AMD.patch: Decode the CPUID
of recent AMD processors (DMI type 4).
- dmidecode-1.182-decode-ddr4-memory-type.patch: Add support for
  DDR4 memory type (DMI type 17).
  https://savannah.nongnu.org/bugs/?43370

OBS-URL: https://build.opensuse.org/package/show/Base:System/dmidecode?expand=0&rev=26
2014-10-13 12:01:46 +00:00

27 lines
626 B
Diff

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;
}