From: Stefan Roese <sr@denx.de>
To: linux-mtd@lists.infradead.org
Cc: Brian Norris <computersforpeace@gmail.com>, Pekon Gupta <pekon@ti.com>
Subject: Re: [RFC/PATCH] mtd: mtd_read: Fix bitflips_threshold comparison to allow max bitflips
Date: Wed, 08 Jan 2014 08:29:32 +0100 [thread overview]
Message-ID: <52CCFE5C.8060205@denx.de> (raw)
In-Reply-To: <1388407257-6557-1-git-send-email-sr@denx.de>
On 30.12.2013 13:40, Stefan Roese wrote:
> On a custom AM335x based platform with a Toshiba NAND device
> (TC58NVG1S3H) we are currently seeing quite a few of these UBI messages:
>
> [ 18.044967] UBI: fixable bit-flip detected at PEB 50
> [ 18.050252] UBI: schedule PEB 50 for scrubbing
> ...
>
> After a bit debugging I found that those messages are only printed when
> the OMAP NAND driver has detected 8 (corrected) bitflips / 512 bytes on
> a read. We're using HW BCH8 and the Toshiba chip supports 8 bit ECC for
> each 512Byte. I was wondering why 8 bitflips resulted in these UBI
> messages and e.g. 7 bitflips didn't. Hence I discovered the comparison
> "ret_code >= mtd->bitflip_threshold" in mtd_read().
>
> With this patch applied all tests (UBIFS) I've done so far didn't produce
> any of these "UBI: fixable bit-flip" messages any more.
>
> Note that I'm sending this patch as RFC for now. To get some feedback
> from other MTD / NAND developers on this issue. The main question is:
> Should mtd_read() return -EUCLEAN if the corrected bitflips are equal to
> the bitflip-threshold value? Or should it return 0 since the bitflips
> have been corrected?
Brian, do you have any comments? Is this patch good as is? Should I
resend it as non-RFC?
Thanks,
Stefan
next prev parent reply other threads:[~2014-01-08 7:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-30 12:40 [RFC/PATCH] mtd: mtd_read: Fix bitflips_threshold comparison to allow max bitflips Stefan Roese
2014-01-08 7:29 ` Stefan Roese [this message]
2014-01-11 19:06 ` Brian Norris
2014-01-13 8:03 ` Ricard Wanderlof
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=52CCFE5C.8060205@denx.de \
--to=sr@denx.de \
--cc=computersforpeace@gmail.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.