android_kernel_sony_sdm845/drivers/mtd/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Miquel Raynal f6df92f22b mtd: mtd_oobtest: Handle bitflips during reads
[ Upstream commit 12663b442e5ac5aa3d6097cd3f287c71ba46d26e ]

Reads from NAND devices usually trigger bitflips, this is an expected
behavior. While bitflips are under a given threshold, the MTD core
returns 0. However, when the number of corrected bitflips is above this
same threshold, -EUCLEAN is returned to inform the upper layer that this
block is slightly dying and soon the ECC engine will be overtaken so
actions should be taken to move the data out of it.

This particular condition should not be treated like an error and the
test should continue.

Signed-off-by: Miquel Raynal <miquel.raynal@free-electrons.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-13 19:48:31 +02:00
..
Makefile mtd: tests: rename sources in order to link a helper object 2013-08-30 21:34:06 +01:00
mtd_nandecctest.c mtd: nand: tests: fix regression introduced in mtd_nandectest 2016-03-04 16:59:20 -08:00
mtd_test.c mtd: tests: fix integer overflow issues 2014-08-19 11:53:08 -07:00
mtd_test.h mtd: Make MTD tests cancelable 2015-04-05 18:12:53 -07:00
nandbiterrs.c mtd: nandbiterrs: Support for NAND biterrors test on platforms without raw write 2016-07-11 08:40:13 +02:00
oobtest.c mtd: mtd_oobtest: Handle bitflips during reads 2018-04-13 19:48:31 +02:00
pagetest.c mtd: tests: consolidate kmalloc/memset 0 call to kzalloc 2016-01-06 15:17:42 -08:00
readtest.c mtd: readtest: don't clobber error reports 2015-05-14 09:56:31 -07:00
speedtest.c mtd: tests: Replace timeval with ktime_t 2015-10-26 13:23:47 -07:00
stresstest.c mtd: Make MTD tests cancelable 2015-04-05 18:12:53 -07:00
subpagetest.c mtd: Make MTD tests cancelable 2015-04-05 18:12:53 -07:00
torturetest.c mtd: tests: Replace timeval with ktime_t 2015-10-26 13:23:47 -07:00