Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1818254rdh; Sat, 25 Nov 2023 04:20:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGsclcLrzrwt9rP/HgRwui6dsF9wXhqggLLbHhcc2yB1gbjS8Q88kLELGt1bwulGtrT6XoW X-Received: by 2002:a17:903:5c3:b0:1cf:6551:e28b with SMTP id kf3-20020a17090305c300b001cf6551e28bmr6395749plb.45.1700914829939; Sat, 25 Nov 2023 04:20:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700914829; cv=none; d=google.com; s=arc-20160816; b=WDyIIxXn77H6aqVwNAiGD0F96ubxyuJ0dt5kc1jrb80CmN5ZWxjyqN6uJvdTgW9cyX 9UHDxkUpAfeZHjTqEClEJJ3Q31uDU7gElpAVnas8zF6bxzEgyBD/7oK2rLt7UBQfpjgx ta1F5JsIj9c2EgIJ3BRMS924sNrAX15tv2gkeOvO5f0QEE3o6PYqkSVkyBirxZQgCCdN tJZEafsu/rm7toMRU75ZRAscRoOwDpe+MCl3ncHwP87rupKlkr/fpin7Sqxj069jbjXg DiPI3o6KWGmDlm1o8hDABNDszRntI7Xfix/YFdi7hXPZzxKObENncvlQAnMz6T8p5mRG hPhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=wLNC2dQRxNwbdqbdpPBiPNSyavZeuvFV/OJxhNNf1w4=; fh=rSFdVjeHOpLchEnZwQw2X9nJEgNS/Y9JNZLx42s16JY=; b=RyLMUmufSetBOUhtrQFSertbQRCUV8MBdm9+vyyilGeQuyqHvahvcR7+rXhVdaIr9V AbpB8wULw3E0fk9wu1xok4txUz+bfWeTMQVHPfMai0M96rAujWi8m/bGhBbjwKOWX4nO yG83idW6/A6exMniz98FdzaDieVaCswC6VQUwTN+UzB25ypkWc+cZ+HSDneT4sB9YdWL 7jXfYh3X3E7xjLUkNVtqQUJblBUzBlHOeFx5POld40HroYhVlCFpfdDP79WzeY5MdeIm WXSB3aT8q2zgkAfjPqGj0V2PsQnff/6Fhaw8CoCLJF97km1H65NgpU9XMNUUqIXhjWO9 /gIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=wTpPLHW8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id o66-20020a634145000000b005b91a58721esi5693215pga.316.2023.11.25.04.20.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 04:20:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=wTpPLHW8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 6E2CA806301D; Sat, 25 Nov 2023 04:20:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231960AbjKYMUH (ORCPT + 99 others); Sat, 25 Nov 2023 07:20:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjKYMUD (ORCPT ); Sat, 25 Nov 2023 07:20:03 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA295D6; Sat, 25 Nov 2023 04:20:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1700914777; bh=UdGEv17E3hADi12SsQvKXsMSfqGDSsuNeaYFESGrjdk=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=wTpPLHW8z7ca6AJhErXFAC4R4WnTbREJAmiDLia0GxyUp5/5Q4KHlTnKg6iDlkPna kTo3ROnMqYdJnI/wQnZYfh3FXJqaxfSDzd6CXb/RqR+dg7BcOM00LVIPdIuOuK1jVu CYtOC+Wfe6hlDyKLngymph9mCDMh31rQS4pYFshg= From: Luca Weiss Date: Sat, 25 Nov 2023 13:19:27 +0100 Subject: [PATCH v2 1/2] arm64: dts: qcom: msm8953: Set initial address for memory MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231125-msm8953-misc-fixes-v2-1-df86655841d9@z3ntu.xyz> References: <20231125-msm8953-misc-fixes-v2-0-df86655841d9@z3ntu.xyz> In-Reply-To: <20231125-msm8953-misc-fixes-v2-0-df86655841d9@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1096; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=UdGEv17E3hADi12SsQvKXsMSfqGDSsuNeaYFESGrjdk=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBlYeZXvatWXYJzXEZ6FjI5/HS4cRAQyBJuohxSV V7kqHpbO1KJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZWHmVwAKCRBy2EO4nU3X VhMHEACjjLgF+I7uJI59zY9sXv37xkBYt5o69pWh54DCFVOcMb1RHJ0Yop4cvkZmwa9hA/S+gBI sDmfSXsYGvqpZ3TdHf4uyZ4Hfxsb27bv+ltjLvluvzZColbtZVKK9tmvT9j9kq2RixrUWQFBUME 1DE9+74FQKqX9hTKocOwS4nkBcv3rV4bgnoz+ZZJ3+zQMi4ZCDEYKcSSOkFP2CI9h+4OUT1GK3V q3W5vF8M+972KQxSC/Yi375dIpqyqeHlU/pLISeVs+TTu+vZVo/hPRruAtyT71oe1DyFwFcU7c8 7L26cQuu3IMWkaFGkOSBj51727SsTHEGFrFLEYo7jMoQ50BJjAnLBIPJAU2t8DeHQCNgkR4AVql pms9lVmHXIV8X/xxJLp9D9ZhlF4pmr1+GFhor5xkF9S1pn12jk966c0NQOwDmgdjOoaYy/q8sZG MGx1TxLnsS3LAiIUJ+3RlJcj8p/msQD4lN5iL1rP/EnLi6QGodBqyjxd1OlEKzjsM2JqBMUIKHw 7M5QpIYRwFHZwairzNMfMOs8ktp0k/7uApMZ9U1HPmHLEB7tPWNrt8f5Ru9AEB660ylGNReATA+ cOwOJ+WnPQjjC9Zk3baI2ESMO4HDIjJDCO2oxXuKTyWUHcCSA01ou9UElDzL+7K9gIkJfNrJlSX bcOvLIVjE1KtfnQ== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Sat, 25 Nov 2023 04:20:27 -0800 (PST) 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 { + 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