From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
To: "Gupta, Pekon" <pekon@ti.com>
Cc: "u-boot@lists.denx.de" <u-boot@lists.denx.de>,
"Stefan Roese <sr@denx.de> \(sr@denx.de\)" <sr@denx.de>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
Calvin Johnson <linux.cj@gmail.com>
Subject: Re: UBIFS seeing corrupt blank pages when image flashed via u-boot
Date: Thu, 16 Jan 2014 09:19:19 +0200 [thread overview]
Message-ID: <1389856759.26808.52.camel@sauron.fi.intel.com> (raw)
In-Reply-To: <20980858CB6D3A4BAE95CA194937D5E73EA620BD@DBDE04.ent.ti.com>
On Wed, 2014-01-15 at 21:29 +0000, Gupta, Pekon wrote:
> Hi Artem,
>
> >From: Artem Bityutskiy [mailto:artem.bityutskiy@linux.intel.com]
> <snip>
> >Conclusion: all UBIFS needs is a way to ask the driver - is this NAND
> >page blank or not? UBIFS does not really has to compare to all 0xFFs.
> >
> Thanks for details. Yes, I understand the concept in general that you
> want to recover last bit of user-data written on NAND (without corruption).
>
> Now, as NAND driver itself does differentiation between and erased-page
> v/s programmed-page. Can we use different error codes to pass this
> information to upper layers like;
I thought the ECC is something which could be used to differentiate.
> *For MTD layer*
> 0: data valid, length of data is determined by 'read_len' (currently)
> -EUCLEAN: correctable bit-flips found, data is valid
> -EBADMSG: un-correctable bit-flips, data *may-be* invalid.
> -ENODATA: detected erased-page. *Actual* data determined by read_len.
> -ENOMSG: detected erased-page with bit-flips. *Actual* data determined by read_len.
Not sure this is a good idea. If NAND driver cannot do the
differentiation, then it should not be done by the MTD layer, I think.
Then just improve UBI and UBIFS and make the function which compares
buffers with all 0xFFs allow for bit-flips. We know the maximum possible
bit-flips per min. I/O unit, right? Just allow for that amount.
--
Best Regards,
Artem Bityutskiy
next prev parent reply other threads:[~2014-01-16 7:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-03 11:45 UBIFS seeing corrupt blank pages when image flashed via u-boot Gupta, Pekon
2014-01-03 12:59 ` Artem Bityutskiy
2014-01-03 13:05 ` Bityutskiy, Artem
2014-01-03 14:04 ` Stefano Babic
2014-01-07 17:30 ` Gupta, Pekon
2014-01-13 12:19 ` Calvin Johnson
2014-01-13 12:58 ` Artem Bityutskiy
2014-01-13 13:16 ` Gupta, Pekon
2014-01-13 15:06 ` Artem Bityutskiy
2014-01-15 21:29 ` Gupta, Pekon
2014-01-16 7:19 ` Artem Bityutskiy [this message]
2014-01-16 7:44 ` Gupta, Pekon
2014-01-16 8:22 ` Artem Bityutskiy
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=1389856759.26808.52.camel@sauron.fi.intel.com \
--to=artem.bityutskiy@linux.intel.com \
--cc=linux-mtd@lists.infradead.org \
--cc=linux.cj@gmail.com \
--cc=pekon@ti.com \
--cc=sr@denx.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).