public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/9] drivers:mtd:UBI: add bakvol module for MLC NAND paired page issue
@ 2015-09-28  7:02 Bean Huo 霍斌斌 (beanhuo)
  2015-09-28  7:41 ` Boris Brezillon
  2015-09-29  9:28 ` Richard Weinberger
  0 siblings, 2 replies; 11+ messages in thread
From: Bean Huo 霍斌斌 (beanhuo) @ 2015-09-28  7:02 UTC (permalink / raw)
  To: dedekind1@gmail.com, adrian.hunter@intel.com,
	computersforpeace@gmail.com, baruch@tkos.co.il,
	asierra@xes-inc.com, guz.fnst@cn.fujitsu.com, gsi@denx.de,
	richard@nod.at, Boris Brezillon
  Cc: Boris Brezillon, David Woodhouse, linux-mtd@lists.infradead.org,
	Artem Bityutskiy, Richard Weinberger,
	Frank Liu 刘群 (frankliu), Andrea Scian,
	Peter Pan 潘柏宏 (peterpan),
	Karl Zhang 张双锣 (karlzhang), Iwo Mergler,
	Jeff Lauruhn (jlauruhn), Stefan Roese,
	linux-kernel@vger.kernel.org

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb2312", Size: 2424 bytes --]

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Ç+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

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

end of thread, other threads:[~2015-10-08  2:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-28  7:02 [PATCH 0/9] drivers:mtd:UBI: add bakvol module for MLC NAND paired page issue Bean Huo 霍斌斌 (beanhuo)
2015-09-28  7:41 ` Boris Brezillon
2015-09-28  8:16   ` Bean Huo 霍斌斌 (beanhuo)
2015-09-29  9:28 ` Richard Weinberger
2015-09-30  5:31   ` Bean Huo 霍斌斌 (beanhuo)
2015-09-30  6:55     ` Richard Weinberger
2015-10-02 10:28       ` Richard Weinberger
2015-10-08  2:10         ` Bean Huo 霍斌斌 (beanhuo)
2015-10-08  0:27       ` Bean Huo 霍斌斌 (beanhuo)
2015-09-30  7:33     ` Boris Brezillon
2015-10-08  0:49       ` Bean Huo 霍斌斌 (beanhuo)

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