mtd: nand: mxc: oobfree layout?
A message that is not in the archive (sent off-list or not yet received): [email protected]
Dear Sascha Hauer,
I've seen in the history of mxc_nand.c that you have worked on the nand_ecclayout structs. The following things look abnormal. Can you confirm?
- nandv1_hw_eccoob_smallpage and nandv2_hw_eccoob_smallpage:
* Why are bytes 0 and 1 in oobfree? These bytes are used for bad block information on the 16-bit variants of these 512-byte-page NANDs.
- nandv1_hw_eccoob_largepage:
* According to the i.MX31 reference manual, the BI bytes of the spare area buffers are not free to use. So why are bytes 5, 11, 27, 43 and 59 in oobfree? On the contrary, if this note is a mistake in the RM, then why are bytes 21, 37 and 53 not in oobfree?
- nandv2_hw_eccoob_smallpage, nandv2_hw_eccoob_largepage and nandv2_hw_eccoob_4k:
* Why is byte 6 not in oobfree?
Best regards,
Beno?t
Quoted 7 lines · Beno?t Th?baudeau
Dear Sascha Hauer,
I've seen in the history of
mxc_nand.cthat you have worked on thenand_ecclayoutstructs. The following things look abnormal. Can you confirm?
-nandv1_hw_eccoob_smallpageandnandv2_hw_eccoob_smallpage:
* Why are bytes 0 and 1 in oobfree? These bytes are used for bad block information on the 16-bit variants of these 512-byte-page NANDs.
This is probably a bug. Very few people seem to use 16bit flashes.
Quoted 8 lines
-
nandv1_hw_eccoob_largepage:
* According to the i.MX31 reference manual, the BI bytes of the spare area buffers are not free to use. So why are bytes 5, 11, 27, 43 and 59 in oobfree? On the contrary, if this note is a mistake in the RM, then why are bytes 21, 37 and 53 not in oobfree?
-nandv2_hw_eccoob_smallpage,nandv2_hw_eccoob_largepageandnandv2_hw_eccoob_4k:
* Why is byte 6 not in oobfree?
Probably bugs aswell. Most people do not use filesystems requiring OOB data anymore, so bugs may stay uncovered for longer.
Sascha
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |