Distinct SOCFPGA SDRAM EDAC config
cover Distinct SOCFPGA SDRAM EDAC config
From: Thor Thayer <[email protected]>
Most users want EDAC support so make it the default.
SOCFPGA SDRAM EDAC reporting was enabled by the parent EDAC config (CONFIG_ALTERA_EDAC) since initial customers always wanted SDRAM EDAC enabled.
There are cases where the SDRAM needs to be disabled while the other block EDACs remain enabled.
This patch set 1) splits out the SDRAM EDAC into a separate config and 2) enables all the EDAC blocks by default for 32 bit SOCFPGA.
Thor Thayer (2):
EDAC, altera: Add separate SDRAM EDAC config
ARM: socfpga_defconfig: enable EDAC by default
arch/arm/configs/socfpga_defconfig | 36 ++++++++++++-------- drivers/edac/Kconfig | 14 ++++++-- drivers/edac/altera_edac.c | 67 ++++++++++++++++++++------------------ 3 files changed, 69 insertions(+), 48 deletions(-)
Signature · 1 line
2.7.4
PATCH 1/2 EDAC, altera: Add separate SDRAM EDAC config
From: Thor Thayer <[email protected]>
The CONFIG_ALTERA_EDAC flag always enables the SDRAM EDAC. On the newer architectures, there are cases where the peripheral EDACs are enabled but SDRAM needs to be disabled.
This change moves SDRAM functions so they can be contained inside the conditional CONFIG.
Create new CONFIG option just for SDRAM.
--- drivers/edac/Kconfig | 14 +++++++--- drivers/edac/altera_edac.c | 67 +++++++++++++++++++++++++--------------------- 2 files changed, 47 insertions(+), 34 deletions(-)
drivers/edac/Kconfig +11 -3
@@ -391,9 +391,17 @@ config EDAC_ALTERA depends on EDAC=y && (ARCH_SOCFPGA || ARCH_STRATIX10) help Support for error detection and correction on the - Altera SOCs. This must be selected for SDRAM ECC. - Note that the preloader must initialize the SDRAM - before loading the kernel. + Altera SOCs. This is the global enable for the + various Altera peripherals. + +config EDAC_ALTERA_SDRAM + bool "Altera SDRAM ECC" + depends on EDAC_ALTERA=y + help + Support for error detection and correction on the + Altera SDRAM Memory for Altera SoCs. Note that the + preloader must initialize the SDRAM before loading + the kernel. config EDAC_ALTERA_L2C bool "Altera L2 Cache ECC"
drivers/edac/altera_edac.c +36 -31
96 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH 2/2 ARM: socfpga_defconfig: enable EDAC by default
In reply to [email protected]From: Thor Thayer <[email protected]>
Enable the different ECC blocks by default on Cyclone5 and Arria10.
--- arch/arm/configs/socfpga_defconfig | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-)
arch/arm/configs/socfpga_defconfig +22 -14
@@ -9,27 +9,20 @@ CONFIG_NAMESPACES=y CONFIG_BLK_DEV_INITRD=y CONFIG_EMBEDDED=y CONFIG_PROFILING=y -CONFIG_OPROFILE=y -CONFIG_MODULES=y -CONFIG_MODULE_UNLOAD=y -# CONFIG_LBDAF is not set -# CONFIG_BLK_DEV_BSG is not set -# CONFIG_IOSCHED_DEADLINE is not set -# CONFIG_IOSCHED_CFQ is not set CONFIG_ARCH_SOCFPGA=y CONFIG_ARM_THUMBEE=y -CONFIG_PCI=y -CONFIG_PCI_MSI=y -CONFIG_PCIE_ALTERA=y -CONFIG_PCIE_ALTERA_MSI=y CONFIG_SMP=y CONFIG_NR_CPUS=2 -CONFIG_AEABI=y CONFIG_HIGHMEM=y CONFIG_ZBOOT_ROM_TEXT=0x0 CONFIG_ZBOOT_ROM_BSS=0x0 CONFIG_VFP=y CONFIG_NEON=y +CONFIG_OPROFILE=y +CONFIG_MODULES=y +CONFIG_MODULE_UNLOAD=y +# CONFIG_LBDAF is not set +# CONFIG_BLK_DEV_BSG is not set CONFIG_NET=y CONFIG_PACKET=y CONFIG_UNIX=y
@@ -48,6 +41,10 @@ CONFIG_CAN=y CONFIG_CAN_C_CAN=y CONFIG_CAN_C_CAN_PLATFORM=y CONFIG_CAN_DEBUG_DEVICES=y +CONFIG_PCI=y +CONFIG_PCI_MSI=y +CONFIG_PCIE_ALTERA=y +CONFIG_PCIE_ALTERA_MSI=y CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y
@@ -60,7 +57,6 @@ CONFIG_MTD_SPI_NOR=y # CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set CONFIG_SPI_CADENCE_QUADSPI=y CONFIG_OF_OVERLAY=y -CONFIG_OF_CONFIGFS=y CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_COUNT=2 CONFIG_BLK_DEV_RAM_SIZE=8192
@@ -125,18 +121,30 @@ CONFIG_LEDS_GPIO=y CONFIG_LEDS_TRIGGERS=y CONFIG_LEDS_TRIGGER_TIMER=y CONFIG_LEDS_TRIGGER_CPU=y +CONFIG_EDAC=y +CONFIG_EDAC_ALTERA=y +CONFIG_EDAC_ALTERA_SDRAM=y +CONFIG_EDAC_ALTERA_L2C=y +CONFIG_EDAC_ALTERA_OCRAM=y +CONFIG_EDAC_ALTERA_ETHERNET=y +CONFIG_EDAC_ALTERA_NAND=y +CONFIG_EDAC_ALTERA_DMA=y +CONFIG_EDAC_ALTERA_USB=y +CONFIG_EDAC_ALTERA_QSPI=y +CONFIG_EDAC_ALTERA_SDMMC=y CONFIG_RTC_CLASS=y CONFIG_RTC_DRV_DS1307=y CONFIG_DMADEVICES=y CONFIG_PL330_DMA=y CONFIG_DMATEST=m +CONFIG_RAS=y CONFIG_FPGA=y -CONFIG_FPGA_REGION=y CONFIG_FPGA_MGR_SOCFPGA=y CONFIG_FPGA_MGR_SOCFPGA_A10=y CONFIG_FPGA_BRIDGE=y CONFIG_SOCFPGA_FPGA_BRIDGE=y CONFIG_ALTERA_FREEZE_BRIDGE=y +CONFIG_FPGA_REGION=y CONFIG_EXT2_FS=y CONFIG_EXT2_FS_XATTR=y CONFIG_EXT2_FS_POSIX_ACL=y
Signature · 1 line
2.7.4
Dinh Nguyen
maintainerRe: [PATCH 2/2] ARM: socfpga_defconfig: enable EDAC by default
Hi Thor,
Quoted 10 lines · On 2/19/19 12:59 PM, [email protected] wrote:
From: Thor Thayer <[email protected]>
Enable the different ECC blocks by default on Cyclone5 and Arria10.
Signed-off-by Thor Thayer <[email protected]>--- arch/arm/configs/socfpga_defconfig | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-)
Looks like you did a 'make savedefconfig' on this as well? can you please rebase your patch to the arm/defconfig on the arm-soc tree?
Thanks,
Dinh
Re: [PATCH 2/2] ARM: socfpga_defconfig: enable EDAC by default
Quoted 14 lines · Dinh Nguyen
Hi Thor,
Quoted 10 lines · On 2/19/19 12:59 PM, [email protected] wrote:
From: Thor Thayer <[email protected]>
Enable the different ECC blocks by default on Cyclone5 and Arria10.
Signed-off-by Thor Thayer <[email protected]>--- arch/arm/configs/socfpga_defconfig | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-)
Quoted 6 lines
Looks like you did a 'make savedefconfig' on this as well? can you please rebase your patch to the arm/defconfig on the arm-soc tree?
Thanks,
Dinh
Yes. I'll send a V2 shortly. Thanks for reviewing.