From: Thomas Gleixner <tglx@linutronix.de>
To: "DataCom - Virgílio" <virgilio@datacom-telematica.com.br>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Single bit error correction on NAND.
Date: Thu, 28 Jul 2005 23:06:43 +0200 [thread overview]
Message-ID: <1122584803.26146.55.camel@tglx.tec.linutronix.de> (raw)
In-Reply-To: <200507281640.54771.virgilio@datacom-telematica.com.br>
On Thu, 2005-07-28 at 16:40 -0300, DataCom - Virgílio wrote:
> I have noticed that NAND support on MTD can detect/correct single bit errors
> in 256 bytes, using software ECC. However, the correct data is not written
> back to flash. In other words, the bit stays "flipped" in flash. Isn't that
> dangerous? I mean, if another bitflip occurs in the same 256 bytes, we won't
> be able to correct by software ECC...
>
> Am I missing something here?
Yes.
It is not and can not be the responsibility of the NAND driver to handle
this. Where to should it write the data ? The existing data _cannot_ be
overwritten, without erasing the whole eraseblock and the implied risk
of loosing _ALL_ the data on the block due to a powerfail.
The NAND driver returns the corrected data and an appropriate error code
and the calling (e.g. filesystem) driver has to deal with the data
copying or whatever the developer has decided to be the correct
solution.
The NAND driver provides only the lowest level of access to the flash
device.
tglx
next prev parent reply other threads:[~2005-07-28 21:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-28 19:40 Single bit error correction on NAND DataCom - Virgílio
2005-07-28 21:06 ` Thomas Gleixner [this message]
2005-07-28 21:40 ` DataCom - Virgílio
2005-07-29 7:35 ` Thomas Gleixner
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=1122584803.26146.55.camel@tglx.tec.linutronix.de \
--to=tglx@linutronix.de \
--cc=linux-mtd@lists.infradead.org \
--cc=virgilio@datacom-telematica.com.br \
/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