Where is the "scrubbing" threshold set in UBI? Can it be easily varied?

Atlant Schmidt aschmidt at dekaresearch.com
Thu Jul 3 07:07:51 PDT 2014


Folks:

  Within the UBI layer, where is the threshold set that
  determines how many bit-flips must occur on a read
  before the block is "scrubbed" (stored into another
  location)?

  And is this done on a page-by-page basis or on a
  whole-LEB/PEB basis? That is, if a single page has
  more than threshold number of bit flips, will just
  that page be relocated or will the entire LEB be
  relocated to another PEB? (I'd assume the later
  because that's the level at which UBI understands
  the organization of the storage.)

  Also:

  It's a shame there doesn't seem to be a UBI ioctl()
  to control this; it would be nice to be able to run
  routinely with the threshold set high but be able to
  easily enter "scrubbing" mode where even single bit-
  flips could be scrubbed away.

  I've notice that our NAND flashes acquire persistent
  bit flips and I'd love to be able to scrub those blocks
  clean by just temporarily setting the threshold low and
  then reading through the whole device (and watching the
  ECC statistics to see when I should stop).

  This would make the NAND more immune to suddenly ending
  up with too many bit flips for the ECC to correct.

                          Atlant


This e-mail and the information, including any attachments it contains, are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.



More information about the linux-mtd mailing list