[PATCH] mtd: nand: default bitflip-reporting threshold to 75% of correction strength

Brian Norris computersforpeace at gmail.com
Mon Jan 12 18:38:49 PST 2015


On Mon, Jan 12, 2015 at 6:01 PM, Huang Shijie <shijie.huang at intel.com> wrote:
> On Mon, Jan 12, 2015 at 12:51:29PM -0800, Brian Norris wrote:
>> --- a/drivers/mtd/nand/nand_base.c
>> +++ b/drivers/mtd/nand/nand_base.c
>> @@ -4171,7 +4171,7 @@ int nand_scan_tail(struct mtd_info *mtd)
>>        * properly set.
>>        */
>>       if (!mtd->bitflip_threshold)
>> -             mtd->bitflip_threshold = mtd->ecc_strength;
>> +             mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4);
> After this patch, we have to change the bitflip_threshold to
> ecc_strength manually when we do the mtd_biterrors.ko test.

Why?

Brian



More information about the linux-mtd mailing list