All of lore.kernel.org
 help / color / mirror / Atom feed
From: Danesh Daroui <Danesh.Daroui@ascom.com>
To: Steve deRosier <derosier@gmail.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: RE: OOB Test fails
Date: Wed, 26 Oct 2016 16:28:43 +0000	[thread overview]
Message-ID: <39BC08CB3FF4C84CB6397533D4FC79095770D530@SEGOTEXCH02.ascom-Resource.ads> (raw)
In-Reply-To: <CALupW3CJ_gXS+7BrZEGTF8o0H8pJ_AOw0JcKOftSVaMVSbP1zQ@mail.gmail.com>

Hi Steve,

Thank you for your prompt answer. When I run OOB test (mtd_oobtest), for instance, one of devices always return verification failed error on a certain address. This is all we know and all the test reports. We use a quite old kernel i.e. 2.6.39 and this is one of the things that we suspect as a source of the problem that the kernel is outdated. Also, we consider the hardware failure since on some devices no error is shown on OOB test while on others more errors are shown and the address is changed randomly sometimes.

Our main problem is that sometimes UBIFS forces the device into read-only mode due to "bad CRC" error at startup when the device is booted. I am now running tests which are in "mtd_utils" for testing file system. I have started running two tests which are "simple/test_1" and "simple/test_2" which simply write until the drive is full and the read the data back and verify the correctness. During the test, I see lots of:

UBI: scrubbed PEB 585 (LEB 3:770), data moved to PEB 1772
UBI: scrubbed PEB 1045 (LEB 3:1261), data moved to PEB 828
UBI: scrubbed PEB 1493 (LEB 3:664), data moved to PEB 814
UBI: scrubbed PEB 751 (LEB 3:1260), data moved to PEB 1772

In my mind, this is related to problematic hardware that the data is corrupted on many cells that UBIFS tries to move the data when a corruption is detected. My question is, whether this guess can be valid or this is mostly due to old kernel that we are using and upgrading to a new kernel would most likely solve the problems?

Thanks again,

Danesh Daroui


-----Original Message-----
From: Steve deRosier [mailto:derosier@gmail.com] 
Sent: den 26 oktober 2016 18:17
To: Danesh Daroui <Danesh.Daroui@ascom.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: OOB Test fails

Hi Danesh,


On Wed, Oct 26, 2016 at 9:07 AM, Danesh Daroui <Danesh.Daroui@ascom.com> wrote:
> Hello all,
>
> I have executed MTD tests against an unmounted MTD device which uses UBIFS. All MTD tests except OOB test is passed where the OOB test fails from time to time and from device to device. I have read here:
>
> http://www.linux-mtd.infradead.org/faq/ubi.html#L_why_no_oob
>
> that UBIFS does not use OOB area. Therefore wanted to ask if failing this test does not need that there is any problem in our system (both HW and SW/configuration) and we can safely ignore the results for this test.
>

UBIFS doesn't use the OOB area, but your MTD driver most likely does.
We don't want UBI or UBIFS messing with the OOB area because your flash, NAND controller and the MTD driver will use that. Bad block markers are set in the OOB area by the manufacturer in most NAND flashes and your controller and MTD driver will store and use the bits in the OOB to do error correction.

So, in short - the OOB area does need to function correctly.  As to if and why the OOB test is or isn't working is a different issue and I have no input on that.  All that depends on your mix of flash, controller and driver.

- Steve

  reply	other threads:[~2016-10-26 16:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-26 16:07 OOB Test fails Danesh Daroui
2016-10-26 16:16 ` Steve deRosier
2016-10-26 16:28   ` Danesh Daroui [this message]
2016-10-27  7:38     ` Boris Brezillon
2016-10-27 10:51       ` Danesh Daroui
2016-10-27  7:34   ` Boris Brezillon
2016-10-27 15:45     ` Boris Brezillon
2016-10-28 10:23       ` Danesh Daroui
2016-10-28 14:40         ` Ricard Wanderlof

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=39BC08CB3FF4C84CB6397533D4FC79095770D530@SEGOTEXCH02.ascom-Resource.ads \
    --to=danesh.daroui@ascom.com \
    --cc=derosier@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.