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