Add the following memory device form factors and types from SMBIOS
specification updates 3.8.0 and 3.9.0: CAMM, CUDIMM, CSODIMM and
MRDIMM.

Signed-off-by: Jean Delvare <[email protected]>
---
 dmidecode.c |   17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

--- a/dmidecode.c
+++ b/dmidecode.c
@@ -2868,10 +2868,13 @@ static const char *dmi_memory_device_for
                "SODIMM",
                "SRIMM",
                "FB-DIMM",
-               "Die" /* 0x10 */
+               "Die",
+               "CAMM",
+               "CUDIMM",
+               "CSODIMM" /* 0x13 */
        };
 
-       if (code >= 0x01 && code <= 0x10)
+       if (code >= 0x01 && code <= 0x13)
                return form_factor[code - 0x01];
        return out_of_spec;
 }
@@ -2925,10 +2928,11 @@ static const char *dmi_memory_device_typ
                "HBM2",
                "DDR5",
                "LPDDR5",
-               "HBM3" /* 0x24 */
+               "HBM3",
+               "MRDIMM" /* 0x25 */
        };
 
-       if (code >= 0x01 && code <= 0x24)
+       if (code >= 0x01 && code <= 0x25)
                return type[code - 0x01];
        return out_of_spec;
 }
@@ -2998,9 +3002,10 @@ static void dmi_memory_technology(u8 cod
                "NVDIMM-N",
                "NVDIMM-F",
                "NVDIMM-P",
-               "Intel Optane DC persistent memory" /* 0x07 */
+               "Intel Optane persistent memory",
+               "MRDIMM" /* 0x08 */
        };
-       if (code >= 0x01 && code <= 0x07)
+       if (code >= 0x01 && code <= 0x08)
                pr_attr("Memory Technology", "%s", technology[code - 0x01]);
        else
                pr_attr("Memory Technology", "%s", out_of_spec);

-- 
Jean Delvare
SUSE L3 Support

Reply via email to