GPMI nand flash ECC errors with mainline kernel

Miquel Raynal miquel.raynal at bootlin.com
Thu May 17 05:58:37 PDT 2018


Hi Cardoen,

FYI your emails are still not reaching the MTD ML.

On Thu, 17 May 2018 07:45:43 +0000, Cardoen Pieter
<P.Cardoen at TELEVIC.com> wrote:

> Dear Miquel
> 
> 
> I've been continuing debugging. When the gpmi driver is loaded, the device gets scanned for bad blocks. In that case nand_read_oob is executed and this results in a call to nand_do_read_oob:
> 
> 
>     if (!ops->datbuf)
>         ret = nand_do_read_oob(mtd, from, ops);
>     else
>         ret = nand_do_read_ops(mtd, from, ops);
> 
> 
> But if the nand flash gets mounted, nand_read_oob is also executed but it results in nand_do_read_ops and I don't see that the read functions of the gpmi driver are executed.
> 
> 
> Hopefully, this can help to find the solution of this issue.

Unfortunately I doubt this is the root cause for the ECC errors neither.

Could you also please answer Boris's questions:

> > Which version works? Is this a vendor tree or a mainline kernel? Looks
> > like the version that fails is 4.15. Are you sure the ECC config is
> > exactly the same between the old and new kernel?

Thanks,
Miquèl




More information about the linux-mtd mailing list