From patchwork Fri Jun 29 06:57:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Genoud X-Patchwork-Id: 168006 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (unknown [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B6502B700A for ; Fri, 29 Jun 2012 16:59:16 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SkV9O-0005kv-ME; Fri, 29 Jun 2012 06:57:54 +0000 Received: from mail-ey0-f177.google.com ([209.85.215.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SkV9K-0005kh-S3 for linux-mtd@lists.infradead.org; Fri, 29 Jun 2012 06:57:51 +0000 Received: by eaaf11 with SMTP id f11so1258748eaa.36 for ; Thu, 28 Jun 2012 23:57:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=8QH0atW+fgDgCv2+3lbbqBXjwC3jxqC+lSliaK+ntQw=; b=gWjbk3s3ryaZ8saECvWb8CNXRmaJlfm991hYY0LmbRMI8sfv/SwvRtzfaUAPBzSCTz F2YPJKO+UQP8/GAyrXx2Mx+zftxplV7P72BaG/VmHt9Th9lT14sJzyCmB3W9sqxrdn1y 4k7MiLlTTrCwiFWeW4gkghcxFKP6x3ZeuPQt9Z8+vVs6uimPoMdyBH32r1B/WqL5q5ln 1kulo+Pl/6eXFussiYe+o82CcY/fD+2BBA7hdSLrvJIjv50ay5JRjks/vlrRS7yUAE8Z JNw/zl9bMB0DDAktzrZ8m06eOL/cjHiqzNw9ZvdJROuGUHpiaGwK1I6JsiLdXgnGNzbn moPg== Received: by 10.180.109.195 with SMTP id hu3mr2296708wib.8.1340953068498; Thu, 28 Jun 2012 23:57:48 -0700 (PDT) Received: from localhost.localdomain (lyon.paratronic.fr. [213.41.177.106]) by mx.google.com with ESMTPS id y2sm4120974wix.7.2012.06.28.23.57.47 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Jun 2012 23:57:48 -0700 (PDT) From: Richard Genoud To: Artem Bityutskiy Subject: [PATCH] UBI: Change the default percentage of reserved PEB Date: Fri, 29 Jun 2012 08:57:41 +0200 Message-Id: <1340953061-15728-1-git-send-email-richard.genoud@gmail.com> X-Mailer: git-send-email 1.7.2.5 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (richard.genoud[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.177 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Richard Genoud , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The actual value (1%) is too low for actual NAND devices, a huge majority of device has 2% maximum bad blocks (SLC or MLC). (Actually it's 20 blocks on a 1024 blocks device, 40/2048...) Signed-off-by: Richard Genoud --- drivers/mtd/ubi/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/ubi/Kconfig b/drivers/mtd/ubi/Kconfig index 738ee8d..ea4b95b 100644 --- a/drivers/mtd/ubi/Kconfig +++ b/drivers/mtd/ubi/Kconfig @@ -29,7 +29,7 @@ config MTD_UBI_WL_THRESHOLD config MTD_UBI_BEB_RESERVE int "Percentage of reserved eraseblocks for bad eraseblocks handling" - default 1 + default 2 range 0 25 help If the MTD device admits of bad eraseblocks (e.g. NAND flash), UBI