mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Kathiravan T <quic_kathirav@quicinc.com>,
	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
Subject: Re: [PATCH 3/3] arm64: dts: qcom: ipq5332: add few more reserved memory region
Date: Tue, 16 May 2023 03:02:50 +0200	[thread overview]
Message-ID: <e7478064-9b08-0eac-9c43-a235a0d45a90@linaro.org> (raw)
In-Reply-To: <20230412164920.21862-4-quic_kathirav@quicinc.com>



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 <quic_kathirav@quicinc.com>
> ---
>  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;

  reply	other threads:[~2023-05-16  1:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-12 16:49 [PATCH 0/3] Minor updates in the IPQ5332 DTS files Kathiravan T
2023-04-12 16:49 ` [PATCH 1/3] arm64: dts: qcom: ipq5332: rename mi01.2 dts to rdp441 Kathiravan T
2023-05-16  0:55   ` Konrad Dybcio
2023-04-12 16:49 ` [PATCH 2/3] arm64: dts: qcom: ipq5332: define UART1 Kathiravan T
2023-05-16  0:56   ` Konrad Dybcio
2023-04-12 16:49 ` [PATCH 3/3] arm64: dts: qcom: ipq5332: add few more reserved memory region Kathiravan T
2023-05-16  1:02   ` Konrad Dybcio [this message]
2023-05-12 16:02 ` [PATCH 0/3] Minor updates in the IPQ5332 DTS files Kathiravan T

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e7478064-9b08-0eac-9c43-a235a0d45a90@linaro.org \
    --to=konrad.dybcio@linaro.org \
    --cc=agross@kernel.org \
    --cc=andersson@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=quic_kathirav@quicinc.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®