From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F13DBC433E0 for ; Wed, 17 Mar 2021 14:12:54 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4F68464F38 for ; Wed, 17 Mar 2021 14:12:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4F68464F38 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=qBMdoiMdywL3ROCLD1qn6jA1DgUPBqvBickiUvSy/IE=; b=JqGx5lvtS7Q7uvtF+moemkQGv +ROWjc+Hjobjwcvz0snETjhp9MsGt+zkbTpoydOT3U2jH+GxlALqrMive6vxDKu41569v/LJFc36+ Ua6NX0yMQwm2FZgrMmu+hT0OPqGWwndbXLouA5K6+/z8uEV+kq3rJkCPMkbj3+wm2qvJfRz0UaXq6 dDcd1/c/4u/qPKXK4diR6OUfyTJUUX3F170o5o9AoyFtaRA+cqx6RFSLJHuXUwA6vqEDYW+nFEt8G Q8oktvaiGg/Wcf90gPDWtYv8p01t85JVTTjdZo2LmSQzjQ5HdtRtieJXnq2CCkn16pQGiDTf4XkWO HxacShgcQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lMWt5-003E4d-Vu; Wed, 17 Mar 2021 14:11:04 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lMWt0-003E3r-Np for linux-arm-kernel@lists.infradead.org; Wed, 17 Mar 2021 14:11:01 +0000 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMWsv-0004Qw-QZ; Wed, 17 Mar 2021 15:10:53 +0100 Received: from sha by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lMWsu-00032p-MK; Wed, 17 Mar 2021 15:10:52 +0100 Date: Wed, 17 Mar 2021 15:10:52 +0100 From: Sascha Hauer To: dillon min Cc: Rob Herring , shawnguo@kernel.org, parthiban@linumiz.com, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux ARM , Linux Kernel Mailing List Subject: Re: [PATCH] ARM: dts: imx6ull: fix ubi mount failed on MYS-6ULX-IOT board Message-ID: <20210317141052.GW4207@pengutronix.de> References: <1615270520-16951-1-git-send-email-dillon.minfei@gmail.com> <20210309121836.GU4207@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 15:07:52 up 27 days, 17:31, 85 users, load average: 0.07, 0.24, 0.23 User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210317_141059_124601_BD78D4FD X-CRM114-Status: GOOD ( 29.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Mar 10, 2021 at 10:54:05AM +0800, dillon min wrote: > Hi Sascha, > > Thanks for reviewing. > > On Tue, Mar 9, 2021 at 8:18 PM Sascha Hauer wrote: > > > > On Tue, Mar 09, 2021 at 02:15:19PM +0800, dillon.minfei@gmail.com wrote: > > > From: dillon min > > > > > > This patch intend to fix ubi filesystem mount failed on MYS-6ULX-IOT board, > > > from Micron MT29F2G08ABAEAWP's datasheets, we need to choose 4-bit ECC. > > > > > > Table 18: Error Management Details > > > > > > Description Requirement > > > > > > Minimum number of valid blocks (NVB) per LUN 2008 > > > Total available blocks per LUN 2048 > > > First spare area location x8: byte 2048 x16: word 1024 > > > Bad-block mark x8: 00h x16: 0000h > > > Minimum required ECC 4-bit ECC per 528 bytes > > > Minimum ECC with internal ECC enabled 4-bit ECC per 516 bytes (user data) + 8 > > > bytes (parity data) > > > Minimum required ECC for block 0 if PROGRAM/ > > > ERASE cycles are less than 1000 1-bit ECC per 528 bytes > > > > 4-bit ECC is the minimum this chip requires. There's nothing wrong with > > choosing a better ECC like the GPMI driver does by default. > > > Yes, indeed, the mt29f2g08's minimum ecc is 4-bit, you can use 8-bits ecc. > but there is a dependency between new kernel gpmi-nand with the old > mfg-kernel's , which means > if the old nand ecc layout is 4-bits, you should use ecc 4-bit in the > new kernel (by fsl,use-minimum-ecc), > else use 8-bits. > > For my case, the ubifs filesystem was created by ecc 4-bits, without > reflash filesystem or change Then this is the justification for this patch, not anything from the datasheet like you've written in your commit message. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel