Linux on ARM based TI OMAP SoCs
 help / color / mirror / Atom feed
From: Matthieu CASTET <matthieu.castet@parrot.com>
To: "Gupta, Pekon" <pekon@ti.com>
Cc: "Thomas Petazzoni" <thomas.petazzoni@free-electrons.com>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"Mike Dunn" <mikedunn@newsguy.com>,
	"Ezequiel Garcia" <ezequiel.garcia@free-electrons.com>,
	"Tony Lindgren" <tony@atomide.com>,
	"Enric Balletbo Serra" <eballetbo@gmail.com>,
	"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
	"Peter Meerwald" <pmeerw@pmeerw.net>,
	"Javier Martinez Canillas" <javier@dowhile0.org>,
	"Brian Norris" <computersforpeace@gmail.com>,
	"Andreas Bießmann" <andreas.biessmann@corscience.de>
Subject: Re: OMAP3 NAND ECC selection
Date: Mon, 9 Dec 2013 12:06:09 +0100	[thread overview]
Message-ID: <20131209120609.08e62b40@parrot.com> (raw)
In-Reply-To: <20980858CB6D3A4BAE95CA194937D5E73EA52ADF@DBDE04.ent.ti.com>

Le Mon, 9 Dec 2013 04:33:51 +0000,
"Gupta, Pekon" <pekon@ti.com> a écrit :

> Hi,
> 
> >From: Thomas Petazzoni [mailto:thomas.petazzoni@free-electrons.com]
> >>On Thu, 5 Dec 2013 11:24:18 -0800, Brian Norris wrote:
> [...]
> 
> >> Using 1-bit ECC on NAND is not a long-term solution. Given that
> >> fact, I think your ROM code is what may need to change, not the
> >> entire MTD subsystem.
> >
> >As someone (Tom Rini maybe?) pointed out, today the shift is 1-bit
> >ECC supported by ROM code vs. 4 or 8 bits required by NAND. But we
> >can very well imagine that tomorrow ROM code will support BCH4 (and
> >the NAND will ensure block 0 is OK for use with BCH4) but the rest
> >of the NAND will require BCH16 or something like that.
> >
> >I'm not designing ROM code, and the fact that they today have this
> >limitation, should be an indication that Linux should be capable of
> >handling different ECC schemes to handle those hardware constraints.
> >
> Just to highlight few more points:
> (1) ROM code on newer OMAP platforms like AM33xx do have the ability
> to select ECC scheme by reading a specific location from EEPROM
> connected to I2C0. 
AFAIK on omap3, the rom code first try to read data with bch and if it
doesn't work it fallback on haming 1 bit ecc.

> 
> (2) And going forward, ECC based NAND devices may be phased out,
> and BE-NAND (Built-in) NAND devices are becoming popular. As both
> cost and density wise they are same to SLC NANDs today.  Thus issue
> of un-compatibility of ecc-scheme with ROM code, will not hold true.
> We already have some BE-NAND support in our generic driver.
> http://patchwork.ozlabs.org/patch/222186/
> 
Yes but these flash are not always compatible with the ROM.

If the rom is expecting some ECC and the internal controller expect
other ecc you are stuck.


Matthieu

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

  reply	other threads:[~2013-12-09 11:06 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-05  9:13 OMAP3 NAND ECC selection Peter Meerwald
2013-12-05  9:47 ` Enric Balletbo Serra
2013-12-05  9:59   ` Andreas Bießmann
2013-12-05 16:12     ` Peter Meerwald
2013-12-05 17:13       ` Tony Lindgren
2013-12-05 17:39         ` Javier Martinez Canillas
2013-12-05 18:26           ` Ezequiel Garcia
2013-12-05 18:58             ` Javier Martinez Canillas
2013-12-05 19:02             ` Gupta, Pekon
2013-12-05 19:06               ` Thomas Petazzoni
2013-12-05 19:24                 ` Brian Norris
2013-12-05 19:32                   ` Thomas Petazzoni
2013-12-05 19:38                     ` Tony Lindgren
2013-12-08 20:59                       ` Mike Dunn
2013-12-09  4:33                     ` Gupta, Pekon
2013-12-09 11:06                       ` Matthieu CASTET [this message]
2013-12-09 11:50                         ` Gupta, Pekon
2013-12-05 19:13             ` Brian Norris
2013-12-06 17:35         ` Andreas Bießmann
2013-12-06 14:54   ` Peter Meerwald

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=20131209120609.08e62b40@parrot.com \
    --to=matthieu.castet@parrot.com \
    --cc=andreas.biessmann@corscience.de \
    --cc=computersforpeace@gmail.com \
    --cc=eballetbo@gmail.com \
    --cc=ezequiel.garcia@free-electrons.com \
    --cc=javier@dowhile0.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=mikedunn@newsguy.com \
    --cc=pekon@ti.com \
    --cc=pmeerw@pmeerw.net \
    --cc=thomas.petazzoni@free-electrons.com \
    --cc=tony@atomide.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox