Skip to content

Commit 3b20369

Browse files
qzhuo2aegl
authored andcommitted
EDAC: Add three new memory types
There are {Low-Power DDR3/4, WIO2} types of memory. Add new entries to 'enum mem_type' and new strings to 'edac_mem_types[]' for the new types. Signed-off-by: Qiuxu Zhuo <[email protected]> Signed-off-by: Tony Luck <[email protected]>
1 parent 3650b22 commit 3b20369

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

drivers/edac/edac_mc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,13 @@ const char * const edac_mem_types[] = {
158158
[MEM_DDR3] = "Unbuffered-DDR3",
159159
[MEM_RDDR3] = "Registered-DDR3",
160160
[MEM_LRDDR3] = "Load-Reduced-DDR3-RAM",
161+
[MEM_LPDDR3] = "Low-Power-DDR3-RAM",
161162
[MEM_DDR4] = "Unbuffered-DDR4",
162163
[MEM_RDDR4] = "Registered-DDR4",
164+
[MEM_LPDDR4] = "Low-Power-DDR4-RAM",
163165
[MEM_LRDDR4] = "Load-Reduced-DDR4-RAM",
164166
[MEM_NVDIMM] = "Non-volatile-RAM",
167+
[MEM_WIO2] = "Wide-IO-2",
165168
};
166169
EXPORT_SYMBOL_GPL(edac_mem_types);
167170

include/linux/edac.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,14 @@ static inline char *mc_event_error_type(const unsigned int err_type)
175175
* @MEM_RDDR3: Registered DDR3 RAM
176176
* This is a variant of the DDR3 memories.
177177
* @MEM_LRDDR3: Load-Reduced DDR3 memory.
178+
* @MEM_LPDDR3: Low-Power DDR3 memory.
178179
* @MEM_DDR4: Unbuffered DDR4 RAM
179180
* @MEM_RDDR4: Registered DDR4 RAM
180181
* This is a variant of the DDR4 memories.
181182
* @MEM_LRDDR4: Load-Reduced DDR4 memory.
183+
* @MEM_LPDDR4: Low-Power DDR4 memory.
182184
* @MEM_NVDIMM: Non-volatile RAM
185+
* @MEM_WIO2: Wide I/O 2.
183186
*/
184187
enum mem_type {
185188
MEM_EMPTY = 0,
@@ -200,10 +203,13 @@ enum mem_type {
200203
MEM_DDR3,
201204
MEM_RDDR3,
202205
MEM_LRDDR3,
206+
MEM_LPDDR3,
203207
MEM_DDR4,
204208
MEM_RDDR4,
205209
MEM_LRDDR4,
210+
MEM_LPDDR4,
206211
MEM_NVDIMM,
212+
MEM_WIO2,
207213
};
208214

209215
#define MEM_FLAG_EMPTY BIT(MEM_EMPTY)
@@ -223,10 +229,13 @@ enum mem_type {
223229
#define MEM_FLAG_XDR BIT(MEM_XDR)
224230
#define MEM_FLAG_DDR3 BIT(MEM_DDR3)
225231
#define MEM_FLAG_RDDR3 BIT(MEM_RDDR3)
232+
#define MEM_FLAG_LPDDR3 BIT(MEM_LPDDR3)
226233
#define MEM_FLAG_DDR4 BIT(MEM_DDR4)
227234
#define MEM_FLAG_RDDR4 BIT(MEM_RDDR4)
228235
#define MEM_FLAG_LRDDR4 BIT(MEM_LRDDR4)
236+
#define MEM_FLAG_LPDDR4 BIT(MEM_LPDDR4)
229237
#define MEM_FLAG_NVDIMM BIT(MEM_NVDIMM)
238+
#define MEM_FLAG_WIO2 BIT(MEM_WIO2)
230239

231240
/**
232241
* enum edac-type - Error Detection and Correction capabilities and mode

0 commit comments

Comments
 (0)