Received: by 10.192.165.148 with SMTP id m20csp4280350imm; Tue, 8 May 2018 06:06:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZprifUBvJ9NJqpHv7Il60NfN7S5fifVw7ZmhS+1+pzERDpV5GadHjMj3ydFOogu4poAiME7 X-Received: by 2002:a65:4c82:: with SMTP id m2-v6mr33124635pgt.23.1525784781478; Tue, 08 May 2018 06:06:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525784781; cv=none; d=google.com; s=arc-20160816; b=MzuFK67jpa/+j4zd4MwNRga5po+dM7DY/TpGomdz1TqlTMVJV3ffU5RM/wdyziYfqm f7MSxRUJ/6s5+NbU9Vqxsrz4WjmpByIf5cUxU/5Fk06fgEmeg6nf9MyzDI9ech1IhpXR wev23cl1LRVRpKNKrMPsJKHYuBhipiQ40lbzloaZ0ciKOFoJ4QKsWR40OiHxMKsqMNTD YMhAwuaiy8mGh/gx1wAhfQ3PHxKAbza+Ce5VsXfrOuYjsnlfVdgj/pLWeo1og/xFkUfU bytsiSNOhJ3tyG9aQ2cMCuxCMYVeMIOLkKM8XFe8P/1UVZstsCaFm12VS1Taqt2ZI9Qs mvEA== 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:date:cc:to:from:subject:message-id :arc-authentication-results; bh=X3tLWgl/0Qth0K/PnOV7FTKxJKeqqwmdzz38Kxq+UGc=; b=OpOJFbLBC2SsXtuVne/+/fTLW2frqfTomH0szbLbopOaqhfkev8wf5wWpAd8VPQPes 1EqM9aTmCt82JD810WANlYotMy+tIdg0Z9KYKCjj3GuNXQpKl+Gwpc0m3feEbjnxLeMH f8H3HTwXguiHf00s6WzrZ19tAeYz6pYmgLINL5VbkiYZ03q9p1sgCdGr6UIvFQZCQcMk pcKrfx0XklD+LaBflSclnc/fyoXaupT17uBmuJO688sraEd+2AmoRZ8mGwzVXiYhMtUC wB1vaaz1rD+1n7GTFvLiXz8sgGqzWtYide/nlZEVBwEY/rfUY5GUA34M/emzkqtSHrzH wK+w== 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 j73si23739627pfa.297.2018.05.08.06.06.06; Tue, 08 May 2018 06:06:21 -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 S1754776AbeEHNDa (ORCPT + 99 others); Tue, 8 May 2018 09:03:30 -0400 Received: from mout.perfora.net ([74.208.4.196]:52909 "EHLO mout.perfora.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753678AbeEHND2 (ORCPT ); Tue, 8 May 2018 09:03:28 -0400 Received: from localhost.localdomain ([46.140.72.82]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LniZN-1efuRE40iN-00hsc9; Tue, 08 May 2018 15:03:12 +0200 Message-ID: <1525784582.6999.27.camel@ziswiler.com> Subject: Re: [PATCH v2] ARM: dts: tegra: Add support for 256 MB Colibri-T20 (plus such board on Iris) From: Marcel Ziswiler To: Krzysztof Kozlowski Cc: "stefan@agner.ch" , "linux-kernel@vger.kernel.org" , "robh+dt@kernel.org" , "jonathanh@nvidia.com" , "devicetree@vger.kernel.org" , "dev@lynxeye.de" , "thierry.reding@gmail.com" , "mark.rutland@arm.com" , "linux-tegra@vger.kernel.org" Date: Tue, 08 May 2018 15:03:02 +0200 In-Reply-To: References: <1525360112-9893-1-git-send-email-krzk@kernel.org> <1525428885.6296.18.camel@toradex.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 (3.26.6-1.fc27) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:2fd3QXjPdHQnxBB8K44Llo+EAIrwxP0z8WWrJlRv+KEn0QVmsum hUw1Cpo0Q6e9eBhcNY0Mp6Ieu6EOs9HB1wPNB9K+rvedI2oazveWp4pF2PjDKJVsjwVwawo 6+yIgIUolHNraOhXkVBG80kuldlUi70oxn+Pxidsn2HoqId0voEiNSPRKc5zZid7U+OS/C2 ZDb3y8RjAswx7VAOeaITA== X-UI-Out-Filterresults: notjunk:1;V01:K0:F2xCF09E9WE=:pNqqd7aOSz99zCpbJC5t/u 30jbHw4L+vPqneOvPA713K6PZc0dDlZQwy81fsxbD6ExKvv1Er4MU0z04GEdcCBC/b2cHAr6q er9s6z7vCKBNeunBiwSlS9mu72Y0kSLzbcYHd5I+6pYda3lgQga5XvR8DX5L3m+iLjx94BUo2 Swt7LpET9UckaNAUoRw1Z9OenwJCOdqXZDnMryxzEOrlnBvKzvpMhxbcLZdnlRH6UgFgPPRTt hVZYPA8pBLRE7x0qjGNME1hDrk8Bek8KdU5/fYTiRvpfCF+bOnQg2Q3NTgNJu1doUrxoYKmP1 k+ocmzJEY4pIPxmhcRaPp328TeYXXaBSmDuxnM8MTZdUB6D5t4SCsGE8m6HZGt1LKXfAqqI2/ 3ADuAXwqX6wYuRDrs1fTMeqfyXcgXu4lV3Fct61fPJ9rEKU1srQOBSN/LjZIZFOfZjhBqNTk2 y4v9MDfw7qqoOyswVwZqoFjyVFThdO1HOZ1m3wXkZRDSsAa00JzkjCxt960CwghwUuHvKoB4k 5KsUlImPiEfybH4BcPJl1IIMhtTzVLm1LnrnCjVx7XeDEI1sjA1qxGE2AVQQQqmc2QnELgr5w HbJNi+dhxg3BDPHN8hPcRuBb4tibVj/hd9j00HTIqgKc+nnDeVsHEtIGuNxi7MQjmnG/Q+FLo AANAtkw4BaNUSCLJGJEWLsGt6ElU/l8GQ9W28GqRwe6hVasEzu2GlvgbrTFSTkIRh8NEE05bW qrgVpoTdQWq68DQi Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-05-08 at 14:35 +0200, Krzysztof Kozlowski wrote: > On Fri, May 4, 2018 at 12:14 PM, Marcel Ziswiler > wrote: > > Hi Krzysztof > > > > On Fri, 2018-05-04 at 12:03 +0200, Krzysztof Kozlowski wrote: > > > On Fri, May 4, 2018 at 11:19 AM, Stefan Agner > > > wrote: > > > > On 03.05.2018 17:08, Krzysztof Kozlowski wrote: > > > > > Colibri-T20 can come in 256 MB RAM (with 512 MB NAND) or 512 > > > > > MB > > > > > RAM > > > > > (with 1024 MB NAND) flavors. Add support for the 256 MB > > > > > version > > > > > on Iris > > > > > evaluation board. > > > > > > > > To we really need to specify memory size these days? I think > > > > all > > > > common > > > > boot loaders fill the memory node anyway. > > > > > > > > arch/arm/boot/dts/imx6qdl-apalis.dtsi: > > > > /* Will be filled by the bootloader */ > > > > memory@10000000 { > > > > reg = <0x10000000 0>; > > > > }; > > > > > > > > > > > > I think we should just rename tegra20-colibri-512.dtsi => > > > > tegra20-colibri.dtsi and tegra20-iris-512.dts => tegra20- > > > > iris.dts > > > > to > > > > avoid confusion and add such an empty node. > > > > > > Having memory node is requirement of DeviceTree specification (at > > > least one cpu and memory node). Of course if bootloader fills it, > > > then > > > we could assume that specification is satisfied... but what if > > > some > > > bootloader skips it? This creates quite specific dependency > > > between > > > kernel's DTS and bootloader. > > > > Yes, no system boots without any boot loader e.g. initialising the > > memory and what not. So there are obviously quite specific > > dependencies. > > Sorry for late reply, I missed your emails because unfortunately > Google marks messages coming for Toradex as spam ("This message has a > from address in toradex.com but has failed toradex.com's required > tests for authentication."). Argh, I guess that happens if you have stubborn IT departments which still believe in M$. Sending via private email now. > Therefore I did not include your comments > and sent v3. Yeah, I noticed that. It's forgiven, don't worry (;-p). > > > One safe solution would be to specify 256 MB memory node for both > > > boards and assume that bootloader will bump it to 512 MB for > > > specific > > > module. > > > > Like I mentioned this actually used to be how it was done however > > lately it has been agreed that any boot loader anyway needs to do > > the > > device tree dance (e.g. even just loading and passing it). > > Then the safest way is to provide /memory node with 256 MB. If some > bootloader omits it (e.g. because it is too old or by any mistake) > the > FDT will be still usable with reduced memory in case of 512 board. Makes sense. > > > > > Signed-off-by: Krzysztof Kozlowski > > > > > > > > > > --- > > > > > > > > > > Changes since v1: > > > > > 1. Fix memory size in tegra20-colibri-256.dtsi (was working > > > > > fine > > > > > because > > > > > my bootloader uses mem= argument). > > > > > > > > What boot loader are you using? You even can omit mem= if your > > > > boot > > > > loader fills the memory node properly. > > > > > > I use the one provided by vendor - Toradex. By default it passes > > > both > > > mem= and few other mem-like arguments (for FB and video > > > processor) to > > > command line. I believe it does not adjust the DTB itself because > > > Toradex prepared this bootloader for... 3.1 kernel without DTB. 7 > > > years old kernel. :) > > > > Remember our regular BSP is still based on NVIDIA's downstream > > Linux > > for Tegra aka L4T R16.5 based on Linux kernel 3.1.10 which does not > > even use any device tree yet. > > Yes, I noticed. I am trying to bring it fully on new kernels but no > huge successes so far... I'm stuck on NAND trying Lucas Stach's old > patchset. Yeah, for a while I kept his patch set alive as well. I believe 4.4 was still working fine passing all MTD tests. However, lately there were so many changes it all fell apart. About a month ago I spend a couple nights trying to get it running again but something is still not quite right. Yet have to sync with Stefan in my team who is much more knowledgeable about latest NAND development. > Best regards, > Krzysztof Cheers Marcel