Coping with multibit ECC flashes in UBI

Matthieu CASTET matthieu.castet at parrot.com
Fri Dec 6 06:11:30 EST 2013


Le Fri, 6 Dec 2013 10:24:17 +0100,
Ricard Wanderlof <ricard.wanderlof at axis.com> a écrit :

> 
> There have been SLC NAND flashes around for a while which according
> to their data sheets require 4 or even 8 bit ECC (usually BCH).
> Traditionally this was only the case for MLC NAND, with SLC only
> requiring single-bit ECC (Hamming), and even then, bit flips were
> very rare.
> 
> For flashes that require multibit ECC, it's common to have single
> bits which flip fairly quickly after having been written. Thus, the
> current scheme in UBI of rewriting a flash block when an 'ECC
> corrected' status has been returned during a read would quickly wear
> out certain blocks.
> 
> I seem to recall there being a discussion like a year ago about 
> introducing a threshold for the number of corrected bits in a page
> before the containing block was rewritten, but I don't know what
> became of that. Anyone who was more involved remember more?
> 
In mtd there is now a bitflip_threshold.

Check commit d062d4ede877fcd2ecc4c6262abad09a6f32950a



More information about the linux-mtd mailing list