From: Brian Norris <computersforpeace@gmail.com>
To: Elie De Brauwer <eliedebrauwer@gmail.com>
Cc: Kent Li <kent.li@radisys.com>,
Artem Bityutskiy <dedekind1@gmail.com>,
HOUR Frederic <frederic.hour@safran-engineering.com>,
Huang Shijie <b32955@freescale.com>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
"Gupta, Pekon" <pekon@ti.com>
Subject: Re: [PATCH 1/2] mtd: nand: add erased-page bitflip correction
Date: Tue, 11 Mar 2014 23:59:18 -0700 [thread overview]
Message-ID: <532005C6.3090805@gmail.com> (raw)
In-Reply-To: <CAGWqfijgOL4Qk4axrPo=Z2vcq_upBCM-jQCm-wkSs12RqTeR8Q@mail.gmail.com>
Hi Elie,
Thanks for your response.
On 03/11/2014 10:59 PM, Elie De Brauwer wrote:
> In [1] you an find some benchmarks which I did in the early days of the GPMI fix
> where I tried several approaches ranging from the naive version based on some
> of Pekon's work, going to making using of the BCH status register ending with
> reading the syndromes and caching them, for me this last version is what I have
> in our own Linux tree, because after this Huang took over and came
> with the patch
> which started these discussions which I'm waiting to upstream.
I'm a little confused by the number of different patches out here. I'll
summarize what I understand, but please correct if I'm wrong:
[A] First, you (Elie) sent a series of patches that made it to v7 [1].
This utilizes a special GPMI hardware feature that can tell report an
ECC chunk as "erased" based on how many 0 bits it has (between 0 and
some threshold). This still required a fallback to count the number of
bits whenever it's under this threshold
[B] Then, you sent an additional patch [2] (on top of [1]) which tries
to cache the syndrome related to a fully erased page (no bitflips) for
speeding up some comparisons. You provided benchmarks in [3]
[C] Finally, Huang followed up with his own patch [4]. It doesn't do
anything specific to GPMI really, and it encouraged me to just submit my
own patch (the current thread) for nand_base.
But I can't tell what to do with your performance numbers. I see results
for [1] and for [1]+[2], but I don't see any results for [4].
Finally, is [4] supposed to replace your (Elie's) work from [1] and [2],
or supplement it? It sounded like you two were encouraging me to merge
it by itself.
> What my tests haves learned me is that there's probably very little to
> gain in the
> actual optimization of the erased-page correction, but the magic lies in quickly
> and efficiently determining if a read-page is actually an all-0xff
> case with a bitflip
> causing the BCH block to detect it as an error.
I'm not quite sure what you're saying here. What do you mean
"erased-page correction" vs. "determining ... all-0xff"? Aren't those
the same thing?
> (In the case of GPMI
> is, our n-bit
> ECC failed to withstand a single bitflip).
That's understandable. ECC algorithms must be written specifically so
that they can match and correct mostly-0xff patterns. You can't really
massage an inflexible hardware implementation to do this.
Brian
[1] http://lists.infradead.org/pipermail/linux-mtd/2014-January/051357.html
[2] http://lists.infradead.org/pipermail/linux-mtd/2014-January/051413.html
[3] http://lists.infradead.org/pipermail/linux-mtd/2014-January/051414.html
[4] http://lists.infradead.org/pipermail/linux-mtd/2014-January/051513.html
next prev parent reply other threads:[~2014-03-12 6:59 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-11 9:11 [PATCH 1/2] mtd: nand: add erased-page bitflip correction Brian Norris
2014-03-11 9:11 ` [PATCH 2/2] mtd: gpmi-nand: use erased-page bitflip check Brian Norris
2014-03-11 10:12 ` [PATCH 1/2] mtd: nand: add erased-page bitflip correction Gupta, Pekon
2014-03-12 5:32 ` Brian Norris
2014-03-12 5:59 ` Elie De Brauwer
2014-03-12 6:59 ` Brian Norris [this message]
2014-03-12 12:45 ` Elie De Brauwer
2014-03-13 5:22 ` Brian Norris
2014-03-13 5:55 ` Gupta, Pekon
2014-03-13 6:28 ` Brian Norris
2014-03-13 7:01 ` Gupta, Pekon
2014-03-17 18:47 ` Brian Norris
2014-03-18 7:55 ` Ricard Wanderlof
2014-03-13 12:57 ` Ezequiel Garcia
2014-03-17 18:53 ` Brian Norris
2014-03-13 7:37 ` Elie De Brauwer
2014-03-12 8:06 ` Huang Shijie
2014-03-13 4:55 ` Brian Norris
2014-03-13 8:04 ` Huang Shijie
2014-03-17 16:46 ` Brian Norris
2014-03-17 17:50 ` Gupta, Pekon
2014-03-18 6:48 ` Huang Shijie
2014-03-13 21:32 ` Bill Pringlemeir
2014-03-17 19:46 ` Brian Norris
2014-03-17 22:55 ` Bill Pringlemeir
2014-03-17 23:01 ` Bill Pringlemeir
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=532005C6.3090805@gmail.com \
--to=computersforpeace@gmail.com \
--cc=b32955@freescale.com \
--cc=dedekind1@gmail.com \
--cc=eliedebrauwer@gmail.com \
--cc=frederic.hour@safran-engineering.com \
--cc=kent.li@radisys.com \
--cc=linux-mtd@lists.infradead.org \
--cc=pekon@ti.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 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.