Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Barak Adam <BAdam@adva.com>
To: Richard Weinberger <richard.weinberger@gmail.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: RE: UBIFS corruption in empty space during mount
Date: Thu, 29 Oct 2020 14:52:07 +0000	[thread overview]
Message-ID: <1ffeedca15604810936ebb032b9af57c@adva.com> (raw)
In-Reply-To: <CAFLxGvyZUBgXyNkj0EO5pWntjfn7jObqU7XKZXxvjsQ=RN9WKw@mail.gmail.com>

<Barak,

<<On Thu, Oct 29, 2020 at 5:54 AM Barak Adam <BAdam@adva.com> wrote:
<> ubi_leb_read calls lower layer nand driver functions but finally returns with -EBADMSG error code indicating that the MTD driver has detected a data integrity problem (unrecoverable ECC checksum mismatch in case of NAND).

<So, your driver is facing ECC errors while reading empty space?
<This is something UBIFS does not expect.

<If this is really the case, please double check, you can try to backport the patches you've listed.
<Or change the driver. In any case UBIFS does not want to see ECC errors when reading eased pages.

<--
<Thanks,
<//Richard


Thanks Richard.

I already applied those patches, but the issue is not yet covered / resolved.

What kind of a fix should I apply to the driver layer - raise ECC errors for the upper layers even when ready empty / erased area ?

Thanks,
Barak

-----Original Message-----
From: Richard Weinberger <richard.weinberger@gmail.com>
Sent: Thursday, October 29, 2020 12:36 PM
To: Barak Adam <BAdam@adva.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: UBIFS corruption in empty space during mount

External email: [richard.weinberger@gmail.com]

......................................................................
Barak,

On Thu, Oct 29, 2020 at 5:54 AM Barak Adam <BAdam@adva.com> wrote:
> ubi_leb_read calls lower layer nand driver functions but finally returns with -EBADMSG error code indicating that the MTD driver has detected a data integrity problem (unrecoverable ECC checksum mismatch in case of NAND).

So, your driver is facing ECC errors while reading empty space?
This is something UBIFS does not expect.

If this is really the case, please double check, you can try to backport the patches you've listed.
Or change the driver. In any case UBIFS does not want to see ECC errors when reading eased pages.

--
Thanks,
//richard
Please see our privacy statement at https://www.adva.com/en/about-us/legal/privacy-statement for details of how ADVA processes personal information.
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

  reply	other threads:[~2020-10-29 14:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-29  4:48 UBIFS corruption in empty space during mount Barak Adam
2020-10-29 10:36 ` Richard Weinberger
2020-10-29 14:52   ` Barak Adam [this message]
2020-10-29 21:19     ` Richard Weinberger
2020-11-02  6:06       ` Barak Adam
2020-11-02  7:44         ` Richard Weinberger

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=1ffeedca15604810936ebb032b9af57c@adva.com \
    --to=badam@adva.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=richard.weinberger@gmail.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