All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Tyser <ptyser@xes-inc.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/7] 83xx/85xx/86xx: Add ECC support
Date: Mon, 09 Nov 2009 18:32:19 -0600	[thread overview]
Message-ID: <1257813139.10661.23.camel@localhost.localdomain> (raw)
In-Reply-To: <D7CCA83BB0796C49BC0BB53B6AB1208979FDF1@zch01exm21.fsl.freescale.net>

On Tue, 2009-11-10 at 08:25 +0800, Liu Dave-R63238 wrote:
> How to use these command to test the ECC?
> Specially, how to inject multi error in 64bit data bus?

<snip>

> > +U_BOOT_CMD(ecc, 5, 0, do_ecc,
> > +	"support for DDR ECC features",
> > +	"info - print ECC information\n"
> > +#if (CONFIG_NUM_DDR_CONTROLLERS > 1)
> > +	"ecc ctrl [num]\n"
> > +	"\t-Set active controller to 'num', or display active 
> > controller\n"
> > +#endif
> > +	"ecc inject high <mask>\n"
> > +	"ecc inject low <mask>\n"
> > +	"ecc inject ecc <mask>\n"
> > +	"\t- XOR 'mask' with high/low data or ECC\n"
> > +	"ecc inject off\n"
> > +	"\t- disable error injection\n"
> > +);

Hi Dave,
You can inject data in the upper/lower 32 bit data path, or in the ecc
path using the "ecc inject" command shown above.  The inject command
takes a mask that is XORed with the proper data, eg "ecc inject low 0x5"
would result in data bits 0 and 2 always being swapped resulting in
multibit errors.

Or you could ground 2 data pins on the PCB:)

Peter

  reply	other threads:[~2009-11-10  0:32 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-09 23:37 [U-Boot] [PATCH v2 0/7] 83xx/85xx/86xx ECC update Peter Tyser
2009-11-09 23:37 ` [U-Boot] [PATCH 1/7] 83xx: Add CCSR DDR register offsets Peter Tyser
2009-11-09 23:37 ` [U-Boot] [PATCH 2/7] 85xx/86xx: Add ECC error injection defines Peter Tyser
2009-11-09 23:37 ` [U-Boot] [PATCH 3/7] 83xx/85xx/86xx: Add ECC support Peter Tyser
2009-11-10  0:25   ` Liu Dave-R63238
2009-11-10  0:32     ` Peter Tyser [this message]
2009-11-10  0:38       ` Liu Dave-R63238
2009-11-10  0:42         ` Liu Dave-R63238
2009-11-10  0:46           ` Liu Dave-R63238
2009-11-10  1:01           ` Peter Tyser
2009-11-10  1:08             ` Liu Dave-R63238
2009-11-10  1:20               ` Peter Tyser
2009-11-10  2:15                 ` Ira W. Snyder
2009-11-10  3:07                   ` Peter Tyser
2009-11-10 16:51                     ` Ira W. Snyder
2009-11-10 17:36                       ` Peter Tyser
2009-11-10 17:53                         ` Ira W. Snyder
2009-11-09 23:37 ` [U-Boot] [PATCH 4/7] 83xx: Migrate CONFIG_DDR_ECC_CMD to CONFIG_EDAC_FSL_ECC Peter Tyser
2009-11-10  0:51   ` [U-Boot] [PATCH 4/7] 83xx: Migrate CONFIG_DDR_ECC_CMD toCONFIG_EDAC_FSL_ECC Liu Dave-R63238
2009-11-10  1:09     ` Peter Tyser
2009-11-09 23:37 ` [U-Boot] [PATCH 5/7] Add check for ECC errors during SDRAM POST and mtest Peter Tyser
2009-11-09 23:37 ` [U-Boot] [PATCH 6/7] xes: Add 8xxx post support Peter Tyser
2009-11-09 23:37 ` [U-Boot] [PATCH 7/7] xes: Enable memory POST and ECC error reporting Peter Tyser
2009-12-16 15:55 ` [U-Boot] [PATCH v2 0/7] 83xx/85xx/86xx ECC update Peter Tyser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1257813139.10661.23.camel@localhost.localdomain \
    --to=ptyser@xes-inc.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.