From: Brian Norris <computersforpeace@gmail.com>
To: Pekon Gupta <pekon@ti.com>
Cc: Stefan Roese <sr@denx.de>,
linux-mtd <linux-mtd@lists.infradead.org>,
balbi@ti.com, Artem Bityutskiy <dedekind1@gmail.com>
Subject: Re: [PATCH v6 0/6] mtd: nand: omap: optimized chip->ecc.correct() for H/W ECC schemes
Date: Mon, 13 Jan 2014 19:27:59 -0800 [thread overview]
Message-ID: <20140114032759.GA8919@ld-irv-0074> (raw)
In-Reply-To: <1388803698-26252-1-git-send-email-pekon@ti.com>
Hi Pekon,
First of all, thanks a lot for the extra efforts to make your commits
easier to digest. I do have a few comments, now that I can understand
the pieces a little better.
On Sat, Jan 04, 2014 at 08:18:12AM +0530, Pekon Gupta wrote:
> This patch-series fixes following issues in omap_elm_correct_data():
> (1) Dependency on a specific reserved byte-position in OOB area
> to differentiates between erased-pages v/s programmed-pages.
> Problem: reserved byte-position cannot be accomodated in all ecc-schemes
> Problem: reserved byte-position can itself be subjected upto 8 bit-flips
> causing the 0xff to become 0x00, causing page to be
> mis-recognized as erased-page.
>
> (2) Bit-flips in erased-pages are detected by comparing each byte of Data & OOB
> with 0xff in check_erased_page().
> Problem: This is causes performance penalty when erased-pages are checked.
Is this performance penalty significant, though? Shouldn't we be
checking for an erased page only on uncorrectable errors? And aren't
those uncorrectable occasions rare? I ask because it seems like you're
trading some precision for performance, but I think the case you're
optimizing is an uncommon path anyway. But perhaps I'm wrong.
I'll comment with some specifics on the patch itslef.
> (3) Current code is not scalable for future ECC schemes due to presence of
> tweaks for BCH4_ECC and BCH8_ECC at multiple places.
>
> (4) Currently, bit-flips are evaluated and fixed even when ELM reports them as
> un-correctable bit-flips, this should not happen as 'number-of-error' field
> in ELM_LOCATION_STATUS becomes invalid when un-correctable flag is set.
>
> (5) Driver should return with error-code = '-EBADMSG' when
> uncorrectable bit-flip is detected
> bit-flip outside valid Data and OOB region is detected
Your other points look good.
Thanks,
Brian
prev parent reply other threads:[~2014-01-14 3:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-04 2:48 [PATCH v6 0/6] mtd: nand: omap: optimized chip->ecc.correct() for H/W ECC schemes Pekon Gupta
2014-01-04 2:48 ` [PATCH v6 1/6] mtd: nand: omap: add field to indicate current ecc-scheme in 'struct omap_nand_info' Pekon Gupta
2014-01-04 2:48 ` [PATCH v6 2/6] mtd: nand: omap: ecc.correct: omap_elm_correct_data: rename ambiguous variable 'eccsize' and 'ecc_vector_size' Pekon Gupta
2014-01-04 2:48 ` [PATCH v6 3/6] mtd: nand: omap: ecc.correct: omap_elm_correct_data: fix erased-page bit-flip correction for H/W ECC schemes Pekon Gupta
2014-01-14 4:05 ` Brian Norris
2014-01-14 17:37 ` Brian Norris
2014-01-15 22:03 ` Gupta, Pekon
2014-01-04 2:48 ` [PATCH v6 4/6] mtd: nand: omap: ecc.correct: omap_elm_correct_data: fix erased-page detection for BCHx_HW " Pekon Gupta
2014-01-14 4:25 ` Brian Norris
2014-01-15 23:17 ` Gupta, Pekon
2014-01-04 2:48 ` [PATCH v6 5/6] mtd: nand: omap: ecc.correct: omap_elm_correct_data: cleanup for future enhancements Pekon Gupta
2014-01-04 2:48 ` [PATCH v6 6/6] mtd: nand: omap: ecc.correct: omap_elm_correct_data: fix programmed-page bit-flip correction logic Pekon Gupta
2014-01-06 7:42 ` [PATCH v6 0/6] mtd: nand: omap: optimized chip->ecc.correct() for H/W ECC schemes Stefan Roese
2014-01-14 3:27 ` Brian Norris [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=20140114032759.GA8919@ld-irv-0074 \
--to=computersforpeace@gmail.com \
--cc=balbi@ti.com \
--cc=dedekind1@gmail.com \
--cc=linux-mtd@lists.infradead.org \
--cc=pekon@ti.com \
--cc=sr@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