Hello, This series aims at adding a bakvol module for MLC NAND paired page Power loss protection. MLC NAND paired page power loss is a known issue so far, MLC NAND pages are coupled in a sense that if you cut power while writing to a page, you corrupt not only this page, but also one of the previous pages which is paired with the current one. Currently, there is no a perfect solution for this. This paired page solution is based on NAND multiple plane program feature. For this Patch, only used dual plane page program, means two different plane pages can Be programmed together at the same time. Dual plane page program only implements in backup operation. Only lower page data Be duplicated and back up into a internal log volume by dual plane program method.
This patch has been testing on Micron 70s/80s/90s MLC NAND. Of course there are some places needed to be improved and simplified. Any suggestion and comments welcomed. Bean Huo (9): drivers:nand:mtd: add support for UBI bakvol in mtd layer drivers:mtd:ubi:add definition for UBI bakvol operation drivers:mtd:ubi:add metadata struct for UBI bakvol fs:ubifs: add hook for UBI bakvol in ubifs layer drivers:mtd:ubi:add support for getting block according to plane drivers:mtd:ubi:add hook for UBI bakvol in ubi_io_write drivers:mtd:add NAND dual plane program support drivers:mtd:ubi:init UBI bakvol and recover corrupted lower page drivers:mtd:ubi:add bakvol module in UBI layer drivers/mtd/mtdpart.c | 21 + drivers/mtd/nand/nand_base.c | 401 +++++++++++++++ drivers/mtd/ubi/Kconfig | 15 + drivers/mtd/ubi/Makefile | 2 + drivers/mtd/ubi/attach.c | 26 +- drivers/mtd/ubi/bakvol.c | 1106 ++++++++++++++++++++++++++++++++++++++++++ drivers/mtd/ubi/build.c | 7 + drivers/mtd/ubi/io.c | 63 ++- drivers/mtd/ubi/ubi-media.h | 40 ++ drivers/mtd/ubi/ubi.h | 17 + drivers/mtd/ubi/wl.c | 134 +++++ fs/ubifs/super.c | 6 + fs/ubifs/ubifs.h | 1 + include/linux/mtd/mtd.h | 19 + include/linux/mtd/nand.h | 4 + include/linux/mtd/ubi.h | 9 + 16 files changed, 1862 insertions(+), 9 deletions(-) create mode 100644 drivers/mtd/ubi/bakvol.c -- 1.9.1 N�Р骒r��y����b�X�肚�v�^�)藓{.n�+�伐�{��赙zXФ�≤�}��财�z�&j:+v�����赙zZ+��+zf"�h���~����i���z��wア�?�ㄨ��&�)撷f��^j谦y�m��@A�a囤� 0鹅h���i