From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06C12C77B75 for ; Tue, 16 May 2023 01:02:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237423AbjEPBC5 (ORCPT ); Mon, 15 May 2023 21:02:57 -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-Google-Smtp-Source: ACHHUZ46y8IfHELqwhyCq5Pz8SXT3inLl6MkJEtA/vr1tv/TuWe26ewHjgChUG8asVnI0uq0RFp9LQ== 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 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;