Skip to content

Commit 7b82783

Browse files
aristeumchehab
authored andcommitted
edac: add DDR4 and RDDR4
Haswell memory controller can make use of DDR4 and Registered DDR4 Cc: tony.luck@intel.com Signed-off-by: Aristeu Rozanski <aris@redhat.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
1 parent adc61bc commit 7b82783

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎drivers/edac/edac_mc_sysfs.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ static const char * const mem_types[] = {
108108
[MEM_RDDR2] = "Registered-DDR2",
109109
[MEM_XDR] = "XDR",
110110
[MEM_DDR3] = "Unbuffered-DDR3",
111-
[MEM_RDDR3] = "Registered-DDR3"
111+
[MEM_RDDR3] = "Registered-DDR3",
112+
[MEM_DDR4] = "Unbuffered-DDR4",
113+
[MEM_RDDR4] = "Registered-DDR4"
112114
};
113115

114116
static const char * const dev_types[] = {

‎include/linux/edac.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ static inline char *mc_event_error_type(const unsigned int err_type)
194194
* @MEM_DDR3: DDR3 RAM
195195
* @MEM_RDDR3: Registered DDR3 RAM
196196
* This is a variant of the DDR3 memories.
197+
* @MEM_DDR4: DDR4 RAM
198+
* @MEM_RDDR4: Registered DDR4 RAM
199+
* This is a variant of the DDR4 memories.
197200
*/
198201
enum mem_type {
199202
MEM_EMPTY = 0,
@@ -213,6 +216,8 @@ enum mem_type {
213216
MEM_XDR,
214217
MEM_DDR3,
215218
MEM_RDDR3,
219+
MEM_DDR4,
220+
MEM_RDDR4,
216221
};
217222

218223
#define MEM_FLAG_EMPTY BIT(MEM_EMPTY)

0 commit comments

Comments
 (0)