All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] mtd: gpmi: Bitflip support in erased regions
@ 2013-12-17  6:59 Elie De Brauwer
  2013-12-17  6:59 ` [PATCH v3] mtd: gpmi: Deal with bitflips in erased regions regions Elie De Brauwer
  0 siblings, 1 reply; 3+ messages in thread
From: Elie De Brauwer @ 2013-12-17  6:59 UTC (permalink / raw)
  To: b32955, dwmw2, dedekind1, computersforpeace, shijie8
  Cc: Elie De Brauwer, linux-mtd

Hello All,

This is v3 of my patch which adds support for bitflip detection/correction
in erased regions when using BCH/GPMI nand.

Changes in V3:
 - The fast path in V2 was not entered (my bad, I mixed some boards when
testing) due to using a faulty register offset. The fast path implemention
for correctly reading fully erased blocks is now functional (and properly 
tested). 
 - Also the fast path even become a bit faster since we now break out of
the for loop as soon as we see a properly erased block (instead of briefly
touching all sectors).
 - The ERASE_THRESHOLD aka the number of bitflips in erased regions we 
tolerate is no longer set to ecc_strength but to gf_len/2.
 - Several cosmetic changes.

Main credit to the above goes to Huang Shijie, thanks a lot !

Further comments/feedback welcome, but at this point I don't see any other
open points.

E.


Elie De Brauwer (1):
  mtd: gpmi: Deal with bitflips in erased regions regions

 drivers/mtd/nand/gpmi-nand/bch-regs.h  |    2 ++
 drivers/mtd/nand/gpmi-nand/gpmi-lib.c  |   16 ++++++++++++
 drivers/mtd/nand/gpmi-nand/gpmi-nand.c |   44 +++++++++++++++++++++++++++++---
 drivers/mtd/nand/gpmi-nand/gpmi-nand.h |    1 +
 4 files changed, 60 insertions(+), 3 deletions(-)

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-17  7:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-17  6:59 [PATCH v3] mtd: gpmi: Bitflip support in erased regions Elie De Brauwer
2013-12-17  6:59 ` [PATCH v3] mtd: gpmi: Deal with bitflips in erased regions regions Elie De Brauwer
2013-12-17  6:56   ` Huang Shijie

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.