Skip to content

Commit e1ca90b

Browse files
nchatradaegl
authored andcommitted
EDAC/mc: Add new HBM2 memory type
Add a new entry to 'enum mem_type' and a new string to 'edac_mem_types[]' for HBM2 (High Bandwidth Memory Gen 2) new memory type. Reviewed-by: Yazen Ghannam <yazen.ghannam@amd.com> Signed-off-by: Muralidhara M K <muralimk@amd.com> Signed-off-by: Naveen Krishna Chatradhi <nchatrad@amd.com> Signed-off-by: Tony Luck <tony.luck@intel.com> Link: https://lore.kernel.org/r/20210630152828.162659-4-nchatrad@amd.com
1 parent d19faf0 commit e1ca90b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/edac/edac_mc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ const char * const edac_mem_types[] = {
166166
[MEM_DDR5] = "Unbuffered-DDR5",
167167
[MEM_NVDIMM] = "Non-volatile-RAM",
168168
[MEM_WIO2] = "Wide-IO-2",
169+
[MEM_HBM2] = "High-bandwidth-memory-Gen2",
169170
};
170171
EXPORT_SYMBOL_GPL(edac_mem_types);
171172

include/linux/edac.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ static inline char *mc_event_error_type(const unsigned int err_type)
184184
* @MEM_DDR5: Unbuffered DDR5 RAM
185185
* @MEM_NVDIMM: Non-volatile RAM
186186
* @MEM_WIO2: Wide I/O 2.
187+
* @MEM_HBM2: High bandwidth Memory Gen 2.
187188
*/
188189
enum mem_type {
189190
MEM_EMPTY = 0,
@@ -212,6 +213,7 @@ enum mem_type {
212213
MEM_DDR5,
213214
MEM_NVDIMM,
214215
MEM_WIO2,
216+
MEM_HBM2,
215217
};
216218

217219
#define MEM_FLAG_EMPTY BIT(MEM_EMPTY)
@@ -239,6 +241,7 @@ enum mem_type {
239241
#define MEM_FLAG_DDR5 BIT(MEM_DDR5)
240242
#define MEM_FLAG_NVDIMM BIT(MEM_NVDIMM)
241243
#define MEM_FLAG_WIO2 BIT(MEM_WIO2)
244+
#define MEM_FLAG_HBM2 BIT(MEM_HBM2)
242245

243246
/**
244247
* enum edac_type - Error Detection and Correction capabilities and mode

0 commit comments

Comments
 (0)