Skip to content

Commit 9a5f580

Browse files
Muralidhara M Kbp3tk0v
authored andcommitted
EDAC/mc: Add support for HBM3 memory type
AMD MI300A models use HBM3 (High Bandwidth Memory Gen 3) memory. HBM is a high-speed computer memory interface for 3D-stacked synchronous dynamic random-access memory (SDRAM). Signed-off-by: Muralidhara M K <muralidhara.mk@amd.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/20231102114225.2006878-4-muralimk@amd.com
1 parent a2f99fb commit 9a5f580

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_NVDIMM] = "Non-volatile-RAM",
167167
[MEM_WIO2] = "Wide-IO-2",
168168
[MEM_HBM2] = "High-bandwidth-memory-Gen2",
169+
[MEM_HBM3] = "High-bandwidth-memory-Gen3",
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
@@ -187,6 +187,7 @@ static inline char *mc_event_error_type(const unsigned int err_type)
187187
* @MEM_NVDIMM: Non-volatile RAM
188188
* @MEM_WIO2: Wide I/O 2.
189189
* @MEM_HBM2: High bandwidth Memory Gen 2.
190+
* @MEM_HBM3: High bandwidth Memory Gen 3.
190191
*/
191192
enum mem_type {
192193
MEM_EMPTY = 0,
@@ -218,6 +219,7 @@ enum mem_type {
218219
MEM_NVDIMM,
219220
MEM_WIO2,
220221
MEM_HBM2,
222+
MEM_HBM3,
221223
};
222224

223225
#define MEM_FLAG_EMPTY BIT(MEM_EMPTY)
@@ -248,6 +250,7 @@ enum mem_type {
248250
#define MEM_FLAG_NVDIMM BIT(MEM_NVDIMM)
249251
#define MEM_FLAG_WIO2 BIT(MEM_WIO2)
250252
#define MEM_FLAG_HBM2 BIT(MEM_HBM2)
253+
#define MEM_FLAG_HBM3 BIT(MEM_HBM3)
251254

252255
/**
253256
* enum edac_type - Error Detection and Correction capabilities and mode

0 commit comments

Comments
 (0)