Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1999021rdb; Sat, 2 Dec 2023 20:20:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGGIZZSOK42v5pFspjXVS0s1Uk37ql+XX3CEjUT5Sq98bCuyGmYuEwQustaDCqdYwoHKGZY X-Received: by 2002:a54:4013:0:b0:3b8:b063:9b81 with SMTP id x19-20020a544013000000b003b8b0639b81mr2489930oie.115.1701577219520; Sat, 02 Dec 2023 20:20:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701577219; cv=none; d=google.com; s=arc-20160816; b=CV0dxjKO6Mr3nQS9jBObH1c2XKRTDGq0bsAHvfTdwsPPZJZXrnMDHfL2+HeFWZPTAV 5yfRRwu9isGaGGSUXhsJkvFcEx0m7U48iPCcVrVTcALbBGm3YDyU6mnWux5ni9uubVZA 4Kb2LKcXykuPRjsh0iIP1g6cu7wehNDvJ2A7jFufUPguILCDYH/JoBN/cuf7bSAShdwi GvZr6ipF/PP5nxaSgrDV/qdFuzv/u3ToWw6z8onoJQ9W/cnBbiDT3LmQCbZT+jsNAlo3 RWABHTR1i6LMYP6CwWJspLaGKZLIoikO4aCrcWV8Zje1d45YrpJOPUk5eW4icjgNljtS VXtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=64Vu/SrPhvqwgKqfMpytHtAEtJyUthbrYO0+HgmvaxY=; fh=BQ8FLt84q/iYaGVlb5AbxGYkcsWGJRlqLbdFjDx9Eb0=; b=HxIqlqRKh9MiPWUV97kh68MGBtrKjAS/pZ7aQKZbT+5UWqkzxffsI38vKAMo/ZNY+m pHCd05MYQKHlhJAZlzXHVW+p4XXwR2Yz38FbTr6RvYFpvahSwf8bcilRVqLjW9QEvNqF E/LINf5wFv+mPHi+FZb6fs35d3QZXqK2VHX+zqKOJx6HIZIJ73shu7AAZVnWPqyZdXLN 95E2/L/H6F1WsycM/rxs7Tnl2Pl2zlXWnErNST0eA4MwW06WDayDUwtfZHFm9BN7bSXA ZZtcpRESOimBQypA5cu7vfuSvX0fAsFIQC1cEhI1TImvrMgq81bLUm/98hkU2+tJ7Qjf bwqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="O5JUmFm/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id g132-20020a636b8a000000b005bdf5961d93si5746038pgc.387.2023.12.02.20.20.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 20:20:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="O5JUmFm/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 05A3A804B252; Sat, 2 Dec 2023 20:20:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231378AbjLCEQx (ORCPT + 99 others); Sat, 2 Dec 2023 23:16:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjLCEQw (ORCPT ); Sat, 2 Dec 2023 23:16:52 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E032FC for ; Sat, 2 Dec 2023 20:16:59 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37836C433C7; Sun, 3 Dec 2023 04:16:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701577019; bh=dNHaZIvvaL6GGnX3G4FpDDFAZEql/SRhtxrzRXaewmE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O5JUmFm/oayglVa+ESKehMFNjvY/n/cH68K/sEZ7dcraLOxPaOLgo1hpq8UxTh4/F uUIFb/ezUeoWdT4FNfSClHVsufzcyxTFi8IMUWtiOpKtX5W9RlqkIxKaq4yKZC/IEF UHoYOBaMOBridTzgUagDT1Rm5lhaYru2mnLp9oNzU9SH+uhGrBXQaPIYK1GripprL9 NWsPzQVp9O2SFVT+yrlZV0FiKJM9XiE8n0N+Wx5w0/0pdzwyOW+C3KVGrDDz8sxQnP NJzHDGpH+gEfoCnXodsV2J9vC5H7hoZEWoByMaxjx4f+m1uCjQBQaptbIk6S0v5rHg MothIW7k/HoBA== Date: Sat, 2 Dec 2023 20:20:23 -0800 From: Bjorn Andersson To: Luca Weiss 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 Message-ID: References: <20231125-msm8953-misc-fixes-v2-0-df86655841d9@z3ntu.xyz> <20231125-msm8953-misc-fixes-v2-1-df86655841d9@z3ntu.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231125-msm8953-misc-fixes-v2-1-df86655841d9@z3ntu.xyz> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 pete.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 (pete.vger.email [0.0.0.0]); Sat, 02 Dec 2023 20:20:17 -0800 (PST) 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? 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 { > > -- > 2.43.0 >