[PATCH v4 5/5] mtd: rawnand: gpmi: Add large oob bch setting support

Miquel Raynal miquel.raynal at bootlin.com
Thu Apr 21 00:36:51 PDT 2022


On Tue, 2022-04-12 at 02:52:46 UTC, Han Xu wrote:
> The code change proposes a new way to set bch geometry for large oob
> NAND (oobsize > 1KB). In this case, previous implementation can NOT
> guarantee the bad block mark always locates in data chunk, so we need a
> new way to do it. The general idea is,
> 
> 1.Try all ECC strength from the maximum ecc that controller can support
>   to minimum value required by NAND chip, any ECC strength makes the
>   BBM locate in data chunk can be eligible.
> 
> 2.If none of them works, using separate ECC for meta, which will add
>   one extra ecc with the same ECC strength as other data chunks. This
>   extra ECC can guarantee BBM located in data chunk, also we need to
>   check if oob can afford it.
> 
> Signed-off-by: Han Xu <han.xu at nxp.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel



More information about the linux-mtd mailing list