Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2101748rdb; Sun, 3 Dec 2023 02:38:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IFG/7Xi70V6FKmbq85mDbKiwV+7whMZOvf7RpCXEHw73eAB2Fg9+AeDJr6Ux/qjp3cUM0LH X-Received: by 2002:a92:cd8e:0:b0:35d:5995:7987 with SMTP id r14-20020a92cd8e000000b0035d59957987mr4255363ilb.33.1701599909236; Sun, 03 Dec 2023 02:38:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701599909; cv=none; d=google.com; s=arc-20160816; b=HiWTvpxQ+yLQn3XZCW/rIC9dS3eA7+NOzO5NpT9mrVIqzwkkBcWYFEfyE8etRJAxfF UJbW9UgmdENVmTLt/t79qsgGgxoLd8jvb56AmA/2JoNYnaO+lQOKCpMAMxjfcFSQgu+Z YTdK7qxjSB0bNpIirXBiCtQkO8p+l3nYTTrc5vgsEtU4axGLAqnoVX2HcFtbrLpubKOj DIuVIXQjzT4TupG8JCKCYUXHD2XSecob13/AaZMuDcrZwzqe+F0oKb84FkxauUq2qArE pqizQm1YK7P033Ntdk7QVikDRbJ0OGEPcIFGDA0C1OVeHmKFExN/iSoGKlTsp6wM+dap ybTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qFfdiIQAJFEVCXv8ays18ZI4pAwQM1zWh7g2xoIunBw=; fh=C5ECFE/sb3MNljHijNqOoKY2UOmqD7eXywhe4CFcETM=; b=rog49tMGEbFva+Ldms2Rf5FcF0+qT/DdkVv4xTpS2rM99r0DPGN3JK+miImplxgU9o n5chCxjHWcbNuSJGComPrkXo2Y5RCKFTQXDwE5Kd9Hw8LEzkhBFnaZ1SQkoksKSjdvXE UJLazrsed/+ZUW63+zQpfDkiaTWywA8QfMLWftLIjqYmVte6vZxIpepudMbvxPtC9sc/ vOL0QSkIE1TmCy7CNglXIeD0yYd9cWkjxRRvq10U0MhVtpkcfjmaeF7yReiDvu2AFrTl /B3wPdX1EGtE0SWmtyxBFcLS1/WK78omYAZE9irtKV6sOAH4AoXOm9cwY+SKJ7GFPe7K pCPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=s1 header.b=SPC77Gh4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id qa10-20020a17090b4fca00b0028619ba2f09si2576687pjb.50.2023.12.03.02.38.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 02:38:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=s1 header.b=SPC77Gh4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 92A1D807C85F; Sun, 3 Dec 2023 02:38:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233337AbjLCKiL (ORCPT + 99 others); Sun, 3 Dec 2023 05:38:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232685AbjLCKiK (ORCPT ); Sun, 3 Dec 2023 05:38:10 -0500 Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C207F2; Sun, 3 Dec 2023 02:38:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=s1; t=1701599894; bh=gfTmLjG+RDZIzwKoJm7kepCtpzSofJnZrPO/EdJCflY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=SPC77Gh4dVLSLqgmBDzjfjEiCH0YAYA72E5Uqz01zs41j1FGhhKKokrq96cyY4lji 23C9vqjw9wUbaYKrvtMzXhLF2Q69T5gboN8coWA9Flf4LDIL8ueqoJbDpjiVyvavU2 +FSNkHc+iqOBM29PPUEG3J38MXZaMDG5i1s9EqWc= From: Luca Weiss To: Bjorn Andersson Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] arm64: dts: qcom: msm8953: Set initial address for memory Date: Sun, 03 Dec 2023 11:38:13 +0100 Message-ID: <2575326.iZASKD2KPV@z3ntu.xyz> In-Reply-To: References: <20231125-msm8953-misc-fixes-v2-0-df86655841d9@z3ntu.xyz> <20231125-msm8953-misc-fixes-v2-1-df86655841d9@z3ntu.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 03 Dec 2023 02:38:26 -0800 (PST) On Sonntag, 3. Dezember 2023 05:20:23 CET Bjorn Andersson wrote: > On Sat, Nov 25, 2023 at 01:19:27PM +0100, Luca Weiss wrote: > > The dtbs_check really doesn't like having memory without reg set. > > > > The base address depends on the amount of RAM you have: > > <= 2.00 GiB RAM: 0x80000000 > > > > = 3.00 GiB RAM: 0x40000000 > > = 3.75 GiB RAM: 0x10000000 > > > > (more does not fit into the 32-bit physical address space) > > > > So, let's pick one of the values, 0x10000000 which is used on devices > > with 3.75 GiB RAM. Since the bootloader will update it to what's present > > on the device it doesn't matter too much. > > > > Signed-off-by: Luca Weiss > > --- > > > > arch/arm64/boot/dts/qcom/msm8953.dtsi | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/arch/arm64/boot/dts/qcom/msm8953.dtsi > > b/arch/arm64/boot/dts/qcom/msm8953.dtsi index e7de7632669a..a3ba24ca599b > > 100644 > > --- a/arch/arm64/boot/dts/qcom/msm8953.dtsi > > +++ b/arch/arm64/boot/dts/qcom/msm8953.dtsi > > @@ -174,10 +174,10 @@ scm: scm { > > > > }; > > > > }; > > > > - memory { > > Wouldn't it be sufficient to add @0 here, to please dtbs_check? The checker itself also seems to be okay with memory@0 and no other change, but there's this warning with W=1 arch/arm64/boot/dts/qcom/msm8953.dtsi:177.11-181.4: Warning (unique_unit_address_if_enabled): /memory@0: duplicate unit-address (also used in node /soc@0) So probably we should still try to put it at a reasonable address like 0x10000000? Regards Luca > > Regards, > Bjorn > > > + memory@10000000 { > > > > device_type = "memory"; > > /* We expect the bootloader to fill in the reg */ > > > > - reg = <0 0 0 0>; > > + reg = <0 0x10000000 0 0>; > > > > }; > > > > pmu {