Re: [PATCH] Add EDAC Driver for Marvell OcteonTX2/CN10K SoCs

From: Borislav Petkov
Date: Wed Jul 31 2024 - 07:26:55 EST


On Wed, Jul 31, 2024 at 04:17:40AM -0700, Vasyl Gomonovych wrote:
> 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.
>
> Signed-off-by: Vasyl Gomonovych <vgomonovych@xxxxxxxxxxx>
> ---
> 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?

--
Regards/Gruss,
Boris.

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