[PATCH 1/5] pxa3xx_nand: enable PXA3xx bad block management

Mok Keith ek9852 at gmail.com
Fri Sep 25 13:04:47 EDT 2009


Hi,

Any reason to limit the max slot to 40 (PXA_MAX_SLOT). It seems the
bad block management scheme is not scalable and have a limitation of
up to 256M bytes flash size only. (256M, 128kB per block = 2048 blocks
= 40 bad blocks)

Also for the calibration of the 2% bad block area, according to most
NAND specifications (checked Samsung, Hynix, Micron), nand flash
vendor guarantee no more than 20 bad block per 1024 blocks and this
rule is apply linearly.

Would it be better to use the following otherwise when nand size is
greater than 256M the no of bad block entries is not matched to
specification:
instead of:
> +    entries = (entries * 2) / 100;

use:
+    entries = (entries * 10) / 512;

May I know what is the use of PXA_BEGIN_SLOT ?

Keith



More information about the linux-mtd mailing list