[PATCHv5 0/5] Add Altera peripheral memories to EDAC framework

2014-11-11 Thread tthayer
From: Thor Thayer This patch adds the L2 cache and OCRAM peripherals to the EDAC framework using the EDAC device framework. The ECC is enabled early in the boot process in the platform specific code. v2 changes: - Split On-Chip RAM ECC platform initialization into separate patch from L2 ECC pl

[PATCHv5 2/5] arm: socfpga: Enable OCRAM ECC on startup.

2014-11-11 Thread tthayer
From: Thor Thayer This patch enables the ECC for On-Chip RAM on machine startup. The ECC has to be enabled before data is is stored in memory otherwise the ECC will fail on reads. Signed-off-by: Thor Thayer --- v2: Split OCRAM ECC portion separately. Addition of iounmap() and reorganization of

[PATCHv5 3/5] edac: altera: Remove SDRAM module compile

2014-11-11 Thread tthayer
From: Thor Thayer The SDRAM EDAC requires SDRAM configuration/initialization before SDRAM is accessed (in the preloader). Having a module compile is not desired so force to be built into kernel. Signed-off-by: Thor Thayer --- v3: Added in this version as a separate patch. v4/5: No change. ---

[PATCHv5 5/5] arm: dts: Add Altera L2 Cache and OCRAM EDAC

2014-11-11 Thread tthayer
From: Thor Thayer Adding the device tree entries and bindings needed to support the Altera L2 cache and On-Chip RAM EDAC. This patch relies upon an earlier patch to declare and setup On-chip RAM properly. http://www.spinics.net/lists/devicetree/msg51117.html Signed-off-by: Thor Thayer --- v2: R

[PATCHv5 4/5] edac: altera: Add Altera L2 Cache and OCRAM EDAC Support

2014-11-11 Thread tthayer
From: Thor Thayer Adding L2 Cache and On-Chip RAM EDAC support for the Altera SoCs using the EDAC device model. The SDRAM controller is using the Memory Controller model. The SDRAM ECC is a separate Kconfig option because: 1) the SDRAM preparation can take almost 2 seconds on boot and some cust

[PATCHv2 1/4] arm: socfpga: Enable L2 Cache ECC on startup.

2014-10-17 Thread tthayer
From: Thor Thayer This patch enables the ECC for L2 cache on machine startup. The ECC has to be enabled before data is is stored in memory otherwise the ECC will fail on reads. Signed-off-by: Thor Thayer --- v2: Split OCRAM initialization into separate patch. --- MAINTAINERS

[PATCHv2 3/4] edac: altera: Add Altera L2 and OCRAM EDAC support

2014-10-17 Thread tthayer
From: Thor Thayer Adding L2 Cache and On-Chip RAM EDAC support for the Altera SoCs using the EDAC_DEVICE framework. The EDAC manager abstracts the common probe functionality and test triggers. The L2 Cache and OCRAM files handle the specific memory functions (alloc & free) for the testing trigg

[PATCHv2 0/4] Add Altera peripheral memories to EDAC framework

2014-10-17 Thread tthayer
From: Thor Thayer This patch adds the L2 cache and OCRAM peripherals to the EDAC framework using the EDAC device framework. The ECC is enabled early in the boot process in the platform specific code. Thor Thayer (4): arm: socfpga: Enable L2 Cache ECC on startup. arm: socfpga: Enable OCRAM EC

[PATCHv2 2/4] arm: socfpga: Enable OCRAM ECC on startup.

2014-10-17 Thread tthayer
From: Thor Thayer This patch enables the ECC for On-Chip RAM on machine startup. The ECC has to be enabled before data is is stored in memory otherwise the ECC will fail on reads. Signed-off-by: Thor Thayer --- v2: Split OCRAM ECC portion separately. Addition of iounmap() and reorganization of

[PATCHv2 4/4] arm: dts: Add Altera L2 Cache and OCRAM EDAC

2014-10-17 Thread tthayer
From: Thor Thayer Adding the device tree entries and bindings needed to support the Altera L2 cache and On-Chip RAM EDAC. This patch relies upon an earlier patch to declare and setup On-chip RAM properly. http://www.spinics.net/lists/devicetree/msg51117.html Signed-off-by: Thor Thayer --- v2: R

[PATCH 3/4] edac, altera: Addition of Arria10 EDAC

2015-05-13 Thread tthayer
From: Thor Thayer The Arria10 SDRAM and ECC system differs significantly from the Cyclone5 and Arria5 SoCs. This patch adds support for the Arria10 SoC. 1) IRQ handler needs to support SHARED IRQ 2) Support sberr and dberr address reporting. Signed-off-by: Thor Thayer --- drivers/edac/altera_e

[PATCH 4/4] dts, altera: Arria10 SDRAM EDAC DTS additions.

2015-05-13 Thread tthayer
From: Thor Thayer Support for the Arria10 SDRAM EDAC is added to the device tree. Update the bindings document for the new match string. Signed-off-by: Thor Thayer --- .../bindings/arm/altera/socfpga-sdram-edac.txt |2 +- arch/arm/boot/dts/socfpga_arria10.dtsi | 11 ++

[PATCH 2/4] edac, altera: Refactor EDAC for Altera CycloneV SoC.

2015-05-13 Thread tthayer
From: Thor Thayer The Arria10 SOC uses a completely different SDRAM controller from the earlier CycloneV and ArriaV SoCs. This patch abstracts the SDRAM bits for the CycloneV/ArriaV SoCs in preparation for the Arria10 support. Signed-off-by: Thor Thayer --- drivers/edac/altera_edac.c | 194 ++

[PATCH 0/4] Add Altera Arria10 EDAC Support

2015-05-13 Thread tthayer
From: Thor Thayer This series of patches adds support for the Arria10 EDAC. The SDRAM controller and ECC registers are significantly different from the CycloneV/ArriaV but common areas could be abstracted. Thor Thayer (4): edac, altera: Generalize driver to use DT Memory size edac, altera: R

[PATCH 1/4] edac, altera: Generalize driver to use DT Memory size

2015-05-13 Thread tthayer
From: Thor Thayer The Arria10 SOC uses a completely different SDRAM controller from the earlier CycloneV and ArriaV SoCs. The memory size is calculated in the bootloader and passed via the device tree. Using this device tree size is more generic than using the register fields to calculate the mem

[PATCHv2 3/7] EDAC, altera: Move Arria10 IRQ function

2016-04-25 Thread tthayer
From: Thor Thayer In preparation for additional memory module ECCs, the IRQ and check_deps() functions are being made available to all the memory buffers. Move it outside of the OCRAM only area. Signed-off-by: Thor Thayer --- v2 New patch. Move shared functions outside OCRAM only area. --- dr

[PATCHv2 5/7] EDAC, altera: Add Arria10 ECC memory init functions

2016-04-25 Thread tthayer
From: Thor Thayer In preparation for additional memory module ECCs, add the memory initialization functions. Signed-off-by: Thor Thayer --- v2: Specify INTMODE selection -> IRQ on each ECC error. Insert functions above memory-specific functions so that function declarations are not requ

[PATCHv2 1/7] EDAC, altera: Check parent status for Arria10 EDAC block

2016-04-25 Thread tthayer
From: Thor Thayer In preparation for the Arria10 ECC modules, check the status of the parent in the device tree to ensure the block is enabled. Skip if no parent phandle is set in the device tree. Signed-off-by: Thor Thayer --- v2 No change --- drivers/edac/altera_edac.c |9 + 1 f

[PATCHv2 6/7] EDAC, altera: Add Arria10 Ethernet EDAC support

2016-04-25 Thread tthayer
From: Thor Thayer Add Altera Arria10 Ethernet FIFO memory EDAC support. Signed-off-by: Thor Thayer --- v2 Remove (void *) cast from altr_edac_device_of_match[] Addition of panic flag to private data. --- drivers/edac/Kconfig |7 ++ drivers/edac/altera_edac.c | 159 +

[PATCHv2 4/7] Documentation: dt: socfpga: Add Arria10 Ethernet binding

2016-04-25 Thread tthayer
From: Thor Thayer Add the device tree bindings needed to support the Altera Ethernet FIFO buffers on the Arria10 chip. Signed-off-by: Thor Thayer --- v2 No Change --- .../bindings/arm/altera/socfpga-eccmgr.txt | 24 1 file changed, 24 insertions(+) diff --git a

[PATCHv2 7/7] ARM: dts: Add Arria10 Ethernet EDAC devicetree entry

2016-04-25 Thread tthayer
From: Thor Thayer Add the device tree entries needed to support the Altera Ethernet FIFO buffer EDAC on the Arria10 chip. Signed-off-by: Thor Thayer --- v2 No change --- arch/arm/boot/dts/socfpga_arria10.dtsi | 36 1 file changed, 36 insertions(+) diff --gi

[PATCHv2 0/7] Add EDAC peripheral init functions & Ethernet EDAC

2016-04-25 Thread tthayer
From: Thor Thayer This patch set adds the memory initialization functions for Altera's Arria10 peripherals, the first of which is the Ethernet EDAC. The ECC memory init functions are common to all the peripheral memory buffers. Thor Thayer (7): EDAC, altera: Check parent status for Arria10 EDA

[PATCHv2 2/7] EDAC, altera: Add panic flag check to A10 IRQ

2016-04-25 Thread tthayer
From: Thor Thayer In preparation for additional memory module ECCs, the IRQ function will check a panic flag before doing a kernel panic on double bit errors. ECCs on buffers will not cause a kernel panic on DBERRs. Signed-off-by: Thor Thayer --- v2 New patch. Add panic flag to IRQ function. -

[PATCH] Addition of Altera Arria10 On-Chip RAM ECC

2016-03-30 Thread tthayer
This series of patches adds the Arria10 OCRAM EDAC support. [PATCH 1/7] EDAC, altera: New file operations for Arria10 ECC [PATCH 2/7] EDAC, altera: Add register offset for ECC Enable [PATCH 3/7] EDAC, altera: Make OCRAM ECC dependency check generic [PATCH 4/7] Documentation: dt: socfpga: Add Alter

[PATCH 1/7] EDAC, altera: New file operations for Arria10 ECC modules

2016-03-30 Thread tthayer
From: Thor Thayer In preparation for the Arria10 peripheral ECCs, new file operations are used because the Arria10 IRQ trigger mechanism is different than Cyclone5/Arria5 and Arria10 L2 cache. Add new pointer for file operations function to ecc data structure and point to current file operations

[PATCH 6/7] ARM: socfpga: Enable Arria10 OCRAM ECC on startup

2016-03-30 Thread tthayer
From: Thor Thayer Enable ECC for Arria10 On-Chip RAM on machine startup. The ECC has to be enabled before data is stored in memory otherwise the ECC will fail on reads. Signed-off-by: Thor Thayer --- arch/arm/mach-socfpga/core.h|1 + arch/arm/mach-socfpga/ocram.c | 22 +

[PATCH 7/7] ARM: dts: Add Altera Arria10 OCRAM EDAC devicetree entry

2016-03-30 Thread tthayer
From: Thor Thayer Add the device tree entries needed to support the Altera On-Chip RAM EDAC on the Arria10 chip. Signed-off-by: Thor Thayer --- arch/arm/boot/dts/socfpga_arria10.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/socfpga_arria10.dtsi b/arch/arm/

[PATCH 4/7] Documentation: dt: socfpga: Add Altera Arria10 OCRAM binding

2016-03-30 Thread tthayer
From: Thor Thayer Add the device tree bindings needed to support the Altera On-Chip RAM ECC on the Arria10 chip. Signed-off-by: Thor Thayer --- .../bindings/arm/altera/socfpga-eccmgr.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH 5/7] EDAC, altera: Addition of Arria10 OCRAM ECC

2016-03-30 Thread tthayer
From: Thor Thayer Addition of the Arria10 On-Chip RAM ECC handling. Addition of private data structure for Arria10 OCRAM ECC and the ECC module and memory initialization functions which are shared between memory modules such as NAND, Ethernet, etc. Addition of a new file operations function and t

[PATCH 3/7] EDAC, altera: Make OCRAM ECC dependency check generic

2016-03-30 Thread tthayer
From: Thor Thayer In preparation for the Arria10 peripheral ECCs, the OCRAM ECC dependency check was moved into the general ECC area since this same function can be used by other memories. Signed-off-by: Thor Thayer --- drivers/edac/altera_edac.c | 43 +---

[PATCH 2/7] EDAC, altera: Add register offset for ECC Enable

2016-03-30 Thread tthayer
From: Thor Thayer In preparation for the Arria10 peripheral ECCs, a register offset from the ECC base was added to the private data structure to index to the ECC enable register. Signed-off-by: Thor Thayer --- drivers/edac/altera_edac.c |3 ++- drivers/edac/altera_edac.h |1 + 2 files

[PATCHv2 5/7] EDAC, altera: Addition of Arria10 OCRAM ECC

2016-03-31 Thread tthayer
From: Thor Thayer Addition of the Arria10 On-Chip RAM ECC handling. Addition of private data structure for Arria10 OCRAM ECC. Addition of a new file operations function and trigger function for Arria10 OCRAM and other peripheral memories. Signed-off-by: Thor Thayer --- v2: Remove the Arria10 EC

[PATCHv2 3/7] EDAC, altera: Make OCRAM ECC dependency check generic

2016-03-31 Thread tthayer
From: Thor Thayer In preparation for the Arria10 peripheral ECCs, the OCRAM ECC dependency check was moved into the general ECC area since this same function can be used by other memories. Signed-off-by: Thor Thayer --- v2: No change --- drivers/edac/altera_edac.c | 43 +-

[PATCHv2 7/7] ARM: dts: Add Altera Arria10 OCRAM EDAC devicetree entry

2016-03-31 Thread tthayer
From: Thor Thayer Add the device tree entries needed to support the Altera On-Chip RAM EDAC on the Arria10 chip. Signed-off-by: Thor Thayer --- v2: No change --- arch/arm/boot/dts/socfpga_arria10.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/socfpga_arria10

[PATCHv2 2/7] EDAC, altera: Add register offset for ECC Enable

2016-03-31 Thread tthayer
From: Thor Thayer In preparation for the Arria10 peripheral ECCs, a register offset from the ECC base was added to the private data structure to index to the ECC enable register. Signed-off-by: Thor Thayer --- v2: No change --- drivers/edac/altera_edac.c |3 ++- drivers/edac/altera_edac.h

[PATCHv2 6/7] ARM: socfpga: Enable Arria10 OCRAM ECC on startup

2016-03-31 Thread tthayer
From: Thor Thayer Enable ECC for Arria10 On-Chip RAM on machine startup. The ECC has to be enabled and memory initialized before data is stored in memory otherwise the ECC will fail on reads. Signed-off-by: Thor Thayer --- v2: Add Arria10 ECC block initialization locally. --- arch/arm/mach-soc

[PATCHv2 1/7] EDAC, altera: New file operations for Arria10 ECC modules

2016-03-31 Thread tthayer
From: Thor Thayer In preparation for the Arria10 peripheral ECCs, new file operations are used because the Arria10 IRQ trigger mechanism is different than Cyclone5/Arria5 and Arria10 L2 cache. Add new pointer for file operations function to ecc data structure and point to current file operations

[PATCHv2 4/7] Documentation: dt: socfpga: Add Altera Arria10 OCRAM binding

2016-03-31 Thread tthayer
From: Thor Thayer Add the device tree bindings needed to support the Altera On-Chip RAM ECC on the Arria10 chip. Signed-off-by: Thor Thayer --- v2: Align Required Properties descriptions --- .../bindings/arm/altera/socfpga-eccmgr.txt | 10 ++ 1 file changed, 10 insertions(+)

[PATCHv2 0/7] Add Altera Arria10 OCRAM EDAC support

2016-03-31 Thread tthayer
From: Thor Thayer This series of patches adds the Arria10 OCRAM EDAC support Thor Thayer (7): EDAC, altera: New file operations for Arria10 ECC modules EDAC, altera: Add register offset for ECC Enable EDAC, altera: Make OCRAM ECC dependency check generic Documentation: dt: socfpga: Add A

[PATCH] Add EDAC peripheral init functions & Ethernet EDAC.

2016-04-12 Thread tthayer
This patch set adds the memory initialization functions for Altera's Arria10 peripherals, the first of which is the Ethernet EDAC. The first 3 patches add the memory initialization functionality. The last 3 patches add Ethernet EDAC support. [PATCH 1/6] EDAC, altera: Check parent status for Arria1

[PATCH 2/6] EDAC, altera: Move IRQ function declaration

2016-04-12 Thread tthayer
From: Thor Thayer In preparation for additional memory module ECCs, the IRQ declaration is being made available to everyone. Move it outside of the OCRAM only area. Signed-off-by: Thor Thayer --- drivers/edac/altera_edac.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff -

[PATCH 1/6] EDAC, altera: Check parent status for Arria10 EDAC block

2016-04-12 Thread tthayer
From: Thor Thayer In preparation for the Arria10 ECC modules, check the status of the parent in the device tree to ensure the block is enabled. Skip if no parent phandle is set in the device tree. Signed-off-by: Thor Thayer --- drivers/edac/altera_edac.c |9 + 1 file changed, 9 ins

[PATCH 5/6] EDAC, altera: Add Arria10 Ethernet EDAC support

2016-04-12 Thread tthayer
From: Thor Thayer Add Altera Arria10 Ethernet FIFO memory EDAC support. Signed-off-by: Thor Thayer --- drivers/edac/Kconfig |7 ++ drivers/edac/altera_edac.c | 153 drivers/edac/altera_edac.h | 14 3 files changed, 174 insertions(+

[PATCH 6/6] ARM: dts: Add Arria10 Ethernet EDAC devicetree entry

2016-04-12 Thread tthayer
From: Thor Thayer Add the device tree entries needed to support the Altera Ethernet FIFO buffer EDAC on the Arria10 chip. Signed-off-by: Thor Thayer --- arch/arm/boot/dts/socfpga_arria10.dtsi | 36 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/

[PATCH 3/6] EDAC, altera: Add Arria10 ECC memory init functions

2016-04-12 Thread tthayer
From: Thor Thayer In preparation for additional memory module ECCs, add the memory initialization functions. Signed-off-by: Thor Thayer --- drivers/edac/altera_edac.c | 152 drivers/edac/altera_edac.h |3 + 2 files changed, 155 insertions(+) d

[PATCH 4/6] Documentation: dt: socfpga: Add Arria10 Ethernet binding

2016-04-12 Thread tthayer
From: Thor Thayer Add the device tree bindings needed to support the Altera Ethernet FIFO buffers on the Arria10 chip. Signed-off-by: Thor Thayer --- .../bindings/arm/altera/socfpga-eccmgr.txt | 24 1 file changed, 24 insertions(+) diff --git a/Documentation/dev

[PATCHv5 0/8] Add Ethernet EDAC & peripheral init functions

2016-06-22 Thread tthayer
From: Thor Thayer This patch set adds the Ethernet EDAC and memory initialization functions for Altera's Arria10 peripherals. The ECC memory init functions are common to all the peripheral memory buffers (to follow in later patches). Version 5 corrects a misunderstanding of the phandle name for

[PATCHv5 7/8] EDAC, altera: Add Arria10 Ethernet EDAC support

2016-06-22 Thread tthayer
From: Thor Thayer Add Altera Arria10 Ethernet FIFO memory EDAC support. Update to support a common compatibility string for all Ethernet FIFOs in the DT. Signed-off-by: Thor Thayer --- v2 Remove (void *) cast from altr_edac_device_of_match[] Addition of panic flag to ethernet private data.

[PATCHv5 2/8] EDAC, altera: Add panic flag check to A10 IRQ

2016-06-22 Thread tthayer
From: Thor Thayer In preparation for additional memory module ECCs, the IRQ function will check a panic flag before doing a kernel panic on double bit errors. OCRAM uncorrectable errors cause a panic because sleep/resume functions and FPGA contents during sleep are stored in OCRAM. ECCs on peri

[PATCHv5 3/8] EDAC, altera: Make all private data structures static const.

2016-06-22 Thread tthayer
From: Thor Thayer The device private data structures should be converted from const struct edac_device_prv_data to static const struct edac_device_prv_data. Signed-off-by: Thor Thayer --- v4 New patch added for conversion. v5 No change --- drivers/edac/altera_edac.c | 16

[PATCHv5 6/8] EDAC, altera: Add Arria10 ECC memory init functions

2016-06-22 Thread tthayer
From: Thor Thayer In preparation for additional memory module ECCs, add the memory initialization functions and helper functions used for memory initialization. Signed-off-by: Thor Thayer --- v2: Specify INTMODE selection -> IRQ on each ECC error. Insert functions above memory-specific func

[PATCHv5 5/8] Documentation: dt: socfpga: Add Arria10 Ethernet binding

2016-06-22 Thread tthayer
From: Thor Thayer Add the device tree bindings needed to support the Altera Ethernet FIFO buffers on the Arria10 chip. Signed-off-by: Thor Thayer --- v2 No Change v3 Change to common compatible string based on maintainer comments Add local IRQ values. v4 Add compatible string for parent

[PATCHv5 8/8] ARM: dts: Add Arria10 Ethernet EDAC devicetree entry

2016-06-22 Thread tthayer
From: Thor Thayer Add the device tree entries needed to support the Altera Ethernet FIFO buffer EDAC on the Arria10 chip. Signed-off-by: Thor Thayer --- v2 No change v3 Add interrupts for SBERR and DBERR. v4 No change v5 Change "parent" phandle to "altr,ecc-parent" --- arch/arm/boot/dts/so

[PATCHv5 4/8] EDAC, altera: Share Arria10 check_deps & IRQ functions

2016-06-22 Thread tthayer
From: Thor Thayer In preparation for additional memory module ECCs, the IRQ and check_deps() functions are being made available to all the memory buffers. Move them outside of the OCRAM only area. Signed-off-by: Thor Thayer --- v2 New patch. Move shared functions outside OCRAM only area. v3 C

[PATCHv5 1/8] EDAC, altera: Check parent status for Arria10 EDAC block

2016-06-22 Thread tthayer
From: Thor Thayer In preparation for the Arria10 ECC modules, check the status of the parent in the device tree to ensure the block is enabled. Skip if no parent phandle is set in the device tree. Signed-off-by: Thor Thayer --- v2 No change v3 Move check into validate_parent_available(). v4

[PATCH 09/10] ARM: dts: Add Arria10 DMA EDAC devicetree entry

2016-07-14 Thread tthayer
From: Thor Thayer Add the device tree entries needed to support the Altera DMA FIFO buffer EDAC on the Arria10 chip. Signed-off-by: Thor Thayer --- arch/arm/boot/dts/socfpga_arria10.dtsi |8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/socfpga_arria10.dtsi b/ar

[PATCH 03/10] Documentation: dt: socfpga: Add Arria10 USB EDAC binding

2016-07-14 Thread tthayer
From: Thor Thayer Add the device tree bindings needed to support the Altera USB FIFO buffer EDAC on the Arria10 chip. Signed-off-by: Thor Thayer --- .../bindings/arm/altera/socfpga-eccmgr.txt | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetre

[PATCH 02/10] Documentation: dt: socfpga: Add Arria10 DMA EDAC binding

2016-07-14 Thread tthayer
From: Thor Thayer Add the device tree bindings needed to support the Altera DMA FIFO buffer EDAC on the Arria10 chip. Signed-off-by: Thor Thayer --- .../bindings/arm/altera/socfpga-eccmgr.txt | 16 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetr

[PATCH 06/10] EDAC, altera: Add Arria10 DMA EDAC support

2016-07-14 Thread tthayer
From: Thor Thayer Add Altera Arria10 DMA FIFO memory EDAC support. Signed-off-by: Thor Thayer --- drivers/edac/Kconfig |7 +++ drivers/edac/altera_edac.c | 34 +- 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/edac/Kconfig

[PATCH 05/10] EDAC, altera: Add Arria10 NAND EDAC support

2016-07-14 Thread tthayer
From: Thor Thayer Add Altera Arria10 NAND FIFO memory EDAC support. Signed-off-by: Thor Thayer --- drivers/edac/Kconfig |7 +++ drivers/edac/altera_edac.c | 34 +- 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/edac/Kconfi

[PATCH 10/10] ARM: dts: Add Arria10 USB EDAC devicetree entry

2016-07-14 Thread tthayer
From: Thor Thayer Add the device tree entries needed to support the Altera USB FIFO buffer EDAC on the Arria10 chip. Signed-off-by: Thor Thayer --- arch/arm/boot/dts/socfpga_arria10.dtsi |8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/socfpga_arria10.dtsi b/ar

[PATCH 00/10] Add NAND, DMA, USB, and QSPI EDAC

2016-07-14 Thread tthayer
From: Thor Thayer This patch series adds the NAND, DMA, USB and QSPI FIFO EDAC modules. Thor Thayer (10): Documentation: dt: socfpga: Add Arria10 NAND EDAC binding Documentation: dt: socfpga: Add Arria10 DMA EDAC binding Documentation: dt: socfpga: Add Arria10 USB EDAC binding Documentat

[PATCH 07/10] EDAC, altera: Add Arria10 USB EDAC support

2016-07-14 Thread tthayer
From: Thor Thayer Add Altera Arria10 USB FIFO memory EDAC support. Signed-off-by: Thor Thayer --- drivers/edac/Kconfig |7 +++ drivers/edac/altera_edac.c | 34 +- 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/edac/Kconfig

[PATCH 04/10] Documentation: dt: socfpga: Add Arria10 QSPI EDAC binding

2016-07-14 Thread tthayer
From: Thor Thayer Add the device tree bindings needed to support the Altera QSPI FIFO buffer EDAC on the Arria10 chip. Signed-off-by: Thor Thayer --- .../bindings/arm/altera/socfpga-eccmgr.txt | 16 1 file changed, 16 insertions(+) diff --git a/Documentation/devicet

[PATCH 08/10] EDAC, altera: Add Arria10 QSPI EDAC support

2016-07-14 Thread tthayer
From: Thor Thayer Add Altera Arria10 QSPI FIFO memory EDAC support. Signed-off-by: Thor Thayer --- drivers/edac/Kconfig |7 +++ drivers/edac/altera_edac.c | 34 +- 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/drivers/edac/Kconfi

[PATCH 01/10] Documentation: dt: socfpga: Add Arria10 NAND EDAC binding

2016-07-14 Thread tthayer
From: Thor Thayer Add the device tree bindings needed to support the Altera NAND FIFO buffers EDAC on the Arria10 chip. Signed-off-by: Thor Thayer --- .../bindings/arm/altera/socfpga-eccmgr.txt | 32 1 file changed, 32 insertions(+) diff --git a/Documentation/de

[PATCHv2 1/4] dt-bindings: mfd: Add Altera Arria10 SR Monitor

2016-10-27 Thread tthayer
From: Thor Thayer Add the Arria10 DevKit System Resource Chip register and state monitoring module to the MFD. Signed-off-by: Thor Thayer --- Note: This needs to be applied to the bindings document that was Acked & Applied but didn't reach the for-next branch. See https://patchwork.ozlabs.org/p

[PATCHv2 3/4] mfd: altr-a10sr: Add Arria10 SR Monitor

2016-10-27 Thread tthayer
From: Thor Thayer Add the Altera Arria10 DevKit System Resource Monitor functionality to the MFD device. Signed-off-by: Thor Thayer --- v2 Change from -mon to -monitor for clarity --- drivers/mfd/altera-a10sr.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mfd/altera-a10sr.c

[PATCHv2 4/4] ARM: socfpga: dts: Add Monitor to A10-SR MFD

2016-10-27 Thread tthayer
From: Thor Thayer Add the Monitor functionality to the Arria10 DevKit System Resource chip. Signed-off-by: Thor Thayer --- v2 Change from -mon to -monitor for clarity. --- arch/arm/boot/dts/socfpga_arria10_socdk.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/so

[PATCHv2 2/4] misc: Add Altera Arria10 System Resource Control

2016-10-27 Thread tthayer
From: Thor Thayer This patch adds the Altera Arria10 control & monitoring functions to the Arria10 System Resource chip. Signed-off-by: Thor Thayer --- v2 Change compatible string and filename from -mon to -monitor Change CONFIG from module to builtin. Make wm_rst register writeable. -

[PATCHv2 0/4] Add Altera A10SR Status & Control Monitor

2016-10-27 Thread tthayer
From: Thor Thayer This patch series adds the Altera Arria10 DevKit System Resource chip's Status and Control Monitor to the A10SR Multi-Function Device. An earlier patch added this to the hwmon class which wasn't the proper place so this functionality is added to the misc directory. Version 2 cha

[PATCHv3 1/2] spi: Add Flag to Enable Slave Select with GPIO Chip Select.

2016-10-10 Thread tthayer
From: Thor Thayer Some SPI masters require slave selection before the transfer can begin [1]. The SPI framework currently selects the chip using either 1) the internal CS mechanism or 2) the GPIO CS, but not both. This patch adds a new master->flags define to indicate both the GPIO CS and the in

[PATCHv3 2/2] spi: dw: Set GPIO_SS flag to toggle Slave Select on GPIO CS

2016-10-10 Thread tthayer
From: Thor Thayer The Designware SPI master requires slave selection before the transfer can begin [1]. This patch uses the new master flag to indicate both the GPIO CS and the internal chip select should be used. Tested On: Altera CycloneV development kit Compile tested for build error

[PATCH] spi: dw: Enable Slave Select with GPIO Chip Select.

2016-10-05 Thread tthayer
From: Thor Thayer Currently in the GPIO CS case, the transfer is stalled. The DesignWare IP datasheet points out that the slave must be selected (SER) before the transfer can start [1]. The SPI framework selects the chip using either 1) the internal CS mechanism or 2) the GPIO CS, but not both.

[PATCHv2 2/2] spi: Add Flag to Enable Slave Select with GPIO Chip Select.

2016-10-07 Thread tthayer
From: Thor Thayer Some SPI masters require slave selection before the transfer can begin [1]. The SPI framework currently selects the chip using either 1) the internal CS mechanism or 2) the GPIO CS, but not both. This patch adds a boolean variable to indicate both the GPIO CS and the internal c

[PATCHv2 1/2] Documentation: dt: spi: Add GPIO Slave Select Parameter

2016-10-07 Thread tthayer
From: Thor Thayer Some SPI masters require the slave to be selected before a transaction can occur - even in the case of GPIO chip select. This patch adds a GPIO slave select parameter to indicate the slave needs to be selected in the GPIO CS case. Signed-off-by: Thor Thayer --- v2 Add to SPI

[PATCHv3 3/4] mfd: altr-a10sr: Add Arria10 SR Monitor

2016-11-02 Thread tthayer
From: Thor Thayer Add the Altera Arria10 DevKit System Resource Monitor functionality to the MFD device. Signed-off-by: Thor Thayer Acked-for-MFD-by: Lee Jones --- v2 Change from -mon to -monitor for clarity v3 Shorten driver name (remove altr_). --- drivers/mfd/altera-a10sr.c | 6 +- 1

[PATCHv3 4/4] ARM: socfpga: dts: Add Monitor to A10-SR MFD

2016-11-02 Thread tthayer
From: Thor Thayer Add the Monitor functionality to the Arria10 DevKit System Resource chip. Signed-off-by: Thor Thayer --- v2 Change from -mon to -monitor for clarity. v3 Change node name from a10_monitor to monitor. --- arch/arm/boot/dts/socfpga_arria10_socdk.dtsi | 4 1 file changed,

[PATCHv3 0/4] Add Altera A10SR Status & Control Monitor

2016-11-02 Thread tthayer
From: Thor Thayer his patch series adds the Altera Arria10 DevKit System Resource chip's Status and Control Monitor to the A10SR Multi-Function Device. An earlier patch added this to the hwmon class which wasn't the proper place so this functionality is added to the misc directory. Version 2 chan

[PATCHv3 2/4] misc: Add Altera Arria10 System Resource Control

2016-11-02 Thread tthayer
From: Thor Thayer This patch adds the Altera Arria10 control & monitoring functions to the Arria10 System Resource chip. Signed-off-by: Thor Thayer --- v2 Change compatible string and filename from -mon to -monitor Change CONFIG from module to builtin. Make wm_rst register writeable. v

[PATCHv3 1/4] dt-bindings: mfd: Add Altera Arria10 SR Monitor

2016-11-02 Thread tthayer
From: Thor Thayer Add the Arria10 DevKit System Resource Chip register and state monitoring module to the MFD. Signed-off-by: Thor Thayer --- Note: This needs to be applied to the bindings document that was Acked & Applied but didn't reach the for-next branch. See https://patchwork.ozlabs.org/p

[PATCH] gpio: gpiolib-devprop: Check chip->parent pointer before dereferencing

2016-10-25 Thread tthayer
From: Thor Thayer Confirm the chip->parent is valid before dereferencing because the parent parameter is optional. Signed-off-by: Thor Thayer --- drivers/gpio/gpiolib-devprop.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpio/gpiolib-devprop.c b/drivers/gpio/gpiolib-devpro

[PATCHv2 1/3] Documentation: dt: socfpga: Add Arria10 SD-MMC EDAC binding

2016-08-09 Thread tthayer
From: Thor Thayer Add the device tree bindings needed to support the Altera SD-MMC FIFO buffers EDAC on the Arria10 chip. Signed-off-by: Thor Thayer Acked-by: Rob Herring --- v2 No change --- .../bindings/arm/altera/socfpga-eccmgr.txt | 19 +++ 1 file changed, 19 in

[PATCHv2 3/3] ARM: dts: Add Arria10 SD/MMC EDAC devicetree entry

2016-08-09 Thread tthayer
From: Thor Thayer Add the device tree entries needed to support the Altera SD/MMC FIFO buffer EDAC on the Arria10 chip. Signed-off-by: Thor Thayer Acked-by: Dinh Nguyen --- v2 No change --- arch/arm/boot/dts/socfpga_arria10_socdk_sdmmc.dts | 12 1 file changed, 12 insertions(+

[PATCHv2 2/3] EDAC, altera: Add Arria10 SD-MMC EDAC support

2016-08-09 Thread tthayer
From: Thor Thayer Add Altera Arria10 SD-MMC FIFO memory EDAC support. The SD-MMC is a dual port RAM implementation which is different than any of the other peripherals and therefore requires additional code. Signed-off-by: Thor Thayer --- v2 Cleanup PortB initialization by moving device tree s

[PATCHv2 0/3] Add SD/MMC EDAC for Altera Arria10

2016-08-09 Thread tthayer
From: Thor Thayer Add the SD/MMC FIFO EDAC module which is a dual-port RAM as opposed to the other Arria10 peripheral's single port RAM FIFOs. Thor Thayer (3): Documentation: dt: socfpga: Add Arria10 SD-MMC EDAC binding EDAC, altera: Add Arria10 SD-MMC EDAC support ARM: dts: Add Arria10 SD

[PATCH 3/3] ARM: dts: Add Arria10 SD/MMC EDAC devicetree entry

2016-08-02 Thread tthayer
From: Thor Thayer Add the device tree entries needed to support the Altera SD/MMC FIFO buffer EDAC on the Arria10 chip. Signed-off-by: Thor Thayer --- arch/arm/boot/dts/socfpga_arria10_socdk_sdmmc.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/socfpga

[PATCH 1/3] Documentation: dt: socfpga: Add Arria10 SD-MMC EDAC binding

2016-08-02 Thread tthayer
From: Thor Thayer Add the device tree bindings needed to support the Altera SD-MMC FIFO buffers EDAC on the Arria10 chip. Signed-off-by: Thor Thayer --- .../bindings/arm/altera/socfpga-eccmgr.txt | 19 +++ 1 file changed, 19 insertions(+) diff --git a/Documentation/d

[PATCH 2/3] EDAC, altera: Add Arria10 SD-MMC EDAC support

2016-08-02 Thread tthayer
From: Thor Thayer Add Altera Arria10 SD-MMC FIFO memory EDAC support. The SD-MMC is a dual port RAM implementation which is different than any of the other peripherals and therefore requires additional code. Signed-off-by: Thor Thayer --- drivers/edac/Kconfig |7 ++ drivers/edac/alte

[PATCH 0/3] Add SD/MMC EDAC for Altera Arria10

2016-08-02 Thread tthayer
From: Thor Thayer This patch series adds the SD/MMC FIFO EDAC module which is a dual-port RAM as opposed to the other Arria10 peripheral's single port RAM FIFOs. Thor Thayer (3): Documentation: dt: socfpga: Add Arria10 SD-MMC EDAC binding EDAC, altera: Add Arria10 SD-MMC EDAC support ARM:

[PATCH 1/2] EDAC, altera: Rename device trigger to common name

2016-08-19 Thread tthayer
From: Thor Thayer The L2 and OCRAM devices have different ecc trigger names than the other EDAC devices (FIFO peripherals). Make them all the same and remove the character array from the device structure. Signed-off-by: Thor Thayer --- drivers/edac/altera_edac.c | 13 + drivers/e

[PATCH 0/2] Rename Altera EDAC debug triggers

2016-08-19 Thread tthayer
From: Thor Thayer Rename the EDAC debug trigger names to "altr_trigger" for consistency. Thor Thayer (2): EDAC, altera: Rename device trigger to common name EDAC, altera: Rename MC trigger to common name drivers/edac/altera_edac.c | 15 ++- drivers/edac/altera_edac.h |1 -

[PATCH 2/2] EDAC, altera: Rename MC trigger to common name

2016-08-19 Thread tthayer
From: Thor Thayer Rename the Memory Controller debug trigger to the same common name as the EDAC devices. Signed-off-by: Thor Thayer --- drivers/edac/altera_edac.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c ind

[PATCHv2 0/11] Series adding Altera Arria10 L2 Cache EDAC

2016-03-07 Thread tthayer
This version splits the larger patch in V1 into smaller, patches. [PATCHv2 01/11] EDAC: Altera L2 Kconfig change from select to [PATCHv2 02/11] EDAC, altera: Move Device structs and defines to [PATCHv2 03/11] EDAC, altera: Add register offset for ECC Enable [PATCHv2 04/11] EDAC, altera: Add re

[PATCHv2 07/11] EDAC, altera: Add status offset & masks

2016-03-07 Thread tthayer
From: Thor Thayer In preparation for the Arria10 peripheral ECCs, the IRQ status needs to be determined because the IRQs are shared. The IRQ status register is read to determine if the IRQ was for this ECC peripheral. Cyclone5 and Arria5 have dedicated IRQs so the confirmation mechanism is not re

[PATCHv2 11/11] ARM: dts: Add Altera Arria10 L2 Cache EDAC devicetree entry

2016-03-07 Thread tthayer
From: Thor Thayer Add the device tree entries needed to support the Altera L2 cache EDAC on the Arria10 chip. Signed-off-by: Thor Thayer --- v2 Match register value (l2-ecc@ffd06010) --- arch/arm/boot/dts/socfpga_arria10.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git

[PATCHv2 03/11] EDAC, altera: Add register offset for ECC Enable

2016-03-07 Thread tthayer
From: Thor Thayer In preparation for the Arria10 peripheral ECCs, a register offset from the ECC base was added to the private data structure to index into the ECC enable register. Signed-off-by: Thor Thayer --- v2: Split large patch into smaller patches. Add an ECC control offset to suppor

[PATCHv2 08/11] Documentation: dt: socfpga: Add Altera Arria10 L2 cache binding

2016-03-07 Thread tthayer
From: Thor Thayer Add the device tree binding string needed to support the Altera L2 cache on the Arria10 chip. Signed-off-by: Thor Thayer Acked-by: Rob Herring --- v2 Correct spelling of Arria10 in patch title. --- .../bindings/arm/altera/socfpga-eccmgr.txt |3 ++- 1 file changed

[PATCHv2 02/11] EDAC, altera: Move Device structs and defines to header file

2016-03-07 Thread tthayer
From: Thor Thayer Move the device structs and defines to altera_edac.h in preparation for adding the Arria10 L2 cache ECC. Signed-off-by: Thor Thayer --- v2: Split original patch into smaller patches. Move private data and defines into header file. --- drivers/edac/altera_edac.c | 43 ---

[PATCHv2 01/11] EDAC: Altera L2 Kconfig change from select to depends upon.

2016-03-07 Thread tthayer
From: Thor Thayer Force L2 cache dependency instead of forcing selection of L2 cache. Signed-off-by: Thor Thayer --- v2 No change --- drivers/edac/Kconfig |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/edac/Kconfig b/drivers/edac/Kconfig index 37755e6..6ca7

<    1   2   3   >