Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754119AbbG2IYG (ORCPT ); Wed, 29 Jul 2015 04:24:06 -0400 Received: from mx.dave-tech.it ([2.229.21.40]:46499 "EHLO mx.dave-tech.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752477AbbG2IQD (ORCPT ); Wed, 29 Jul 2015 04:16:03 -0400 X-Greylist: delayed 620 seconds by postgrey-1.27 at vger.kernel.org; Wed, 29 Jul 2015 04:16:02 EDT Subject: Re: [PATCH 5/6] mtd: nand: gpmi: correct bitflip for erased NAND page To: linux-mtd@lists.infradead.org, Han Xu References: <1438105841-22314-1-git-send-email-b45815@freescale.com> Cc: shijie8@gmail.com, dwmw2@infradead.org, computersforpeace@gmail.com, boris.brezillon@free-electrons.com, fabio.estevam@freescale.com, hofrat@osadl.org, linux-kernel@vger.kernel.org From: Andrea Scian Message-ID: <55B88952.1060709@dave-tech.it> Date: Wed, 29 Jul 2015 10:05:38 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1438105841-22314-1-git-send-email-b45815@freescale.com> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 150728-1, 28/07/2015), Outbound message X-Antivirus-Status: Clean Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 980 Lines: 33 Dear Han Xu, Il 28/07/2015 19:50, Han Xu ha scritto: > i.MX6QP and i.MX7D BCH module integrated a new feature to detect the > bitflip number for erased NAND page. So for these two platform, set the > erase threshold to gf/2 and if bitflip detected, GPMI driver will > correct the data to all 0xFF. That's an iteresting feature of iMX6QP We were discussing about erased NAND page bitflip in MTD ML a few days ago. Is gf/2 a right value to choose? Why? IIUC, in a previuos MTD-level patch [1] Brian used ECC strength as threshold. Could you please also share with which NAND device you tested this patch? Kind regards and TIA, -- Andrea SCIAN DAVE Embedded Systems [1] http://article.gmane.org/gmane.linux.drivers.mtd/52216 -- 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/