public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* gpmi detection of erased pages
@ 2016-11-09 12:35 w.cappelle
  2016-11-09 12:35 ` [PATCH] nand gpmi fix erased block bitflip counting w.cappelle
  0 siblings, 1 reply; 5+ messages in thread
From: w.cappelle @ 2016-11-09 12:35 UTC (permalink / raw)
  To: linux-mtd; +Cc: w.cappelle

I'm using BCH8 on a 2k nand page and created a testpage with 6 bitflips
at following locations:
0x02D:FB
0x057:FE
0xA5:FB
0x16A:FB
0x18A:DF
0x4EE:FE

When reading the page through the driver, the page is uncorrectable (as 
expected), then it will verify if the page is erased (gpmi_erased_check).
There i can see that the first count of the first subpage, is returning me
it detected 7 bitflips (should be 5 in that subpage). The second count of 
bitflips on the full raw page returns me the correct amount of bitflips 
(being 6 for the complete page).

I Don't really see the need of the first subpage check, except of speed 
improvement. But as it is failing due to the gpmi block trying to repair the 
page and alternating the wrong bits, I would propose to either increase the
threshold of the first check with the max number of repairable bitflips the 
gpmi block is set to, or just skip the first check since on empty pages it will
however not make a difference in speed. For real uncorrectable pages, this will
not have a huge speed penalty due to the unlikely event that this will happen.

I propose following patch to be be applied to detect the correct number of 
bitflips based on the raw nand read data.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-01-03  8:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-09 12:35 gpmi detection of erased pages w.cappelle
2016-11-09 12:35 ` [PATCH] nand gpmi fix erased block bitflip counting w.cappelle
2016-11-15 20:54   ` Marek Vasut
2016-11-16  7:33     ` Cappelle Wouter
2017-01-03  8:43       ` Boris Brezillon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox