Amazon's Annapurna Labs Memory Controller EDAC
Talel Shenhar
maintainercover Amazon's Annapurna Labs Memory Controller EDAC
This series introduces support for Amazon's Annapurna Labs Memory Controller EDAC driver.
Talel Shenhar (3):
dt-bindings: edac: al-mc-edac: Amazon's Annapurna Labs Memory
Controller EDAC
EDAC: al-mc-edac: Introduce Amazon's Annapurna Labs Memory Controller
EDAC
arm64: alpine: select EDAC_AL_MC
.../devicetree/bindings/edac/amazon,al-mc-edac.txt | 24 ++ MAINTAINERS | 6 + arch/arm64/Kconfig.platforms | 1 + drivers/edac/Kconfig | 7 + drivers/edac/Makefile | 1 + drivers/edac/al_mc_edac.c | 382 +++++++++++++++++++++ 6 files changed, 421 insertions(+) create mode 100644 Documentation/devicetree/bindings/edac/amazon,al-mc-edac.txt create mode 100644 drivers/edac/al_mc_edac.c
Signature · 1 line
2.7.4
Talel Shenhar
maintainerPATCH 1/3 dt-bindings: edac: al-mc-edac: Amazon's Annapurna Labs Memory Controller EDAC
Document Amazon's Annapurna Labs Memory Controller EDAC SoC binding.
--- .../devicetree/bindings/edac/amazon,al-mc-edac.txt | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/edac/amazon,al-mc-edac.txt
Documentation/devicetree/bindings/edac/amazon,al-mc-edac.txt new file +24 -0
@@ -0,0 +1,24 @@ +Amazon's Annapurna Labs Memory Controller EDAC + +EDAC node is defined to describe on-chip error detection and correction for +Amazon's Annapurna Labs Memory Controller. + +Required properties: +- compatible: Shall be "amazon,al-mc-edac". +- reg: DDR controller resource. + +Optional: +- interrupt-names: may include "ue", for uncorrectable errors, + and/or "ce", for correctable errors. +- interrupts: should contain the interrupts associated with the + interrupts names. + +Example: + +al_mc_edac { + compatible = "amazon,al-mc-edac"; + reg = <0x0 0xf0080000 0x0 0x00010000>; + interrupt-parent = <&amazon_al_system_fabric>; + interrupt-names = "ue"; + interrupts = <20 IRQ_TYPE_LEVEL_HIGH>; +};
Signature · 1 line
2.7.4
Re: [PATCH 1/3] dt-bindings: edac: al-mc-edac: Amazon's Annapurna Labs Memory Controller EDAC
Quoted 22 lines · Talel Shenhar
Document Amazon's Annapurna Labs Memory Controller EDAC SoC binding.
Signed-off-by Talel Shenhar <[email protected]>--- .../devicetree/bindings/edac/amazon,al-mc-edac.txt | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/edac/amazon,al-mc-edac.txtDocumentation/devicetree/bindings/edac/amazon,al-mc-edac.txt new file +8
-0@@ -0,0 +1,24 @@ +Amazon's Annapurna Labs Memory Controller EDAC + +EDAC node is defined to describe on-chip error detection and correction for +Amazon's Annapurna Labs Memory Controller. + +Required properties: +- compatible: Shall be "amazon,al-mc-edac". +- reg: DDR controller resource.
Documentation/devicetree/bindings/edac/amazon,al-mc-edac.txt line 18
Quoted 10 lines
Documentation/devicetree/bindings/edac/amazon,al-mc-edac.txt new file +10
-0+ +Optional: +- interrupt-names: may include "ue", for uncorrectable errors, + and/or "ce", for correctable errors. +- interrupts: should contain the interrupts associated with the + interrupts names. + +Example: + +al_mc_edac {
edac@f0080000
With that,
Quoted 9 lines
Documentation/devicetree/bindings/edac/amazon,al-mc-edac.txt new file +6
-0+ compatible = "amazon,al-mc-edac"; + reg = <0x0 0xf0080000 0x0 0x00010000>; + interrupt-parent = <&amazon_al_system_fabric>; + interrupt-names = "ue"; + interrupts = <20 IRQ_TYPE_LEVEL_HIGH>; +};Signature · 1 line
2.7.4
Talel Shenhar
maintainerPATCH 2/3 EDAC: al-mc-edac: Introduce Amazon's Annapurna Labs Memory Controller EDAC
In reply to Talel ShenharThe Amazon's Annapurna Labs Memory Controller EDAC supports ECC capability for error detection and correction (Single bit error correction, Double detection). This driver introduces EDAC driver for that capability.
--- MAINTAINERS | 6 + drivers/edac/Kconfig | 7 + drivers/edac/Makefile | 1 + drivers/edac/al_mc_edac.c | 382 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 396 insertions(+) create mode 100644 drivers/edac/al_mc_edac.c
MAINTAINERS +6 -0
@@ -751,6 +751,12 @@ F: drivers/tty/serial/altera_jtaguart.c F: include/linux/altera_uart.h F: include/linux/altera_jtaguart.h +AMAZON ANNAPURNA LABS MEMORY CONTROLLER EDAC +M: Talel Shenhar <[email protected]> +S: Maintained +F: Documentation/devicetree/bindings/edac/amazon,al-mc-edac.txt +F: drivers/edac/al_mc_edac.c + AMAZON ANNAPURNA LABS THERMAL MMIO DRIVER M: Talel Shenhar <[email protected]> S: Maintained
drivers/edac/Kconfig +7 -0
@@ -100,6 +100,13 @@ config EDAC_AMD64_ERROR_INJECTION In addition, there are two control files, inject_read and inject_write, which trigger the DRAM ECC Read and Write respectively. +config EDAC_AL_MC + bool "Amazon's Annapurna Lab EDAC Memory Controller" + depends on ARCH_ALPINE + help + Support for error detection and correction for Amazon's Annapurna + Labs Alpine chips which allows 1 bit correction and 2 bits detection. + config EDAC_AMD76X tristate "AMD 76x (760, 762, 768)" depends on PCI && X86_32
drivers/edac/Makefile +1 -0
@@ -22,6 +22,7 @@ obj-$(CONFIG_EDAC_GHES) += ghes_edac.o edac_mce_amd-y := mce_amd.o obj-$(CONFIG_EDAC_DECODE_MCE) += edac_mce_amd.o +obj-$(CONFIG_EDAC_AL_MC) += al_mc_edac.o obj-$(CONFIG_EDAC_AMD76X) += amd76x_edac.o obj-$(CONFIG_EDAC_CPC925) += cpc925_edac.o obj-$(CONFIG_EDAC_I5000) += i5000_edac.o
drivers/edac/al_mc_edac.c new file +382 -0
382 lines not on this page · raw message
Signature · 1 line
2.7.4
Talel Shenhar
maintainerPATCH 3/3 arm64: alpine: select EDAC_AL_MC
In reply to Talel ShenharAmazon's Annapurna Labs SoCs supports memory error detection and correction.
--- arch/arm64/Kconfig.platforms | 1 + 1 file changed, 1 insertion(+)
arch/arm64/Kconfig.platforms +1 -0
@@ -25,6 +25,7 @@ config ARCH_SUNXI config ARCH_ALPINE bool "Annapurna Labs Alpine platform" select ALPINE_MSI if PCI + select EDAC_AL_MC help This enables support for the Annapurna Labs Alpine Soc family.
Signature · 1 line
2.7.4