Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754741AbbEKPUv (ORCPT ); Mon, 11 May 2015 11:20:51 -0400 Received: from skprod2.natinst.com ([130.164.80.23]:34649 "EHLO ni.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754591AbbEKPUo (ORCPT ); Mon, 11 May 2015 11:20:44 -0400 From: Ben Shelton To: dwmw2@infradead.org, computersforpeace@gmail.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, dedekind1@gmail.com, richard@nod.at Cc: Ben Shelton Subject: [PATCH 0/3] mtd: use ONFI bad blocks per LUN to calculate UBIFS bad PEB limit Date: Mon, 11 May 2015 10:19:53 -0500 Message-Id: <1431357596-29959-1-git-send-email-ben.shelton@ni.com> X-Mailer: git-send-email 2.4.0 X-MIMETrack: Itemize by SMTP Server on US-AUS-MGWOut2/AUS/H/NIC(Release 8.5.3FP6|November 21, 2013) at 05/11/2015 10:20:08 AM, Serialize by Router on US-AUS-MGWOut2/AUS/H/NIC(Release 8.5.3FP6|November 21, 2013) at 05/11/2015 10:20:10 AM, Serialize complete at 05/11/2015 10:20:10 AM X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2015-05-11_03:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1062 Lines: 27 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/