From: Ye Li <ye.li@nxp.com>
To: "festevam@gmail.com" <festevam@gmail.com>,
"frieder.schrempf@kontron.de" <frieder.schrempf@kontron.de>,
"tharvey@gateworks.com" <tharvey@gateworks.com>
Cc: Peng Fan <peng.fan@nxp.com>, Han Xu <han.xu@nxp.com>,
"u-boot@lists.denx.de" <u-boot@lists.denx.de>,
dl-uboot-imx <uboot-imx@nxp.com>,
"sbabic@denx.de" <sbabic@denx.de>
Subject: Re: [EXT] Re: GPMI NAND Regression on i.MX6S
Date: Fri, 18 Mar 2022 08:47:11 +0000 [thread overview]
Message-ID: <1647593230.6010.6.camel@nxp.com> (raw)
In-Reply-To: <b0d72ba5-a3ec-fb34-4184-0dc9c82dd6d6@kontron.de>
Hi Frieder,
On Thu, 2022-03-17 at 09:06 +0100, Frieder Schrempf wrote:
> Caution: EXT Email
>
> Hi Tim,
>
> Am 16.03.22 um 17:34 schrieb Tim Harvey:
> >
> > On Wed, Mar 16, 2022 at 7:09 AM Fabio Estevam <festevam@gmail.com>
> > wrote:
> > >
> > >
> > > Adding Han Xu's NXP email on Cc.
> > >
> > > On Mon, Mar 14, 2022 at 10:31 AM Frieder Schrempf
> > > <frieder.schrempf@kontron.de> wrote:
> > > >
> > > >
> > > > Hello everyone,
> > > >
> > > > sorry to dig out an old thread, but the below patch which was
> > > > applied
> > > > upstream as 616f03dabacb causes a regression for me when trying
> > > > to
> > > > attach an UBI volume with U-Boot 2022.01 on a board with i.MX6
> > > > Solo and
> > > > AMD/Spansion parallel NAND.
> > > >
> > > > The failure looks like this:
> > > >
> > > > ubi0: attaching mtd2
> > > > ubi0 error: ubi_io_read: error -74 (ECC error) while reading 64
> > > > bytes
> > > > from PEB 0:0, read 64 bytes
> > > > ubi0 error: ubi_io_read: error -74 (ECC error) while reading
> > > > 2048 bytes
> > > > from PEB 0:2048, read 2048 bytes
> > > > ubi0 error: ubi_io_read: error -74 (ECC error) while reading 64
> > > > bytes
> > > > from PEB 1:0, read 64 bytes
> > > > ubi0 error: ubi_io_read: error -74 (ECC error) while reading
> > > > 2048 bytes
> > > > from PEB 1:2048, read 2048 bytes
> > > >
> > > > The NAND as reported by Linux is:
> > > >
> > > > nand: device found, Manufacturer ID: 0x01, Chip ID: 0xdc
> > > > nand: AMD/Spansion S34ML04G1
> > > > nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB
> > > > size: 64
> > > >
> > > > A different revision of the same board with a different NAND
> > > > from
> > > > manufacturer ESMT doesn't show the issue:
> > > >
> > > > nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xdc
> > > > nand: ESMT NAND 512MiB 3,3V 8-bit
> > > > nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB
> > > > size: 64
> > > >
> > > > When I revert the mentioned commit (see patch here: [1]), the
> > > > UBI boot
> > > > starts working again.
> > > >
> > > > Does anyone know what the problem is and how to properly solve
> > > > it?
> > > >
> > > > Thanks for any help!
> > > > Frieder
> > > >
> > > > [1]
> > > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F
> > > > %2Fzerobin.net%2F%3F57a57a322bbdcf3c%23rZa3vHlWi%2BRxtRomoljtrn
> > > > gqWwiv6v4Js%2F2LNfdV10o%3D&data=04%7C01%7Cye.li%40nxp.com%7
> > > > Cee3b85ceee3d4ece78e108da07ed1e2c%7C686ea1d3bc2b4c6fa92cd99c5c3
> > > > 01635%7C0%7C0%7C637831012279864791%7CUnknown%7CTWFpbGZsb3d8eyJW
> > > > IjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%
> > > > 7C3000&sdata=O6MzwCv9ClB8ZW7i3%2BV1RmOaviGqQRNa8L0uxE4M%2F%
> > > > 2BI%3D&reserved=0
> > > >
> > Frieder,
> >
> > I see the same issue here with IMX6Q/DL GPMI NAND.
> >
> > If I re-flash the ubi within U-Boot (tftpboot $loadaddr rootfs.ubi
> > &&
> > nand erase.part rootfs && nand write $loadaddr rootfs $filesize) I
> > find that U-Boot can attach and mount the ubi fine but Linux will
> > have
> > issues
> Interesting! This sounds like U-Boot and Linux somehow diverge in how
> they handle the ECC data in OOB. I'm pretty confident that Linux does
> things "correctly" and U-Boot should match what Linux does in this
> case.
>
> Does the patch (revert of 616f03dabacb) I mentioned before "solve"
> the
> issue for your case, too?
>
> @Han, Ye, Peng: As you signed-off the mentioned commit, do you have
> any
> ideas for a fix?
The dt nand driver will check "fsl,legacy-bch-geometry" property to use
legacy bch. If this can't work for you in case you don't use DM driver,
I prefer adding a config to select the legacy bch not reverting the
patch.
Best regards,
Ye Li
>
> Thanks
> Frieder
next prev parent reply other threads:[~2022-03-18 8:47 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-04 14:08 [PATCH 00/14] mtd: nand: i.MX update Peng Fan
2020-05-04 14:08 ` [PATCH 01/14] mtd: gpmi: change the BCH layout setting for large oob NAND Peng Fan
2020-05-11 10:16 ` sbabic at denx.de
2022-03-14 13:30 ` GPMI NAND Regression on i.MX6S Frieder Schrempf
2022-03-16 14:08 ` Fabio Estevam
2022-03-16 16:34 ` Tim Harvey
2022-03-17 8:06 ` Frieder Schrempf
2022-03-17 12:59 ` Frieder Schrempf
2022-03-17 13:14 ` Sean Nyekjaer
2022-03-17 13:19 ` Frieder Schrempf
2022-03-18 8:47 ` Ye Li [this message]
2020-05-04 14:08 ` [PATCH 02/14] mtd: gpmi: provide the option to use legacy bch geometry Peng Fan
2020-05-11 10:17 ` sbabic at denx.de
2020-05-04 14:08 ` [PATCH 03/14] nand: mxs: fix the bitflips for erased page when uncorrectable error Peng Fan
2020-05-11 10:19 ` sbabic at denx.de
2020-05-04 14:08 ` [PATCH 04/14] nand: mxs: correct bitflip for erased NAND page Peng Fan
2020-05-11 10:17 ` sbabic at denx.de
2020-05-04 14:08 ` [PATCH 05/14] mxs_nand: Add support for i.MX8M Peng Fan
2020-05-11 10:17 ` sbabic at denx.de
2020-05-04 14:08 ` [PATCH 06/14] nand: Update SPL MXS NAND mini driver Peng Fan
2020-05-11 10:16 ` sbabic at denx.de
2020-05-04 14:08 ` [PATCH 07/14] mxs_nand: Update compatible string for i.MX6SX Peng Fan
2020-05-11 10:15 ` sbabic at denx.de
2020-05-04 14:08 ` [PATCH 08/14] mtd: nand: mxs_nand: add i.MX6QP compatible string Peng Fan
2020-05-11 10:15 ` sbabic at denx.de
2020-05-04 14:08 ` [PATCH 09/14] mtd: mxs_nand: fix the gf_13/14 definition issue Peng Fan
2020-05-11 10:18 ` sbabic at denx.de
2020-05-04 14:08 ` [PATCH 10/14] nand: mxs_nand: make imx8mm can use hardware BCH and randomizer Peng Fan
2020-05-11 10:15 ` sbabic at denx.de
2020-05-04 14:09 ` [PATCH 11/14] mtd: nand: support GPMI NAND driver for i.MX8 Peng Fan
2020-05-11 10:16 ` sbabic at denx.de
2020-05-04 14:09 ` [PATCH 12/14] MXS_NAND: Add clock support for iMX8 Peng Fan
2020-05-11 10:18 ` sbabic at denx.de
2020-05-04 14:09 ` [PATCH 13/14] mxs_nand: don't check zero count when ECC reading with randomizer Peng Fan
2020-05-11 10:18 ` sbabic at denx.de
2020-05-04 14:09 ` [PATCH 14/14] nand: enable the Randomizer module for i.mx7 and i.mx8 Peng Fan
2020-05-11 10:16 ` sbabic at denx.de
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1647593230.6010.6.camel@nxp.com \
--to=ye.li@nxp.com \
--cc=festevam@gmail.com \
--cc=frieder.schrempf@kontron.de \
--cc=han.xu@nxp.com \
--cc=peng.fan@nxp.com \
--cc=sbabic@denx.de \
--cc=tharvey@gateworks.com \
--cc=u-boot@lists.denx.de \
--cc=uboot-imx@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox