public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] mtd: use ONFI bad blocks per LUN to calculate UBIFS bad PEB limit
@ 2015-05-11 15:19 Ben Shelton
  2015-05-11 15:19 ` [PATCH 1/3] mtd: introduce function max_bad_blocks Ben Shelton
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ben Shelton @ 2015-05-11 15:19 UTC (permalink / raw)
  To: dwmw2, computersforpeace, linux-mtd, linux-kernel, dedekind1,
	richard
  Cc: Ben Shelton

For ONFI-compliant NAND devices, the ONFI parameters report the maximum number
of bad blocks per LUN that will be encountered over the lifetime of the device,
so we can use that information to get a more accurate (and smaller) value for
the UBIFS bad PEB limit.

These patches are ordered in terms of their dependencies, but ideally, all 3
would need to be applied for this to work as intended.

Jeff Westfahl (3):
  mtd: introduce function max_bad_blocks
  mtd: nand: implement 'max_bad_blocks' mtd function
  mtd: ubi: use 'max_bad_blocks' to compute bad_peb_limit

 drivers/mtd/mtdpart.c        | 12 ++++++++++++
 drivers/mtd/nand/nand_base.c | 35 +++++++++++++++++++++++++++++++++++
 drivers/mtd/ubi/build.c      | 10 ++++++++++
 include/linux/mtd/mtd.h      |  1 +
 4 files changed, 58 insertions(+)

-- 
2.4.0


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

end of thread, other threads:[~2015-05-14  9:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-11 15:19 [PATCH 0/3] mtd: use ONFI bad blocks per LUN to calculate UBIFS bad PEB limit Ben Shelton
2015-05-11 15:19 ` [PATCH 1/3] mtd: introduce function max_bad_blocks Ben Shelton
2015-05-11 15:19 ` [PATCH 2/3] mtd: nand: implement 'max_bad_blocks' mtd function Ben Shelton
2015-05-14  9:43   ` Richard Weinberger
2015-05-11 15:19 ` [PATCH 3/3] mtd: ubi: use 'max_bad_blocks' to compute bad_peb_limit Ben Shelton

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