Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp536599imm; Wed, 25 Jul 2018 01:29:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeOtugN785Wy29WLqDUE6ctrjgUP9KJhiEtbSVoA6RbNDvKfpL8AFC5vpwyPVncqEHtRaln X-Received: by 2002:a63:ed56:: with SMTP id m22-v6mr19631477pgk.148.1532507358779; Wed, 25 Jul 2018 01:29:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532507358; cv=none; d=google.com; s=arc-20160816; b=JfWI9u0wPw3IEtnNs1PGO/1ODZ98xxWdf/YxHe9tJs3X6e4fjc0ilZ0zIcLH0MN4Zb D/e89iTFuaBf4Jv6dwLh7pIT2qhdX6ufi8tyKkPfQL84u+J7Op5hk0ELKwgY2U4V93Aj IfX7/ExGOEsdwKTwyKRQLX1dPNSV+tm0hm7fDvU/seCOm030NamXWq90aeW7P0sGkwae MexrL/A9lYML7hPE4EbRsN0ORDNHvG3ZFJ4oeEI/3+emq91fwTDyA9izbLZU4PIxY6qT 2R2dsQnvAyaCLGrjbJonMsaxNivyXdG4KbxVrjuWTxOhSvzDy8mJaQBZetHHKQ4h2X5K cMsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=aflXLnvI+jWZRby/Koq3hRvUf2VY1EZsymYv/kREVto=; b=kOheGtiQz9p4C25OyFaDNft1xcEEK3tpRf88t4shp7rBaO6eVcbAfjMqeHmXcwwAJg nzXLkRpAQfpepYmMYwMgn7xpiv3NIf2tOZVceGX+7rf+3ryxKHhAV/6tkqRVtLaeC7be Seeelj4Z54RalN71lb/j1NBh+3rbYHEAL19cJamJ1vHcWImTlFgoJuPzoSP4VUbRnJ0F Tw8VT/NyO7X5MNUoKkduVvRjphxCM03Ma0jAMo7718M5fhavxCwoeIA7L9rlIgtTRjws NBHfjMvELIMhY/kOXc5tUKk7ikfl1cJ59riV9knPRMgHtIp3VDCAhuR9OdtDwh1Ja7lb OV6A== 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 v2-v6si14212956pfv.57.2018.07.25.01.29.03; Wed, 25 Jul 2018 01:29:18 -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 S1728653AbeGYJiv (ORCPT + 99 others); Wed, 25 Jul 2018 05:38:51 -0400 Received: from eddie.linux-mips.org ([148.251.95.138]:42466 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728357AbeGYJiv (ORCPT ); Wed, 25 Jul 2018 05:38:51 -0400 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23991808AbeGYI2LxGeKp (ORCPT + 2 others); Wed, 25 Jul 2018 10:28:11 +0200 Date: Wed, 25 Jul 2018 10:28:10 +0200 From: Ladislav Michl To: "H. Nikolaus Schaller" Cc: Marek Belisko , =?iso-8859-2?Q?Beno=EEt?= Cousson , Tony Lindgren , Rob Herring , Mark Rutland , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org Subject: Re: [PATCH 10/32] ARM: dts: omap3-gta04: update gpmc NAND setup Message-ID: <20180725082810.GA8303@lenoch> References: <20180725081058.GB7467@lenoch> <1E7B727D-1AED-4B00-AD2C-CF9FC562E53D@goldelico.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1E7B727D-1AED-4B00-AD2C-CF9FC562E53D@goldelico.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 25, 2018 at 10:16:28AM +0200, H. Nikolaus Schaller wrote: > Hi, > > > Am 25.07.2018 um 10:10 schrieb Ladislav Michl : > > > > On Wed, Jul 25, 2018 at 08:58:42AM +0200, H. Nikolaus Schaller wrote: > >> to better match omap3-beagle.dts (which was the basis > >> of designing the GTA04). > >> > >> Signed-off-by: H. Nikolaus Schaller > >> --- > >> arch/arm/boot/dts/omap3-gta04.dtsi | 14 +++++++------- > >> 1 file changed, 7 insertions(+), 7 deletions(-) > >> > >> diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi > >> index 03fe404cbf56..9568e0c4d4bf 100644 > >> --- a/arch/arm/boot/dts/omap3-gta04.dtsi > >> +++ b/arch/arm/boot/dts/omap3-gta04.dtsi > >> @@ -616,27 +616,27 @@ > >> interrupt-parent = <&gpmc>; > >> interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */ > >> <1 IRQ_TYPE_NONE>; /* termcount */ > >> + ti,nand-ecc-opt = "ham1"; > >> + rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */ > >> nand-bus-width = <16>; > >> - ti,nand-ecc-opt = "bch8"; > > > > You are using weeker ECC scheme just to be compatible with another machine? > > No not another machine. The GTA04 uses the same SoC and NAND chip as the BeagleBoard, > so you can imagine GTA04 being a BeagleBoard + a lot of other things. > > The key reason is to change the ecc scheme is to be compatible with the U-Boot used. > > BootROM can only handle ham1 for the MLO. And there is no nand-ecc-opt > for each partition. So we either can't mix ECC schemes if we want to be able > to read/write MLO as the first partition from kernel. > > > So now you cannot boot already deployed filesystem... > > No. We always used ham1 and bch8 wasn't working at all here. Therefore nobody > did use upstream kernel for NAND yet... > > > Also is it enough for > > NAND chip used? > > Well, the chip is recommended to use bch8 but BootROM imposes above mentioned limits. Then common way to handle such a situation is to use 1bit hamming for MLO and BCH8 for the rest. You will end with corrupted filesystem with ham1 which I'd consider very unfortunate. (I know there were endless discussions how to handle this situation. It is already solved in U-Boot and for updating MLO from Linux I'm using writeloader tool) ladis > BR, > Nikolaus > > > > > ladis > > > >> + #address-cells = <1>; > >> + #size-cells = <1>; > >> > >> - gpmc,sync-clk-ps = <0>; > >> + gpmc,device-width = <2>; > >> gpmc,cs-on-ns = <0>; > >> gpmc,cs-rd-off-ns = <44>; > >> gpmc,cs-wr-off-ns = <44>; > >> gpmc,adv-on-ns = <6>; > >> gpmc,adv-rd-off-ns = <34>; > >> gpmc,adv-wr-off-ns = <44>; > >> - gpmc,we-off-ns = <40>; > >> gpmc,oe-off-ns = <54>; > >> + gpmc,we-off-ns = <40>; > >> gpmc,access-ns = <64>; > >> gpmc,rd-cycle-ns = <82>; > >> gpmc,wr-cycle-ns = <82>; > >> gpmc,wr-access-ns = <40>; > >> gpmc,wr-data-mux-bus-ns = <0>; > >> - gpmc,device-width = <2>; > >> - > >> - #address-cells = <1>; > >> - #size-cells = <1>; > >> + gpmc,sync-clk-ps = <0>; > >> > >> x-loader@0 { > >> label = "X-Loader"; > >> -- > >> 2.12.2 > >> > >> -- > >> To unsubscribe from this list: send the line "unsubscribe linux-omap" in > >> the body of a message to majordomo@vger.kernel.org > >> More majordomo info at http://vger.kernel.org/majordomo-info.html