Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1624567imm; Tue, 10 Jul 2018 05:18:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeNxfnKhl46xR/Td++1fx8uweea83FUudbWNIMEH66t21jlqfoSXh7Uejsouw2zS3w+yScn X-Received: by 2002:a17:902:b693:: with SMTP id c19-v6mr9149921pls.114.1531225138042; Tue, 10 Jul 2018 05:18:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531225138; cv=none; d=google.com; s=arc-20160816; b=LpYPmcQl8Q9i9PMHiwHH4cLSiaZCEjd4vtyjgiiJFShLcbKvXeF4bVUY10tPuCaxXA Cmb0znXegTwzlM6JzjfFEAa2vSIYbI1EAr8SgFS7rsWvTAsHkJXw2Ck5X8rJCPN+NYGd UDTtrWfDS/xMyyaoNRowcb5m/SIrCY2+GZjvSGYEn4HLnxJ88GcpJqXBwkw09JaXaXmQ vHs2tBCjlCxS7h3J3p0BOWfSqaG8TXzt33MVJwpcbxCg0BKKcnRyTuF8fhY3U83guQVc TZqM6xLv3le3XQdXm/sLHtG0Sh87vl/xGjknRst4MaokvaS/KQit224FWIu23NVNxupJ y39g== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=JQDnTvxJYCFS+kY00FqMWHLLHle1jZcak9aSGdDGwvY=; b=KgCs599HzCB+X0wK7Y38NcvfLmqDJvONVIn2yc2ga6kBSf4DkkX3NJojV8sKi5/39k H53m/+cF54sL+Vm5/BWdcakm0A0LQzJgQplooGCXi5SYhIozCEEWw5vcXOyPaN21XFjf Sig8b+855oZNjA+dO9UoN+LSTo55eRusLftZ4hFS45ea3+7kQNoDNajNP6vizijPYhPV fBTesiWLRdxcl06Bh139gEFaKi6WwCw9ZcBSCOP42YHwVNeE0bpN11lkNvJxa7g+MW89 HBhiPHD1TUXEUI2/fPTho9oPgFlToMyDbb+teTtadNX9AWTqZe7mceE56MnAmYvIQXvO To5Q== 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 i186-v6si10879330pfb.90.2018.07.10.05.18.29; Tue, 10 Jul 2018 05:18:58 -0700 (PDT) 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 S933311AbeGJMR3 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 10 Jul 2018 08:17:29 -0400 Received: from mail.bootlin.com ([62.4.15.54]:34491 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933275AbeGJMR1 (ORCPT ); Tue, 10 Jul 2018 08:17:27 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 662EC20875; Tue, 10 Jul 2018 14:17:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) 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.0 Received: from bbrezillon (AAubervilliers-681-1-12-56.w90-88.abo.wanadoo.fr [90.88.133.56]) by mail.bootlin.com (Postfix) with ESMTPSA id 2D7AA2079F; Tue, 10 Jul 2018 14:17:16 +0200 (CEST) Date: Tue, 10 Jul 2018 14:17:15 +0200 From: Boris Brezillon To: "Bean Huo (beanhuo)" Cc: Chris Packham , "linux-kernel@vger.kernel.org" , "linux-mtd@lists.infradead.org" , "miquel.raynal@bootlin.com" , "computersforpeace@gmail.com" , "dwmw2@infradead.org" Subject: Re: [PATCH v6 0/6] mtd: rawnand: support MT29F1G08ABAFAWP-ITE:F Message-ID: <20180710141715.375ac6df@bbrezillon> In-Reply-To: <60a09008ea18424eb4005839554da858@SIWEX5A.sing.micron.com> References: <60a09008ea18424eb4005839554da858@SIWEX5A.sing.micron.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; 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 On Tue, 10 Jul 2018 11:40:08 +0000 "Bean Huo (beanhuo)" wrote: > Hi, Boris > >> > >> Okay, I think we already had this discussion, but I'm asking it again. > >> What are the possible values for that field and what do they mean? > > > >Still, it's not clear to me what "Internal ECC level" means. It seems that NAND > >chips having on-die ECC have this field set to 10b (0x2), 00b seems to be > >reserved for "no on-die ECC", but what are 01b and 11b reserved for? > > > > That position identifies the part as having Internal ECC capability. > The 01b and 11b are reserved for future definition. Bit 7 of READ ID Byte 4 identifies the > device as an ECC OFF 0x0 or ECC ON 0x1. > > >> Also, is it even used to encode the fact that the NAND has on-die ECC > >> on all your NANDs? We already had the problem of incompatible ID > >> schemes, so I wouldn't be surprised if that was the case here, hence > >> my initial suggestion to base the detection on the model name. > > > >I'd really need to have an answer on that one to take a decision. Also, I > >couldn't find a datasheet for an IT (without E) version of the > >MT29F1G08ABAFAWP part. Does it exist, or can we assume > >MT29F1G08ABAFAWP chips always come with forcibly enabled on-die ECC? > > MT29F1G08ABAFAWP comes in ECC ON only. We didn’t develop a > MT29F1G08ABAFAWP ECC OFF version. Bit 7 of READ ID Byte 4 identifies the > device as an ECC OFF 0x0 or ECC ON 0x1. > Okay. Can you have a look at the patches I sent an let me know if I do the right thing?