Amazon's Annapurna Labs Memory Controller EDAC
Talel Shenhar
maintainerv3 cover Amazon's Annapurna Labs Memory Controller EDAC
This series introduces support for Amazon's Annapurna Labs Memory Controller EDAC driver.
Changes since v2:
=================
- added missing includes
- aggregated variables to same line
- removed ranks read
- added spinlock to mc reporting
- made irq handler clearer
- freed irq before freeing device memory
- changed Kconfig to tristate
- added COMPILE_TEST to Kconfig
- converted dt binding to new scheme
- used devm_platform_ioremap_resource instead of get&ioremap
Changes since v1:
=================
- updated dt binding node name and added Rob Reviewed-By
- removed auto selecting of this driver
Talel Shenhar (2):
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
.../bindings/edac/amazon,al-mc-edac.yaml | 40 +++ MAINTAINERS | 7 + drivers/edac/Kconfig | 7 + drivers/edac/Makefile | 1 + drivers/edac/al_mc_edac.c | 358 +++++++++++++++++++++ 5 files changed, 413 insertions(+) create mode 100644 Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml create mode 100644 drivers/edac/al_mc_edac.c
Signature · 1 line
2.7.4
Talel Shenhar
maintainerPATCH v3 1/2 dt-bindings: edac: al-mc-edac: Amazon's Annapurna Labs Memory Controller EDAC
Document Amazon's Annapurna Labs Memory Controller EDAC SoC binding.
--- .../bindings/edac/amazon,al-mc-edac.yaml | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml
Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml new file +40 -0
@@ -0,0 +1,40 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/edac/amazon,al-mc-edac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amazon's Annapurna Labs Memory Controller EDAC + +maintainers: + - Talel Shenhar <[email protected]> + - Talel Shenhar <[email protected]> + +description: | + EDAC node is defined to describe on-chip error detection and correction for + Amazon's Annapurna Labs Memory Controller. + +properties: + + compatible: + - const: "amazon,al-mc-edac" + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + +examples: + - | + edac@f0080000 { + 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 v3 2/2 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 | 7 + drivers/edac/Kconfig | 7 + drivers/edac/Makefile | 1 + drivers/edac/al_mc_edac.c | 358 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 373 insertions(+) create mode 100644 drivers/edac/al_mc_edac.c
MAINTAINERS +7 -0
@@ -751,6 +751,13 @@ 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]> +M: Talel Shenhar <[email protected]> +S: Maintained +F: Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml +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 + tristate "Amazon's Annapurna Lab EDAC Memory Controller" + depends on (ARCH_ALPINE || COMPILE_TEST) + 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 +358 -0
358 lines not on this page · raw message
Signature · 1 line
2.7.4
Rob Herring
maintainerRe: [PATCH v3 1/2] dt-bindings: edac: al-mc-edac: Amazon's Annapurna Labs Memory Controller EDAC
In reply to Talel ShenharQuoted 24 lines · Talel Shenhar
Document Amazon's Annapurna Labs Memory Controller EDAC SoC binding.
Signed-off-by Talel Shenhar <[email protected]>--- .../bindings/edac/amazon,al-mc-edac.yaml | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yamlDocumentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml new file +10
-0@@ -0,0 +1,40 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/edac/amazon,al-mc-edac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amazon's Annapurna Labs Memory Controller EDAC + +maintainers: + - Talel Shenhar <[email protected]>
Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml line 20
Quoted 10 lines
Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml new file +10
-0+ - Talel Shenhar <[email protected]> + +description: | + EDAC node is defined to describe on-chip error detection and correction for + Amazon's Annapurna Labs Memory Controller. + +properties: + + compatible: + - const: "amazon,al-mc-edac"
Fails 'make dt_binding_check'. Drop the '-' as a property is not a list.
The "" are also unnecessary.
Quoted 8 lines
Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml new file +8
-0+ + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required:
Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml line 38
Quoted 10 lines
Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml new file +10
-0+ - compatible + - reg + +examples: + - | + edac@f0080000 { + compatible = "amazon,al-mc-edac"; + reg = <0x0 0xf0080000 0x0 0x00010000>; + interrupt-parent = <&amazon_al_system_fabric>; + interrupt-names = "ue";
Need to document the name or drop as -names on a single entry is pointless.
Quoted 5 lines
Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml new file +2
-0+ interrupts = <20 IRQ_TYPE_LEVEL_HIGH>; + };Signature · 1 line
2.7.4
Shenhar, Talel
maintainerRe: [PATCH v3 1/2] dt-bindings: edac: al-mc-edac: Amazon's Annapurna Labs Memory Controller EDAC
Quoted 37 lines · Rob Herring
Quoted 24 lines · Talel Shenhar
Document Amazon's Annapurna Labs Memory Controller EDAC SoC binding.
Signed-off-by Talel Shenhar <[email protected]>--- .../bindings/edac/amazon,al-mc-edac.yaml | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+)create mode 100644
Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yamlDocumentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml new file +10
-0@@ -0,0 +1,40 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/edac/amazon,al-mc-edac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amazon's Annapurna Labs Memory Controller EDAC + +maintainers: + - Talel Shenhar <[email protected]>Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml line 20
Quoted 10 lines
Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml new file +10
-0+ - Talel Shenhar <[email protected]> + +description: | + EDAC node is defined to describe on-chip error detection and correction for + Amazon's Annapurna Labs Memory Controller. + +properties: + + compatible: + - const: "amazon,al-mc-edac"Fails 'make
dt_binding_check'. Drop the '-' as a property is not a list.
Quoted 1 line
The "" are also unnecessary.
ack, shall be part of v4
Quoted 13 lines
Quoted 13 lines
Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml new file +12
-0+ + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + +examples:
Quoted 8 lines
Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml line 38
Quoted 6 lines
Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml new file +6
-0+ - | + edac@f0080000 { + compatible = "amazon,al-mc-edac"; + reg = <0x0 0xf0080000 0x0 0x00010000>; + interrupt-parent = <&amazon_al_system_fabric>; + interrupt-names = "ue";Need to document the name or drop as -names on a single entry is pointless.
actually, there are 2 interrupts possible here. so will also fix the maxItems of interrupts. will also add the documentation.
shall be part of v4.
Quoted 6 lines
Quoted 6 lines
Documentation/devicetree/bindings/edac/amazon,al-mc-edac.yaml new file +2
-0+ interrupts = <20 IRQ_TYPE_LEVEL_HIGH>; + };Signature · 1 line
2.7.4