EDAC: Add a driver for the AMD Versal NET DDR controller
authorShubhrajyoti Datta <shubhrajyoti.datta@amd.com>
Mon, 8 Sep 2025 11:56:49 +0000 (17:26 +0530)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 15 Sep 2025 14:22:27 +0000 (16:22 +0200)
commitd5fe2fec6c40dda03df8cc9b4a97de0b7e39f984
treef31af39d78efadcdf68156c04beb6efe1b1c0438
parent8d978222e87c5ea50f912141b18421882f89492a
EDAC: Add a driver for the AMD Versal NET DDR controller

Add a driver for the AMD Versal NET DDR memory controller which supports
single bit error correction, double bit error detection and other system
errors from various IP subsystems (e.g., RPU, NOCs, HNICX, PL).

The driver listens for notifications from the NMC (Network management
controller) using RPMsg (Remote Processor Messaging).

The channel used for communicating to RPMsg is named "error_edac".  Upon
receipt of a notification, the driver sends a RAS event trace.

  [ bp:
    - Fixup title
    - Rewrite commit message
    - Fixup Kconfig text
    - Zap unused defines and align them
    - Simplify rpmsg_cb() considerably
    - Drop silly double-brackets in conditionals
    - Use proper void * type in mcdi_request()
    - Do not clear chinfo in rpmsg_probe() unnecessarily
    - Fix indentation
    - Do a proper err unwind path in init_versalnet()
    - Redo the error unwind path in mc_probe() properly
    - Fix the ordering in mc_remove()
    ]

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250908115649.22903-1-shubhrajyoti.datta@amd.com
Link: https://lore.kernel.org/r/20250703173105.GLaGa-WQCESDNsqygm@fat_crate.local
MAINTAINERS
drivers/edac/Kconfig
drivers/edac/Makefile
drivers/edac/versalnet_edac.c [new file with mode: 0644]
include/linux/cdx/edac_cdx_pcol.h [new file with mode: 0644]