[PATCH 2/2] ARM: OMAP2+: cleaned-up DT support of various ECC schemes

jean-philippe francois jp.francois at cynove.com
Thu May 16 05:34:20 EDT 2013


2013/5/16 Gupta, Pekon <pekon at ti.com>:
>
>> 2013/5/16 Gupta, Pekon <pekon at ti.com>:
>> >> >
>> >>
>> >> OMAP_ECC_BCH4_CODE_HW_DETECTION_SW and
>> >> OMAP_ECC_BCH4_CODE_HW
>> >> seems to exist in the code, but are not in the changelog, and not in
>> >> the device tree binding documentation.
>> >>
>> >
>> > Yes, I plan to omit them from code also, in next series as it does not
>> > make sense to support both BCH4 and BCH8 at same time, when most
>> > users would opt for BCH8.
>> > Also, BCH4 was kept for legacy purposes, and was not tested on all
>> devices.
>> > Therefore I have purposely omitted it from documentation.
>> >
>>
>> We have shipped devices with BCH4 nand.  This would be a regression
>> for us.
>>
> [Pekon]: May I know the following details so that I can prioritize BCH4 testing
> - Which TI device have you productized ?

dm3730

> - Which kernel version you are using ? (Is it from mainline or SDK release)

3.6.11, currently moving to 3.9

> - Which BCH4 ECC implementation you are using ?
>         BCH4_HW (using both GPMC and ELM H/W engines)
>         BCH4_HW_DETECTION_SW (using GPMC H/W and bch.h S/W libraries)

I guess it is BCH4_HW_DETECTION_SW. Here is the relevant part of the
machine board file patch :

+static struct omap_nand_platform_data cydm_nand_data = {
+     .cs = 0,
+     .ecc_opt = OMAP_ECC_BCH4_CODE_HW,
+};



> - Is there a specific reason why        you opted for BCH4 instead of BCH8 ?
>         (Though its only recent that OMAP_ECC_BCHx support is mainlined
>         But, BCH8 support was available in TI SDK releases from quite sometime.)
>

No, I figured BCH4 was sufficient for my nand. In fact my previous ecc
scheme (1 bit hamming) was not
offering enough protection. I started investigating bch, and read that
while the ti dvsdk bch code
for computing the bch was ok, the error correction code was not, and
the new BCH4 scheme
resulted in all FF OOB data for an empty page, which was great. There
was no real reason for
choosing BCH4 over BCH8, but I thought the simpler the better.

> I'll try to see if I can help you here, but going forward its always recommended
> to use higher ECC schemes (like BCH8), so that flash's lifetime is extended on field.
>

>
>> Regards,
>> Jean-Philippe François.
>>
> with regards, pekon



More information about the linux-mtd mailing list