From: Muralidhara M K <muralimk@amd.com>
To: <linux-edac@vger.kernel.org>
Cc: <linux-kernel@vger.kernel.org>, <bp@alien8.de>,
Muralidhara M K <muralidhara.mk@amd.com>
Subject: [PATCH v3 3/4] EDAC/mc: Add support for HBM3 memory type
Date: Thu, 2 Nov 2023 11:42:24 +0000 [thread overview]
Message-ID: <20231102114225.2006878-4-muralimk@amd.com> (raw)
In-Reply-To: <20231102114225.2006878-1-muralimk@amd.com>
From: Muralidhara M K <muralidhara.mk@amd.com>
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).
Add support for this memory type by adding a new entry to 'enum mem_type'.
Signed-off-by: Muralidhara M K <muralidhara.mk@amd.com>
---
Changes:
v2->v3: Modify commit message
drivers/edac/edac_mc.c | 1 +
include/linux/edac.h | 3 +++
2 files changed, 4 insertions(+)
diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c
index 6faeb2ab3960..d6eed727b0cd 100644
--- a/drivers/edac/edac_mc.c
+++ b/drivers/edac/edac_mc.c
@@ -166,6 +166,7 @@ const char * const edac_mem_types[] = {
[MEM_NVDIMM] = "Non-volatile-RAM",
[MEM_WIO2] = "Wide-IO-2",
[MEM_HBM2] = "High-bandwidth-memory-Gen2",
+ [MEM_HBM3] = "High-bandwidth-memory-Gen3",
};
EXPORT_SYMBOL_GPL(edac_mem_types);
diff --git a/include/linux/edac.h b/include/linux/edac.h
index fa4bda2a70f6..1174beb94ab6 100644
--- a/include/linux/edac.h
+++ b/include/linux/edac.h
@@ -187,6 +187,7 @@ static inline char *mc_event_error_type(const unsigned int err_type)
* @MEM_NVDIMM: Non-volatile RAM
* @MEM_WIO2: Wide I/O 2.
* @MEM_HBM2: High bandwidth Memory Gen 2.
+ * @MEM_HBM3: High bandwidth Memory Gen 3.
*/
enum mem_type {
MEM_EMPTY = 0,
@@ -218,6 +219,7 @@ enum mem_type {
MEM_NVDIMM,
MEM_WIO2,
MEM_HBM2,
+ MEM_HBM3,
};
#define MEM_FLAG_EMPTY BIT(MEM_EMPTY)
@@ -248,6 +250,7 @@ enum mem_type {
#define MEM_FLAG_NVDIMM BIT(MEM_NVDIMM)
#define MEM_FLAG_WIO2 BIT(MEM_WIO2)
#define MEM_FLAG_HBM2 BIT(MEM_HBM2)
+#define MEM_FLAG_HBM3 BIT(MEM_HBM3)
/**
* enum edac_type - Error Detection and Correction capabilities and mode
--
2.25.1
next prev parent reply other threads:[~2023-11-02 11:43 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-02 11:42 [PATCH v3 0/4] Few cleanups and AMD Family 19h Models 90h-9fh EDAC Support Muralidhara M K
2023-11-02 11:42 ` [PATCH v3 1/4] EDAC/mce_amd: Remove SMCA Extended Error code descriptions Muralidhara M K
2023-11-28 14:20 ` [PATCH] Documentation: Begin a RAS section Borislav Petkov
2023-11-28 15:23 ` Yazen Ghannam
2023-11-28 17:04 ` Randy Dunlap
2023-11-28 19:39 ` Borislav Petkov
2024-01-09 17:47 ` Jonathan Corbet
2024-01-09 18:36 ` Borislav Petkov
2024-01-09 19:44 ` Jonathan Corbet
2024-01-09 20:04 ` Borislav Petkov
2024-01-24 12:40 ` Borislav Petkov
2024-02-05 19:41 ` Borislav Petkov
2023-11-28 14:24 ` [tip: ras/core] EDAC/mce_amd: Remove SMCA Extended Error code descriptions tip-bot2 for Muralidhara M K
2023-11-02 11:42 ` [PATCH v3 2/4] x86/MCE/AMD: Add new MA_LLC, USR_DP, and USR_CP bank types Muralidhara M K
2023-11-29 10:33 ` [tip: ras/core] " tip-bot2 for Muralidhara M K
2023-11-02 11:42 ` Muralidhara M K [this message]
2023-11-02 11:42 ` [PATCH v3 4/4] EDAC/amd64: Add support for family 0x19, models 0x90-9f devices Muralidhara M K
2023-11-29 10:26 ` [PATCH v3 0/4] Few cleanups and AMD Family 19h Models 90h-9fh EDAC Support Borislav Petkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231102114225.2006878-4-muralimk@amd.com \
--to=muralimk@amd.com \
--cc=bp@alien8.de \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=muralidhara.mk@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).