diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/edac/ghes_edac.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/edac/ghes_edac.c b/drivers/edac/ghes_edac.c index b9bea77b3de8..cb8f2704ffb0 100644 --- a/drivers/edac/ghes_edac.c +++ b/drivers/edac/ghes_edac.c @@ -123,11 +123,21 @@ static void ghes_edac_dmidecode(const struct dmi_header *dh, void *arg) dimm->mtype = MEM_FB_DDR2; break; case 0x18: - if (entry->type_detail & 1 << 13) + if (entry->type_detail & 1 << 12) + dimm->mtype = MEM_NVDIMM; + else if (entry->type_detail & 1 << 13) dimm->mtype = MEM_RDDR3; else dimm->mtype = MEM_DDR3; break; + case 0x1a: + if (entry->type_detail & 1 << 12) + dimm->mtype = MEM_NVDIMM; + else if (entry->type_detail & 1 << 13) + dimm->mtype = MEM_RDDR4; + else + dimm->mtype = MEM_DDR4; + break; default: if (entry->type_detail & 1 << 6) dimm->mtype = MEM_RMBS; |