From: Artem Bityutskiy <dedekind1@gmail.com>
To: Peter Barada <peter.barada@gmail.com>
Cc: Eric Nelson <eric.nelson@logicpd.com>,
linux-mtd@lists.infradead.org,
Peter Barada <peter.barada@logicpd.com>
Subject: Re: Problem with clean markers/partial writes on Micron 4-bit ECC NAND
Date: Thu, 23 Jun 2011 11:46:52 +0300 [thread overview]
Message-ID: <1308818817.18119.103.camel@sauron> (raw)
In-Reply-To: <4DFB9458.1030304@gmail.com>
On Fri, 2011-06-17 at 13:52 -0400, Peter Barada wrote:
> I'm using a 2K page Micron NAND that has an internal 4-bit ECC engine.
>
> The Micron NAND chip uses 8-bytes per 512 bytes of main data area + 4
> bytes of the OOB. This allows the 32 bytes of ECC to correct 2048 bytes
> of the main data area and 16 bytes of the OOB area.
>
> The problem I'm running into with JFFS2 is that empty flash is first
> marked with a clean marker into the OOB, and then a 2nd write to the
> main data area is done (w/o an intervening erase) to that page with data
> which corrupts the ECCs that were first modified by writing the cleanmarker.
I remember someone sent patches to teach JFFS2 to avoid using clean
markers, but I do not remembers the details and whether the patches made
it into the mainline.
--
Best Regards,
Artem Bityutskiy
prev parent reply other threads:[~2011-06-23 8:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-17 17:52 Problem with clean markers/partial writes on Micron 4-bit ECC NAND Peter Barada
2011-06-17 21:00 ` Ivan Djelic
2011-06-18 16:37 ` Peter Barada
2011-06-18 17:49 ` Kevin Cernekee
2011-06-23 8:46 ` Artem Bityutskiy [this message]
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=1308818817.18119.103.camel@sauron \
--to=dedekind1@gmail.com \
--cc=eric.nelson@logicpd.com \
--cc=linux-mtd@lists.infradead.org \
--cc=peter.barada@gmail.com \
--cc=peter.barada@logicpd.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