Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2845069imu; Mon, 17 Dec 2018 08:43:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/WOhdRxHGOtEfjH9DUzKFkoMPI2POjEDu9iL81w9Y2JVO86IzDedx4+pBcrIDLavpdXhWvv X-Received: by 2002:a17:902:b943:: with SMTP id h3mr13548069pls.12.1545064999086; Mon, 17 Dec 2018 08:43:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545064999; cv=none; d=google.com; s=arc-20160816; b=gh6KC98XLhgkkncrr8T+G56bW9aAYEY0fRmJJBK89Dz72ga5A0JJWswgguacawLrVH 4TOhuw3q2IzPWlpuravmyImoibSiDR+uND0LmT0NSniSH71IWle+Ax35kfSKh54aolxt +TaGRkvEPKSr7C9GvRMPMGDsddy40oqt0fm9NrATmJhni996dHzemjnB7xs5b5jyXejr GQjuRGECbOgs37CGHA39kDI5mYGKg6WM8y7xS/xFF3bxnusszb+rGay0JWOUBc4PVkWF Z26vbJOcetb3fV8I//FrO8K+N9SSMIvbMCjtfeXRaTbu6wT39kOPklcCLblW+IUSvg0+ VLBg== 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=wA30KeruYd6Ge0F+fpOWkuMpsTxLqsnM7wEaKMiJgVM=; b=CJO7qE8IwSc0CtWZaKRG4bHxQ60LQJ8Q2pKEM8mZN4mHj5fLZitAPMfCIglhWSCxdg 44apsjMe4o2wZTml+rqXSINiiGjquUpHDWYT3l1EdebcwDf9ffaaSNXGPLZBb5PivNNH DTDXFY+JVLuYR5hK84tbiOufHFw9ihTb0LZf3FVMKrE+LmwupbxYFQ7x5AdMWbnw9JO5 oYOjIr26VE2eZ12G/9b+lLmIYfwYslOs+lpKXfkAyBaR6sy0vtSNhc+tYRvpJ2U5BH2D CkEK2ntXWlEYW8GVJWS3jDXKhDUcZXDOX2hEIKV4MFUMu6i8j35ihW/YZPgmQdQq1UHU HsYg== 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 z12si11077312plk.90.2018.12.17.08.43.03; Mon, 17 Dec 2018 08:43:19 -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 S2388320AbeLQQl1 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 17 Dec 2018 11:41:27 -0500 Received: from mail.bootlin.com ([62.4.15.54]:32896 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388223AbeLQQl0 (ORCPT ); Mon, 17 Dec 2018 11:41:26 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 5ADF4207B2; Mon, 17 Dec 2018 17:41:24 +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 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 0601420723; Mon, 17 Dec 2018 17:41:13 +0100 (CET) Date: Mon, 17 Dec 2018 17:41:14 +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: <20181217174114.24196d17@xps13> In-Reply-To: References: <1541739641-17789-1-git-send-email-naga.sureshkumar.relli@xilinx.com> <20181118204324.373ca9cc@bbrezillon> <20181119090246.49060019@bbrezillon> <20181120120244.7d2442b5@bbrezillon> <20181120133624.3fa4742d@xps13> <20181212091135.1d0cc9a6@xps13> <20181212100931.149b0cac@xps13> <20181212141825.69711c57@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, [...] > Inserted biterror @ 48/7 > Successfully corrected 25 bit errors per subpage > Inserted biterror @ 50/7 > ECC failure, invalid data despite read success > root@xilinx-zc1751-dc2-2018_1:~# > > But even in this case also, driver is saying ECC failure but read success. > That means controller is able to detect errors on read page up to 24 bit only. > After that there is no way to say to the upper layers that the page is bad because of the limitation in the controller. This is more than a "limitation", the design is broken. I am not sure how to support such controller, and I am not sure if we even want to. > Could you please suggest any alternative to report the errors in that case? Shall we support the controller without the hw ECC engine? Boris, any thoughts? Thanks, Miquèl