From: Brian Norris <computersforpeace@gmail.com>
To: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: Karl Beldan <kbeldan@baylibre.com>,
linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org,
Richard Weinberger <richard@nod.at>,
David Woodhouse <dwmw2@infradead.org>,
Sekhar Nori <nsekhar@ti.com>, Kevin Hilman <khilman@baylibre.com>,
Karl Beldan <karl.beldan+oss@gmail.com>
Subject: Re: [PATCH] mtd: nand: davinci: Reinitialize the HW ECC engine in 4bit hwctl
Date: Mon, 29 Aug 2016 13:38:47 -0700 [thread overview]
Message-ID: <20160829203847.GA102453@google.com> (raw)
In-Reply-To: <20160829115930.517a133e@bbrezillon>
On Mon, Aug 29, 2016 at 11:59:30AM +0200, Boris Brezillon wrote:
> On Mon, 29 Aug 2016 07:45:49 +0000
> Karl Beldan <kbeldan@baylibre.com> wrote:
>
> > This fixes subpage writes when using 4-bit HW ECC.
> >
> > There has been numerous reports about ECC errors with devices using this
> > driver for a while. Also the 4-bit ECC has been reported as broken with
> > subpages in [1] and with 16 bits NANDs in the driver and in mach* board
> > files both in mainline and in the vendor BSPs.
> >
> > What I saw with 4-bit ECC on a 16bits NAND (on an LCDK) which got me to
> > try reinitializing the ECC engine:
> > - R/W on whole pages properly generates/checks RS code
> > - try writing the 1st subpage only of a blank page, the subpage is well
> > written and the RS code properly generated, re-reading the same page
> > the HW detects some ECC error, reading the same page again no ECC
> > error is detected
> >
> > Note that the ECC engine is already reinitialized in the 1-bit case.
> >
> > Tested on my LCDK with UBI+UBIFS using subpages.
> > This could potentially get rid of the issue workarounded in [1].
> >
> > [1] 28c015a9daab ("mtd: davinci-nand: disable subpage write for keystone-nand")
> >
> > Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
>
> Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
>
> Brian, can you take this patch directly in your tree. If that's not
> possible, let me know, I'll add the Fixes and Cc:stable tags and take
> it for 4.9.
Would this be correct?
Fixes: 6a4123e581b3 ("mtd: nand: davinci_nand, 4-bit ECC for smallpage")
Brian
next prev parent reply other threads:[~2016-08-29 20:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-29 7:45 [PATCH] mtd: nand: davinci: Reinitialize the HW ECC engine in 4bit hwctl Karl Beldan
2016-08-29 9:59 ` Boris Brezillon
2016-08-29 20:38 ` Brian Norris [this message]
2016-08-29 20:45 ` Boris Brezillon
2016-09-10 3:09 ` Brian Norris
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=20160829203847.GA102453@google.com \
--to=computersforpeace@gmail.com \
--cc=boris.brezillon@free-electrons.com \
--cc=dwmw2@infradead.org \
--cc=karl.beldan+oss@gmail.com \
--cc=kbeldan@baylibre.com \
--cc=khilman@baylibre.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=nsekhar@ti.com \
--cc=richard@nod.at \
/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).