Skip to contentSkip to conversation

EDAC, mellanox: Add ECC support for BlueField DDR4

PATCH New Shravan Kumar Ramani 1 participant 2 messages Jun 25, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v7 cover EDAC, mellanox: Add ECC support for BlueField DDR4

Changes since v6:
Use FIELD_GET and GENMASK instead of shifting/masking using separate macros

Shravan Kumar Ramani (1):
EDAC, mellanox: Add ECC support for BlueField DDR4

 MAINTAINERS                   |   5 +
 drivers/edac/Kconfig          |   7 +
 drivers/edac/Makefile         |   1 +
 drivers/edac/bluefield_edac.c | 356 ++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 369 insertions(+)
 create mode 100644 drivers/edac/bluefield_edac.c
Signature · 1 line
2.1.2
#1 lore raw

PATCH v7 1/1 EDAC, mellanox: Add ECC support for BlueField DDR4

Add ECC support for Mellanox BlueField SoC DDR controller. This requires SMC to the running Arm Trusted Firmware to report what is the current memory configuration.

---
 MAINTAINERS                   |   5 +
 drivers/edac/Kconfig          |   7 +
 drivers/edac/Makefile         |   1 +
 drivers/edac/bluefield_edac.c | 356 ++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 369 insertions(+)
 create mode 100644 drivers/edac/bluefield_edac.c
MAINTAINERS +5 -0
index d0ed735..a821587 100644
@@ -5669,6 +5669,11 @@ S:	Supported
 F:	drivers/edac/aspeed_edac.c
 F:	Documentation/devicetree/bindings/edac/aspeed-sdram-edac.txt
 
+EDAC-BLUEFIELD
+M:	Shravan Kumar Ramani <[email protected]>
+S:	Supported
+F:	drivers/edac/bluefield_edac.c
+
 EDAC-CALXEDA
 M:	Robert Richter <[email protected]>
 L:	[email protected]
drivers/edac/Kconfig +7 -0
index 5e2e034..43df551 100644
@@ -504,4 +504,11 @@ config EDAC_ASPEED
 	  First, ECC must be configured in the bootloader. Then, this driver
 	  will expose error counters via the EDAC kernel framework.
 
+config EDAC_BLUEFIELD
+	tristate "Mellanox BlueField Memory ECC"
+	depends on ARM64 && ((MELLANOX_PLATFORM && ACPI) || COMPILE_TEST)
+	help
+	  Support for error detection and correction on the
+	  Mellanox BlueField SoCs.
+
 endif # EDAC
drivers/edac/Makefile +1 -0
index 89ad4a84..0294a67 100644
@@ -84,3 +84,4 @@ obj-$(CONFIG_EDAC_XGENE)		+= xgene_edac.o
 obj-$(CONFIG_EDAC_TI)			+= ti_edac.o
 obj-$(CONFIG_EDAC_QCOM)			+= qcom_edac.o
 obj-$(CONFIG_EDAC_ASPEED)		+= aspeed_edac.o
+obj-$(CONFIG_EDAC_BLUEFIELD)		+= bluefield_edac.o
drivers/edac/bluefield_edac.c new file +356 -0

356 lines not on this page · raw message

Signature · 1 line
2.1.2