Skip to content

Commit f957112

Browse files
yghannamsuryasaimadhu
authored andcommitted
EDAC: Add RDDR5 and LRDDR5 memory types
Include Registered-DDR5 and Load-Reduced DDR5 in the list of memory types. Signed-off-by: Yazen Ghannam <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 0fcfb00 commit f957112

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

drivers/edac/edac_mc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ const char * const edac_mem_types[] = {
162162
[MEM_LPDDR4] = "Low-Power-DDR4-RAM",
163163
[MEM_LRDDR4] = "Load-Reduced-DDR4-RAM",
164164
[MEM_DDR5] = "Unbuffered-DDR5",
165+
[MEM_RDDR5] = "Registered-DDR5",
166+
[MEM_LRDDR5] = "Load-Reduced-DDR5-RAM",
165167
[MEM_NVDIMM] = "Non-volatile-RAM",
166168
[MEM_WIO2] = "Wide-IO-2",
167169
[MEM_HBM2] = "High-bandwidth-memory-Gen2",

include/linux/edac.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ static inline char *mc_event_error_type(const unsigned int err_type)
182182
* @MEM_LRDDR4: Load-Reduced DDR4 memory.
183183
* @MEM_LPDDR4: Low-Power DDR4 memory.
184184
* @MEM_DDR5: Unbuffered DDR5 RAM
185+
* @MEM_RDDR5: Registered DDR5 RAM
186+
* @MEM_LRDDR5: Load-Reduced DDR5 memory.
185187
* @MEM_NVDIMM: Non-volatile RAM
186188
* @MEM_WIO2: Wide I/O 2.
187189
* @MEM_HBM2: High bandwidth Memory Gen 2.
@@ -211,6 +213,8 @@ enum mem_type {
211213
MEM_LRDDR4,
212214
MEM_LPDDR4,
213215
MEM_DDR5,
216+
MEM_RDDR5,
217+
MEM_LRDDR5,
214218
MEM_NVDIMM,
215219
MEM_WIO2,
216220
MEM_HBM2,
@@ -239,6 +243,8 @@ enum mem_type {
239243
#define MEM_FLAG_LRDDR4 BIT(MEM_LRDDR4)
240244
#define MEM_FLAG_LPDDR4 BIT(MEM_LPDDR4)
241245
#define MEM_FLAG_DDR5 BIT(MEM_DDR5)
246+
#define MEM_FLAG_RDDR5 BIT(MEM_RDDR5)
247+
#define MEM_FLAG_LRDDR5 BIT(MEM_LRDDR5)
242248
#define MEM_FLAG_NVDIMM BIT(MEM_NVDIMM)
243249
#define MEM_FLAG_WIO2 BIT(MEM_WIO2)
244250
#define MEM_FLAG_HBM2 BIT(MEM_HBM2)

0 commit comments

Comments
 (0)