Skip to content

Commit 83c6973

Browse files
committed
EDAC/mc: Add new HBM2 memory type
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2165650 Tested: tested with the EMR machine we have in the lab commit e1ca90b Author: Naveen Krishna Chatradhi <nchatrad@amd.com> Date: Wed Jun 30 20:58:24 2021 +0530 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 Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>
1 parent 5b69b84 commit 83c6973

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
@@ -168,6 +168,7 @@ const char * const edac_mem_types[] = {
168168
[MEM_LRDDR5] = "Load-Reduced-DDR5-RAM",
169169
[MEM_NVDIMM] = "Non-volatile-RAM",
170170
[MEM_WIO2] = "Wide-IO-2",
171+
[MEM_HBM2] = "High-bandwidth-memory-Gen2",
171172
};
172173
EXPORT_SYMBOL_GPL(edac_mem_types);
173174

include/linux/edac.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ static inline char *mc_event_error_type(const unsigned int err_type)
186186
* @MEM_LRDDR5: Load-Reduced DDR5 memory.
187187
* @MEM_NVDIMM: Non-volatile RAM
188188
* @MEM_WIO2: Wide I/O 2.
189+
* @MEM_HBM2: High bandwidth Memory Gen 2.
189190
*/
190191
enum mem_type {
191192
MEM_EMPTY = 0,
@@ -216,6 +217,7 @@ enum mem_type {
216217
MEM_LRDDR5,
217218
MEM_NVDIMM,
218219
MEM_WIO2,
220+
MEM_HBM2,
219221
};
220222

221223
#define MEM_FLAG_EMPTY BIT(MEM_EMPTY)
@@ -245,6 +247,7 @@ enum mem_type {
245247
#define MEM_FLAG_LRDDR5 BIT(MEM_LRDDR5)
246248
#define MEM_FLAG_NVDIMM BIT(MEM_NVDIMM)
247249
#define MEM_FLAG_WIO2 BIT(MEM_WIO2)
250+
#define MEM_FLAG_HBM2 BIT(MEM_HBM2)
248251

249252
/**
250253
* enum edac_type - Error Detection and Correction capabilities and mode

0 commit comments

Comments
 (0)