From patchwork Sun Aug 19 19:29:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artem Bityutskiy X-Patchwork-Id: 1344691 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 99F953FC33 for ; Sun, 19 Aug 2012 19:32:50 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T3BBu-0007P6-7Q; Sun, 19 Aug 2012 19:29:42 +0000 Received: from mail-bk0-f49.google.com ([209.85.214.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T3BBq-0007Op-HS; Sun, 19 Aug 2012 19:29:39 +0000 Received: by bkcji2 with SMTP id ji2so1995305bkc.36 for ; Sun, 19 Aug 2012 12:29:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:reply-to:to:cc:date:in-reply-to:references :content-type:x-mailer:mime-version; bh=HiZwDX6IWuz/g2/bCwchJhDVWWlUqH5lKV41GS81QtQ=; b=rdrLoUtCHGiIcg0Nvq8K4PcWDaAzfDccGAsA6WAlXjv4vII0eNtxV3vOtLpy9OYIYz eczTKVhg8RBFU+W61k1hy6EX0x+zBhnykstbf8y1TjG8nK4Oh/JfCR0onPhS9vLArW0U i5sw61fTF4H1mrlc/IibQXFoSoQTn/Kdq7xrzjVW9mkgYmMmcq0mA+oojffwrkmn3gOO WkIpCB2tmpC8ORRK23n7XuON9BEhaZXt2G0V5v+Qfl3+9grrnny3x/L8U3PqxFr2zjUp jK9WSHpq0NyCqxUruU/ORlmyPEUIFJT6CSr1TJ6dn0K1A0lD+CxvzAiWM5L25585mb+L l+Lw== Received: by 10.204.136.195 with SMTP id s3mr3885739bkt.6.1345404576394; Sun, 19 Aug 2012 12:29:36 -0700 (PDT) Received: from [192.168.255.2] (host-94-101-1-70.igua.fi. [94.101.1.70]) by mx.google.com with ESMTPS id fu8sm5266817bkc.5.2012.08.19.12.29.34 (version=SSLv3 cipher=OTHER); Sun, 19 Aug 2012 12:29:35 -0700 (PDT) Message-ID: <1345404573.1930.9.camel@kyv> Subject: Re: [PATCH 1/8] arm: sam9_l9260_defconfig: adjust UBI bad eraseblocks limit From: Artem Bityutskiy To: Richard Genoud Date: Sun, 19 Aug 2012 22:29:33 +0300 In-Reply-To: <1345404079.1930.7.camel@kyv> References: <1345214124-5478-1-git-send-email-richard.genoud@gmail.com> <1345214124-5478-2-git-send-email-richard.genoud@gmail.com> <1345404079.1930.7.camel@kyv> X-Mailer: Evolution 3.4.3 (3.4.3-2.fc17) Mime-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (dedekind1[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (dedekind1[at]gmail.com) -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: Artem Bityutskiy , linux-mtd@lists.infradead.org, Shmulik Ladkani , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: dedekind1@gmail.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org On Sun, 2012-08-19 at 22:21 +0300, Artem Bityutskiy wrote: > I'll just remove this from from the defconfig and make it use the > default, which is more sensible for this device, as your research > showed. Actually, pushed this patch to l2-mtd.git: From: Artem Bityutskiy Date: Sun, 19 Aug 2012 22:22:23 +0300 Subject: [PATCH] arm: sam9_l9260_defconfig: correct CONFIG_MTD_UBI_BEB_LIMIT UBI has changed the MTD_UBI_BEB_LIMIT semantics. It used to be a percent of total amount of eraseblock in the partition, and now it is the maximum amount of bad eraseblocks on the entire devise per 1024 eraseblocks. So not only the units changed, but also the meaning. Richard Genoud says: "I found the board: https://www.olimex.com/dev/sam9-L9260.html and the nand datasheet: http://www.rockbox.org/wiki/pub/Main/LyrePrototype/K9xxG08UXM.pdf page 11, we can see that the max_bad_bebper1024 is 25 (100 for 4096)" Thus, use "25" for sam9. Signed-off-by: Artem Bityutskiy --- arch/arm/configs/sam9_l9260_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs/sam9_l9260_defconfig b/arch/arm/configs/sam9_l9260_defconfig index da276f9..b4384af 100644 --- a/arch/arm/configs/sam9_l9260_defconfig +++ b/arch/arm/configs/sam9_l9260_defconfig @@ -39,7 +39,7 @@ CONFIG_MTD_NAND=y CONFIG_MTD_NAND_ATMEL=y CONFIG_MTD_NAND_PLATFORM=y CONFIG_MTD_UBI=y -CONFIG_MTD_UBI_BEB_LIMIT=3 +CONFIG_MTD_UBI_BEB_LIMIT=25 CONFIG_MTD_UBI_GLUEBI=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_RAM=y