Skip to content

Commit 45471cd

Browse files
committed
Merge tag 'edac_for_4.2_2' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp
Pull EDAC updates from Borislav Petkov: - New APM X-Gene SoC EDAC driver (Loc Ho) - AMD error injection module improvements (Aravind Gopalakrishnan) - Altera Arria 10 support (Thor Thayer) - misc fixes and cleanups all over the place * tag 'edac_for_4.2_2' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp: (28 commits) EDAC: Update Documentation/edac.txt EDAC: Fix typos in Documentation/edac.txt EDAC, mce_amd_inj: Set MISCV on injection EDAC, mce_amd_inj: Move bit preparations before the injection EDAC, mce_amd_inj: Cleanup and simplify README EDAC, altera: Do not allow suspend when EDAC is enabled EDAC, mce_amd_inj: Make inj_type static arm: socfpga: dts: Add Arria10 SDRAM EDAC DTS support EDAC, altera: Add Arria10 EDAC support EDAC, altera: Refactor for Altera CycloneV SoC EDAC, altera: Generalize driver to use DT Memory size EDAC, mce_amd_inj: Add README file EDAC, mce_amd_inj: Add individual permissions field to dfs_node EDAC, mce_amd_inj: Modify flags attribute to use string arguments EDAC, mce_amd_inj: Read out number of MCE banks from the hardware EDAC, mce_amd_inj: Use MCE_INJECT_GET macro for bank node too EDAC, xgene: Fix cpuid abuse EDAC, mpc85xx: Extend error address to 64 bit EDAC, mpc8xxx: Adapt for FSL SoC EDAC, edac_stub: Drop arch-specific include ...
2 parents 93a4b1b + 043b431 commit 45471cd

27 files changed

Lines changed: 2175 additions & 377 deletions

File tree

‎Documentation/devicetree/bindings/arm/altera/socfpga-sdram-edac.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Altera SOCFPGA SDRAM Error Detection & Correction [EDAC]
22
The EDAC accesses a range of registers in the SDRAM controller.
33

44
Required properties:
5-
- compatible : should contain "altr,sdram-edac";
5+
- compatible : should contain "altr,sdram-edac" or "altr,sdram-edac-a10"
66
- altr,sdr-syscon : phandle of the sdr module
77
- interrupts : Should contain the SDRAM ECC IRQ in the
88
appropriate format for the IRQ controller.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
* APM X-Gene SoC EDAC node
2+
3+
EDAC node is defined to describe on-chip error detection and correction.
4+
The follow error types are supported:
5+
6+
memory controller - Memory controller
7+
PMD (L1/L2) - Processor module unit (PMD) L1/L2 cache
8+
9+
The following section describes the EDAC DT node binding.
10+
11+
Required properties:
12+
- compatible : Shall be "apm,xgene-edac".
13+
- regmap-csw : Regmap of the CPU switch fabric (CSW) resource.
14+
- regmap-mcba : Regmap of the MCB-A (memory bridge) resource.
15+
- regmap-mcbb : Regmap of the MCB-B (memory bridge) resource.
16+
- regmap-efuse : Regmap of the PMD efuse resource.
17+
- reg : First resource shall be the CPU bus (PCP) resource.
18+
- interrupts : Interrupt-specifier for MCU, PMD, L3, or SoC error
19+
IRQ(s).
20+
21+
Required properties for memory controller subnode:
22+
- compatible : Shall be "apm,xgene-edac-mc".
23+
- reg : First resource shall be the memory controller unit
24+
(MCU) resource.
25+
- memory-controller : Instance number of the memory controller.
26+
27+
Required properties for PMD subnode:
28+
- compatible : Shall be "apm,xgene-edac-pmd" or
29+
"apm,xgene-edac-pmd-v2".
30+
- reg : First resource shall be the PMD resource.
31+
- pmd-controller : Instance number of the PMD controller.
32+
33+
Example:
34+
csw: csw@7e200000 {
35+
compatible = "apm,xgene-csw", "syscon";
36+
reg = <0x0 0x7e200000 0x0 0x1000>;
37+
};
38+
39+
mcba: mcba@7e700000 {
40+
compatible = "apm,xgene-mcb", "syscon";
41+
reg = <0x0 0x7e700000 0x0 0x1000>;
42+
};
43+
44+
mcbb: mcbb@7e720000 {
45+
compatible = "apm,xgene-mcb", "syscon";
46+
reg = <0x0 0x7e720000 0x0 0x1000>;
47+
};
48+
49+
efuse: efuse@1054a000 {
50+
compatible = "apm,xgene-efuse", "syscon";
51+
reg = <0x0 0x1054a000 0x0 0x20>;
52+
};
53+
54+
edac@78800000 {
55+
compatible = "apm,xgene-edac";
56+
#address-cells = <2>;
57+
#size-cells = <2>;
58+
ranges;
59+
regmap-csw = <&csw>;
60+
regmap-mcba = <&mcba>;
61+
regmap-mcbb = <&mcbb>;
62+
regmap-efuse = <&efuse>;
63+
reg = <0x0 0x78800000 0x0 0x100>;
64+
interrupts = <0x0 0x20 0x4>,
65+
<0x0 0x21 0x4>,
66+
<0x0 0x27 0x4>;
67+
68+
edacmc@7e800000 {
69+
compatible = "apm,xgene-edac-mc";
70+
reg = <0x0 0x7e800000 0x0 0x1000>;
71+
memory-controller = <0>;
72+
};
73+
74+
edacpmd@7c000000 {
75+
compatible = "apm,xgene-edac-pmd";
76+
reg = <0x0 0x7c000000 0x0 0x200000>;
77+
pmd-controller = <0>;
78+
};
79+
};

0 commit comments

Comments
 (0)