]> www.infradead.org Git - mtd-utils.git/commit
mtd-utils: tests: Add Erased Pages Bit Flip Test
authorHarpreet Eli Sangha <harpreet@nestlabs.com>
Fri, 30 Jun 2017 22:12:18 +0000 (15:12 -0700)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 3 Jul 2017 08:19:29 +0000 (10:19 +0200)
commitdf913e4316f28d60f630bac938863c4c65ad210e
tree26c853bcdce6276e9d87263323de8c3a11bdc55c
parentf8bc7d94761f6153be606328183fac6766202914
mtd-utils: tests: Add Erased Pages Bit Flip Test

Bit flip detection for written and erased pages tend to have different
implementations. Where written pages are detected and corrected using
ECC, erased pages are typically detected by ensuring that the number of
zeros is less than a specified threshold.

As such, it's necessary to have the 'nandbiterrs' test support the
testing of written and erased pages. Bit flips in erased pages are
emulated by rewriting the page in raw mode, to prevent the use of ECC.

Signed-off-by: Harpreet Eli Sangha <harpreet@nestlabs.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
tests/mtd-tests/nandbiterrs.c