Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2830709rwd; Mon, 15 May 2023 18:10:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4q++BwqYKBcgRUamf41Rulr8J5h51U3PBjVRfCYF+/RIy11lQOH6EuqinsoAWzPpJwLUTC X-Received: by 2002:a17:90a:b007:b0:24d:f880:5192 with SMTP id x7-20020a17090ab00700b0024df8805192mr34548139pjq.19.1684199416845; Mon, 15 May 2023 18:10:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684199416; cv=none; d=google.com; s=arc-20160816; b=vr0ra9vWgpAyrL52C1zWWGj8bBMyWk7oevCLXBLT0krlBLaCmB9U4C1le3yhq0PPoP g6I5BZoIBMWBSlxNy17kxVEcAmRiai2hdxnZMc7uY5ewUQL3PwR0x5CIMcXPzLMa/mVO NBkisKar7gUe1vJ6IbcTrKT933K9+Y1t1mZRLT7frN9s6FQt37PnFrJBbIX2zCtVzPfj jR+vP8J6ctqBvwpq7PvP7fw5I8AgivuvuHtOZkanJ5yDPuTUpS3veMFGkbf/De7Fp3wV yKV9T+5y8lnH9VrMYlAmcSDWNG1zRVFB5qP1xrTYP9mEcIRvbP6tJvUzkWsJ3zPInEff yR1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=d+Ous+MJZLPb5QBlrHWCjDLD3iSm+23cAOMnPeUb78o=; b=IQvHMm3f9VqzZOtc+1iZt1hhThXWFZ3gNW4ckuWRq/VL0sCqke4mjlDHMNZyyoAzNE JrAtk+f+lC5U4Kjm2bdJuRVFLqos2GwJTl2XHUqG9T/zH0xtqVrgCm6b+bdJV0LCkwle gNK3SXJImkp7cnBD4RMtS1af3RvApuOOBJuKawUxw9x9uN5xiBl+tHpIeRqni5b0glYw Cefdn5nmRy8GTXtJnWJXlIlyLEB6gYI+UUEgMSkwNWNU9WuDhTU+4ukmesF95V1OWQg/ w74nUvHMhOlxMTR7Dgx0xUnprtqsPuUVN4JiMr+Incdl0hucBe4YAZ/6x20jBEMUy2dr 12oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QyMHzf78; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t8-20020a1709028c8800b001a4fc13dfa5si16432507plo.276.2023.05.15.18.10.04; Mon, 15 May 2023 18:10:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QyMHzf78; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235743AbjEPBC4 (ORCPT + 99 others); Mon, 15 May 2023 21:02:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230170AbjEPBCz (ORCPT ); Mon, 15 May 2023 21:02:55 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7982446BC for ; Mon, 15 May 2023 18:02:53 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2ac80da3443so145948821fa.0 for ; Mon, 15 May 2023 18:02:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684198972; x=1686790972; h=content-transfer-encoding:in-reply-to:subject:from:references:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=d+Ous+MJZLPb5QBlrHWCjDLD3iSm+23cAOMnPeUb78o=; b=QyMHzf78j0uSzY2MRe0Z8f1VpS1F9zbGD6KnpEHPk6oBjZx/FyZTtURhgpqoTk9rtF sUEAaeWr7B/pGPFyn81y6rYiuhBbK6Sk53K2QCHDyTe6DgAniLqZjRu4qiQt9IksZQe1 JNSe4PsVAYFu5tP+LB+9ZaEBAhJRJIGt5iithaMexM8Flz/XobhF7hRkJqaMTDgX6pcW RjZ2+Ln8RpY/0KoOCEYZDczbGLtoUuW2/m7aFkqpf91XiRzPfBBuqz0QNZc01BQJR2BT YN1Inc9ymyCw/OnliWZY4y4jOrTc7sRK7JjPKS8WQ0OJgJyebcBdACAD4Bi2jR6K4nBH A0SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684198972; x=1686790972; h=content-transfer-encoding:in-reply-to:subject:from:references:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=d+Ous+MJZLPb5QBlrHWCjDLD3iSm+23cAOMnPeUb78o=; b=Jtfwp/cTJthLzKwV8KPIYaed25haKmgEP2gaoKbIWN2uAyuS9DtRvBEL1eHvKZrhIW +PS3SmBvj17HD1eUejCp/iPp4U3Km2ifsMcUYSswx8CnBDHnRTFej99+sN+9EjztXH3M wLFSxGEo5QOoANONmsKxuRm4xcIRsfZcIgW1J4NdAZFIbnZDcWvmxI0iVDvIC3QWEEMw 2N04+GcFBCeFkc1TDvtz/ZRdqvWRHRCbTEsEWwJjn9DNtBJT75JEStOpfIAtK+WknMRV M5aoVaH6rdqcbh9tjgaCP+ODnCqeMdGDWUS0Z1P+7PKBDoq6ooDoU41P+5EkZ3Ij7VHq hgqQ== X-Gm-Message-State: AC+VfDxeCFI7dDvDpqaE1LKS55/8HFIt+ctMylNq9g0kkokuieYEX6gs xvwaNR2aVU7OGu0vXVTle8a4Yw== X-Received: by 2002:a2e:9053:0:b0:2a8:bf74:61cc with SMTP id n19-20020a2e9053000000b002a8bf7461ccmr7774354ljg.26.1684198971725; Mon, 15 May 2023 18:02:51 -0700 (PDT) Received: from [192.168.1.101] (abxi58.neoplus.adsl.tpnet.pl. [83.9.2.58]) by smtp.gmail.com with ESMTPSA id w9-20020a05651203c900b004f14ae5ded8sm2782401lfp.28.2023.05.15.18.02.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 May 2023 18:02:51 -0700 (PDT) Message-ID: Date: Tue, 16 May 2023 03:02:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Content-Language: en-US To: Kathiravan T , agross@kernel.org, andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230412164920.21862-1-quic_kathirav@quicinc.com> <20230412164920.21862-4-quic_kathirav@quicinc.com> From: Konrad Dybcio Subject: Re: [PATCH 3/3] arm64: dts: qcom: ipq5332: add few more reserved memory region In-Reply-To: <20230412164920.21862-4-quic_kathirav@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12.04.2023 18:49, Kathiravan T wrote: > In IPQ SoCs, U-boot will collect the system RAM contents upon crash for > the post morterm s/post morterm/post-mortem ; s/the// analysis. If we don't reserve the memory region used by > U-boot, obviously linux will consume it and upon next boot on crash, uboot > will be loaded in the same region, which will lead to loose s/loose/loss some of the > data, sometimes we may miss out critical information. So.. is it used to store crash data, or do you load u-boot there? Or is there some software running at a higher exception level that collects the dumps and stores it to this region? Are these regions only used for some sort of crashdump colection? If so, they could get some more specific names, e.g. uboot-crashdump or so. Konrad So lets reserve the > region used by the U-boot. > > Similarly SBL copies some data into the reserved region and it will be > used in the crash scenario. So reserve 1MB for SBL as well> > Signed-off-by: Kathiravan T > --- > arch/arm64/boot/dts/qcom/ipq5332.dtsi | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/ipq5332.dtsi b/arch/arm64/boot/dts/qcom/ipq5332.dtsi > index c32217530b41..aec60840a2f0 100644 > --- a/arch/arm64/boot/dts/qcom/ipq5332.dtsi > +++ b/arch/arm64/boot/dts/qcom/ipq5332.dtsi > @@ -114,6 +114,16 @@ > #size-cells = <2>; > ranges; > > + uboot@4a100000 { > + reg = <0x0 0x4a100000 0x0 0x400000>; > + no-map; > + }; > + > + sbl@4a500000 { > + reg = <0x0 0x4a500000 0x0 0x100000>; > + no-map; > + }; > + > tz_mem: tz@4a600000 { > reg = <0x0 0x4a600000 0x0 0x200000>; > no-map;