EDAC, mellanox: Add ECC support for BlueField DDR4
Subsystems (2)
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
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.
Reviewed-by James Morse <[email protected]>
Signed-off-by Shravan Kumar Ramani <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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