From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.bootlin.com ([62.4.15.54]) by casper.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIaL9-0001Rf-Aw for linux-mtd@lists.infradead.org; Tue, 15 May 2018 13:50:12 +0000 Date: Tue, 15 May 2018 15:49:45 +0200 From: Boris Brezillon To: Cardoen Pieter Cc: "han.xu@nxp.com" , "boris.brezillon@free-electrons.com" , "richard@nod.at" , "dwmw2@infradead.org" , "computersforpeace@gmail.com" , "marek.vasut@gmail.com" , "cyrille.pitchen@wedev4u.fr" , "linux-mtd@lists.infradead.org" Subject: Re: GPMI nand flash ECC errors with mainline kernel Message-ID: <20180515154945.5006f927@bbrezillon> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 15 May 2018 11:46:32 +0000 Cardoen Pieter wrote: > Dear > > I am currently trying to use the mainline kernel on a custom imx6ul board with an SLC NAND flash device (29F4G08ABADAH4). When the rootfs is mounted, I get continuously ECC errors (see log below). > > I am however sure that the rootfs is programmed. The device boots with an older kernel version on the same device. 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? > > I also noticed that with my previous kernel version, it used mtd->_read in function mtd_read while now it is using mtd->_read_oob. It's unlikely to be the root cause for these ECC failures.