Skip to contentSkip to conversation

Add EDAC Driver for Marvell OcteonTX2/CN10K SoCs

PATCH In review Vasyl Gomonovych 2 participants 2 messages Jul 31, 2024 EDAC-core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add EDAC Driver for Marvell OcteonTX2/CN10K SoCs

This commit introduces an Error Detection and Correction (EDAC) driver for Marvell OcteonTX2 and CN10K System on Chips (SoCs). The driver supports the firmware-first model and handles error notifications via the
Software Delegated Exception Interface (SDEI).
It also provides error injection capabilities
through System Management Calls (SMC).

Key Features:
- Support for EDAC-capable on-chip peripherals.
- Integration with the SDEI for error notification.
- Error injection via SMC calls.
- Detailed error reporting and logging.

---
 drivers/edac/Kconfig         |   10 +
 drivers/edac/Makefile        |    1 +
 drivers/edac/octeontx_edac.c | 1274 ++++++++++++++++++++++++++++++++++
 3 files changed, 1285 insertions(+)
 create mode 100644 drivers/edac/octeontx_edac.c
drivers/edac/Kconfig +10 -0
index 16c8de5050e5..0bbe0d65ee16 100644
@@ -573,5 +573,15 @@ config EDAC_VERSAL
 	  Support injecting both correctable and uncorrectable errors
 	  for debugging purposes.
 
+config EDAC_OCTEONTX
+	bool "Marvell OcteonTX2 and CN10K SoC EDAC"
+	depends on ARM_SDE_INTERFACE
+	help
+	  Support for error detection and correction on the
+	  Marvell OcteonTX2 and CN10K SoCs.
+	  This driver will allow SECDED errors notify and report in
+	  the firmware first model and reported via SDEI callbacks.
+	  EDAC Driver report Single Bit Errors and Double Bit Errors.
+
 
 endif # EDAC
drivers/edac/Makefile +1 -0
index 4edfb83ffbee..07dbb6558b6f 100644
@@ -89,3 +89,4 @@ obj-$(CONFIG_EDAC_DMC520)		+= dmc520_edac.o
 obj-$(CONFIG_EDAC_NPCM)			+= npcm_edac.o
 obj-$(CONFIG_EDAC_ZYNQMP)		+= zynqmp_edac.o
 obj-$(CONFIG_EDAC_VERSAL)		+= versal_edac.o
+obj-$(CONFIG_EDAC_OCTEONTX)		+= octeontx_edac.o
drivers/edac/octeontx_edac.c new file +1274 -0

1,274 lines not on this page · raw message

Signature · 1 line
2.43.0
maintainer
#1 lore raw
Quoted 14 lines · Vasyl Gomonovych

This commit introduces an Error Detection and Correction (EDAC) driver for Marvell OcteonTX2 and CN10K System on Chips (SoCs). The driver supports the firmware-first model and handles error notifications via the
Software Delegated Exception Interface (SDEI).
It also provides error injection capabilities
through System Management Calls (SMC).

Key Features:
- Support for EDAC-capable on-chip peripherals.
- Integration with the SDEI for error notification.
- Error injection via SMC calls.
- Detailed error reporting and logging.

Quoted 7 lines
---
 drivers/edac/Kconfig         |   10 +
 drivers/edac/Makefile        |    1 +
 drivers/edac/octeontx_edac.c | 1274 ++++++++++++++++++++++++++++++++++
 3 files changed, 1285 insertions(+)
 create mode 100644 drivers/edac/octeontx_edac.c
$ ls drivers/edac/octeon_edac-*
drivers/edac/octeon_edac-l2c.c  drivers/edac/octeon_edac-pc.c
drivers/edac/octeon_edac-lmc.c  drivers/edac/octeon_edac-pci.c

Why is a new, separate one needed and can the functionality be shared?

Signature · 4 lines
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette