Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4726459pxf; Tue, 23 Mar 2021 19:25:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFNUxiuu3u3yqO42Hg9xlca7M0WxR7/xaMByCJc7BkTAo/e6Gl/88No1hVs9MmgnJ6+0YQ X-Received: by 2002:a17:906:144d:: with SMTP id q13mr1261164ejc.458.1616552704837; Tue, 23 Mar 2021 19:25:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616552704; cv=none; d=google.com; s=arc-20160816; b=WkJiW1RrLoKmHnEaWEBKBw8cu188GWevozR1IUa/bBLkL9qhQOghZLQB9ed7vwpurh 24BCvX0yUXiZq1txZSbv93MzfjnG3z5c7Z7cJnz0v+4QC0wD1+vPtd71PSD+CHisH09P DQew0PWlN9rU2TFZI3ipgtYCFVZyaJL5uNIXyY4DhhWpgLxZyGJoANdngmHqUkF9JP3f BcjX6xtVr5qwmEk5PbXKbgz+Brb0/gFotFA1XJUtGP1PBcTcWg0WlPAgxyi/IpcmYo0M esZuvddP0e26FMnGnr458HipwWZZKUkMP58v+xcmX66EEJh0l8LlGcGikSfW5Qzwrz+I Cp6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=uy3bzLc+Rb+ytLF5lwcKunkaecP6Nv9eB3+5a8qShyI=; b=otsMWUGvT24exsE/1cE3hqSaRCTUtYaT/H4d5Nqh+xG1cGRLADxslYtUmp8T7Nk9X0 uNSDtS6oDT8WloHD6Lq7h7wRTcy4mQRBULf9/LuAmyNIz9qwQalzoyWwt1rkjYUMbeEE UYVnnwfafoxltRrPIBt8JUwaAytccLoQMtuLN2gKG1EZRPLcRVU2fqmpUneybv1IPMQw EJ7pp3VfyWu8vCt17j8s6ozY0miZNqouu8RZ3mDwVXCKssV3f/tUvtQc2NJ6kfWm45nG TWXNW6H2ArmBeUcfnTZY+mHRAONhMVJRZ/TEfFMHoDqmpLJ0GhCVbp8pKi+LMvQZobEw in2Q== 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 a9si634510ejk.421.2021.03.23.19.23.59; Tue, 23 Mar 2021 19:25:04 -0700 (PDT) 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 S232013AbhCWOGU convert rfc822-to-8bit (ORCPT + 99 others); Tue, 23 Mar 2021 10:06:20 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:38371 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231928AbhCWOGH (ORCPT ); Tue, 23 Mar 2021 10:06:07 -0400 Received: from xps13 (lfbn-tou-1-1325-59.w90-89.abo.wanadoo.fr [90.89.138.59]) (Authenticated sender: miquel.raynal@bootlin.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id C84F7100016; Tue, 23 Mar 2021 14:06:04 +0000 (UTC) Date: Tue, 23 Mar 2021 15:06:03 +0100 From: Miquel Raynal To: Daniel Palmer Cc: linux-mtd@lists.infradead.org, Linux Kernel Mailing List Subject: Re: [PATCH v2] mtd: spinand: add support for Foresee FS35ND01G-S1Y2 Message-ID: <20210323150603.6b942a60@xps13> In-Reply-To: References: <20210213095724.3411058-1-daniel@0x0f.com> <20210215112409.1a755bf0@xps13> <20210215121653.4edd86c4@xps13> <20210322193213.18520b9a@xps13> <20210323113233.3523d66b@xps13> Organization: Bootlin X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, Daniel Palmer wrote on Tue, 23 Mar 2021 20:47:10 +0900: > Hi Miquel, > > On Tue, 23 Mar 2021 at 19:32, Miquel Raynal wrote: > > You can run nandbiterrs -i /dev/mtdX > > > > You'll see if there is ECC correction or not (and its level). > > These are results I get for both of the nandbiterrs tests. > > # nandbiterrs -i /dev/mtd1 > incremental biterrors test > Successfully corrected 0 bit errors per subpage > Inserted biterror @ 0/5 > Read reported 4 corrected bit errors > ECC failure, invalid data despite read success This is not a valid behavior. There is something wrong with the way ECC status is read/retrieved. The read should indeed report 4 corrected bit errors, but then the data should be valid. Here it means that the introduced error appears corrected but in fact is not. We need to understand what status are available and write the appropriate vendor code. Thanks, Miquèl