Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1585927imu; Wed, 12 Dec 2018 00:14:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/U5j9tZg54joSQrnagE/Dpb6k8SlPqEJsNbZGJZFn8/SgKwIqzhLyTc637ZhsWTFen45aRo X-Received: by 2002:a62:7652:: with SMTP id r79mr20052215pfc.241.1544602494659; Wed, 12 Dec 2018 00:14:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544602494; cv=none; d=google.com; s=arc-20160816; b=WCBGGkkwYwX/HhFDYjV8ZHwnFVwfxB+P/jstt0u4eS/qGxUW3jELiN82d18BrRTkJ6 QBDRAdhVo0q+5YniX2DL4/hwegEwh6LSbBhi0et1SBP/DSY/+uvyIjel6efV6U/4qlyg 5FmapKsR9ZF+IMa18B3motMS4AJAtKdFWRaFKkbUwyZt5Ji2XF3uGmZegSaOw7A7OmM4 JnFVStwpmGlyLDYXnfIoALlTmBqCf+JY93fe+F08EM3/44E+3WBvkfKyKKnwiNJ3bk1w 7BPVN+H5h2lAoy1QcSIwhMSqaKEsfAS1i1e8BMvhOULqaqHfxSKdSaUPUxEJ9Ax4q7Vb DC6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=/2uzrNAI5I1Y5KiRVwYP5HbuL0/6tcxu4F6/yDHjcTc=; b=uD58rMdipN3av0hubo6an/cWS4zvVnaajKl+LH7rdKSmN3x2jiXHZuM6aROVWVwoYp e9rfhfPgMfNcnFSn/u/welUi26KFJv7kp1YZxpdewfXwWMf6He/XpjWtAHnjO8IfExAN vI6aew5BW/MVIYa68egXNVtiHR28VKYgopEWYx4+5ErwLFLmEDu/An5Wg8q7Sxwg1Cp7 2yf08aqKwb+Y/4gXWNu+AYoN4dnHdPq2ttJKDbzMxgOYZqeBswiwoGO5L/bxQrPaySh6 PvT/1Na0aNd7unDupkUp5DU0mV11R6aHArtcAY2GCJYaHzlWqUzSbLyTiJZnFvauol60 uI8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h127si15484498pfe.204.2018.12.12.00.14.16; Wed, 12 Dec 2018 00:14:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726745AbeLLILt convert rfc822-to-8bit (ORCPT + 99 others); Wed, 12 Dec 2018 03:11:49 -0500 Received: from mail.bootlin.com ([62.4.15.54]:52828 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726437AbeLLILt (ORCPT ); Wed, 12 Dec 2018 03:11:49 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id D215B20CEB; Wed, 12 Dec 2018 09:11:46 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from xps13 (aaubervilliers-681-1-89-7.w90-88.abo.wanadoo.fr [90.88.30.7]) by mail.bootlin.com (Postfix) with ESMTPSA id 7A8882073D; Wed, 12 Dec 2018 09:11:36 +0100 (CET) Date: Wed, 12 Dec 2018 09:11:35 +0100 From: Miquel Raynal To: Naga Sureshkumar Relli Cc: Boris Brezillon , "robh@kernel.org" , "richard@nod.at" , "linux-kernel@vger.kernel.org" , "marek.vasut@gmail.com" , "linux-mtd@lists.infradead.org" , "nagasuresh12@gmail.com" , Michal Simek , "computersforpeace@gmail.com" , "dwmw2@infradead.org" Subject: Re: [LINUX PATCH v12 3/3] mtd: rawnand: arasan: Add support for Arasan NAND Flash Controller Message-ID: <20181212091135.1d0cc9a6@xps13> In-Reply-To: References: <1541739641-17789-1-git-send-email-naga.sureshkumar.relli@xilinx.com> <1541739641-17789-4-git-send-email-naga.sureshkumar.relli@xilinx.com> <20181118204324.373ca9cc@bbrezillon> <20181119090246.49060019@bbrezillon> <20181120120244.7d2442b5@bbrezillon> <20181120133624.3fa4742d@xps13> Organization: Bootlin X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Naga, Naga Sureshkumar Relli wrote on Wed, 12 Dec 2018 05:27:03 +0000: > Hi Boris & Miquel, > > An update to my comments on thread https://lkml.org/lkml/2018/11/15/656. > In this I said, will take a default error count value as 16 and during page read, will check the error count > Register value with this and if it is equal to or greater than the default count(16) then I am checking for > Erased pages. > But bit[7:0] in ECC_Error_Count_Register(0x38) will update for each error occurred. > Link: https://www.xilinx.com/html_docs/registers/ug1087/ug1087-zynq-ultrascale-registers.html and > check for NAND module, ECC_Error_Count_Register. > > I mean previously I dependent on Total error count value (bit[16:8]), but we can simply check for bit[7:0] > To see the error occurred or not. > I tried with this approach and I don't see any issues with that. > I ran ubifs with this and I am able to see the bit[7:0] count is updated for erased page read and then will > Use nand_chech_erased_ecc_chunk() to see the bitflips. > > If it is ok, I will update the driver and will send new patch, but do you have any other comments on v12? Is 'nandbiterrs -i' running correctly now? Thanks, Miquèl