Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2503468pxb; Tue, 9 Mar 2021 04:20:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+PfdRKUXgZboBtZhksUuwR4D3SwyCh2UkoRVydC3D6nwBH5v5RM3H+/O0NTe7MjhfWQOs X-Received: by 2002:aa7:cd16:: with SMTP id b22mr3845530edw.357.1615292450716; Tue, 09 Mar 2021 04:20:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615292450; cv=none; d=google.com; s=arc-20160816; b=RwsCR2Kd01/fBZr6gYdG9cNpMuq2mvdri6uVQWMcF8TjPGfA9H4dJ+ahtnpf4tsnHG qBR4sCyTxzQBc48r7XTELYIpyV8YOKtmIQWa9ZGk88rF0nNqZ75XviVo9VLuuKIam1j3 3iD7F3Osgf2XVXcT79TYOjnzFVX8wiCvYVuOTOM8uOU2gprbQLTna/Anb+bjSR6jpW+f G/rZdqdI6JYLzOfGC1THFBhPqhqwyE1zTIgcT+GgiIwnRx5dC+qXL8D1S36H90tgak8b NHZxjNC4nlJficS5LA3PuzjI4naqtee5Rg4dw31NXOMCPErdh31oHeaK8ANEZWZyuqUB byIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=NiYBthLVC3nTsCpHGcKR3Pr21fY85f/0U35JWqvyw0U=; b=HBfEHn8douGVvq3fsP3dt3k57ctfZah7i0GkxGsRJFL8+MP9YSdzj6U9PVswW1MgmF TLeq1865mR9+JKT2MzUQb0+QUhseQ2F6mpVKPY7oC+EEoLm4eqXcUl9qfvbbLj55tkpq jcIhMI8hDi6i5t7fELVA19PLGacclk4EfKbkcwjFgDgAf6E6mVKkOb0kty1IAqmqHJ+7 0VdQgCM+q5nRMBwu+KF++St8Jzr3O0Yc+a+QCnS6rxOVb7qqJ00DFXUFSInQi7lJKZ5h K17+sExSQTnd04lpDoov/GTWyCa7zfJE5s7RmFZ5ZQ+gYFcXfKN1V3IjqgF9C85kkhZo e0zg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bk20si9027599ejb.203.2021.03.09.04.20.28; Tue, 09 Mar 2021 04:20:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230458AbhCIMTY (ORCPT + 99 others); Tue, 9 Mar 2021 07:19:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230150AbhCIMSu (ORCPT ); Tue, 9 Mar 2021 07:18:50 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22553C06174A for ; Tue, 9 Mar 2021 04:18:50 -0800 (PST) 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 1lJbJt-0005ex-71; Tue, 09 Mar 2021 13:18:37 +0100 Received: from sha by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lJbJs-0007ZH-1M; Tue, 09 Mar 2021 13:18:36 +0100 Date: Tue, 9 Mar 2021 13:18:36 +0100 From: Sascha Hauer To: dillon.minfei@gmail.com Cc: robh+dt@kernel.org, shawnguo@kernel.org, parthiban@linumiz.com, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: dts: imx6ull: fix ubi mount failed on MYS-6ULX-IOT board Message-ID: <20210309121836.GU4207@pengutronix.de> References: <1615270520-16951-1-git-send-email-dillon.minfei@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1615270520-16951-1-git-send-email-dillon.minfei@gmail.com> 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: 13:14:07 up 19 days, 15:38, 88 users, load average: 0.34, 0.43, 0.30 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-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. It looks like you are papering over some other problem. 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 |