Received: by 10.223.185.116 with SMTP id b49csp2635171wrg; Mon, 5 Mar 2018 06:22:15 -0800 (PST) X-Google-Smtp-Source: AG47ELsBGXByzj4r9HOmSL78rgitnB/rwBGigh9fuFE/5KMWDiQT3T9n+zV11CCFXdYNN/Ns0T46 X-Received: by 2002:a17:902:6b83:: with SMTP id p3-v6mr3435566plk.25.1520259735411; Mon, 05 Mar 2018 06:22:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520259735; cv=none; d=google.com; s=arc-20160816; b=oEVPCh3yvZUkfqcCeBnlpB2K1zNwoNTgT3C2NCu6OEIKhtL97NP4Ywduw/NbbiH+av bgDv6SByibyjfgIyZrcaa/SybcoW72WtVqdHJr83IsXqOSSNkjHKtJUTtIeRloT+XAvc yzbZSnZCeenJL3cDjPKlFFf3tbAb425PTQih6JEYs+0mlzjKstj70KJCWQu7aN3ZYxz6 mXF88HO0e8DBa7ztPfH9q8rbn4WDUio4jYdRcw/G7iyuNnYr4jeivr4p+9rGOWjiivdw jpK+LsBcrF/ngLghCqA/diyXiBhvzBah5hVchxPfazXFtTRHx54lv7wdobsNI4WIQW6H jTgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=kJxBnLa9YvNm1pXOfFfGrshyhXUJAxEq4UE8xCg1FqA=; b=CTXccRZolppZBjty+H0jSV1tcGdrIJ4dqdagBqM357fqtmnIofAjOAik1MsqtmkllC 6eXajMWABKIMhA+7jnUGcRfaIuXVJyD2lvKeVcsbu2YOtPc0yOrHXSHBCROgICNm3Zz0 claoewj22lJro9qcp0WgzHnXuMacGZk+eseIOGvDhrZgirfDujYZrv7CwpBsCNQG4xDw wIe6FLNMc2Q5mT8u8leNIjGVSLdQBdno1mRmqfq5jZ37H64IQRAoAaB7K2yF95SZsgvp X3l2s4F9lH+IBW5mNdirBzA57JvIlydPy5WzjiAzX9LbO340qP6mTrVIjT7yiFzvG3jY 04kQ== 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 d14si8366985pgn.306.2018.03.05.06.22.01; Mon, 05 Mar 2018 06:22:15 -0800 (PST) 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 S932165AbeCEORD (ORCPT + 99 others); Mon, 5 Mar 2018 09:17:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:51418 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751342AbeCEOQ7 (ORCPT ); Mon, 5 Mar 2018 09:16:59 -0500 Received: from mail-yb0-f177.google.com (mail-yb0-f177.google.com [209.85.213.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E2BD121777; Mon, 5 Mar 2018 14:16:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E2BD121777 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh@kernel.org Received: by mail-yb0-f177.google.com with SMTP id b12-v6so5778587ybn.8; Mon, 05 Mar 2018 06:16:58 -0800 (PST) X-Gm-Message-State: AElRT7FZql7WlsRj00LXS8b+ecXDQOnvpMaB2pwoGem62PGAWDkji76i wP/+fi2Bj/uPAQN7Egp8WXbXaJnB1GXP1YQ04g== X-Received: by 2002:a25:8609:: with SMTP id y9-v6mr9012297ybk.298.1520259418121; Mon, 05 Mar 2018 06:16:58 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a25:8007:0:0:0:0:0 with HTTP; Mon, 5 Mar 2018 06:16:37 -0800 (PST) In-Reply-To: <1520033229.8089.198.camel@mtkswgap22> References: <20180302154215.xr3b2zlmuojw5i6l@rob-hp-laptop> <1520033229.8089.198.camel@mtkswgap22> From: Rob Herring Date: Mon, 5 Mar 2018 08:16:37 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 16/19] arm: dts: mt7623: fixup available memory size on bananapi-r2 To: Sean Wang Cc: Matthias Brugger , Mark Rutland , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 2, 2018 at 5:27 PM, Sean Wang wrote: > On Fri, 2018-03-02 at 09:42 -0600, Rob Herring wrote: >> On Fri, Feb 23, 2018 at 06:16:36PM +0800, sean.wang@mediatek.com wrote: >> > From: Sean Wang >> > >> > There is 2GB DDR3 available on bananapi-r2 board as [1] specified. >> > >> > [1] http://www.banana-pi.org/r2.html >> > >> > Signed-off-by: Sean Wang >> > --- >> > arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 5 +++++ >> > 1 file changed, 5 insertions(+) >> > >> > diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts >> > index 140ff78..3e8d02c 100644 >> > --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts >> > +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts >> > @@ -38,6 +38,11 @@ >> > default-state = "off"; >> > }; >> > }; >> > + >> > + memory { >> >> Unit address? >> > > If I did it with adding unit address > > - memory { > + memory@80000000 { > device_type = "memory"; > reg = <0 0x80000000 0 0x80000000>; > }; > > > bad dtc blob is being generated and contains two memory nodes, one is > memory and the other is memory@80000000 whose blob disassembly detail is > as the following. > > memory { > device_type = "memory"; > reg = <0x0 0x0 0x0 0x0>; > }; > > > > memory@80000000 { > device_type = "memory"; > reg = <0x0 0x80000000 0x0 0x80000000>; > }; > > > and bad memory node with size 0 would cause the boot fails. > > > is it a dtc compiler problem ? No, you are declaring "memory" node somewhere else. Perhaps using skeleton.dtsi which we are trying to remove or you have some default. Using just 'memory' is fine if the base address is variable and determined at boot time or you have a bootloader that expects just 'memory'. Otherwise, this should be fixed, but you can do that after this patch if you want. Rob