8xxx: Add 'ecc' command
PATCH 1/5 8xxx: Add 'ecc' command
Add a new 'ecc' command to interact with the 85xx and 86xx DDR ECC registers. The 'ecc' command can inject data/ECC errors to simulate errors and provides an 'info' subcommand which displays ECC error information such as failure address, read vs expected data/ECC, physical signal which failed, single-bit error count, and multiple bit error occurrence. An example of the 'ecc info' command follows:
WARNING: ECC error in DDR Controller 0
Addr: 0x0_01001000
Data: 0x00000001_00000000 ECC: 0x00
Expect: 0x00000000_00000000 ECC: 0x00
Net: DATA32
Syndrome: 0xce
Single-Bit errors: 0x40
Attrib: 0x30112001
Detect: 0x80000004 (MME, SBE)---
This code was tested on a 8572, 8640, and P2020. A board with a 32-bit data bus was not tested however.
cpu/mpc8xxx/ddr/Makefile | 2 + cpu/mpc8xxx/ddr/ecc.c | 371 ++++++++++++++++++++++++++++++++++++++++++ include/asm-ppc/immap_85xx.h | 4 + include/asm-ppc/immap_86xx.h | 3 + 4 files changed, 380 insertions(+), 0 deletions(-) create mode 100644 cpu/mpc8xxx/ddr/ecc.c
cpu/mpc8xxx/ddr/Makefile +2 -0
@@ -22,6 +22,8 @@ COBJS-$(CONFIG_FSL_DDR3) += main.o util.o ctrl_regs.o options.o \ lc_common_dimm_params.o COBJS-$(CONFIG_FSL_DDR3) += ddr3_dimm_params.o +COBJS-$(CONFIG_DDR_ECC_CMD) += ecc.o + SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
cpu/mpc8xxx/ddr/ecc.c new file +371 -0
371 lines not on this page · raw message
include/asm-ppc/immap_85xx.h +4 -0
@@ -167,6 +167,10 @@ typedef struct ccsr_ddr {u32 data_err_inject_hi;/* Data Path Err Injection Mask High */ u32 data_err_inject_lo;/* Data Path Err Injection Mask Low */ u32 ecc_err_inject;/* Data Path Err Injection Mask ECC */ +#define ECC_ERR_INJECT_APIEN 0x00010000/* Address Parity Injection */ +#define ECC_ERR_INJECT_EMB 0x00000200/* ECC Mirror Byte */ +#define ECC_ERR_INJECT_EIEN 0x00000100/* Error Injection Enable */ +#define ECC_ERR_INJECT_EEIM 0x000000ff/* ECC Erroe Injection Enable */ u8 res9[20 ];u32 capture_data_hi;/* Data Path Read Capture High */ u32 capture_data_lo;/* Data Path Read Capture Low */
include/asm-ppc/immap_86xx.h +3 -0
@@ -135,6 +135,9 @@ typedef struct ccsr_ddr {uint data_err_inject_hi;/* 0x2e00 - DDR Memory Data Path Error Injection Mask High */ uint data_err_inject_lo;/* 0x2e04 - DDR Memory Data Path Error Injection Mask Low */ uint ecc_err_inject;/* 0x2e08 - DDR Memory Data Path Error Injection Mask ECC */ +#define ECC_ERR_INJECT_EMB 0x00000200/* ECC Mirror Byte */ +#define ECC_ERR_INJECT_EIEN 0x00000100/* Error Injection Enable */ +#define ECC_ERR_INJECT_EEIM 0x000000ff/* ECC Erroe Injection Enable */ char res12[20 ];uint capture_data_hi;/* 0x2e20 - DDR Memory Data Path Read Capture High */ uint capture_data_lo;/* 0x2e24 - DDR Memory Data Path Read Capture Low */
Signature · 1 line
1.6.2.1
PATCH 2/5 Add check for ECC errors during SDRAM POST and mtest
Add a CONFIG_CHECK_ECC_ERRORS define which causes the SDRAM POST and mtest command to check for ECC errors during execution.
The 85xx and 86xx architectures currently support enabling CONFIG_CHECK_ECC_ERRORS. Other architectures/boards can use it if they implement an ecc_count() and ecc_info() function.
--- common/cmd_mem.c | 10 ++++++++++ cpu/mpc8xxx/ddr/Makefile | 2 +- cpu/mpc8xxx/ddr/ecc.c | 4 ++++ include/common.h | 6 ++++++ post/drivers/memory.c | 5 +++++ 5 files changed, 26 insertions(+), 1 deletions(-)
common/cmd_mem.c +10 -0
@@ -691,6 +691,11 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) __FUNCTION__, __LINE__, start, end);for (;;) { +#ifdef CONFIG_CHECK_ECC_ERRORS +if (ecc_count ()) +ecc_info (); +#endif +if (ctrlc ()) {putc ('\n' );return 1 ;
@@ -917,6 +922,11 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])#else /* The original, quickie test */ incr =1 ;for (;;) { +#ifdef CONFIG_CHECK_ECC_ERRORS +if (ecc_count ()) +ecc_info (); +#endif +if (ctrlc ()) {putc ('\n' );return 1 ;
cpu/mpc8xxx/ddr/Makefile +1 -1
@@ -22,7 +22,7 @@ COBJS-$(CONFIG_FSL_DDR3) += main.o util.o ctrl_regs.o options.o \ lc_common_dimm_params.o COBJS-$(CONFIG_FSL_DDR3) += ddr3_dimm_params.o -COBJS-$(CONFIG_DDR_ECC_CMD) += ecc.o +COBJS-$(CONFIG_DDR_ECC) += ecc.o SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
cpu/mpc8xxx/ddr/ecc.c +4 -0
@@ -21,6 +21,7 @@*/ #include <common.h> +#if (defined(CONFIG_DDR_ECC_CMD ) || defined(CONFIG_CHECK_ECC_ERRORS ))#include <asm/io.h> #if defined(CONFIG_MPC85xx)#include <mpc85xx.h>
@@ -279,7 +280,9 @@ void ecc_info(void) in_be32(&ddr[controller]->err_sbe) & ~0xff); } } +#endif /* CONFIG_DDR_ECC_CMD || CONFIG_CHECK_ECC_ERRORS */ +#ifdef CONFIG_DDR_ECC_CMD static int do_ecc (cmd_tbl_t * cmdtp,int flag,int argc,char *argv[]) {static uint controller =0 ;
@@ -369,3 +372,4 @@ U_BOOT_CMD(ecc, 5, 0, do_ecc,"ecc inject off\n" "\t- disable error injection\n" ); +#endif /* CONFIG_DDR_ECC_CMD */
include/common.h +6 -0
@@ -556,6 +556,12 @@ int prt_8260_rsr (void);int prt_83xx_rsr (void );#endif +/* $(CPU)/ecc.c */ +#ifdef CONFIG_CHECK_ECC_ERRORS +void ecc_info (void ); +int ecc_count (void ); +#endif +/* $(CPU)/interrupts.c */ int interrupt_init (void );void timer_interrupt (struct pt_regs *);
post/drivers/memory.c +5 -0
@@ -477,6 +477,11 @@ int memory_post_test (int flags) } } +#ifdef CONFIG_CHECK_ECC_ERRORS +if (ecc_count ()) +printf ("WARNING: %d ECC errors detected!!\n" ,ecc_count ()); +#endif +return ret; }
Signature · 1 line
1.6.2.1
PATCH 3/5 xes: Enable the 'ecc' command
In reply to Peter TyserEnable the 'ecc' command for XES's 85xx and 86xx boards.
--- include/configs/XPEDITE5170.h | 1 + include/configs/XPEDITE5200.h | 1 + include/configs/XPEDITE5370.h | 1 + 3 files changed, 3 insertions(+), 0 deletions(-)
include/configs/XPEDITE5170.h +1 -0
@@ -62,6 +62,7 @@#define CONFIG_DIMM_SLOTS_PER_CTLR 1#define CONFIG_CHIP_SELECTS_PER_CTRL 1#define CONFIG_DDR_ECC +#define CONFIG_DDR_ECC_CMD #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER #define CONFIG_SYS_DDR_SDRAM_BASE 0x00000000/* DDR is system memory*/ #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE
include/configs/XPEDITE5200.h +1 -0
@@ -59,6 +59,7 @@#define CONFIG_DIMM_SLOTS_PER_CTLR 1#define CONFIG_CHIP_SELECTS_PER_CTRL 2#define CONFIG_DDR_ECC +#define CONFIG_DDR_ECC_CMD #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER #define CONFIG_SYS_DDR_SDRAM_BASE 0x00000000#define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE
include/configs/XPEDITE5370.h +1 -0
@@ -63,6 +63,7 @@#define CONFIG_DIMM_SLOTS_PER_CTLR 1#define CONFIG_CHIP_SELECTS_PER_CTRL 1#define CONFIG_DDR_ECC +#define CONFIG_DDR_ECC_CMD #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER #define CONFIG_SYS_DDR_SDRAM_BASE 0x00000000/* DDR is system memory*/ #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE
Signature · 1 line
1.6.2.1
PATCH 3/5 xes: Enable the 'ecc' command
Dear Kumar,
Quoted 1 line · In message <[email protected]> Peter Tyser…
Enable the 'ecc' command for XES's 85xx and 86xx boards.
What's the state of these three patches:
[PATCH 3/5] xes: Enable the 'ecc' command
[PATCH 4/5] xes: Enable memory POST
[PATCH 5/5] xes: Enable ECC error checks during SDRAM POST and mtest
See also
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/70205/focus=70203
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/70205/focus=70204
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/70205/focus=70202
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Imagination is more important than knowledge. -- Albert Einstein
PATCH 3/5 xes: Enable the 'ecc' command
Quoted 12 lines · Wolfgang Denk
Dear Kumar,
Quoted 1 line · In message <[email protected]> Peter Tyser…
Enable the 'ecc' command for XES's 85xx and 86xx boards.
What's the state of these three patches:
[PATCH 3/5] xes: Enable the 'ecc' command
[PATCH 4/5] xes: Enable memory POST
[PATCH 5/5] xes: Enable ECC error checks during SDRAM POST and mtest
Quoted 5 lines
See also
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/70205/focus=70203
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/70205/focus=70204
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/70205/focus=70202
This series was resubmitted as v2 here:
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/71317/focus=71323
There was some debate about the changes to the 83xx boards, but the conversation died off. The patches are still OK in my opinion. If others have suggestions I'd be happy to resubmit, otherwise hopefully they get picked up as is.
Best,
Peter
PATCH 4/5 xes: Enable memory POST
In reply to Peter TyserNote that SPRG4 is used to store U-Boot's post 'word'.
--- board/xes/common/Makefile | 1 + board/xes/common/fsl_8xxx_post.c | 36 ++++++++++++++++++++++++++++++++++++ include/configs/XPEDITE5170.h | 1 + include/configs/XPEDITE5200.h | 1 + include/configs/XPEDITE5370.h | 1 + 5 files changed, 40 insertions(+), 0 deletions(-) create mode 100644 board/xes/common/fsl_8xxx_post.c
board/xes/common/Makefile +1 -0
@@ -33,6 +33,7 @@ COBJS-$(CONFIG_FSL_PCI_INIT) += fsl_8xxx_pci.o COBJS-$(CONFIG_MPC8572) += fsl_8xxx_clk.o COBJS-$(CONFIG_MPC86xx) += fsl_8xxx_clk.o COBJS-$(CONFIG_FSL_DDR2) += fsl_8xxx_ddr.o +COBJS-$(CONFIG_HAS_POST) += fsl_8xxx_post.o COBJS-$(CONFIG_NAND_ACTL) += actl_nand.o SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
board/xes/common/fsl_8xxx_post.c new file +36 -0
@@ -0,0 +1,36 @@ +/* +* Copyright 2008 Extreme Engineering Solutions, Inc. +* +* See file CREDITS for list of people who contributed to this +* project. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#include <common.h> +#include <asm/processor.h> + +int post_hotkeys_pressed (void ) { +return 0 ; +} + +void post_word_store (ulong a) { +mtspr (SPRG4 , a); +} + +ulong post_word_load (void ) { +return mfspr (SPRG4 ); +}
include/configs/XPEDITE5170.h +1 -0
@@ -107,6 +107,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);#define CONFIG_SYS_ALT_MEMTEST #define CONFIG_SYS_MEMTEST_START 0x10000000#define CONFIG_SYS_MEMTEST_END 0x20000000 +#define CONFIG_POST (CONFIG_SYS_POST_MEMORY)/* * Memory map
include/configs/XPEDITE5200.h +1 -0
@@ -90,6 +90,7 @@#define CONFIG_SYS_ALT_MEMTEST #define CONFIG_SYS_MEMTEST_START 0x10000000#define CONFIG_SYS_MEMTEST_END 0x20000000 +#define CONFIG_POST (CONFIG_SYS_POST_MEMORY)/* * Memory map
include/configs/XPEDITE5370.h +1 -0
@@ -101,6 +101,7 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);#define CONFIG_SYS_ALT_MEMTEST #define CONFIG_SYS_MEMTEST_START 0x10000000#define CONFIG_SYS_MEMTEST_END 0x20000000 +#define CONFIG_POST (CONFIG_SYS_POST_MEMORY)/* * Memory map
Signature · 1 line
1.6.2.1
PATCH 5/5 xes: Enable ECC error checks during SDRAM POST and mtest
In reply to Peter TyserEnable ECC error checking on XES's 85xx and 86xx boards.
--- include/configs/XPEDITE5170.h | 1 + include/configs/XPEDITE5200.h | 1 + include/configs/XPEDITE5370.h | 1 + 3 files changed, 3 insertions(+), 0 deletions(-)
include/configs/XPEDITE5170.h +1 -0
@@ -108,6 +108,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);#define CONFIG_SYS_MEMTEST_START 0x10000000#define CONFIG_SYS_MEMTEST_END 0x20000000#define CONFIG_POST (CONFIG_SYS_POST_MEMORY) +#define CONFIG_CHECK_ECC_ERRORS /* Check ECC count during POST/mtest */ /* * Memory map
include/configs/XPEDITE5200.h +1 -0
@@ -91,6 +91,7 @@#define CONFIG_SYS_MEMTEST_START 0x10000000#define CONFIG_SYS_MEMTEST_END 0x20000000#define CONFIG_POST (CONFIG_SYS_POST_MEMORY) +#define CONFIG_CHECK_ECC_ERRORS /* Check ECC count during POST/mtest */ /* * Memory map
include/configs/XPEDITE5370.h +1 -0
@@ -102,6 +102,7 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);#define CONFIG_SYS_MEMTEST_START 0x10000000#define CONFIG_SYS_MEMTEST_END 0x20000000#define CONFIG_POST (CONFIG_SYS_POST_MEMORY) +#define CONFIG_CHECK_ECC_ERRORS /* Check ECC count during POST/mtest */ /* * Memory map
Signature · 1 line
1.6.2.1
PATCH 1/5 8xxx: Add 'ecc' command
In reply to Peter TyserQuoted 40 lines · Peter Tyser
Add a new 'ecc' command to interact with the 85xx and 86xx DDR ECC registers. The 'ecc' command can inject data/ECC errors to simulate errors and provides an 'info' subcommand which displays ECC error information such as failure address, read vs expected data/ECC, physical signal which failed, single-bit error count, and multiple bit error occurrence. An example of the 'ecc info' command follows:
WARNING: ECC error in DDR Controller 0
Addr: 0x0_01001000 Data: 0x00000001_00000000 ECC: 0x00 Expect: 0x00000000_00000000 ECC: 0x00 Net: DATA32 Syndrome: 0xce Single-Bit errors: 0x40 Attrib: 0x30112001 Detect: 0x80000004 (MME, SBE)Signed-off-by Peter Tyser <[email protected]>Signed-off-by John Schmoller <[email protected]>---
This code was tested on a 8572, 8640, and P2020. A board with a 32-bit data bus was not tested however.cpu/mpc8xxx/ddr/Makefile | 2 +
cpu/mpc8xxx/ddr/ecc.c| 371 +++++++++++++++++++++++++++++++++
+++++++++include/asm-ppc/immap_85xx.h | 4 + include/asm-ppc/immap_86xx.h | 3 + 4 files changed, 380 insertions(+), 0 deletions(-)create mode 100644
cpu/mpc8xxx/ddr/ecc.ccpu/mpc8xxx/ddr/Makefile +0
-0@@ -22,6 +22,8 @@ COBJS-$(CONFIG_FSL_DDR3) += main.o util.o ctrl_regs.o options.o \ lc_common_dimm_params.oCOBJS-$(CONFIG_FSL_DDR3) += ddr3_dimm_params.o
Quoted 1 line
+COBJS-$(CONFIG_DDR_ECC_CMD) += ecc.o
Should this be CONFIG_FSL_DDR_ECC_CMD ?
Quoted 3 lines
+
SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
PATCH 1/5 8xxx: Add 'ecc' command
Quoted 43 lines · Kumar Gala
Quoted 40 lines · Peter Tyser
Add a new 'ecc' command to interact with the 85xx and 86xx DDR ECC registers. The 'ecc' command can inject data/ECC errors to simulate errors and provides an 'info' subcommand which displays ECC error information such as failure address, read vs expected data/ECC, physical signal which failed, single-bit error count, and multiple bit error occurrence. An example of the 'ecc info' command follows:
WARNING: ECC error in DDR Controller 0
Addr: 0x0_01001000 Data: 0x00000001_00000000 ECC: 0x00 Expect: 0x00000000_00000000 ECC: 0x00 Net: DATA32 Syndrome: 0xce Single-Bit errors: 0x40 Attrib: 0x30112001 Detect: 0x80000004 (MME, SBE)Signed-off-by Peter Tyser <[email protected]>Signed-off-by John Schmoller <[email protected]>---
This code was tested on a 8572, 8640, and P2020. A board with a 32-bit data bus was not tested however.cpu/mpc8xxx/ddr/Makefile | 2 +
cpu/mpc8xxx/ddr/ecc.c| 371
++++++++++++++++++++++++++++++++++++++++++include/asm-ppc/immap_85xx.h | 4 + include/asm-ppc/immap_86xx.h | 3 + 4 files changed, 380 insertions(+), 0 deletions(-)create mode 100644
cpu/mpc8xxx/ddr/ecc.ccpu/mpc8xxx/ddr/Makefile +0
-0@@ -22,6 +22,8 @@ COBJS-$(CONFIG_FSL_DDR3) += main.o util.o ctrl_regs.o options.o \ lc_common_dimm_params.oCOBJS-$(CONFIG_FSL_DDR3) += ddr3_dimm_params.o
Quoted 3 lines
Quoted 1 line
+COBJS-$(CONFIG_DDR_ECC_CMD) += ecc.o
Should this be
CONFIG_FSL_DDR_ECC_CMD?
I leaned towards CONFIG_DDR_ECC_CMD to prevent polluting the CONFIG_ namespace. We could add a new CONFIG_FSL_DDR_ECC_CMD, CONFIG_AVR32_DDR_ECC_CMD, etc, but I think (CONFIG_MPC85xx + CONFIG_DDR_ECC_CMD), (CONFIG_AVR32 + CONFIG_DDR_ECC_CMD), etc accomplishes the same thing, but only adds 1 new CONFIG_DDR_ECC_CMD config option. Doesn't really matter to me either way though...
Peter
PATCH 1/5 8xxx: Add 'ecc' command
In reply to Peter TyserDear Peter Tyser,
Quoted 6 lines · In message <[email protected]> you wrote:
Add a new 'ecc' command to interact with the 85xx and 86xx DDR ECC registers. The 'ecc' command can inject data/ECC errors to simulate errors and provides an 'info' subcommand which displays ECC error information such as failure address, read vs expected data/ECC, physical signal which failed, single-bit error count, and multiple bit error occurrence. An example of the 'ecc info' command follows:
We already have similar commands for other architectures, see for example cpu/mpc83xx/ecc.c
I'm not sure if it's possible to use a common implementation, but I would like to ask you to check if this is possible.
In any case I ask that we use a common user interface for both implementations. It makes no sense that the same command name behaves differently on different boards (even from the same vendor).
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "...one of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs." - Robert Firth
PATCH 1/5 8xxx: Add 'ecc' command
Hi Wolfgang,
Quoted 8 lines
Quoted 6 lines · In message <[email protected]> you wrote:
Add a new 'ecc' command to interact with the 85xx and 86xx DDR ECC registers. The 'ecc' command can inject data/ECC errors to simulate errors and provides an 'info' subcommand which displays ECC error information such as failure address, read vs expected data/ECC, physical signal which failed, single-bit error count, and multiple bit error occurrence. An example of the 'ecc info' command follows:
Quoted 5 lines
We already have similar commands for other architectures, see for example
cpu/mpc83xx/ecc.cI'm not sure if it's possible to use a common implementation, but I would like to ask you to check if this is possible.
83xx, 85xx, and 86xx could all share an implementation I believe. I didn't integrate the 83xx in this patch because it seemed to have a different "goal" than the patch I submitted. The 83xx implementation supported a high degree of tweaking registers which I personally find unnecessary for general use. I think that if someone wants that level of control, they could just modify the registers directly since they have to have the 83xx user's manual handy anyway.
The implementation I submitted has limited, common features and much better error reporting. The error reporting is the feature that would be used 98% of the time, not the tweaking of registers. I'd be happy to include the 83xx implementation in this patch, but I'd vote to strip out most of the current 83xx features - ie basically remove the 83xx ecc code and replace it with the 85/86xx implementation I submitted. Would 83xx people be OK with this? Or have any suggestions on what the combined implementation should look like?
Quoted 3 lines
In any case I ask that we use a common user interface for both implementations. It makes no sense that the same command name behaves differently on different boards (even from the same vendor).
I see your point. As far as a common implementation, what did you have in mind? Are you referring to only consolidating the 83xx/85xx/86xx implementations? I'm fine with that, but don't think you could expand the "common interface" much past them as ECC reporting/injection features vary greatly from architecture to architecture.
Best,
Peter
PATCH 1/5 8xxx: Add 'ecc' command
Dear Peter,
Quoted 8 lines · In message <[email protected]> you wrote:
83xx, 85xx, and 86xx could all share an implementation I believe. I didn't integrate the 83xx in this patch because it seemed to have a different "goal" than the patch I submitted. The 83xx implementation supported a high degree of tweaking registers which I personally find unnecessary for general use. I think that if someone wants that level of control, they could just modify the registers directly since they have to have the 83xx user's manual handy anyway.
Agreed.
Quoted 8 lines
The implementation I submitted has limited, common features and much better error reporting. The error reporting is the feature that would be used 98% of the time, not the tweaking of registers. I'd be happy to include the 83xx implementation in this patch, but I'd vote to strip out most of the current 83xx features - ie basically remove the 83xx ecc code and replace it with the 85/86xx implementation I submitted. Would 83xx people be OK with this? Or have any suggestions on what the combined implementation should look like?
I have yet to see a user who actually uses the existing code on 83xx, so as far as I am concerned I'll be fine with the common, simpler code.
Quoted 5 lines
I see your point. As far as a common implementation, what did you have in mind? Are you referring to only consolidating the 83xx/85xx/86xx implementations? I'm fine with that, but don't think you could expand the "common interface" much past them as ECC reporting/injection features vary greatly from architecture to architecture.
So far, this only affexts 8xxx, and having consistent code ther eis good enough for me now. We may want to check this again when other architectures raise their concerns and formulate their needs, but this is then.
Thanks.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Of all the things I've lost, I miss my mind the most.
PATCH 1/5 8xxx: Add 'ecc' command
Quoted 31 lines
Quoted 7 lines · In message <[email protected]> you wrote:
83xx, 85xx, and 86xx could all share an implementation I believe. I didn't integrate the 83xx in this patch because it seemed to have a different "goal" than the patch I submitted. The 83xx implementation supported a high degree of tweaking registers which I personally find unnecessary for general use. I think that if someone wants that level of control, they could just modify the registers directly since they have to have the 83xx user's manual handy anyway.
Agreed.
Quoted 8 lines
The implementation I submitted has limited, common features and much better error reporting. The error reporting is the feature that would be used 98% of the time, not the tweaking of registers. I'd be happy to include the 83xx implementation in this patch, but I'd vote to strip out most of the current 83xx features - ie basically remove the 83xx ecc code and replace it with the 85/86xx implementation I submitted. Would 83xx people be OK with this? Or have any suggestions on what the combined implementation should look like?
I have yet to see a user who actually uses the existing code on 83xx, so as far as I am concerned I'll be fine with the common, simpler code.
Quoted 5 lines
I see your point. As far as a common implementation, what did you have in mind? Are you referring to only consolidating the 83xx/85xx/86xx implementations? I'm fine with that, but don't think you could expand the "common interface" much past them as ECC reporting/injection features vary greatly from architecture to architecture.
Quoted 4 lines
So far, this only affexts 8xxx, and having consistent code ther eis good enough for me now. We may want to check this again when other architectures raise their concerns and formulate their needs, but this is then.
Sounds good. I'll rework and resubmit.
Best,
Peter