Blame SOURCES/0005-dmidecode-Add-Logical-non-volatile-device-to-the-mem.patch
|
|
e0d5ce |
From 74dfb854b8199ddb0a27e89296fa565f4706cb9d Mon Sep 17 00:00:00 2001
|
|
|
e0d5ce |
From: Jean Delvare <jdelvare@suse.de>
|
|
|
e0d5ce |
Date: Wed, 16 Jan 2019 09:04:55 +0100
|
|
|
e0d5ce |
Subject: [PATCH 5/5] dmidecode: Add "Logical non-volatile device" to the
|
|
|
e0d5ce |
memory device types
|
|
|
e0d5ce |
|
|
|
e0d5ce |
When adding support for non-volative memory, we forgot to add
|
|
|
e0d5ce |
"Logical non-volatile device" to the list of memory types. This
|
|
|
e0d5ce |
causes NVDIMM modules to show up as <OUT OF SPEC>. Fix the problem
|
|
|
e0d5ce |
by adding the missing enumerated value.
|
|
|
e0d5ce |
|
|
|
e0d5ce |
Signed-off-by: Jean Delvare <jdelvare@suse.de>
|
|
|
e0d5ce |
Reviewed-by: Jerry Hoemann <jerry.hoemann@hpe.com>
|
|
|
e0d5ce |
Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
|
|
|
e0d5ce |
---
|
|
|
e0d5ce |
dmidecode.c | 5 +++--
|
|
|
e0d5ce |
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
e0d5ce |
|
|
|
e0d5ce |
diff --git a/dmidecode.c b/dmidecode.c
|
|
|
e0d5ce |
index 903ef356ea9e..91c6f622e3d0 100644
|
|
|
e0d5ce |
--- a/dmidecode.c
|
|
|
e0d5ce |
+++ b/dmidecode.c
|
|
|
e0d5ce |
@@ -2471,10 +2471,11 @@ static const char *dmi_memory_device_type(u8 code)
|
|
|
e0d5ce |
"LPDDR",
|
|
|
e0d5ce |
"LPDDR2",
|
|
|
e0d5ce |
"LPDDR3",
|
|
|
e0d5ce |
- "LPDDR4" /* 0x1E */
|
|
|
e0d5ce |
+ "LPDDR4",
|
|
|
e0d5ce |
+ "Logical non-volatile device" /* 0x1F */
|
|
|
e0d5ce |
};
|
|
|
e0d5ce |
|
|
|
e0d5ce |
- if (code >= 0x01 && code <= 0x1E)
|
|
|
e0d5ce |
+ if (code >= 0x01 && code <= 0x1F)
|
|
|
e0d5ce |
return type[code - 0x01];
|
|
|
e0d5ce |
return out_of_spec;
|
|
|
e0d5ce |
}
|
|
|
e0d5ce |
--
|
|
|
e0d5ce |
2.17.1
|
|
|
e0d5ce |
|