Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2536246imm; Mon, 28 May 2018 09:59:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqrhoE8gEVFaTO3fDzdVltL1A0y0LnYJghpWTL2dP9KqPSSU2KKk1nifAlPUb2WTI5C9euI X-Received: by 2002:a65:61a5:: with SMTP id i5-v6mr10850531pgv.405.1527526747128; Mon, 28 May 2018 09:59:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527526747; cv=none; d=google.com; s=arc-20160816; b=Dt8Eb5qy5l/0o7hgr0SFPULUzAxJZALm7qIz/3k6UELLkZUAVoKDfb/vqq53iovrxM UAgW4Kq7I3+1TC80h2L8AHLuYgOC6Kj6pAklwClHehuULfYfgdp7AdUb35BFM5wD5rQC sIq5RzVW+e1J+IDVT91lP9NQyAul79XjU2sEOfoRbO4hcLDO2B4VOLrS40digCayX0Lr +V9CKhjgERfhtXRy1nV3VAcALeRunUnbM9VJqxOwZp7Hk3douKQ0OOUCT7vPzUz+Z3ZZ W4bnnepDmXnV3NzOL0YjCFLp9XrquUJWTDeIPDfxDeelTLNRevrWl8T9hNz5UaIw4EDU fgNA== 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=ivZn9hJM5BSAY95yc9qUtSxQku18Jb06Wj2+OI3NmFM=; b=Ut8Rsc1prxL9P6eYCsHEs2+9/qqb6dOjv7wJ58YGKoudzGkXFt6hWJdbNIGMp8PYTa /QuMdvgf0ltCagVMVb5HXUElwsDYabqQNPc4NWW3sV2S9JMCOMolfY6ijXhdZjt+9DFT OwxFByiwDYWaYEdmcaL5xAPE+y5tERIbuukCed+M3uetbLmG4Ut+fk+Ll3NqziorixfK +m2JpuAZzcwrxyGCP2fteeiSSdGgfo2yYTrx5X9JHkwcCTY8qUQ/DXJE4Dy5FzlTM7FX yYwsAniShmwNVBYd3YpaWCnsi4Ti2ZFavVCfTZGMr2ddtMaC4Qmn80su/ncN/LWL2OaL fq2w== 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 c10-v6si7825780pla.53.2018.05.28.09.58.22; Mon, 28 May 2018 09:59:07 -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 S940463AbeE1Q5V (ORCPT + 99 others); Mon, 28 May 2018 12:57:21 -0400 Received: from mail.bootlin.com ([62.4.15.54]:60602 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932116AbeE1Q5R (ORCPT ); Mon, 28 May 2018 12:57:17 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 282292075D; Mon, 28 May 2018 18:57:16 +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 (91-160-177-164.subs.proxad.net [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 8DBD9203B7; Mon, 28 May 2018 18:57:15 +0200 (CEST) Date: Mon, 28 May 2018 18:57:14 +0200 From: Boris Brezillon To: Benjamin Lindqvist Cc: Stefan Agner , Dmitry Osipenko , David Woodhouse , Brian Norris , Marek =?UTF-8?B?VmHFoXV0?= , robh+dt@kernel.org, mark.rutland@arm.com, Thierry Reding , Michael Turquette , sboyd@kernel.org, Lucas Stach , Miquel Raynal , richard@nod.at, Marcel Ziswiler , krzk@kernel.org, jonathanh@nvidia.com, pdeschrijver@nvidia.com, Prashant Gaikwad , Mirza Krak , linux-mtd@lists.infradead.org, linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: Re: [PATCH v2 3/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver Message-ID: <20180528185714.0a33bdc7@bbrezillon> In-Reply-To: References: <20180527215442.14760-4-stefan@agner.ch> 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=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 28 May 2018 18:41:26 +0200 Benjamin Lindqvist wrote: > Note that it's certainly possible to encode U-Boot and kernel with > RS[4] and still use RS[8] for the rootfs even if the boot rom doesn't > support it. Not if you want to read/write from/to the uboot partition from Linux. Per-partition ECC setup is not supported, so the only solutions we have right now are: 1/ use the same ECC config as the one use by the bootrom 2/ only access uboot partition in raw mode from Linux (that implies generating images containing the ECC bytes so that they can be flashed to the device in raw mode) 3/ never access uboot partitions from Linux (not sure we want that) > This whole 'use-bootable-ecc-only' business seems a bit > overengineered. > Hm, I don't find it over-engineered.